15

I am working on integrating micode's open source compass into an app I am making. I am wondering how I can fix this here permission error when I clearly have it stated in my manifest with the correct spelling. Its still coming up that I need that permission.

This is puzzling me...

11-03 13:53:58.241: E/AndroidRuntime(8975): Caused by: \
    java.lang.SecurityException: Permission Denial: registerReceiver from \
    net.micode.compass asks to run as user -1 but is calling from user 0; this \
    requires android.permission.INTERACT_ACROSS_USERS_FULL
1
  • Raghav has right.. This is a signature level permission, you cannot use it in your app unless it has the same signature of the system, i.e., you have built the system yourself and you have signed it with your own key. BTW, could you show me which exact piece of code that produced this exception? I am just curious.. Nov 13, 2015 at 19:31

4 Answers 4

28

android.permission.INTERACT_ACROSS_USERS_FULL is a signature level permission. Your app will not be able to use it until and unless it has the same signature as the system.

4
  • 11
    Which is not something you can achieve unless you either are the creator or the system build, or collaborating with them such that they are willing to sign your apk with their certificate. In other words, this is off limits for most developers. Dec 14, 2013 at 2:57
  • 8
    so what to do? why is this happening?
    – 5er
    Nov 26, 2014 at 19:48
  • How do I add this permission...? is this the right way? <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS_FULL" />
    – Vlad
    Jul 4, 2015 at 17:56
  • Please check this link, might be helpfull stackoverflow.com/questions/28134128/… Jul 12, 2017 at 12:05
8

I had a same problem and i did project -> clean. It works now.

0
0

I know there is already an accepted answer but for some reason its not working (or no longer working) on my part.

This error happened to me on Android SDK version 19 and lower, because of NDK that was part of my app.

I just deleted few codes that are connected with NDK codes at the Android Manifests file.

0

I disabled autofill and project started to work normally. Check this link

Just add this code to your app :

      if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
        window.decorView.importantForAutofill = 
        View.IMPORTANT_FOR_AUTOFILL_NO_EXCLUDE_DESCENDANTS;
    }

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.