简体   繁体   English

如何访问Android 7.0或更高版本的Nougat中的进程?

[英]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.

相关问题 如何在Android版本7.0(牛轧糖)及以上版本中将InputType设置为InputType.TYPE_CLASS_NUMBER - how to set InputType to InputType.TYPE_CLASS_NUMBER in Android Version 7.0 (nougat) and above 在Android Nougat 7.0上录制通话 - record call on Android nougat 7.0 如何在Android Nougat及以上版本中创建Notification.contentView? - How to create Notification.contentView in android Nougat and above? 如何以编程方式在Android Nougat,Oreo及更高版本中阻止通话? - How to Block Call in Android Nougat, Oreo and above programatically? Android N 中的定期作业(Nougat,7.0) - Periodic Job in Android N (Nougat, 7.0) Android Nougat(7.0)发生I / O失败 - I/O failure with Android Nougat (7.0) Job Scheduler在Android 7.0(Nougat)中不定期出现 - Job Scheduler Not recurring in periodic in Android 7.0 (Nougat) android以编程方式在牛轧糖上方关闭屏幕 - android programmatically screen off above Nougat android-在牛轧糖中拖放后,RecyclerView项不可单击(Android 7.0) - android - RecyclerView item not clickable after drag and drop in Nougat (Android 7.0) Android Geocoder无法使用Android Nougat 7.0在Nexus 6P中运行 - Android Geocoder not working in Nexus 6P with Android Nougat 7.0
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM