java.lang.SecurityException

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

tip

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

tip

MANAGE_USERS has a protection level of signature|system, so your application must be signed with the platform key. Take a look on this https://goo.gl/nXsTvH 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 185#246375898
    via GitHub by Perceval2507
    ,
  • App Crashed While getting device Id
    via Stack Overflow by user2566484
    ,
  • Get UUID Android
    via Stack Overflow by Ewelina
    ,
    • java.lang.SecurityException: getDeviceId: Neither user 10179 nor current process has android.permission.READ_PHONE_STATE. at android.os.Parcel.readException(Parcel.java:1620) at android.os.Parcel.readException(Parcel.java:1573) at com.android.internal.telephony.ITelephony$Stub$Proxy.getDeviceId(ITelephony.java:4207) at com.paypal.android.c.k.a(Unknown Source) at com.paypal.android.c.f.B(Unknown Source) at com.paypal.android.c.f.d(Unknown Source) at com.paypal.android.c.f$3.run(Unknown Source)

    Users with the same issue

    bayukresnobayukresno
    4 times, last one,
    Hiren AmaliyarHiren Amaliyar
    6 times, last one,
    Indri YunitaIndri Yunita
    6 times, last one,
    justCodeitjustCodeit
    31 times, last one,
    filpgamefilpgame
    1 times, last one,
    229 more bugmates