哈哈6
哈哈6
  • 发布:2023-04-26 14:59
  • 更新:2023-04-26 15:33
  • 阅读:378

【报Bug】android原生插件开发hello-as中运行没问题,云打包自定义基座后不能正常运行

分类:uni-app

产品分类: uniapp/App

PC开发环境操作系统: Windows

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

HBuilderX类型: 正式

HBuilderX版本号: 3.7.10

手机系统: Android

手机系统版本号: Android 11

手机厂商: OPPO

手机机型: oppo reno

页面类型: vue

vue版本: vue2

打包方式: 云端

项目创建方式: HBuilderX

示例代码:

Log.i(TAG, "調用PAY方法START");
try{
//调起支付位置,看log就运行到这里就出现问题了
payment.pay(sessionId, new PaymentResultCallback() {
@Override
public void onFinish(PaymentResult paymentResult) {
Log.i(TAG, JSONObject.toJSONString(paymentResult));
jsCallback.invoke(result(paymentResult));
}
});
} catch (Exception e){
Log.e(TAG, "異常"+e.getMessage());
Result result = new Result(false, e.getMessage());
jsCallback.invoke(result);
return;
}

操作步骤:

登录app,进入我的->待付款->点击待付款订单进行付款使用八达通进行支付

预期结果:

正常调起八达通app进行支付

实际结果:

一直停留在拉取页面

bug描述:

开发了一个香港八达通支付android原生插件,
在hello-as(uniapp示例项目)中打包运行到手机上没问题可以正常调起八达通app,云打包自定义基座后就不行了,
部分日志内容:
04-26 14:26:46.099 9779 9779 I SpiralPayModule: sessionId:OTSb6e97e9fFreshOne+36970-142642
04-26 14:26:46.124 9779 9779 E Parcel : Reading a NULL string not supported here.
04-26 14:26:46.127 1718 1941 W KernelWakelockReader: readKernelWakelockStats old read cost 4
04-26 14:26:46.153 9779 9779 I chatty : uid=10580(hk.com.freshone.usern) identical 9 lines
04-26 14:26:46.155 9779 9779 E Parcel : Reading a NULL string not supported here.
04-26 14:26:46.157 9779 9779 I SpiralPayModule: 調用PAY方法START
04-26 14:26:46.170 9779 9805 W System : A resource failed to call end.
04-26 14:26:46.170 9779 9805 I chatty : uid=10580(hk.com.freshone.usern) FinalizerDaemon identical 7 lines
04-26 14:26:46.170 9779 9805 W System : A resource failed to call end.
04-26 14:26:46.171 9779 9779 E Parcel : Reading a NULL string not supported here.
04-26 14:26:46.185 1718 1941 W KernelWakelockReader: readKernelWakelockStats old read cost 6
04-26 14:26:46.190 9779 9779 I chatty : uid=10580(hk.com.freshone.usern) identical 9 lines
04-26 14:26:46.192 9779 9779 E Parcel : Reading a NULL string not supported here.
04-26 14:26:46.195 9779 9779 E NativeInvokeHelper: com.blt.spiral_pay.SpiralPayModule@5ab5b72 Invoker pay exception:java.lang.reflect.InvocationTargetException
04-26 14:26:46.195 9779 9779 D CLog : com.blt.spiral_pay.SpiralPayModule@5ab5b72 Invoker pay exception:java.lang.reflect.InvocationTargetException
04-26 14:26:46.305 626 626 E SELinux : avc: denied { find } for pid=25206 uid=10234 name=tethering scontext=u:r:permissioncontroller_app:s0:c234,c256,c512,c768 tcontext=u:object_r:tethering_service:s0 tclass=service_manager permissive=0
04-26 14:26:46.510 626 626 E SELinux : avc: denied { find } for pid=25206 uid=10234 name=tethering scontext=u:r:permissioncontroller_app:s0:c234,c256,c512,c768 tcontext=u:object_r:tethering_service:s0 tclass=service_manager permissive=0
04-26 14:26:46.510 1718 3308 I ColorStorageAllFileAccessManager: checkAppWhitelist: packageName com.heytap.cloud, mode 2
04-26 14:26:46.513 1718 3308 I ColorStorageAllFileAccessManager: SignedWithPrivateKey, package:com.heytap.cloud, check hash result=true
04-26 14:26:46.556 1718 3308 I ColorStatusBarManagerService: getTopIsFullscreen mTopIsFullscreen: false
04-26 14:26:46.556 28402 28458 D InvokeUniqueMethodUtils: getTopScreenIsFull= false
04-26 14:26:46.713 626 626 E SELinux : avc: denied { find } for pid=25206 uid=10234 name=tethering scontext=u:r:permissioncontroller_app:s0:c234,c256,c512,c768 tcontext=u:object_r:tethering_service:s0 tclass=service_manager permissive=0
04-26 14:26:48.632 1718 2515 D JobScheduler.Temperature: get temperature=29.449
04-26 14:26:49.392 626 626 I chatty : uid=1000(system) /system/bin/servicemanager identical 13 lines
04-26 14:26:49.597 626 626 E SELinux : avc: denied { find } for pid=25206 uid=10234 name=tethering scontext=u:r:permissioncontroller_app:s0:c234,c256,c512,c768 tcontext=u:object_r:tethering_service:s0 tclass=service_manager permissive=0
04-26 14:26:49.711 1409 1426 D bspCriticalLog: power_monitor cpu-0-0-usr: open fail -1
04-26 14:26:49.711 1409 1426 D bspCriticalLog: power_monitor cpu-1-0-usr: open fail -1
04-26 14:26:49.801 626 626 E SELinux : avc: denied { find } for pid=25206 uid=10234 name=tethering scontext=u:r:permissioncontroller_app:s0:c234,c256,c512,c768 tcontext=u:object_r:tethering_service:s0 tclass=service_manager permissive=0
04-26 14:26:49.815 16854 16990 D HoraeHelper: getAllShellTemps tSize : 4
04-26 14:26:50.016 626 626 E SELinux : avc: denied { find } for pid=25206 uid=10234 name=tethering scontext=u:r:permissioncontroller_app:s0:c234,c256,c512,c768 tcontext=u:object_r:tethering_service:s0 tclass=service_manager permissive=0
04-26 14:26:50.084 1718 3260 I ColorHansManager : stateRToFFreeze--imporant case: pkgName: hk.com.freshone.usern, reason: top
04-26 14:26:50.224 626 626 E SELinux : avc: denied { find } for pid=25206 uid=10234 name=tethering scontext=u:r:permissioncontroller_app:s0:c234,c256,c512,c768 tcontext=u:object_r:tethering_service:s0 tclass=service_manager permissive=0
04-26 14:26:50.635 626 626 I chatty : uid=1000(system) /system/bin/servicemanager identical 2 lines
04-26 14:26:50.841 626 626 E SELinux : avc: denied { find } for pid=25206 uid=10234 name=tethering scontext=u:r:permissioncontroller_app:s0:c234,c256,c512,c768 tcontext=u:object_r:tethering_service:s0 tclass=service_manager permissive=0
04-26 14:26:50.897 4479 4479 W kworker/0:3: type=1400 audit(0.0:158753): avc: denied { write } for name="oplus_charge" dev="sda13" ino=7733249 scontext=u:r:kernel:s0 tcontext=u:object_r:system_data_file:s0 tclass=dir permissive=0
04-26 14:26:50.943 1718 1718 D OppoBaseBatteryService: send broadcast : oppo.intent.action.BATTERY_DATA_UPDATE
04-26 14:26:50.945 1718 1718 W ContextImpl: Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:1174 com.android.server.OppoBaseBatteryService$2.run:280 android.os.Handler.handleCallback:938 android.os.Handler.dispatchMessage:99 android.os.Looper.loop:263
04-26 14:26:51.044 626 626 E SELinux : avc: denied { find } for pid=25206 uid=10234 name=tethering scontext=u:r:permissioncontroller_app:s0:c234,c256,c512,c768 tcontext=u:object_r:tethering_service:s0 tclass=service_manager permissive=0
04-26 14:26:51.247 626 626 I chatty : uid=1000(system) /system/bin/servicemanager identical 1 line
04-26 14:26:51.455 626 626 E SELinux : avc: denied { find } for pid=25206 uid=10234 name=tethering scontext=u:r:permissioncontroller_app:s0:c234,c256,c512,c768 tcontext=u:object_r:tethering_service:s0 tclass=service_manager permissive=0
04-26 14:26:51.501 1409 1424 D bspCriticalLog: thermal_monitor gpuss-0-usr: open fail -1
04-26 14:26:51.501 1409 1424 D bspCriticalLog: thermal_monitor cpu-0-0-usr: open fail -1
04-26 14:26:51.501 1409 1424 D bspCriticalLog: thermal_monitor cpu-1-0-usr: open fail -1
04-26 14:26:51.662 626 626 E SELinux : avc: denied { find } for pid=25206 uid=10234 name=tethering scontext=u:r:permissioncontroller_app:s0:c234,c256,c512,c768 tcontext=u:object_r:tethering_service:s0 tclass=service_manager permissive=0
04-26 14:26:53.517 626 626 I chatty : uid=1000(system) /system/bin/servicemanager identical 9 lines
04-26 14:26:53.721 626 626 E SELinux : avc: denied { find } for pid=25206 uid=10234 name=tethering scontext=u:r:permissioncontroller_app:s0:c234,c256,c512,c768 tcontext=u:object_r:tethering_service:s0 tclass=service_manager permissive=0
04-26 14:26:53.922 6191 6212 E IHansComunication: HANS printMessageBody: RCVed message body: type = 4, port = 86870, caller_pid = -1, caller_uid = -1, target_pid = -1, target_uid = 10158, pkg_cmd = -1
04-26 14:26:53.929 12117 12481 I SmartThreadExecutor: handleMessage: start check 0
04-26 14:26:53.929 12117 12481 I SmartThreadExecutor: handleMessage: check end 0 -94 false
04-26 14:26:53.931 626 626 E SELinux : avc: denied { find } for pid=25206 uid=10234 name=tethering scontext=u:r:permissioncontroller_app:s0:c234,c256,c512,c768 tcontext=u:object_r:tethering_service:s0 tclass=service_manager permissive=0
04-26 14:26:53.931 18219 18482 D MSF.C.NetConnTag.true: netRecv ssoSeq:-660750020 uin:2089 cmd:BS08PTQ9FS85K34EOAgwKSIEIjsvKAgpLQ -660749621 cross:0 socketEngineID: 0 socket: 166252911
04-26 14:26:53.931 18219 18482 D WeakNetDetector: [onRecvRespPkg] error with null to or from
04-26 14:26:53.932 18219 18351 D MSF.C.DeepSleepDetector: [run] count after++: 121
04-26 14:26:53.932 1718 3261 I ColorHansManager : unfreeze uid: 10158 package: com.tencent.mobileqq reason: Packet scene: LcdOnScene
04-26 14:26:53.932 18219 18351 D MemoryCeilingMonitor: [handleMemoryCalculate]
04-26 14:26:53.932 18219 18351 D MemoryCeilingMonitor: [calculate] tot: 5790784, max: 402653184, free: 1419328, heap: 4371456, per: 0.01085662841796875
04-26 14:26:53.932 18219 18366 D WorkerThreadMonitor: Kill MSF check result[ senderSize:0,sendInterval:99900,receiveInterval=67803,addCmdCount=5492
04-26 14:26:53.934 18219 31589 I SocketReaderNewtrue: SocketReader(2327) continue
04-26 14:26:53.934 1718 3261 I ColorHansManager : pkg: com.tencent.mobileqq,state: F -> M
04-26 14:26:53.934 18219 31589 D MSF.C.NetConnTag.true: MsfCoreSocketReaderNew closeConn socketEngineID: 1 socket hashcode: 0 for reason: readError
04-26 14:26:53.934 18219 31589 D MSF.C.NetConnTag.true: closeConn with null socket, connId:1, closeReason: readError
04-26 14:26:53.934 18219 31589 E SocketReaderNewtrue: socketEngine: 1socket hashCode: 0SocketReader(2327) errorjava.net.SocketException: Socket is closed
04-26 14:26:53.934 18219 31589 I SocketReaderNewtrue: SocketReader(2327) wait
04-26 14:26:53.938 18219 18441 I MSF.S.AppProcessManager: SendToApp PUSH process:com.tencent.mobileqq fromServiceMsg: FromServiceMsg msName:onRecvPushMsg ssoSeq:-660750020 serviceCmd:OnlinePush.PbPushGroupMsg appSeq:-660750020 failCode:1000 cost = 0 needBoot=true from.len = 294
04-26 14:26:53.940 12117 21235 D MSF.D.Proxy: onRecvServicePushResp, fromServiceMsg cmd = OnlinePush.PbPushGroupMsg, ssoSeq = -660750020, length = 294
04-26 14:26:53.940 18219 18441 D GuardManager: prestart 3, 1682490413940, 1682490259997, 720000, true, true, 1682490259997
04-26 14:26:53.942 12117 12221 D Q.msg.TroopMessageProcessor: <---handleMsgPush_PB_Group : before analysis : fromUin:2711494127 toUin:641252089 msgTime:1682490413 msgSeq:264675 msgUid:72057595423045081 userActive:0 fromInstid:537149055 groupCode:569291866 groupType:1 groupSeq:138547 cardName:V|8 hasAppShare:false bFinished:true divSeq:0 pkgIndex:0 pkgNum:1
04-26 14:26:53.942 12117 12221 D Q.msg.TroopMessageProcessor: push_cost=0,type=GROUP_PUSH_MSG
04-26 14:26:53.949 12117 12221 D Q.msg.TroopMsgProxy: insertToList MessageRecord=friendUin:1866senderuin:4127,istroop:1,msgType:-1000,time:1682490413,shmsgseq:264675
04-26 14:26:53.953 18219 18406 D MSF.C.NetConnTag.true: msf can not get ssid
04-26 14:26:53.954 18219 18406 D MSF.C.NetConnTag.true: msf can not get ssid
04-26 14:26:53.957 12117 12117 I AutoMonitor: onComponentCreate, component: mqq.app.QQBroadcastReceiver@90ee2d8 ,mCurState = 201
04-26 14:26:53.957 18219 18406 D MSF.C.NetConnTag.true: encodeRequest cmd: friendlist.GetSimpleOnlineFriendInfoReq, with version = 11, AppId = 537155552, pa ok: 82154
04-26 14:26:53.957 18219 18406 D MSF.C.DeepSleepDetector: [hasInDeepSleep] result: true, bgTime: 10640281, mCount: 121, interval: 60000
04-26 14:26:53.958 18219 18406 D MSF.C.NetConnTag.DualConnContext.true: tryDualConn
04-26 14:26:53.958 18219 18406 D MSF.C.NetConnTag.true: netSend ssoSeq:82154 uin:
2089 cmd:LDE5MTQ8KTM5N34TPywWMyczPDEVNikzJCYWJjM9Kz4DLTY7CD00 82405 9e8d16f socketEngineID: 0 socket: 166252911
04-26 14:26:53.962 12117 12019 I UnusedCodeCheck: init end result:0
04-26 14:26:53.971 12117 12159 D TicketManager: get ticket succ, a!
04-26 14:26:53.973 12117 12159 D TicketManager: get ticket succ, a!
04-26 14:26:53.975 18219 18406 D MSF.C.NetConnTag.true: msf can not get ssid
04-26 14:26:53.976 18219 18406 D MSF.C.NetConnTag.true: msf can not get ssid
04-26 14:26:53.976 18219 18406 D MSF.C.NetConnTag.true: encodeRequest cmd: PbMessageSvc.PbUnReadMsgSeq, with version = 11, AppId = 537155552, pa ok: 82155
04-26 14:26:53.976 18219 18406 D MSF.C.DeepSleepDetector: [hasInDeepSleep] result: true, bgTime: 10640299, mCount: 121, interval: 60000
04-26 14:26:53.976 18219 18406 D MSF.C.NetConnTag.DualConnContext.true: tryDualConn
04-26 14:26:53.977 18219 18406 D MSF.C.NetConnTag.true: netSend ssoSeq:82155 uin:2089 cmd:GiEdMSkrJD0vECY3dAgnDyQRNTU+FTY9GSYh 82454 9e8d16f socketEngineID: 0 socket: 166252911
04-26 14:26:53.977 12117 12159 D MemoryFaultMonitor: toggle config is null!
04-26 14:26:53.985 12117 12221 D QQMsgMetricRecorder: afterMsgPushNotify;d=985,tm=1682490413,ty=-1000,uid=72057595423045081,sh=264675,u=569291866,ut=1,c=未|11
04-26 14:26:54.024 18219 18482 D MSF.C.NetConnTag.true: netRecv ssoSeq:82155 uin:
2089 cmd:GiEdMSkrJD0vECY3dAgnDyQRNTU+FTY9GSYh 82322 cross:0 socketEngineID: 0 socket: 166252911
04-26 14:26:54.025 18219 18441 I MSF.S.AppProcessManager: SendToApp process:com.tencent.mobileqq fromServiceMsg: FromServiceMsg msName:unknown ssoSeq:82155 serviceCmd:PbMessageSvc.PbUnReadMsgSeq appSeq:347 failCode:1000 cos t =0 needBoot=false to.len = 189 from.len = 61
04-26 14:26:54.027 12117 21235 D MSF.D.Proxy: onReceiveResp, fromServiceMsg = PbMessageSvc.PbUnReadMsgSeq, ssoSeq = 82155, length = 61
04-26 14:26:54.144 626 626 E SELinux : avc: denied { find } for pid=25206 uid=10234 name=tethering scontext=u:r:permissioncontroller_app:s0:c234,c256,c512,c768 tcontext=u:object_r:tethering_service:s0 tclass=service_manager permissive=0
04-26 14:26:54.202 18219 18482 D MSF.C.NetConnTag.true: netRecv ssoSeq:82154 uin:*2089 cmd:LDE5MTQ8KTM5N34TPywWMyczPDEVNikzJCYWJjM9Kz4DLTY7CD00 83233 cross:0 socketEngineID: 0 socket: 166252911
04-26 14:26:54.203 18219 18441 I MSF.S.AppProcessManager: SendToApp process:com.tencent.mobileqq fromServiceMsg: FromServiceMsg msName:unknown ssoSeq:82154 serviceCmd:friendlist.GetSimpleOnlineFriendInfoReq appSeq:346 failCode:1000 cos t =0 needBoot=false to.len = 125 from.len = 4429
04-26 14:26:54.205 12117 21235 D MSF.D.Proxy: onReceiveResp, fromServiceMsg = friendlist.GetSimpleOnlineFriendInfoReq, ssoSeq = 82154, length = 4429
04-26 14:26:54.348 626 626 E SELinux : avc: denied { find } for pid=25206 uid=10234 name=tethering scontext=u:r:permissioncontroller_app:s0:c234,c256,c512,c768 tcontext=u:object_r:tethering_service:s0 tclass=service_manager permissive=0
04-26 14:26:54.552 626 626 E SELinux : avc: denied { find } for pid=25206 uid=10234 name=tethering scontext=u:r:permissioncontroller_app:s0:c234,c256,c512,c768 tcontext=u:object_r:tethering_service:s0 tclass=service_manager permissive=0
04-26 14:26:54.731 16854 16966 D HoraeHelper: getAllShellTemps tSize : 4
04-26 14:26:54.732 16854 16966 D HoraeHelper: Thermal length:1
04-26 14:26:54.758 626 626 E SELinux : avc: denied { find } for pid=25206 uid=10234 name=tethering scontext=u:r:permissioncontroller_app:s0:c234,c256,c512,c768 tcontext=u:object_r:tethering_service:s0 tclass=service_manager permissive=0
04-26 14:26:54.803 1718 4854 I LocationAccessPolicy: com.ss.android.ugc.aweme is aware of coarse but the app-ops permission is specifically denied.
04-26 14:26:54.964 626 626 E SELinux : avc: denied { find } for pid=25206 uid=10234 name=tethering scontext=u:r:permissioncontroller_app:s0:c234,c256,c512,c768 tcontext=u:object_r:tethering_service:s0 tclass=service_manager permissive=0
04-26 14:26:55.578 626 626 I chatty : uid=1000(system) /system/bin/servicemanager identical 3 lines
04-26 14:26:55.784 626 626 E SELinux : avc: denied { find } for pid=25206 uid=10234 name=tethering scontext=u:r:permissioncontroller_app:s0:c234,c256,c512,c768 tcontext=u:object_r:tethering_service:s0 tclass=service_manager permissive=0
04-26 14:26:55.927 4479 4479 W kworker/0:3: type=1400 audit(0.0:158754): avc: denied { write } for name="oplus_charge" dev="sda13" ino=7733249 scontext=u:r:kernel:s0 tcontext=u:object_r:system_data_file:s0 tclass=dir permissive=0
04-26 14:26:55.944 12117 12019 I UnusedCodeCheck: storeInfo end statusCode:0
04-26 14:26:55.954 12117 12019 I UnusedCodeCheck: combineProcessResult part all process info:LoadedClassInfoObject{loadClassCount=6780, partClassCount=65000, allClassCount=65000, firstClassName='LADV_REPORT/mobile_adv_report_req;', lastClassName='Lcom/tencent/mobileqq/activity/aio/core/msglist/d;', checkCount=1594, hashResult=0JuTW7OoGbFYAfHCpF_rTw}
04-26 14:26:55.962 12117 12019 I UnusedCodeCheck: combineProcessResult part all process info:LoadedClassInfoObject{loadClassCount=10126, partClassCount=65000, allClassCount=130000, firstClassName='Lcom/tencent/mobileqq/activity/aio/core/msglist/e;', lastClassName='Lcom/tencent/mobileqq/upgrade/b;', checkCount=1594, hashResult=Dr2Oat_DT0Z0C4LptJik7A}
04-26 14:26:55.965 1718 1718 D OppoBaseBatteryService: send broadcast : oppo.intent.action.BATTERY_DATA_UPDATE
04-26 14:26:55.965 1718 1718 W ContextImpl: Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:1174 com.android.server.OppoBaseBatteryService$2.run:280 android.os.Handler.handleCallback:938 android.os.Handler.dispatchMessage:99 android.os.Looper.loop:263
04-26 14:26:55.972 12117 12019 I UnusedCodeCheck: combineProcessResult part all process info:LoadedClassInfoObject{loadClassCount=9467, partClassCount=65000, allClassCount=195000, firstClassName='Lcom/tencent/mobileqq/upgrade/c;', lastClassName='Ltrpc/zplan/avatar_mall/AvatarMallMessage$GmReply;', checkCount=1594, hashResult=14Z1EexqvOP6WEhUWgvNEA}
04-26 14:26:55.980 12117 12019 I UnusedCodeCheck: combineProcessResult part all process info:LoadedClassInfoObject{loadClassCount=3625, partClassCount=59436, allClassCount=254436, firstClassName='Ltrpc/zplan/avatar_mall/AvatarMallMessage$GmRequest;', lastClassName='Lkotlin/reflect/jvm/ReflectLambdaKt;', checkCount=1594, hashResult=NfEQ1i2-NqDjP3jGPyesBQ}
04-26 14:26:55.987 626 626 E SELinux : avc: denied { find } for pid=25206 uid=10234 name=tethering scontext=u:r:permissioncontroller_app:s0:c234,c256,c512,c768 tcontext=u:object_r:tethering_service:s0 tclass=service_manager permissive=0
04-26 14:26:57.831 626 626 I chatty : uid=1000(system) /system/bin/servicemanager identical 9 lines
04-26 14:26:58.037 626 626 E SELinux : avc: denied { find } for pid=25206 uid=10234 name=tethering scontext=u:r:permissioncontroller_app:s0:c234,c256,c512,c768 tcontext=u:object_r:tethering_service:s0 tclass=service_manager permissive=0
04-26 14:26:58.062 1718 1923 D HoraeHelper: skinThermal:29.633
04-26 14:26:58.228 1718 3260 I ColorHansManager : pkg: com.google.android.gms,state: M -> F
04-26 14:26:58.239 1718 3260 I ColorHansManager : freeze uid: 10037 package: com.google.android.gms reason: Packet scene: LcdOnScene
04-26 14:26:58.243 6191 2842 D IHansComunication: HANS sendMessageToKernel: threadId = 494340652224, netLinkSetup = 1, type = PKG, targetUid = 10037, pkgCmd = ADD_ONE_UID
04-26 14:26:58.244 626 626 E SELinux : avc: denied { find } for pid=25206 uid=10234 name=tethering scontext=u:r:permissioncontroller_app:s0:c234,c256,c512,c768 tcontext=u:object_r:tethering_service:s0 tclass=service_manager permissive=0
04-26 14:26:58.643 1718 2515 D JobScheduler.Temperature: get temperature=29.633
04-26 14:26:58.653 626 626 I chatty : uid=1000(system) /system/bin/servicemanager identical 2 lines
04-26 14:26:58.858 626 626 E SELinux : avc: denied { find } for pid=25206 uid=10234 name=tethering scontext=u:r:permissioncontroller_app:s0:c234,c256,c512,c768 tcontext=u:object_r:tethering_service:s0 tclass=service_manager permissive=0
04-26 14:26:58.940 18219 18389 W Settings: Setting airplane_mode_on has moved from android.provider.Settings.System to android.provider.Settings.Global, returning read-only value.
04-26 14:26:59.061 626 626 E SELinux : avc: denied { find } for pid=25206 uid=10234 name=tethering scontext=u:r:permissioncontroller_app:s0:c234,c256,c512,c768 tcontext=u:object_r:tethering_service:s0 tclass=service_manager permissive=0
04-26 14:26:59.475 626 626 I chatty : uid=1000(system) /system/bin/servicemanager identical 2 lines
04-26 14:26:59.679 626 626 E SELinux : avc: denied { find } for pid=25206 uid=10234 name=tethering scontext=u:r:permissioncontroller_app:s0:c234,c256,c512,c768 tcontext=u:object_r:tethering_service:s0 tclass=service_manager permissive=0
04-26 14:26:59.810 16854 16971 D HoraeHelper: getAllShellTemps tSize : 4
04-26 14:26:59.886 626 626 E SELinux : avc: denied { find } for pid=25206 uid=10234 name=tethering scontext=u:r:permissioncontroller_app:s0:c234,c256,c512,c768 tcontext=u:object_r:tethering_service:s0 tclass=service_manager permissive=0
04-26 14:27:00.005 8172 8172 I WeatherS_WeatherServiceVersionUtils: serviceVersionCode8002022
04-26 14:27:00.006 8172 8172 I chatty : uid=10076(com.coloros.alarmclock) identical 1 line
04-26 14:27:00.006 8172 8172 I WeatherS_WeatherServiceVersionUtils: serviceVersionCode8002022
04-26 14:27:00.041 2941 2941 D SingleClockView: updateTime, 24hfmt=true, h=14, m=27
04-26 14:27:00.044 1718 3308 E OplusCustomizeRestrictionManagerService: isBiometricDisabled start
04-26 14:27:00.093 626 626 E SELinux : avc: denied { find } for pid=25206 uid=10234 name=tethering scontext=u:r:permissioncontroller_app:s0:c234,c256,c512,c768 tcontext=u:object_r:tethering_service:s0 tclass=service_manager permissive=0
04-26 14:27:00.245 6191 2842 D IHansComunication: HANS sendMessageToKernel: threadId = 494340652224, netLinkSetup = 1, type = FROZEN_TRANS, targetUid = 10037, pkgCmd = PKG_CMD_MAX
04-26 14:27:00.297 626 626 E SELinux : avc: denied { find } for pid=25206 uid=10234 name=tethering scontext=u:r:permissioncontroller_app:s0:c234,c256,c512,c768 tcontext=u:object_r:tethering_service:s0 tclass=service_manager permissive=0
04-26 14:27:00.503 626 626 I chatty : uid=1000(system) /system/bin/servicemanager identical 1 line
04-26 14:27:00.708 626 626 E SELinux : avc: denied { find } for pid=25206 uid=10234 name=tethering scontext=u:r:permissioncontroller_app:s0:c234,c256,c512,c768 tcontext=u:object_r:tethering_service:s0 tclass=service_manager permissive=0
04-26 14:27:00.887 4479 4479 W kworker/0:3: type=1400 audit(0.0:158755): avc: denied { write } for name="oplus_charge" dev="sda13" ino=7733249 scontext=u:r:kernel:s0 tcontext=u:object_r:system_data_file:s0 tclass=dir permissive=0
04-26 14:27:00.907 10554 10554 E hcl : userInfo.id==4779995
04-26 14:27:00.913 626 626 E SELinux : avc: denied { find } for pid=25206 uid=10234 name=tethering scontext=u:r:permissioncontroller_app:s0:c234,c256,c512,c768 tcontext=u:object_r:tethering_service:s0 tclass=service_manager permissive=0
04-26 14:27:00.045 1718 3308 E OplusCustomizeRestrictionManagerService: isBiometricDisabled start
04-26 14:27:00.932 1718 1718 D OppoBaseBatteryService: send broadcast : oppo.intent.action.BATTERY_DATA_UPDATE
04-26 14:27:00.932 1718 1718 W ContextImpl: Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:1174 com.android.server.OppoBaseBatteryService$2.run:280 android.os.Handler.handleCallback:938 android.os.Handler.dispatchMessage:99 android.os.Looper.loop:263
04-26 14:27:01.120 626 626 I chatty : uid=1000(system) /system/bin/servicemanager identical 1 line
04-26 14:27:01.327 626 626 E SELinux : avc: denied { find } for pid=25206 uid=10234 name=tethering scontext=u:r:permissioncontroller_app:s0:c234,c256,c512,c768 tcontext=u:object_r:tethering_service:s0 tclass=service_manager permissive=0
04-26 14:27:01.494 10554 10683 I HttpRequest: Request[https://ltzproxy.zhxcshop.com/stat?biz=1004&carrier=cmcc&channel=1121&channel_type=1&live_duration=1304528&model=PCAM00&name=event&network=wifi&new_user=0&os=android&os_version=11&pay_times=1&registered_at=1681185774&udid=6c52e1d07705289694fb6292985f2c2582cc&user_id=4779995&vendor=OPPO&version=4.2.6&vip=1&vip_duration=1335254]success, response:null
04-26 14:27:01.494 10554 10554 E TAGG : response-headers:null
04-26 14:27:01.495 10554 10554 E hcl : biz==1004errorCode==0errorMsg==HTTP 路由请求地址错误
04-26 14:27:01.495 10554 10554 E hcl : map=={biz=1004, name=event}
04-26 14:27:01.529 626 626 E SELinux : avc: denied { find } for pid=25206 uid=10234 name=tethering scontext=u:r:permissioncontroller_app:s0:c234,c256,c512,c768 tcontext=u:object_r:tethering_service:s0 tclass=service_manager permissive=0
04-26 14:27:01.735 626 626 E SELinux : avc: denied { find } for pid=25206 uid=10234 name=tethering scontext=u:r:permissioncontroller_app:s0:c234,c256,c512,c768 tcontext=u:object_r:tethering_service:s0 tclass=service_manager permissive=0
04-26 14:27:01.920 1718 1732 I system_server: Background young concurrent copying GC freed 217098(12MB) AllocSpace objects, 147(5152KB) LOS objects, 18% free, 77MB/94MB, paused 462us total 106.533ms
04-26 14:27:01.930 1718 1734 W System : A resource failed to call release.
04-26 14:27:01.930 1718 1734 I chatty : uid=1000(system) FinalizerDaemon identical 1 line
04-26 14:27:01.930 1718 1734 W System : A resource failed to call release.
04-26 14:27:01.944 626 626 E SELinux : avc: denied { find } for pid=25206 uid=10234 name=tethering scontext=u:r:permissioncontroller_app:s0:c234,c256,c512,c768 tcontext=u:object_r:tethering_service:s0 tclass=service_manager permissive=0
04-26 14:27:03.181 626 626 I chatty : uid=1000(system) /system/bin/servicemanager identical 6 lines
04-26 14:27:03.388 626 626 E SELinux : avc: denied { find } for pid=25206 uid=10234 name=tethering scontext=u:r:permissioncontroller_app:s0:c234,c256,c512,c768 tcontext=u:object_r:tethering_service:s0 tclass=service_manager permissive=0
04-26 14:27:03.579 10554 10554 E hcl : userInfo.id==4779995
04-26 14:27:03.597 626 626 E SELinux : avc: denied { find } for pid=25206 uid=10234 name=tethering scontext=u:r:permissioncontroller_app:s0:c234,c256,c512,c768 tcontext=u:object_r:tethering_service:s0 tclass=service_manager permissive=0

2023-04-26 14:59 负责人:无 分享
已邀请:
哈哈6

哈哈6 (作者)

操作视频

DCloud_App_Array

DCloud_App_Array

提供的信息看已经调用到uni原生插件中了,但没有启动八达通支付SDK。
从日志看貌似是缺少SDK的一些原生资源,确认在原生工程中配置的资源文件(如SDK授权文件)已经配置到uni原生插件或项目中。

  • 哈哈6 (作者)

    我在hello-as中运行时正常的,在自定义基座中看日志的话运行到pay位置,说明八达通sdk也正常引用成功了。能缺少什么配置呢

    2023-04-26 15:37

  • DCloud_App_Array

    回复 哈哈6: 通常三方SDK都需要配置appid或授权文件等信息,以及依赖的其它库等,首先要确定相关配置是否正确。

    再排查运行到SDK的pay位置,传入参数是否正确,调用原生SDK返回的数据是否正常,可以添加原生输出日志代码来定位问题。

    2023-04-26 15:50

  • 哈哈6 (作者)

    回复 DCloud_App_Array: 您好可以确定

    NativeInvokeHelper: com.blt.spiral_pay.SpiralPayModule@55dd965 Invoker pay exception:java.lang.reflect.InvocationTargetException 这个就是运行失败的原因,我想问下这个可能是什么导致的,怎么解决呢,我怀疑是包冲突导致的我的第三方sdk中也引用了alipay sdk,应该怎么解决呢

    2023-04-27 09:58

  • DCloud_App_Array

    回复 哈哈6: 可以先不使用支付宝alipay sdk实现,确认是否与其冲突导致的问题。

    如果确认是这个原因,可以都适配到相同的支付宝alipay sdk版本,HBuilderX中内置的支付宝SDK版本信息可在这里查到:https://nativesupport.dcloud.net.cn/AppDocs/usemodule/androidModuleConfig/pay.html

    2023-04-27 11:45

  • 哈哈6 (作者)

    回复 DCloud_App_Array: 我用本地离线打包 用导入module方式就可以正常运行,但是当我用module生成的插件arr文件方式(arr文件放在simpleDemo下的libs文件夹下)时就不行可能是什么原因呢

    2023-04-27 15:17

  • DCloud_App_Array

    回复 哈哈6: 可能的情况很多,可能是主工程还依赖其它资源没有导入到module中而是配置在主工程中;也可能是云端打包使用了其它模块与插件中依赖的库存在冲突导致,这种情况可以使用最简测试项目进行验证,上面提到可能是alipay sdk冲突就属于这种情况。

    2023-04-27 16:04

要回复问题请先登录注册