Repository navigation
v4.4.1
GMS Sensor Guard (System tab, LineageOS only)
• Stop Play services' background sensor hammering: Google Play services keeps the accelerometer (at 50 Hz) and the ambient-light sensor registered in short continuous bursts from its location library (collectionlib), even when no app is asking for your position - a constant battery drain that shows up attributed to "Google Play services". This module revokes its ACTIVITY_RECOGNITION appop at the UID level. Measured on-device: location requests (network/GPS fixes) keep being served normally while the sensor bursts stop.
• ROM quirk handled: the package-level cmd appops set form is accepted but silently never applied on this ROM - only the UID form works, so the UID is resolved at runtime (it differs per device and per re-flash).
• Survives reboots: the appop does NOT survive a reboot on this ROM (observed on-device), so a one-shot boot script (/data/adb/service.d/gms_guard_boot.sh) re-asserts it at every boot. The switch state is always read back from the OS, never from a local pref, so adb-side changes are reflected.
• Background scanning toggles: the Wi-Fi and Bluetooth scanning switches from Settings > Location > Location services, plus an explanation of the trade-offs of the manual settings (Google Location Accuracy, Wi-Fi/BLE scanning, A-GPS).
Found by IvanTheTolerable (Discord).
See CHANGELOG.md for details.