How To Customize Androids Built-in Battery Saver?
Android has had a built-in Battery Saver mode for years now. If your phone is about to run out of battery, then you can activate it to keep the device running for a few extra hours. Battery Saver disables quite a few power-hungry features and tweaks a bunch of settings to extend the battery life. While its quite useful as is for most people, some people may want to tweak it so it doesnt turn certain settings off or make it even more aggressive at saving battery. If that describes you, then heres a tutorial on how to customize Androids battery saver mode.
Before we begin, we need to explain what Battery Saver mode actually does. According to a Google support page, heres what Battery Saver limits on a Pixel phone:
- Apps r efresh their content, like email or news, only when you open the app.
- L ocation services stop when your screen is off.
- Apps dont run in the background, unless you turn off battery optimization
- Your phone doesnt listen for Ok Google and cant continue a conversation. Instead, each time, tap Google Assistant
- Dark Theme turns on.
- Your notifications may be delayed.
- Always show time and info turns off.
Pixel phones with Active Edge wont respond to a squeeze. - On Pixel 3, Pixel 4, and later Pixel phones, car crash detection turns off.
- On Pixel 4 phones, Motion Sense turns off.
- On Pixel 4 and later Pixel phones, smooth display turns off.
- Pixel phones with 5G fall back to 4G service.
(Exclusive to Googles Pixel 3 and later is an even more powerful Extreme Battery Saver Mode, but seeing as this is a Pixel-exclusive feature, we wont be talking about it any further.)
The list shown above is actually incomplete: Battery Saver mode on Android phones actually does more than what Google says on the support page. In fact, Battery Saver also disables things like app launch boost, vibrations, and animations, and it also limits the maximum brightness of the panel. Since Androids battery saver mode is open source and can be controlled through the command-line interface for the Settings tables, its possible to tweak battery saver mode to make it more or less aggressive in what it disables.
Method 1 ADB Shell
- Follow this https://www.xda-developers.com/install-adb-windows-macos-linux/ guide to set up ADB on your PC or read this https://www.xda-developers.com/debloat-your-phone-run-adb-shell-commands-no-root-no-pc post to learn how to set up a local ADB shell.
- Once you have ADB up and running, open a command prompt or terminal window and run the following command in shell:
Kod:settings put global battery_saver_constants "advertise_is_enabled=BOOLEAN,datasaver_disabled=BOOLEAN,enable_night_mode=BOOLEAN,launch_boost_disabled=BOOLEAN,vibration_disabled=BOOLEAN,animation_disabled=BOOLEAN,soundtrigger_disabled=BOOLEAN,fullbackup_deferred=BOOLEAN,keyvaluebackup_deferred=BOOLEAN,firewall_disabled=BOOLEAN,gps_mode=INTEGER,adjust_brightness_disabled=BOOLEAN,adjust_brightness_factor=FLOAT,force_all_apps_standby=BOOLEAN,force_background_check=BOOLEAN,optional_sensors_disabled=BOOLEAN,aod_disabled=BOOLEAN,quick_doze_enabled=BOOLEAN"
where BOOLEAN is either true or false, INTEGER is a whole number, and FLOAT is a decimal number
- If you want to know what the parameters under battery saver mode are currently set to, you can run the following ADB shell:
Kod:dumpsys power | grep -A 128 "Battery saver policy"
This will show you the current battery saver policy and all the parameter values. Alternatively, you can check the output of:
Kod:settings get global battery_saver_constants
however, this wont populate until after youve made changes to this Settings value at least once.
- If you want to revert battery saver mode back to its default parameters, then you can run either:
Kod:settings delete global battery_saver_constants
or:
Kod:settings put global battery_saver_constants "advertise_is_enabled=true,datasaver_disabled=true,enable_night_mode=true,launch_boost_disabled=true,vibration_disabled=true,animation_disabled=false,soundtrigger_disabled=true,fullbackup_deferred=true,keyvaluebackup_deferred=true,firewall_disabled=true,gps_mode=2,adjust_brightness_disabled=true,adjust_brightness_factor=0.5,force_all_apps_standby=true,force_background_check=true,optional_sensors_disabled=true,aod_disabled=true,quick_doze_enabled=true"
Method 2 Buoy app
XDA Recognized Developer tytydraco, the developer of the LADB app we covered the other day, is back with another app called Buoy. Its described as an extension to the built in Android Battery Saver, and what it does is exposes Androids hidden parameters to customize the behavior of the battery saver mode. The app lets you toggle the following:
In order to use Buoy, youll need an Android device running Android 8.0 Oreo or later, though the available parameters will differ depending on the Android version. Also, youll have to grant the app the WRITE_SECURE_SETTINGS permission or root access for it to change the value of Settings.Global.battery_saver_constants.
If you install the app and make any changes, be aware that the changes wont automatically revert when you uninstall the app. Youll have to either hit the reset button in Buoy or send one of the commands mentioned in step 4 from before in order to revert battery saver modes parameters back to default.
Buoy costs $0.99 on Google Play in the U.S., but its also open source so you can compile it yourself if youre so inclined.
Turkish Version:
https://www.turkhackteam.org/google...ma-modu-nasil-ozellestirilir.html#post9376038
This Thread Quoted From:
https://www.xda-developers.com/customize-android-battery-saver-mode/
Son düzenleme: