[Replicant] [device-files][PATCH] modem: workaround silence not finding the SIM card when it is "launched"

Denis 'GNUtoo' Carikli GNUtoo at cyberdimension.org
Fri Jan 10 19:43:42 UTC 2020


When silence is present in the app switcher, it still doesn't
find the SIM card after a reboot.

This seems to make it find the SIM card again.

Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo at cyberdimension.org>
---
 networking/modem/device-files/disable_modem.sh | 1 +
 networking/modem/device-files/enable_modem.sh  | 1 +
 2 files changed, 2 insertions(+)

diff --git a/networking/modem/device-files/disable_modem.sh b/networking/modem/device-files/disable_modem.sh
index 28e8e38..5650656 100755
--- a/networking/modem/device-files/disable_modem.sh
+++ b/networking/modem/device-files/disable_modem.sh
@@ -38,6 +38,7 @@ echo "Syncing filesystem..."
 sync
 sync
 
+am force-stop org.smssecure.smssecure
 # https://android.stackexchange.com/a/139139
 echo "Modem will be disabled after we reboot now..."
 am start -a android.intent.action.REBOOT
diff --git a/networking/modem/device-files/enable_modem.sh b/networking/modem/device-files/enable_modem.sh
index 25e75c6..4b78089 100755
--- a/networking/modem/device-files/enable_modem.sh
+++ b/networking/modem/device-files/enable_modem.sh
@@ -38,6 +38,7 @@ echo "Syncing filesystem..."
 sync
 sync
 
+am force-stop org.smssecure.smssecure
 # 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



More information about the Replicant mailing list