问题
I'm just upgrade my Android device (Samsung J7Pro) to 9.0 (Pie) and when I want to run any application from Android Studio I face to this problem that says:
Permission Denial: runUninstall from pm command asks to run as user -1 but is calling from user 0; this requires android.permission.INTERACT_ACROSS_USERS_FULL.
I have tried to add
INTERACT_ACROSS_USERS_FULL
to my AndroidManifest.xml but get the same error.
Any help?
回答1:
I have found the solution
- First turn off the developers option
- Restart your device
- Turn on again your developers option and turn on Usb Debugging
回答2:
For the solution you have to try two things
- try to add the this permission in your android manifest file. uses-permission android:name="android.permission.FORCE_STOP_PACKAGES" run the app and it will work
- if the above work didn't help try the following step:
- Uninstall the app.
- Disable the Developer option from setting
- Restart the Device
- Enable the Developer option from setting-->About phone-->Software Information and click seven time on Build Number.
- Now from Developer option(Below About Phone) Enable Use Debugging.
- Run the app and i believe it should work.
来源:https://stackoverflow.com/questions/56723254/permission-denial-rununinstall-from-pm-command-asks-to-run-as-user-1-but-is-ca