Fully Customize Battery Saver Mode on Android Oreo

Edited by Jay, Maria Quinney, Visihow Admin

NorthernTouch Battery-Save-Mode-000.png

Battery Saver Mode is one of the many features that can be tweaked with ADB (Android Debug Bridge) in Android 8 (Oreo). Let's face it, anything we can do to help save on battery usage is a plus, especially when you find yourself in a situation where charging your device is simply not an option.

The thing is, the stock settings for Battery Saver Mode may not always suit some user's preferences. The factory settings might work for some people, but there is no doubt a vast number of users who would prefer to utilize only specific options offered within the default settings. One setting that comes to mind is not being able to adjust the display brightness. When in Battery Saver Mode the device's screen will dim quite a bit, and although this does save on power, it might not be so great in bright environments such as being outside. Another setting that gets shut off when Battery Saver Mode is active is vibration. Unless your device is going to be vibrating nonstop, disabling it all together could become quite the inconvenience.

In this VisiHow tutorial, we'll go through each command contained within Battery Saver Mode's source code, and how to change their values. You don't need root access, but you will have to enable USB debugging and be comfortable using the command line tool. To perform the following steps, we used a Google Pixel running Android 8.1.0, and a Laptop running Windows 7 (Windows 8 and 10 will work as well).

Battery Saver Mode Source Code Default Settings

The following image displays the stock factory settings for Battery Saver Mode. For this article, we'll edit a few of these parameters in ADB so you can get a visual perspective of how this all works. We'll also explain each of the three data types used; Boolean, Int, and Float.

NorthernTouch Battery-Save-Mode-01A.png

AS you can see from in the above image, each of the nine settings has a data type associated with it.

  • (boolean) - This data type usually has two values assigned to it, and in most cases, those are true or false.
  • (int) - This data type is an integer, which is just a whole number.
  • (float) - This data type covers numbers that contain decimals.

Now that we understand each data type, it's time to select a which settings we want to edit

For our example, we're going to change:

  • vibration_disabled - Changing this to false will allow your device to vibrate.
  • adjust_brightness_disabled - Changing this value to true will ensure that your device's screen will not be dimmed once it's in battery saver mode.
  • adjust_brightness_factor - By assigning a value between 0 - 1 (0.1, 0.25, 0.75, etc.) we'll be controlling how bright the display can be. So as an example, 0.1 would make the display only go to a maximum of 10% of the standard brightness level.

Editing Commands using ADB

NorthernTouch Battery-Save-Mode-0000.png

Now that we know which settings to edit, it's time to head over to the command line tool.

  1. 1
    Go to the platform-tools folder, hold the shift key + right-click, then select "Open command window here".
    NorthernTouch Battery-Save-Mode-02.png
    Was this step helpful? Yes | No| I need help
  2. 2
    Next, plug your device into your computer
    If you see the following pop-up, tap "OK".
    NorthernTouch Battery-Save-Mode-03.png
    If you plan on using this computer for future adb commands, select "Always allow from this computer". This will ensure that you won't see this pop-up in the future when connecting to the computer you're currently using.
    Was this step helpful? Yes | No| I need help
  3. 3
    In the command window, type
    "adb devices" (without the quotes) and hit enter.
    NorthernTouch Battery-Save-Mode-04.png
    You should see your phone's serial number under list of attached devices.
    Was this step helpful? Yes | No| I need help
  4. 4
    Next, type
    "adb shell" (without quotes) and hit the enter key.
    NorthernTouch Battery-Save-Mode-05.png
    Was this step helpful? Yes | No| I need help
  5. 5
    Now it's time to enter the commands we mentioned above
    The first command will enable vibration. settings put global battery_saver_constants "vibration_disabled=false"
    NorthernTouch Battery-Save-Mode-06.png
    Was this step helpful? Yes | No| I need help
  6. 6
    The second command will keep the display from dimming automatically
    settings put global battery_saver_constants "adjust_brightness_disabled=true"
    NorthernTouch Battery-Save-Mode-07.png
    Was this step helpful? Yes | No| I need help
  7. 7
    The third command will throttle high bright the brightness of the display to 10% of what it would normally go to
    settings put global battery_saver_constants "adjust_brightness_factor=0.1"
    NorthernTouch Battery-Save-Mode-08.png
    You can also combine all the command into a single line separating with commas.
    Was this step helpful? Yes | No| I need help
  8. 8
    Once you've entered all your changes, unplug your device and enable Battery Saver Mode
    Swipe down from the top edge of the screen to access the notification panel, then tap the battery icon.
    NorthernTouch Battery-Save-Mode-09.png
    Was this step helpful? Yes | No| I need help
  9. 9
    Check to see that all your edits are now live.
    NorthernTouch Battery-Save-Mode-10.png
    Was this step helpful? Yes | No| I need help

If you have problems with any of the steps in this article, please ask a question for more help, or post in the comments section below.


Article Info

Categories : Use Google Pixel and Pixel XL | Use Android Oreo

Recent edits by: Maria Quinney, Jay

Share this Article:

Thanks to all authors for creating a page that has been read 443 times.


Thank Our Volunteer Authors.

Would you like to give back to the community by fixing a spelling mistake? Yes | No