java.lang.SecurityException

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.

  • SelenDroid and Android Firefox
    via by Romain Trembleau,
  • Android runs on device but crashes on emulator
    via Stack Overflow by fancy
    ,
  • Using UIAutomator to test third party APK
    via Stack Overflow by Luis Cruz
    ,
  • UserManager getUserCount() (Jelly Bean)
    via Stack Overflow by Kedi
    ,
    • java.lang.SecurityException: Permission Denial: starting instrumentation ComponentInfo{io.selendroid.org.mozilla.firefox/io.selendroid.server.ServerInstrumentation} from pid=17067, uid=17067 not allowed because package io.selendroid.org.mozilla.firefox does not have a signature matching the target org.mozilla.firefox at android.os.Parcel.readException(Parcel.java:1425) at android.os.Parcel.readException(Parcel.java:1379) at android.app.ActivityManagerProxy.startInstrumentation(ActivityManagerNative.java:2835) at com.android.commands.am.Am.runInstrument(Am.java:615) at com.android.commands.am.Am.run(Am.java:118) at com.android.commands.am.Am.main(Am.java:81) at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method) at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:237) at dalvik.system.NativeStart.main(Native Method)

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    filipebatistafilipebatista
    1 times, last one,
    Hiren AmaliyarHiren Amaliyar
    46 times, last one,
    AravindAravind
    86 times, last one,
    229 more bugmates