AntonioRedondo / AnotherMonitor

Monitors and records the CPU and memory usage of Android devices
https://play.google.com/store/apps/details?id=org.anothermonitor
GNU General Public License v3.0
1.1k stars 335 forks source link

Should processes be shown on Android 7 when root access is available? #5

Closed reox closed 7 years ago

reox commented 7 years ago

I'm not sure if I understood the documentation correct, but should the process list work on android 7.1.2 if root access is available for apps? I installed AnotherMonitor on my Nexus 5 using LineageOS 14.1 (Android 7.1.2) and activated root but I can not see the list of processes. I confirmed that root access is working by su on a terminal and ls /proc works fine.

AntonioRedondo commented 7 years ago

Hi Reox,

Sorry for the late reply.

AnotherMonitor makes use of the AndroidProcesses library to retrieve system processes. According to its documentation it's possible to get the processes list if you have root access on the device. However I've been unable to check this by my own means.

AntonioRedondo commented 7 years ago

I've further dug into this. I've tested AnotherMonitor on an rooted Android 7.0 device on the Android emulator and I can confirm it won't show running processes. This is due to the underlying library AndroidProcesses not supporting root access to the proc file system.

However the author is aware of this shortcoming and it could implement the feature soon.

AntonioRedondo commented 7 years ago

The author of AndroidProcesses has deprecated the library. That means the library won't be updated to support Android 7.0 ever. I'm closing this issue.