If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.

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()


You need the permission android.permission.READ_EXTERNAL_STORAGE. Write on the Android Manifest


MANAGE_USERS has a protection level of signature|system, so your application must be signed with the platform key. Take a look on this for more information about it.

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • GitHub comment 868#243217900
    via GitHub by k3b
  • Can not instantiate value of type using Firebase
    via by Unknown author,
    via GitHub by tobrun
    • java.lang.SecurityException: Neither user 10003 nor current process has android.permission.PACKAGE_USAGE_STATS. at android.os.Parcel.readException( at android.os.Parcel.readException( at$Stub$Proxy.getAllPkgUsageStats( at at at at$400( at$UpdateHandler.handleMessage( at android.os.Handler.dispatchMessage( at android.os.Looper.loop( at

    Users with the same issue

    86 times, last one,
    33 times, last one,
    Ranjana Dangol
    3 times, last one,
    9 times, last one,
    13 times, last one,
    229 more bugmates