Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Permission Denial: get/set setting for user asks to run as user -2 but is calling from user 0

My application works normally on my test device (When I install it via ADT & when I install it via the exported APK file) but it fails on Play Store testing device with the following error:

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

I'm new in Android world and I don't understand why it works on my device & it fails on the same device at Play Store test?

What this error type means in Android work environment?

I added the following permission

android.permission.INTERACT_ACROSS_USERS_FULL

in AndroidManifest.xml as recommended here: Permission Denial

But the application failed again to launch / open on their test device.

EDIT:

Test device running Android 4.3

like image 971
John Avatar asked Nov 28 '13 13:11

John


2 Answers

For anyone else who had this issue, for me it was simply a case of having an activity with the wrong name in the AndroidManifest.xml file.

I didn't need to add any permissions, once the activity name was corrected (in mine it stated the wrong package name), it ran fine.

like image 175
Ricky Avatar answered Sep 21 '22 07:09

Ricky


I ran into the same issue while trying to use move Files using the version of the application that I plan to post to market. The problem was that the files I was trying to move were created during the application development process by the app that was signed with the debug certificate. So I was trying to access a file created with one certificate with an app that was signed by another certificate. I cleaned up all the files and started fresh with new files created by the app I plan to post to market. Now I am able to access and move the files without the Android System complaining :)

like image 44
user1608385 Avatar answered Sep 22 '22 07:09

user1608385