Android permission.INTERACT_ACROSS_USERS_FULL
java.lang.SecurityException: Permission Denial: get/set setting for
user asks to run as user -2 but is calling from user 0; this requires
android.permission.INTERACT_ACROSS_USERS_FULL
Add this android:protectionLevel="signature"
in your manifest .
For more details, you can check Permission-Element
Like:
<permission android:name="android.permission.INTERACT_ACROSS_USERS_FULL" android:protectionLevel="signature"/>
android.permission.INTERACT_ACROSS_USERS_FULL on older Android versions
You are trying to add a signature level permision, which would not work unless your app has the same signature with the android device you are trying to run your app on, this feature is mostly unavailable to most developers and varies with API.
For more info read the Android Developers page https://developer.android.com/guide/topics/manifest/permission-element.html
Permission Denial: this requires android.permission.INTERACT_ACROSS_USERS_FULL
According to this answer: 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.
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.
What do I do about: this requires android.permission.INTERACT_ACROSS_USERS_FULL
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.
Related Topics
Export a Python Script to an Android Executable (.Apk) with Python-For-Android
Android Plugin Install Problems in Eclipse
What Is Exactly a "Clock Tick" in the Context of Android CPU Usage
Get Database File in /Data/Data on Rooted Device
Using "Printf" for Hex Values in Android Shell
"No Such File or Directory" Trying to Execute Linux Binary on Android Device
Android Ndk: Getting the Backtrace
What Kind of Font Files Do I Need for Modern Browsers, Android and iOS
How to Change the Color of Header Bar and Address Bar in Newest Chrome Version on Lollipop
How to Autoplay HTML5 Mp4 Video on Android
Html: Why Does Android Browser Show "Go" Instead of "Next" in Keyboard
How to Maintain Multi Layers of Imageviews and Keep Their Aspect Ratio Based on the Largest One
Referencing a String in a String Array Resource with Xml
How to Strip or Escape HTML Tags in Android
Android.Content.Activitynotfoundexception: Unable to Find Explicit Activity Class