林军
林军
  • 发布:2024-06-05 18:11
  • 更新:2024-06-05 18:11
  • 阅读:268

app是系统应用无法调起plus.runtime.install

分类:5+ SDK

你好。我们的APP是系统应用。
在AndroidManifest.xml加上android:sharedUserId,无法调用plus.runtime.install进行APK安装。
报错如下:

2024-06-05 17:45:04.617 15022-15022 AndroidRuntime          com.android.packageinstaller         D  Shutting down VM  
2024-06-05 17:45:04.617 15022-15022 AndroidRuntime          com.android.packageinstaller         E  FATAL EXCEPTION: main  
                                                                                                    Process: com.android.packageinstaller, PID: 15022  
                                                                                                    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.packageinstaller/com.android.packageinstaller.InstallStart}: java.lang.SecurityException: UID 10064 does not have permission to content://io.meetboke.dc.fileprovider/external/Android/data/io.meetboke/apps/__UNI__854532A/doc/uniapp_temp_1717580659917/download/018fe7af-8104-7e12-a086-8fa58dc34017.apk [user 0]  
                                                                                                        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3432)  
                                                                                                        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3596)  
                                                                                                        at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:85)  
                                                                                                        at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)  
                                                                                                        at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)  
                                                                                                        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2067)  
                                                                                                        at android.os.Handler.dispatchMessage(Handler.java:106)  
                                                                                                        at android.os.Looper.loop(Looper.java:223)  
                                                                                                        at android.app.ActivityThread.main(ActivityThread.java:7705)  
                                                                                                        at java.lang.reflect.Method.invoke(Native Method)  
                                                                                                        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)  
                                                                                                        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:952)  
                                                                                                    Caused by: java.lang.SecurityException: UID 10064 does not have permission to content://io.meetboke.dc.fileprovider/external/Android/data/io.meetboke/apps/__UNI__854532A/doc/uniapp_temp_1717580659917/download/018fe7af-8104-7e12-a086-8fa58dc34017.apk [user 0]  
                                                                                                        at android.os.Parcel.createExceptionOrNull(Parcel.java:2374)  
                                                                                                        at android.os.Parcel.createException(Parcel.java:2358)  
                                                                                                        at android.os.Parcel.readException(Parcel.java:2341)  
                                                                                                        at android.os.Parcel.readException(Parcel.java:2283)  
                                                                                                        at android.app.IActivityTaskManager$Stub$Proxy.startActivity(IActivityTaskManager.java:3696)  
                                                                                                        at android.app.Instrumentation.execStartActivity(Instrumentation.java:1725)  
                                                                                                        at android.app.Activity.startActivityForResult(Activity.java:5314)  
                                                                                                        at android.app.Activity.startActivityForResult(Activity.java:5272)  
                                                                                                        at android.app.Activity.startActivity(Activity.java:5658)  
                                                                                                        at android.app.Activity.startActivity(Activity.java:5611)  
                                                                                                        at com.android.packageinstaller.InstallStart.onCreate(InstallStart.java:143)  
                                                                                                        at android.app.Activity.performCreate(Activity.java:7994)  
                                                                                                        at android.app.Activity.performCreate(Activity.java:7978)  
                                                                                                        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1310)  
                                                                                                        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3405)  
                                                                                                        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3596)   
                                                                                                        at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:85)   
                                                                                                        at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)   
                                                                                                        at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)   
                                                                                                        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2067)   
                                                                                                        at android.os.Handler.dispatchMessage(Handler.java:106)   
                                                                                                        at android.os.Looper.loop(Looper.java:223)   
                                                                                                        at android.app.ActivityThread.main(ActivityThread.java:7705)   
                                                                                                        at java.lang.reflect.Method.invoke(Native Method)   
                                                                                                        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)   
                                                                                                        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:952)   
                                                                                                    Caused by: android.os.RemoteException: Remote stack trace:  
                                                                                                        at com.android.server.uri.UriGrantsManagerService.checkGrantUriPermissionUnlocked(UriGrantsManagerService.java:1283)  
                                                                                                        at com.android.server.uri.UriGrantsManagerService.checkGrantUriPermissionFromIntentUnlocked(UriGrantsManagerService.java:624)  
                                                                                                        at com.android.server.uri.UriGrantsManagerService.access$1000(UriGrantsManagerService.java:117)  
                                                                                                        at com.android.server.uri.UriGrantsManagerService$LocalService.checkGrantUriPermissionFromIntent(UriGrantsManagerService.java:1440)  
                                                                                                        at com.android.server.wm.ActivityStarter$Request.resolveActivity(ActivityStarter.java:530)  
2024-06-05 17:45:04.620  1096-13935 ActivityTaskManager     system_server                        W    Force finishing activity com.android.packageinstaller/.InstallStart  
2024-06-05 17:45:04.628 15022-15022 Process                 com.android.packageinstaller         I  Sending signal. PID: 15022 SIG: 9
2024-06-05 18:11 负责人:无 分享
已邀请:

要回复问题请先登录注册