0

I included this line in manifest file

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

But when I open the Grant Usage Access section with

startActivity(new Intent(Settings.ACTION_USAGE_ACCESS_SETTINGS));

My app isn't even on the list of apps to grant this access to, am I missing something?

Anirudh
  • 2,648
  • 2
  • 13
  • 16

1 Answers1

0

If the permission is not showing up on your list that means you didnt place your permissions in the right place in your Manifest file make sure to follow to format specified here

Anirudh
  • 2,648
  • 2
  • 13
  • 16