Hi all,
On my previous device (gt-i9502 dual sim Galaxy S4), I used a ROM in which you could find a setting to keep bluetooth enabled all the time, even when switching on the airplane mode. I was expecting that rooting my Yotaphone 2 would let me get that behavior again (out of the box, the bluetooth gets switched off when enabling airplane mode, which is, after all, the goal of airplane mode, but happens to be a pain when you use an Android Wear watch).
I've googled a bit for a solution, either an utility or customized setting app, and I found a very simple hack that I thought I'd share here in case other Yotaphone 2 users like me want this behavior:
What you need is:
1) a rooted Yotaphone 2
2) an sqlite database editor that can access system databases on rooted phones (I used Sqlite Editor by Speed Software, which is nice but not free, you can certainly find a freeware equivalent).
In your sqlite editor, look for the following file:
/data/data/com.android.providers.settings/databases/settings.db
When you open this file, in the "global" database, you'll find the two fields that we want to look at:
airplane_mode_radios
cell,bluetooth,wifi,nfc,wimax
airplane_mode_toggleable_radios
bluetooth,wifi,nfc
What this means is that by default, switching the airplane mode on/off will switch the cellular, bluetooth, wifi/wimax and nfc radios in the phone (in the airplane_mode_radio field) and that when airplane mode is activated, you can still manually re-enable bluetooth, wifi or nfc (airplane_mode_toggleable_radios field).
I use a nfc sticker on my bedstand, programmed as a shortcut to switch in and out of airplane mode, so in my case I simply modified the airplane_mode_radios field to remove bluetooth and nfc:
Edited airplane_mode_radios
cell,wifi,wimax
Kudos to cdl for the initial post on AndroidForums (http://androidforums.com/threads/how...e-mode.659825/)
On my previous device (gt-i9502 dual sim Galaxy S4), I used a ROM in which you could find a setting to keep bluetooth enabled all the time, even when switching on the airplane mode. I was expecting that rooting my Yotaphone 2 would let me get that behavior again (out of the box, the bluetooth gets switched off when enabling airplane mode, which is, after all, the goal of airplane mode, but happens to be a pain when you use an Android Wear watch).
I've googled a bit for a solution, either an utility or customized setting app, and I found a very simple hack that I thought I'd share here in case other Yotaphone 2 users like me want this behavior:
What you need is:
1) a rooted Yotaphone 2
2) an sqlite database editor that can access system databases on rooted phones (I used Sqlite Editor by Speed Software, which is nice but not free, you can certainly find a freeware equivalent).
In your sqlite editor, look for the following file:
/data/data/com.android.providers.settings/databases/settings.db
When you open this file, in the "global" database, you'll find the two fields that we want to look at:
airplane_mode_radios
cell,bluetooth,wifi,nfc,wimax
airplane_mode_toggleable_radios
bluetooth,wifi,nfc
What this means is that by default, switching the airplane mode on/off will switch the cellular, bluetooth, wifi/wimax and nfc radios in the phone (in the airplane_mode_radio field) and that when airplane mode is activated, you can still manually re-enable bluetooth, wifi or nfc (airplane_mode_toggleable_radios field).
I use a nfc sticker on my bedstand, programmed as a shortcut to switch in and out of airplane mode, so in my case I simply modified the airplane_mode_radios field to remove bluetooth and nfc:
Edited airplane_mode_radios
cell,wifi,wimax
Kudos to cdl for the initial post on AndroidForums (http://androidforums.com/threads/how...e-mode.659825/)
Aucun commentaire:
Enregistrer un commentaire