Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Modify AIRPLANE_MODE_ON on Android 4.2 (and above)

Since the sdk version 4.2 it seems like it's no longer possible to modify airplane-mode on devices since google has moved this setting to Settings.Global which is read-only.

Has anyone been able to bypass this without and kind of rooting?

My apps primary function is to enable airplane-mode when the screen is turned off, and this stopped working since 4.2.

Just want to double check that my assessment is correct and that my app is dead starting from android 4.2 and above.

References: http://developer.android.com/reference/android/provider/Settings.Global.html#AIRPLANE_MODE_ON

like image 793
Tommie Avatar asked Nov 16 '12 18:11

Tommie


1 Answers

Just want to double check that my assessment is correct and that my app is dead starting from android 4.2 and above.

Yes. Or, to put it another way, if there is a back-door way to modify this setting, it represents a security hole, which will eventually get closed, much like the enable/disable GPS restriction that has existed for 3+ years.

like image 100
CommonsWare Avatar answered Sep 24 '22 23:09

CommonsWare