Using disable_modem.sh and disable_modem.sh results in a
popup displaying the following text:
  Select SIM card
  Ask every time
  Not available with Silence

When that happens, encrypted sessions are shown as not
encrypted and new message ends up being displayed as
"Bad encrypted message".

The exact same symptoms also happens if we do the following
operations:
- enter flight mode
- run disable_modem.sh
- run enable_modem.sh
- wait for libsamsung-ipc to initialize as much as it can and
  reach the
  SIM_NOT_INSERTED status. As the modem is in low power mode
  (due to the flight mode), it cannot go further without
  exiting the flight mode.
- exit flight mode

As there are no obvious fix known yet, it's better to also
reboot the device once libsamsung-ril is put back in place,
to lower the probability of loosing any SMS.

Signed-off-by: Denis 'GNUtoo' Carikli <[email protected]>
---
 networking/modem/device-files/enable_modem.sh | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/networking/modem/device-files/enable_modem.sh 
b/networking/modem/device-files/enable_modem.sh
index 1f2d723..25e75c6 100755
--- a/networking/modem/device-files/enable_modem.sh
+++ b/networking/modem/device-files/enable_modem.sh
@@ -38,4 +38,6 @@ echo "Syncing filesystem..."
 sync
 sync
 
-echo "Modem is enabled!"
+# https://android.stackexchange.com/a/139139
+echo "Modem will be enabled after we reboot now..."
+am start -a android.intent.action.REBOOT
-- 
2.24.1

_______________________________________________
Replicant mailing list
[email protected]
https://lists.osuosl.org/mailman/listinfo/replicant

Reply via email to