[英]How to access to the processes in Android 7.0 or above Nougat?
I tried to access the process information through the '/ proc' file. 我试图通过“ / proc”文件访问过程信息。 But it didn't work.
但这没有用。 I wonder to know how Greenify implement this function.
我想知道Greenify如何实现此功能。 Thanks in advance!
提前致谢!
Unfortunately you can no longer do this in Android 7.0. 不幸的是,您无法再在Android 7.0中执行此操作。 With Android 7.0, Google has significantly restricted access to /proc.
使用Android 7.0,Google大大限制了对/ proc的访问。
This limitation/feature has already been reported to Google: https://code.google.com/p/android/issues/detail?id=205565 此限制/功能已报告给Google: https : //code.google.com/p/android/issues/detail?id=205565
An alternative would be to use UsageStatsManager. 一种替代方法是使用UsageStatsManager。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.