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
blahdiblah
  • 33,069
  • 21
  • 98
  • 152
CodeMonkeyAlx
  • 813
  • 4
  • 16
  • 32
  • 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.. – Thanasis Petsas Nov 13 '15 at 19:31

4 Answers4

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.

Raghav Sood
  • 81,899
  • 22
  • 187
  • 195
  • 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. – Chris Stratton Dec 14 '13 at 02:57
  • 8
    so what to do? why is this happening? – 5er Nov 26 '14 at 19:48
  • How do I add this permission...? is this the right way? – Vlad Jul 04 '15 at 17:56
  • Please check this link, might be helpfull https://stackoverflow.com/questions/28134128/android-permission-interact-across-users-full/45057190#45057190 – varotariya vajsi Jul 12 '17 at 12:05
8

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

b.gg
  • 89
  • 1
  • 2
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.

ralphgabb
  • 10,298
  • 3
  • 47
  • 56
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;
    }
Roman Soviak
  • 791
  • 2
  • 9
  • 30