[Guide] Change WiFi auto switch off time (15 minute default) to any vaule. topic
Hello this is my first contribution to the forum.
About the tweak
This modification is usefull for people who (like me) use the setting "keep wifi on only when plugged in". This setting basically turns the wifi off after a default time interval since the screen was turned off (the default is 15 minutes). For some people this time is way to long to wait before switching the wifi off. So after some research I found a way to reduce this time to any time interval desired.
Procedure
The modification process is simple, the only thing needed is an Sqlite database editor, I preffer Sqlite Editor from the playstore.
steps:
1. first of all, install an sqlite database editor (it can be for PC)
2. locate the following file: /data/data/com.android.providers.settings/databases/settings.db
3. open the file with the Sqlite software or APP (you should see something like the first thumbnail attachment)
4. proceed to the Secure section
5. create the following record/key: "wifi_idle_ms" without quotation marks
6. the value for the new record/key is what defines the time to wait after screen off to switch off the wifi and is in milliseconds,
example:
enter 120000 to wait 2 minutes
7. save the changes and reboot.
8. if you ant to undo the changes just delete the record you just created or set it to be 900000 (15 minutes)
the second thumbnail attachment is what my setting looks like with 2 minutes wait time.
This should work on any rom, hope this is usefull for someone
About the tweak
This modification is usefull for people who (like me) use the setting "keep wifi on only when plugged in". This setting basically turns the wifi off after a default time interval since the screen was turned off (the default is 15 minutes). For some people this time is way to long to wait before switching the wifi off. So after some research I found a way to reduce this time to any time interval desired.
Procedure
The modification process is simple, the only thing needed is an Sqlite database editor, I preffer Sqlite Editor from the playstore.
steps:
1. first of all, install an sqlite database editor (it can be for PC)
2. locate the following file: /data/data/com.android.providers.settings/databases/settings.db
3. open the file with the Sqlite software or APP (you should see something like the first thumbnail attachment)
4. proceed to the Secure section
5. create the following record/key: "wifi_idle_ms" without quotation marks
6. the value for the new record/key is what defines the time to wait after screen off to switch off the wifi and is in milliseconds,
example:
enter 120000 to wait 2 minutes
7. save the changes and reboot.
8. if you ant to undo the changes just delete the record you just created or set it to be 900000 (15 minutes)
the second thumbnail attachment is what my setting looks like with 2 minutes wait time.
This should work on any rom, hope this is usefull for someone
xda-developers
0 commentaires:
Enregistrer un commentaire