java.lang.SecurityException: Admin ComponentInfo{com.afwsamples.testdpc/com.afwsamples.testdpc.DeviceAdminReceiver} did not specify uses-policy for: disable-keyguard-features

GitHub | reed-sap | 10 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to rafael and rp . Or join the community to write better ones.
  1. 0
    samebug tip
    Android SDK 23 introduced a new way to handle permissions, so as a temporary workaround you can set it to build for SDK below 23. As a permanent solution you have to ask user during runtime for permissions with checkSelfPermission() or requestPermissions()
    via goo.gl
  2. 0
    samebug tip
    You should add the permission android.permission.READ_EXTERNAL_STORAGE to your manifest file.
  3. 0

    disable-keyguard-features fails to register upon app update

    GitHub | 10 months ago | reed-sap
    java.lang.SecurityException: Admin ComponentInfo{com.afwsamples.testdpc/com.afwsamples.testdpc.DeviceAdminReceiver} did not specify uses-policy for: disable-keyguard-features
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    java.lang.SecurityException: getDeviceId: Neither user 10058 nor current process has android.permission.READ_PHONE_STATE

    Stack Overflow | 1 year ago | stephan1002
    java.lang.SecurityException: getDeviceId: Neither user 10058 nor current process has android.permission.READ_PHONE_STATE.
  6. 0

    ACCESS_FINE_LOCATION permission error emulator only

    Stack Overflow | 2 years ago | Hassan Khallouf
    java.lang.SecurityException: Client must have ACCESS_FINE_LOCATION permission to request PRIORITY_HIGH_ACCURACY locations.

  1. justCodeit 31 times, last 2 weeks ago
  2. Indri Yunita 2 times, last 1 month ago
  3. Adrien 16 times, last 1 month ago
  4. filpgame 1 times, last 2 months ago
  5. gaurav 9 times, last 4 months ago
33 more registered users
33 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.SecurityException

    Admin ComponentInfo{com.afwsamples.testdpc/com.afwsamples.testdpc.DeviceAdminReceiver} did not specify uses-policy for: disable-keyguard-features

    at android.os.Parcel.readException()
  2. Android Platform
    Parcel.readException
    1. android.os.Parcel.readException(Parcel.java:1599)
    2. android.os.Parcel.readException(Parcel.java:1552)
    2 frames