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.
Flutter build fails in Samsung phone , Permission Denial: broadcast from android asks to run as user -1 but is calling from user 0
This is an issue with latest Flutter version , I fixed it with the below eidt ,
This is a workaround and it works for me .
- go to
MainActivity.kt
- Import
import android.os.Build
- Paste this
override fun onFlutterUiDisplayed() {
if (Build.VERSION.SDK_INT >= 100) { //I gave 100 just to confirm , it shoud be android ver 10
reportFullyDrawn();
}
}
flutter clean
flutter run
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.
RuntimeException Unable to start activity: Permission Denial: broadcast from android asks to run as user -1 but is calling from user 0
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"/>
Related Topics
How to Send and Receive Data Sms Messages
What Is the Real Android Studio Gradle Version
How to Implement a View Holder
Kill Another Application on Android
Google Cloud Endpoints and User's Authentication
Google Signin Not Working in Release Mode APK Android
Android Dependency Has Different Version for the Compile and Runtime
How to Use Icons and Symbols from "Font Awesome" on Native Android Application
Android Viewpager with Bottom Dots
Android: How to Convert String to Date
Install_Failed_Update_Incompatible When I Try to Install Compiled .Apk on Device
Add Ripple Effect to My Button with Button Background Color
Draw Overlay in Android (System Wide)
What Is the Default Unit of Style in React Native