Set airplane mode without root?

Post your questions and help other users.

Moderator: Martin

Post Reply
Wibbly
Posts: 418
Joined: 17 Mar 2014 09:02

Set airplane mode without root?

Post by Wibbly » 06 Mar 2018 17:18

Can this be done (Oreo 8.1) by granting a permission via ADB?

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: Set airplane mode without root?

Post by Desmanto » 07 Mar 2018 10:40

I am pessimist it will works. But you can try to use action Set System Action. You have to grant write secure setting to Automagic. Then you can try to change the value of airplane_mode_on to 1. Wait and see if the phone respond to that change and switch to airplane mode. At mine, it doesn't work, but the setting glitch. I have to tap airplane mode 2 times to reset the airplane mode.

Other method is using Control UI. Invoke the quickSettings() and tap the Airplane mode icon. If quick setting won't work, you need to use launch app to open settings, use control UI to navigate to the airplane mode and enable it.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

Wibbly
Posts: 418
Joined: 17 Mar 2014 09:02

Re: Set airplane mode without root?

Post by Wibbly » 07 Mar 2018 13:20

Setting airplane_mode_on to 1 didn't work on Pixel 2 on 8.1, sadly

Quicksettings approach works excpt if the phone happens to be running Android Auto, where the Quicksettings shade comes down, but the button isn't clicked

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: Set airplane mode without root?

Post by Desmanto » 07 Mar 2018 14:14

Wibbly wrote:Setting airplane_mode_on to 1 didn't work on Pixel 2 on 8.1, sadly

Quicksettings approach works excpt if the phone happens to be running Android Auto, where the Quicksettings shade comes down, but the button isn't clicked
Then you only have the last resort, shortcut settings to airplane. At mine, the location is at com.android.settings.Settings$WirelessSettingsActivity. From there I only need single control UI click to toggle the airplane. Try to find yours at the launch app - settings. Usually it is the advanced setting at wireless/network. Consider it is android auto, I think you mind the split seconds UI distraction caused by the launch app + Control UI.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

Wibbly
Posts: 418
Joined: 17 Mar 2014 09:02

Re: Set airplane mode without root?

Post by Wibbly » 07 Mar 2018 15:25

Thanks - that seems more relaible...

Post Reply