Skip to content

jonidimo/Root-Battery-Scheduler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

2 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Root Battery Scheduler

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.

Features

Screenshot_20251120-030501_Root_Battery_Scheduler
  • 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 AlarmManager to 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.

Installation

  1. Download the RootBatteryScheduler_v1.0.apk.
  2. Install it on your rooted Android device.
  3. Open Root Battery Scheduler and grant Root Permissions when prompted by Magisk/SuperSU.
  4. Configure your schedule and enable the toggles you need.

โš ๏ธ Known Limitations

Charging Safety

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.

Timing Delay

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.

Disclaimer

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).

License

This project is licensed under the GPLv3 License. Free Software, Forever.

About

Root-only battery saver automation for LineageOS/Android 11 ๐Ÿ”‹๐Ÿ’ค

Resources

Stars

Watchers

Forks

Packages

No packages published