Android9.0的静默安装失败记录
问题描述
java.lang.SecurityException:
Permission Denial: runInstallCreate from pm command asks to run as user -1 but is calling from user 0;
this requires android.permission.INTERACT_ACROSS_USERS_FULL
解决操作记录
解决方式暂无理论支持,也无法保证每次都能解决,所以只作为操作方案记录
步骤:手动卸载apk 后,断电重启
无效操作记录方案
1.修改android\app\src\main\AndroidManifest.xml
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.hjcamera"
android:sharedUserId="android.uid.shell">
...
修改android.uid.shell 为 android.uid.platform;但是该方式无效