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

前端 未结 3 646
执笔经年
执笔经年 2021-01-17 08:18

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

相关标签:
3条回答
  • 2021-01-17 08:51

    please try a rooted phone. this error is caused by users permissions root=uid0 you=uid -1 or -2

    0 讨论(0)
  • 2021-01-17 09:03

    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.

    0 讨论(0)
  • 2021-01-17 09:12

    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 :)

    0 讨论(0)
提交回复
热议问题