How drsexo/frosty works
Frosty is a root-managed Android battery optimization module, configured through its WebUI. The main flow is user settings in the UI, API-mediated preference storage or shell actions, then device power-management changes. The README also documents GMS freezing, Doze controls, screen-off automation, battery-saver tuning, and system/RAM optimizations. The excerpts show API calls to the app/deep-Doze scripts and a preferences file; many other script dispatches reference frosty.sh, which is absent from the supplied tree, so those links are left unverified.
Main entry points: api.js WebUI API · app.js WebUI · user_prefs User preferences · gms_freeze.sh GMS freezing
Components 16
Settings and control
- User preferences
module/config/user_prefs - GMS freezing
module/scripts/gms_freeze.sh - Tracking controls
module/scripts/kill_tracking.sh
Power management
- App Doze
module/scripts/app_doze.sh - Deep Doze
module/scripts/deep_doze.sh - Screen-off automation
module/scripts/screen_off_opt.sh - Battery-saver tuner
module/scripts/battery_saver.sh - Doze whitelists
module/scripts/app_doze.sh
System tuning
- Kernel tweaks
module/scripts/kernel_tweaks.sh - RAM optimizer
module/scripts/ram_optimizer.sh - RAM cleaner
module/scripts/ram_clean.sh - System tweaks
module/scripts/sys_tweaks.sh - Log killing
module/scripts/kill_logs.sh
Other components
- Device owner
Connections 15
- Device owner → WebUI: configures
README.md - WebUI → WebUI API: calls
module/webroot/app.js - WebUI API → User preferences: reads and writes
module/webroot/api.js - WebUI API → App Doze: dispatches
module/webroot/api.js - WebUI API → Deep Doze: dispatches
module/webroot/api.js - WebUI API → GMS freezing: configures
- WebUI API → Screen-off automation: configures
- WebUI API → Battery-saver tuner: configures
- WebUI API → Kernel tweaks: configures
- WebUI API → RAM optimizer: configures
- WebUI API → RAM cleaner: dispatches
- WebUI API → System tweaks: configures
- WebUI API → Tracking controls: configures
- WebUI API → Log killing: configures
- WebUI API → Doze whitelists: manages