Wednesday, July 11, 2018

security - deactivate PIN-request after airplane mode


When switching on the phone, one is by default asked to enter the SIM-PIN -- which is a good security measure, to prevent "strangers" from causing you costs. Now the same applies when returning from airplane mode: one has to enter the SIM-PIN again. Which renders certain energy-savers useless: if an app e.g. enters airplane mode on signal loss (see: What is Cell standby and how can I keep it from eating my battery?), it would be unable to return to normal operation without user interaction.


I'm looking for a way to selectively disable this: Have the PIN request active when powering up the device -- but not being asked for the SIM-PIN when returning from airplane mode.


Please do not confuse this with "keyguard": I'm not asking about the screen lock (PIN/pattern/password). Here I know my way around, as there is an API for apps to use (so I can e.g. temporarily turn this off with Tasker).


I know this works with Samsung devices -- but I preferably want a device independent solution which works for all manufacturers.



Answer



DISCLAIMER




  1. This needs root. No way around that one.

  2. Your device must be running Android 4.1+

  3. This workaround may be too advanced for some users. Only try to apply it when you know what you're doing.

  4. I'm not to be held responsible if something goes awry or Ragnarök starts during the process. You're doing this on your own risk. Proceed with caution.

  5. I'm not the author of or otherwise affiliated with any of the mods mentioned. I merely found this and I'm sharing it for your benefit.


WORKAROUND


I found a workaround for the problem that's working beautifully on a Samsung Galaxy S2 with Cyanogenmod 10.2 and Dorimanx Kernel 9.41 installed. The necessary steps are as follows:





  1. Make sure your device is rooted.




  2. Download and install Xposed Framework Installer.




  3. When Xposed asks for root anywhere in the near future, grant it.




  4. Open the app and click on Framework -Tab.





  5. Click Install/Update.




  6. Reboot.




  7. Download and install Jelly Bean 4.x Airplane Mode Helper.





  8. Open Xposed Framework Installer-App again and select Modules.




  9. Tick (set active) Jelly Bean 4.x Airplane Mode Helper.




  10. Reboot.





  11. Open Jelly Bean 4.x Airplane Mode Helper.




  12. Tick (set active) Enabled.




  13. Reboot.




That's it! Airplane Mode should work again as in previous Android versions and does not ask for SIM-PIN any longer when being turned off. It still does at startup, though, thus keeping your SIM-Card somewhat safe. I set up an automated battery saving procedure with Llama Location Profiles similar to the one described here (Thx a bunch, Izzy) and it's working flawlessly.



Good luck, folks!


No comments:

Post a Comment

samsung galaxy s 2 - Cannot restore Kies backup after firmware upgrade

I backed up my Samsung Galaxy S2 on Kies before updating to Ice Cream Sandwich. After the upgrade I tried to restore, but the restore fails ...