Fully Customize Battery Saver Mode on Android Oreo
Edited by Jay, Maria Quinney, Visihow Admin
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.
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
Now that we know which settings to edit, it's time to head over to the command line tool.
- 2Next, plug your device into your computer. If you see the following pop-up, tap "OK".Advertisement