How Running Services Monitor works
mainThe app monitors running services by executing privileged ADB commands. Because the ActivityManager.getRunningServices() API was restricted in Android 8.0 (API 26) for privacy, the app uses one of two methods to bypass these restrictions:
- Permission Check: The app first attempts to detect Root access.
- Root Path: If root is available, it executes commands directly with superuser privileges.
- Shizuku Path: If root is unavailable, it connects to the Shizuku service (which uses ADB/Wireless Debugging) to execute commands.
- Data Extraction: The app executes
dumpsys activity servicesto retrieve service information. - Parsing & Display: It parses the
dumpsysoutput to extract details like package name, PID, and process name, then categorizes them into System or User apps.