收藏
回答

部分设备无法启动小程序?invokeAsync failed,get bridge is null

硬件是全志A133芯片,系统是Android10.0;运行demo,提示设备激活失败,请确认WMPF处于运行状态 。 但我查了下进程WMPF是有在运行的,而在其他硬件,瑞芯微RK3399(Android7.0)、瑞芯微RK3568(Android11.0),全志A64(Android6.0)都是可以正常启动小程序的,麻烦看一下,谢谢!

以下是详细日志:

2024-01-03 10:19:57.895  3643-4205  ExperienceActivity      com.tencent.wmpf.demo.experience     I  --------设备激活中--------

2024-01-03 10:19:57.896  3643-4205  WMPFCli.IPCInvoker      com.tencent.wmpf.demo.experience     I  invokeSync >>>> request [IS_DEVICE_ACTIVATED] [AbstractWMPFSyncInvokeRequest{clientVersion=0, clientApplicationId='null', clientInvokeToken='null', invokeTimestamp=-1, clientProcessName='null'}] rId [1] 

2024-01-03 10:19:57.897  3643-3964  IPC.IPCBridgeManager    com.tencent.wmpf.demo.experience     I  [getIPCBridge] tid=[186] com.tencent.wmpf.demo.experience -> com.tencent.wmpf

2024-01-03 10:19:57.897  3643-4205  IPC.Execut...reatorImpl com.tencent.wmpf.demo.experience     I  newThread(thread : IPCThreadPool#Thread-1)

2024-01-03 10:19:57.897  3643-3964  IPC.IPCBridgeManager    com.tencent.wmpf.demo.experience     I  [getIPCBridge] com.tencent.wmpf.demo.experience -> com.tencent.wmpf connecting,id:173685604518

2024-01-03 10:19:57.898  3643-3964  IPC.IPCBridgeManager    com.tencent.wmpf.demo.experience     I  [getIPCBridge]bindService(bw:198789731, id:173685604518, tid:186, intent:Intent { cmp=com.tencent.wmpf/.app.WMPFService (has extras) }, conn:197199456)

2024-01-03 10:20:07.910  3643-3961  IPC.IPCBridgeManager    com.tencent.wmpf.demo.experience     I  [getIPCBridge]onConnectTimeout(198789731, id:173685604518, tid : 182)

2024-01-03 10:20:07.910  3643-3964  IPC.IPCInvoker          com.tencent.wmpf.demo.experience     E  invokeAsync failed, get bridge is null by process(com.tencent.wmpf).

2024-01-03 10:20:07.910  3643-3964  WMPFCli.IPCInvoker      com.tencent.wmpf.demo.experience     E  onBridgeNotFound

2024-01-03 10:20:07.911  3643-4205  WMPFCli.IPCInvoker      com.tencent.wmpf.demo.experience     I  invokeSync <<<< response [null] rId [1]

2024-01-03 10:20:07.911  3643-4205  ExperienceActivity      com.tencent.wmpf.demo.experience     E  error: com.tencent.wmpf.cli.api.WMPFDisconnectedException: errType: 1, errCode: 10001, errMsg: call WMPF.apk fail, is it installed?

2024-01-03 10:20:07.911  3643-4205  ExperienceActivity      com.tencent.wmpf.demo.experience     E  初始化失败: java.lang.Exception: 设备激活失败,请确认 WMPF 处于运行状态

2024-01-03 10:20:09.937  2065-2234  NotificationService     system_process                       W  Toast already killed. pkg=com.tencent.wmpf.demo.experience callback=android.app.ITransientNotification$Stub$Proxy@eeb5b5c

2024-01-03 10:21:01.463  2065-2083  ActivityTaskManager     system_process                       I  START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.tencent.wmpf/.app.LauncherActivity (has extras)} from uid 10089

2024-01-03 10:21:23.421  3099-3116  Role                    com.android.permissioncontroller     W  com.tencent.wmpf not qualified for android.app.role.HOME due to missing RequiredComponent{mIntentFilterData=IntentFilterData{mAction='android.intent.action.MAIN', mCategories='[android.intent.category.HOME]', mDataScheme='null', mDataType='null'}, mPermission='null', mMetaData=[]}

2024-01-03 10:21:25.181  2400-2400  AppButtonsPrefCtl       com.android.settings                 D  Stopping package com.tencent.wmpf

2024-01-03 10:21:25.182  2065-2235  ActivityManager         system_process                       I  Force stopping com.tencent.wmpf appid=10092 user=0: from pid 2400

2024-01-03 10:21:25.184  2065-2235  ActivityManager         system_process                       I  Killing 3483:com.tencent.wmpf/u0a92 (adj 700): stop com.tencent.wmpf

2024-01-03 10:21:25.187  2065-2235  ActivityTaskManager     system_process                       W  Force removing ActivityRecord{5caf574 u0 com.tencent.wmpf/.app.LauncherActivity t428 f}: app died, no saved state

2024-01-03 10:21:25.225  2400-2400  AppButtonsPrefCtl       com.android.settings                 D  Sending broadcast to query restart status for com.tencent.wmpf

2024-01-03 10:21:25.307  2400-2400  AppButtonsPrefCtl       com.android.settings                 D  Sending broadcast to query restart status for com.tencent.wmpf

2024-01-03 10:21:25.320  2400-2400  AppButtonsPrefCtl       com.android.settings                 D  Sending broadcast to query restart status for com.tencent.wmpf

2024-01-03 10:21:25.377  2400-2400  AppButtonsPrefCtl       com.android.settings                 D  Sending broadcast to query restart status for com.tencent.wmpf

2024-01-03 10:21:25.397  2400-2400  AppButtonsPrefCtl       com.android.settings                 D  Got broadcast response: Restart status for com.tencent.wmpf false

2024-01-03 10:21:25.403  2400-2400  AppButtonsPrefCtl       com.android.settings                 D  Got broadcast response: Restart status for com.tencent.wmpf false

2024-01-03 10:21:25.433  2400-2400  AppButtonsPrefCtl       com.android.settings                 D  Got broadcast response: Restart status for com.tencent.wmpf false

2024-01-03 10:21:25.472  2400-2400  AppButtonsPrefCtl       com.android.settings                 D  Got broadcast response: Restart status for com.tencent.wmpf false

2024-01-03 10:21:34.961  2065-2234  ActivityTaskManager     system_process                       I  START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.tencent.wmpf/.app.LauncherActivity (has extras)} from uid 10089

2024-01-03 10:21:35.069  2065-2094  ActivityManager         system_process                       I  app.processName = com.tencent.wmpf

2024-01-03 10:21:35.069  2065-2094  ActivityManager         system_process                       I  Start proc 4842:com.tencent.wmpf/u0a92 for activity {com.tencent.wmpf/com.tencent.wmpf.app.LauncherActivity}

2024-01-03 10:21:35.207  4842-4842  om.tencent.wmp          com.tencent.wmpf                     I  The ClassLoaderContext is a special shared library.

2024-01-03 10:21:35.299  4842-4842  MMKV                    com.tencent.wmpf                     I  <native-bridge.cpp:104::JNI_OnLoad> current API level = 29, libc++_shared=0

2024-01-03 10:21:35.301  4842-4842  MMKV                    com.tencent.wmpf                     I  <MMKV.cpp:165::initialize> version v1.2.12, page size 4096, arch armeabi-v7a/NEON

2024-01-03 10:21:35.301  4842-4842  MMKV                    com.tencent.wmpf                     I  <MMKV.cpp:207::initializeMMKV> root dir: /data/user/0/com.tencent.wmpf/files/mmkv

2024-01-03 10:21:35.327  4842-4842  MultiDex                com.tencent.wmpf                     I  VM with version 2.1.0 has multidex support

2024-01-03 10:21:35.327  4842-4842  MultiDex                com.tencent.wmpf                     I  Installing application

2024-01-03 10:21:35.327  4842-4842  MultiDex                com.tencent.wmpf                     I  VM has multidex support, MultiDex support library is disabled.

2024-01-03 10:21:35.367  4842-4842  VFS.FileSystemManager   com.tencent.wmpf                     I  configure: null => FileSchemeResolver

2024-01-03 10:21:35.367  4842-4842  VFS.FileSystemManager   com.tencent.wmpf                     I  configure: (root) => 

2024-01-03 10:21:35.378  4842-4842  WMPF.XLogSetup          com.tencent.wmpf                     I  init done nameprefix:com.tencent.wmpf false

2024-01-03 10:21:35.398  4842-4842  WMPF.XLogSetup          com.tencent.wmpf                     I  init done nameprefix:[com.tencent.wmpf] isDebug:[false] logDir:[/storage/emulated/0/Android/data/com.tencent.wmpf/files/xlog]

2024-01-03 10:21:35.486  4842-4842  ilink:fake_dlfcn        com.tencent.wmpf                     I  befa0000-beff6000 r-xp 00000000 103:01 175797                            /data/app/com.tencent.wmpf-TBA6dhZqwiGLlLiD9iXPrw==/lib/arm/libwechatxlog.so

2024-01-03 10:21:35.486  4842-4842  ilink:fake_dlfcn        com.tencent.wmpf                     I  /data/app/com.tencent.wmpf-TBA6dhZqwiGLlLiD9iXPrw==/lib/arm/libwechatxlog.so loaded in Android at 0xbefa0000

2024-01-03 10:21:35.486  4842-4842  ilink:fake_dlfcn        com.tencent.wmpf                     I  xlogger_IsEnabledFor found at 0xbefafd3d

2024-01-03 10:21:35.486  4842-4842  ilink:fake_dlfcn        com.tencent.wmpf                     I  xlogger_Write found at 0xbefafd79

2024-01-03 10:21:35.555  4842-4842  MicroMsg.SDK.Log        com.tencent.wmpf                     W  new log level: 1

2024-01-03 10:21:35.555  4842-4842  MicroMsg.SDK.Log        com.tencent.wmpf                     E  no jni log level support

2024-01-03 10:21:35.562  4842-4842  XWeb.SDK.X...nvironment com.tencent.wmpf                     I  setUsingCustomContext, usingCustomContext:true

2024-01-03 10:21:35.562  4842-4842  XWeb.SDK.X...nvironment com.tencent.wmpf                     I  setCustomDensity:1.0

2024-01-03 10:21:35.565  4842-4842  XWeb.SDK.X...dkInternal com.tencent.wmpf                     I  initXWebEnvironment, logInterface:bur$1@72af9ab, reportInterface:bur$2@aa09808, spProvider:bur$3@2e35ba1, libraryLoader:null, webViewExtensionListener:null

2024-01-03 10:21:35.623  4842-4842  MicroMsg.SDK.Log        com.tencent.wmpf                     W  new log level: 1

2024-01-03 10:21:35.623  4842-4842  MicroMsg.SDK.Log        com.tencent.wmpf                     E  no jni log level support

2024-01-03 10:21:35.624  4842-4842  MicroMsg.SDK.Log        com.tencent.wmpf                     W  new log level: 1

2024-01-03 10:21:35.624  4842-4842  MicroMsg.SDK.Log        com.tencent.wmpf                     E  no jni log level support

2024-01-03 10:21:35.716  4842-4842  NativeCrash             com.tencent.wmpf                     V  Alternative stack installed.

2024-01-03 10:21:35.716  4842-4842  NativeCrash             com.tencent.wmpf                     V  Signal handler installed.

2024-01-03 10:21:35.907  4842-4842  Activity                com.tencent.wmpf                     W  Can request only one set of permissions at a time

2024-01-03 10:21:36.001  4842-4903  Gralloc3                com.tencent.wmpf                     W  mapper 3.x is not supported

2024-01-03 10:21:36.039  4842-4842  PackageUtils            com.tencent.wmpf                     E  getPackageInfo exception for com.tencent.wxpayface.iotservice

2024-01-03 10:21:36.039  4842-4842  PackageUtils            com.tencent.wmpf                     I  call isIoTServicePkgExist = false

2024-01-03 10:21:36.251  3099-3099  GrantPermi...nsActivity com.android.permissioncontroller     V  Permission grant result requestId=-2460790308699600973 callingUid=10092 callingPackage=com.tencent.wmpf permission=android.permission.READ_EXTERNAL_STORAGE isImplicit=false result=5

2024-01-03 10:21:36.331  3099-3099  GrantPermi...nsActivity com.android.permissioncontroller     V  Permission grant result requestId=-2460790308699600973 callingUid=10092 callingPackage=com.tencent.wmpf permission=android.permission.WRITE_EXTERNAL_STORAGE isImplicit=false result=5

2024-01-03 10:21:36.421  3099-3099  GrantPermi...nsActivity com.android.permissioncontroller     V  Permission grant result requestId=-2460790308699600973 callingUid=10092 callingPackage=com.tencent.wmpf permission=android.permission.READ_EXTERNAL_STORAGE isImplicit=false result=5

2024-01-03 10:21:36.430  3099-3099  GrantPermi...nsActivity com.android.permissioncontroller     V  Permission grant result requestId=-2460790308699600973 callingUid=10092 callingPackage=com.tencent.wmpf permission=android.permission.ACCESS_FINE_LOCATION isImplicit=false result=5

2024-01-03 10:21:36.437  3099-3099  GrantPermi...nsActivity com.android.permissioncontroller     V  Permission grant result requestId=-2460790308699600973 callingUid=10092 callingPackage=com.tencent.wmpf permission=android.permission.ACCESS_COARSE_LOCATION isImplicit=false result=5

2024-01-03 10:21:36.445  3099-3099  GrantPermi...nsActivity com.android.permissioncontroller     V  Permission grant result requestId=-2460790308699600973 callingUid=10092 callingPackage=com.tencent.wmpf permission=android.permission.ACCESS_COARSE_LOCATION isImplicit=false result=5

2024-01-03 10:21:36.449  3099-3099  GrantPermi...nsActivity com.android.permissioncontroller     V  Permission grant result requestId=-2460790308699600973 callingUid=10092 callingPackage=com.tencent.wmpf permission=android.permission.CAMERA isImplicit=false result=5

2024-01-03 10:21:36.454  3099-3099  GrantPermi...nsActivity com.android.permissioncontroller     V  Permission grant result requestId=-2460790308699600973 callingUid=10092 callingPackage=com.tencent.wmpf permission=android.permission.READ_PHONE_STATE isImplicit=false result=5

2024-01-03 10:21:36.458  3099-3099  GrantPermi...nsActivity com.android.permissioncontroller     V  Permission grant result requestId=-2460790308699600973 callingUid=10092 callingPackage=com.tencent.wmpf permission=android.permission.RECORD_AUDIO isImplicit=false result=5


回答关注问题邀请回答
收藏

2 个回答

  • 高
    01-08

    2024-01-03 10:21:25.184  2065-2235  ActivityManager         system_process                       I  Killing 3483:com.tencent.wmpf/u0a92 (adj 700): stop com.tencent.wmpf

    看起来 wmpf 服务被杀了,检查一下你们系统里是否有一些权限相关的设置,比如允许后台服务运行等。

    01-08
    有用
    回复 2
    • 一亿两千年
      一亿两千年
      01-09
      好的,我们这边查一下。但是这句日志是在提示 激活失败后才打印的呀。。 ?
      01-09
      回复
    • 一亿两千年
      一亿两千年
      01-10
      这边查了系统没有类似的设置,后台服务的限制也是标准的,能再看一下吗。。
      01-10
      回复
  • 一亿两千年
    一亿两千年
    03-06

    已解决,系统白名单添加包名后正常 ,文件:android/device/softwinner/common/config/awbms_config

    03-06
    有用
    回复
登录 后发表内容