App not listed in “Apps with usage access” activity

一曲冷凌霜 提交于 2019-12-10 17:27:11

问题


I'm writing an android app for marshmallow (sdk 23) with Android Studio, which creates some charts/diagrams by retrieving the past network activities with the NetworkStatsManager-class.

Therefore I added the necessary permission in the manifest:

<uses-permission
    android:name="android.permission.PACKAGE_USAGE_STATS"
    tools:ignore="ProtectedPermissions" />

The "Apps with usage access" is opened automatically with an intent, so the user can permit the needed access.

The problem is: My app is not listed in the "Apps with usage access" anymore? The strange thing is, that it worked fine until some days ago (?).

I did already a "project clean", but no luck..

来源:https://stackoverflow.com/questions/39067283/app-not-listed-in-apps-with-usage-access-activity

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!