I'm really confused. I have just noticed that starting from Android 8 all system calls like /proc/stat will be disabled. Ok, but what is work around to get CPU Usage in Android 8? No system calls at all. Is there some API that I'm not familiar with?
I really hope that there is solution which I can't see now.
No, all of /proc/stat has been disabled for non-System apps, as a side-channel.
More information, with an official response from Google here: https://issuetracker.google.com/issues/37140047
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With