diff options
author | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2020-01-02 12:55:56 +0100 |
---|---|---|
committer | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2020-01-09 00:17:09 +0100 |
commit | 7b6e0aeaadc932bd9736e36c4cb03c6919046f94 (patch) | |
tree | 33816a86b4f6ea4c1a86f880361fc15e09ba651d | |
parent | 900d090071358b8a78bf4cad1ad3fffab3667585 (diff) | |
download | vendor_replicant-scripts-7b6e0aeaadc932bd9736e36c4cb03c6919046f94.tar.gz vendor_replicant-scripts-7b6e0aeaadc932bd9736e36c4cb03c6919046f94.tar.bz2 vendor_replicant-scripts-7b6e0aeaadc932bd9736e36c4cb03c6919046f94.zip |
modem_enable.sh: workaround silence not finding the SIM card.replicant-6.0-0004-rc1
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 <GNUtoo@cyberdimension.org>
-rwxr-xr-x | networking/modem/device-files/enable_modem.sh | 4 |
1 files changed, 3 insertions, 1 deletions
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 |