II优选
II优选
  • 发布:2023-03-11 18:37
  • 更新:2023-06-20 13:40
  • 阅读:445

【报Bug】加上android:sharedUserId="android.uid.system" 离线打包,启动白屏

分类:uni-app

产品分类: uniapp/App

PC开发环境操作系统: Windows

PC开发环境操作系统版本号: 3.7.3

HBuilderX类型: 正式

HBuilderX版本号: 3.7.3

手机系统: Android

手机系统版本号: Android 10

手机机型: 物联网设备

页面类型: vue

vue版本: vue2

打包方式: 离线

项目创建方式: HBuilderX

操作步骤:

加上android:sharedUserId="android.uid.system" 离线打包,启动白屏

预期结果:

加上android:sharedUserId="android.uid.system" 离线打包,启动白屏

实际结果:

加上android:sharedUserId="android.uid.system" 离线打包,启动白屏

bug描述:

加上android:sharedUserId="android.uid.system" 离线打包,启动白屏

2023-03-11 18:37 负责人:无 分享
已邀请:
DCloud_Android_ST

DCloud_Android_ST

是否对“android.uid.system”有充足了解。去掉是否可以正常运行。 如果可以正常运行 应该rom权限问题导致

  • II优选 (作者)

    报错了,群里的技术帮我解决了


    https://blog.csdn.net/wxj280306451/article/details/106522384/ 这个链接直接解决了

    2023-03-13 12:12

II优选

II优选 (作者) - 定制插件开发-联系QQ:770104707

2023-03-13 11:37:23.224 13942-13942 platform com.uniapp.aithings I ClassNotFoundException io.dcloud.feature.weex.WeexDevtoolImpl registerReloadReceiver
2023-03-13 11:37:23.676 2146-2366 WifiVendorHal system_process E getWifiLinkLayerStats_1_3_Internal(l.926) failed {.code = ERROR_NOT_AVAILABLE, .description = }
2023-03-13 11:37:24.117 13942-13942 System.err com.uniapp.aithings W java.lang.ClassNotFoundException: io.dcloud.common.util.net.http.LocalServer2
2023-03-13 11:37:24.118 13942-13942 System.err com.uniapp.aithings W at java.lang.Class.classForName(Native Method)
2023-03-13 11:37:24.118 13942-13942 System.err com.uniapp.aithings W at java.lang.Class.forName(Class.java:454)
2023-03-13 11:37:24.118 13942-13942 System.err com.uniapp.aithings W at java.lang.Class.forName(Class.java:379)
2023-03-13 11:37:24.119 13942-13942 System.err com.uniapp.aithings W at io.dcloud.common.ui.b.c(Unknown Source:1)
2023-03-13 11:37:24.119 13942-13942 System.err com.uniapp.aithings W at io.dcloud.b.onCreate(Unknown Source:8)
2023-03-13 11:37:24.119 13942-13942 System.err com.uniapp.aithings W at io.dcloud.WebAppActivity.onCreate(Unknown Source:22)
2023-03-13 11:37:24.119 13942-13942 System.err com.uniapp.aithings W at android.app.Activity.performCreate(Activity.java:7805)
2023-03-13 11:37:24.119 13942-13942 System.err com.uniapp.aithings W at android.app.Activity.performCreate(Activity.java:7794)
2023-03-13 11:37:24.119 13942-13942 System.err com.uniapp.aithings W at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1306)
2023-03-13 11:37:24.119 13942-13942 System.err com.uniapp.aithings W at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3245)
2023-03-13 11:37:24.120 13942-13942 System.err com.uniapp.aithings W at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3409)
2023-03-13 11:37:24.120 13942-13942 System.err com.uniapp.aithings W at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:83)
2023-03-13 11:37:24.120 13942-13942 System.err com.uniapp.aithings W at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
2023-03-13 11:37:24.120 13942-13942 System.err com.uniapp.aithings W at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
2023-03-13 11:37:24.120 13942-13942 System.err com.uniapp.aithings W at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2016)
2023-03-13 11:37:24.120 13942-13942 System.err com.uniapp.aithings W at android.os.Handler.dispatchMessage(Handler.java:107)
2023-03-13 11:37:24.120 13942-13942 System.err com.uniapp.aithings W at android.os.Looper.loop(Looper.java:214)
2023-03-13 11:37:24.121 13942-13942 System.err com.uniapp.aithings W at android.app.ActivityThread.main(ActivityThread.java:7356)
2023-03-13 11:37:24.121 13942-13942 System.err com.uniapp.aithings W at java.lang.reflect.Method.invoke(Native Method)
2023-03-13 11:37:24.121 13942-13942 System.err com.uniapp.aithings W at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:495)
2023-03-13 11:37:24.121 13942-13942 System.err com.uniapp.aithings W at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1067)
2023-03-13 11:37:24.122 13942-13942 System.err com.uniapp.aithings W Caused by: java.lang.ClassNotFoundException: Didn't find class "io.dcloud.common.util.net.http.LocalServer2" on path: DexPathList[[zip file "/data/app/com.uniapp.aithings-AKuzP5PXI6KozXO4LTm3zQ==/base.apk"],nativeLibraryDirectories=[/data/app/com.uniapp.aithings-AKuzP5PXI6KozXO4LTm3zQ==/lib/arm, /data/app/com.uniapp.aithings-AKuzP5PXI6KozXO4LTm3zQ==/base.apk!/lib/armeabi-v7a, /system/lib, /product/lib]]
2023-03-13 11:37:24.122 13942-13942 System.err com.uniapp.aithings W at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:196)
2023-03-13 11:37:24.122 13942-13942 System.err com.uniapp.aithings W at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
2023-03-13 11:37:24.122 13942-13942 System.err com.uniapp.aithings W at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
2023-03-13 11:37:24.122 13942-13942 System.err com.uniapp.aithings W ... 21 more
2023-03-13 11:37:24.124 2644-2948 droid.launcher com.android.launcher3 E Failed to open APK '/data/app/com.uniapp.aithings-8QIjlyeitkT5x-xbMkJKjg==/base.apk' I/O error
2023-03-13 11:37:24.250 1854-1854 AW_PowerHAL android.hardware.power@1.0-service E Error opening /sys/kernel/autohotplug/lock: No such file or directory
2023-03-13 11:37:24.297 13942-13942 System.err com.uniapp.aithings W java.io.FileNotFoundException: /nulllogs/com.uniapp.aithings/crash/crash_1678678644295_2023-03-13-11-37-24.log: open failed: ENOENT (No such file or directory)
2023-03-13 11:37:24.297 13942-13942 System.err com.uniapp.aithings W at libcore.io.IoBridge.open(IoBridge.java:496)
2023-03-13 11:37:24.297 13942-13942 System.err com.uniapp.aithings W at java.io.FileOutputStream.(FileOutputStream.java:235)
2023-03-13 11:37:24.297 13942-13942 System.err com.uniapp.aithings W at java.io.FileOutputStream.(FileOutputStream.java:186)
2023-03-13 11:37:24.297 13942-13942 System.err com.uniapp.aithings W at io.dcloud.common.adapter.util.UEH.handleUncaughtException(Unknown Source:38)
2023-03-13 11:37:24.297 13942-13942 System.err com.uniapp.aithings W at io.dcloud.common.adapter.util.UEH.access$000(Unknown Source:1)
2023-03-13 11:37:24.297 13942-13942 System.err com.uniapp.aithings W at io.dcloud.common.adapter.util.UEH$1.uncaughtException(Unknown Source:1)
2023-03-13 11:37:24.297 13942-13942 System.err com.uniapp.aithings W at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:1073)
2023-03-13 11:37:24.298 13942-13942 System.err com.uniapp.aithings W at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:1068)
2023-03-13 11:37:24.299 13942-13942 System.err com.uniapp.aithings W at java.lang.Thread.dispatchUncaughtException(Thread.java:2187)
2023-03-13 11:37:24.300 13942-13942 System.err com.uniapp.aithings W Caused by: android.system.ErrnoException: open failed: ENOENT (No such file or directory)
2023-03-13 11:37:24.300 13942-13942 System.err com.uniapp.aithings W at libcore.io.Linux.open(Native Method)
2023-03-13 11:37:24.300 13942-13942 System.err com.uniapp.aithings W at libcore.io.ForwardingOs.open(ForwardingOs.java:167)
2023-03-13 11:37:24.300 13942-13942 System.err com.uniapp.aithings W at libcore.io.BlockGuardOs.open(BlockGuardOs.java:252)
2023-03-13 11:37:24.300 13942-13942 System.err com.uniapp.aithings W at libcore.io.ForwardingOs.open(ForwardingOs.java:167)
2023-03-13 11:37:24.300 13942-13942 System.err com.uniapp.aithings W at android.app.ActivityThread$AndroidOs.open(ActivityThread.java:7255)
2023-03-13 11:37:24.300 13942-13942 System.err com.uniapp.aithings W at libcore.io.IoBridge.open(IoBridge.java:482)
2023-03-13 11:37:24.300 13942-13942 System.err com.uniapp.aithings W ... 8 more
2023-03-13 11:37:24.321 13942-13942 System.err com.uniapp.aithings W java.lang.UnsupportedOperationException: For security reasons, WebView is not allowed in privileged processes
2023-03-13 11:37:24.321 13942-13942 System.err com.uniapp.aithings W at android.webkit.WebViewFactory.getProvider(WebViewFactory.java:236)
2023-03-13 11:37:24.321 13942-13942 System.err com.uniapp.aithings W at android.webkit.WebSettings.getDefaultUserAgent(WebSettings.java:1313)
2023-03-13 11:37:24.321 13942-13942 System.err com.uniapp.aithings W at io.dcloud.common.adapter.ui.webview.WebViewFactory.getDefWebViewUA(Unknown Source:5)
2023-03-13 11:37:24.321 13942-13942 System.err com.uniapp.aithings W at io.dcloud.common.adapter.util.UEH.commitBaseUncatchInfo(Unknown Source:19)
2023-03-13 11:37:24.321 13942-13942 System.err com.uniapp.aithings W at io.dcloud.common.adapter.util.UEH.commitUncatchException(Unknown Source:15)
2023-03-13 11:37:24.321 13942-13942 System.err com.uniapp.aithings W at io.dcloud.common.adapter.util.UEH.access$100(Unknown Source:1)
2023-03-13 11:37:24.322 13942-13942 System.err com.uniapp.aithings W at io.dcloud.common.adapter.util.UEH$1.uncaughtException(Unknown Source:5)
2023-03-13 11:37:24.322 13942-13942 System.err com.uniapp.aithings W at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:1073)
2023-03-13 11:37:24.322 13942-13942 System.err com.uniapp.aithings W at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:1068)
2023-03-13 11:37:24.322 13942-13942 System.err com.uniapp.aithings W at java.lang.Thread.dispatchUncaughtException(Thread.java:2187)
2023-03-13 11:37:24.322 13942-13942 System.err com.uniapp.aithings W java.lang.RuntimeException: Unable to start activity ComponentInfo{com.uniapp.aithings/io.dcloud.PandoraEntryActivity}: java.lang.UnsupportedOperationException: For security reasons, WebView is not allowed in privileged processes
2023-03-13 11:37:24.322 13942-13942 System.err com.uniapp.aithings W at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3270)
2023-03-13 11:37:24.322 13942-13942 System.err com.uniapp.aithings W at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3409)
2023-03-13 11:37:24.322 13942-13942 System.err com.uniapp.aithings W at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:83)
2023-03-13 11:37:24.322 13942-13942 System.err com.uniapp.aithings W at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
2023-03-13 11:37:24.322 13942-13942 System.err com.uniapp.aithings W at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
2023-03-13 11:37:24.323 13942-13942 System.err com.uniapp.aithings W at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2016)
2023-03-13 11:37:24.323 13942-13942 System.err com.uniapp.aithings W at android.os.Handler.dispatchMessage(Handler.java:107)
2023-03-13 11:37:24.323 13942-13942 System.err com.uniapp.aithings W at android.os.Looper.loop(Looper.java:214)
2023-03-13 11:37:24.323 13942-13942 System.err com.uniapp.aithings W at android.app.ActivityThread.main(ActivityThread.java:7356)
2023-03-13 11:37:24.323 13942-13942 System.err com.uniapp.aithings W at java.lang.reflect.Method.invoke(Native Method)
2023-03-13 11:37:24.323 13942-13942 System.err com.uniapp.aithings W at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:495)
2023-03-13 11:37:24.323 13942-13942 System.err com.uniapp.aithings W at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1067)
2023-03-13 11:37:24.323 13942-13942 System.err com.uniapp.aithings W Caused by: java.lang.UnsupportedOperationException: For security reasons, WebView is not allowed in privileged processes
2023-03-13 11:37:24.323 13942-13942 System.err com.uniapp.aithings W at android.webkit.WebViewFactory.getProvider(WebViewFactory.java:236)
2023-03-13 11:37:24.323 13942-13942 System.err com.uniapp.aithings W at android.webkit.CookieManager.getInstance(CookieManager.java:47)
2023-03-13 11:37:24.324 13942-13942 System.err com.uniapp.aithings W at io.dcloud.common.util.net.http.CookieManager.initCookieConfig(Unknown Source:2)
2023-03-13 11:37:24.324 13942-13942 System.err com.uniapp.aithings W at io.dcloud.b$g.a(Unknown Source:7)
2023-03-13 11:37:24.324 13942-13942 System.err com.uniapp.aithings W at io.dcloud.common.ui.b.a(Unknown Source:363)
2023-03-13 11:37:24.324 13942-13942 System.err com.uniapp.aithings W at io.dcloud.b.onCreate(Unknown Source:64)
2023-03-13 11:37:24.324 13942-13942 System.err com.uniapp.aithings W at io.dcloud.WebAppActivity.onCreate(Unknown Source:22)
2023-03-13 11:37:24.324 13942-13942 System.err com.uniapp.aithings W at android.app.Activity.performCreate(Activity.java:7805)
2023-03-13 11:37:24.324 13942-13942 System.err com.uniapp.aithings W at android.app.Activity.performCreate(Activity.java:7794)
2023-03-13 11:37:24.324 13942-13942 System.err com.uniapp.aithings W at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1306)
2023-03-13 11:37:24.324 13942-13942 System.err com.uniapp.aithings W at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3245)
2023-03-13 11:37:24.324 13942-13942 System.err com.uniapp.aithings W ... 11 more

4***@qq.com

4***@qq.com

这个hook代码加哪里实现的?老哥

  • II优选 (作者)

    你也是离线打包吗?加我好友把

    2023-06-20 16:12

要回复问题请先登录注册