Root Battery Scheduler is a lightweight, FOSS, root-only automation tool designed specifically for Android 11 (LineageOS 18.1) on the Sony Xperia Z4 Tablet. It allows you to schedule system-level power saving modes, including Battery Saver, Airplane Mode, and Wi-Fi, to maximize battery life during inactive hours.
It serves as a minimalist, zero-overhead replacement for heavy automation apps like Tasker or MacroDroid when you just need simple, reliable scheduling.
- System Power Mode Control: Forces Android's Battery Saver mode using root commands (
cmd power set-mode). - Connectivity Control: Automatically toggles Airplane Mode and Wi-Fi to cut radio drain completely.
- Zero Background Drain: Uses Android's native
AlarmManagerto trigger events. No background services or wake locks are running while idle. - Boot Persistence: Automatically reschedules alarms after a device reboot.
- Simple UI: A clean, single-screen interface to set your schedule and toggles.
- Download the
RootBatteryScheduler_v1.0.apk. - Install it on your rooted Android device.
- Open Root Battery Scheduler and grant Root Permissions when prompted by Magisk/SuperSU.
- Configure your schedule and enable the toggles you need.
If the device is PLUGGED IN (Charging), Root Battery Scheduler will intentionally SKIP enabling Battery Saver mode. This is a safety feature to prevent system crashes or boot loops, as Android blocks Battery Saver mode while charging.
- Note: Airplane Mode and Wi-Fi toggles will still execute even if charging.
You may notice a delay of 1-2 minutes after your scheduled time before the actions trigger.
This is normal behavior caused by Android's Doze optimization. Even using setExactAndAllowWhileIdle, the system may defer the alarm slightly to batch operations and save battery. This ensures the app itself doesn't become a battery drain.
Requires Root Access. This application modifies system settings via root shell commands. While tested on the Xperia Z4 Tablet (LineageOS 18.1), use it at your own risk. The developer is not responsible for any potential data loss or boot loops (though safeguards are in place).
This project is licensed under the GPLv3 License. Free Software, Forever.