08-27 16:12:13.444 3911 3911 I Binder:3911_4: type=1400 audit(0.0:897): avc: denied { call } for scontext=u:r:untrusted_app_29:s0:c124,c256,c512,c768 tcontext=u:r:rpmbd:s0 tclass=binder permissive=1 app=com.tencent.wmpf.demo.voip
08-27 16:12:13.704 1935 1935 W HidlServiceManagement: Waited one second for android.hardware.radio@1.1::IRadio/slot1
08-27 16:12:13.705 141 141 I hwservicemanager: Since android.hardware.radio@1.1::IRadio/slot1 is not registered, trying to start it as a lazy HAL.
08-27 16:12:13.706 1935 1935 I HidlServiceManagement: getService: Trying again for android.hardware.radio@1.1::IRadio/slot1...
08-27 16:12:13.821 3911 3934 W System.err: com.tencent.wxvoip.ServiceProxy$RegisterException: register: emmc write fail00
08-27 16:12:13.822 3911 3934 W System.err: at com.tencent.wxvoip.ServiceProxy.registerVoipDevice(Unknown Source:120)
08-27 16:12:13.822 3911 3934 W System.err: at com.tencent.wmpf.demo.activity.SplashActivity$SqlTime$1$2$1.accept(SplashActivity.java:301)
08-27 16:12:13.822 3911 3934 W System.err: at com.tencent.wmpf.demo.activity.SplashActivity$SqlTime$1$2$1.accept(SplashActivity.java:283)
08-27 16:12:13.822 3911 3934 W System.err: at io.reactivex.internal.observers.ConsumerSingleObserver.onSuccess(ConsumerSingleObserver.java:63)
08-27 16:12:13.822 3911 3934 W System.err: at io.reactivex.internal.operators.single.SingleCreate$Emitter.onSuccess(SingleCreate.java:68)
08-27 16:12:13.822 3911 3934 W System.err: at com.tencent.wmpf.demo.Api$activateDevice$1$result$1.onCallback(Api.kt:87)
08-27 16:12:13.822 3911 3934 W System.err: at com.tencent.wmpf.demo.Api$activateDevice$1$result$1.onCallback(Api.kt:80)
08-27 16:12:13.823 3911 3934 W System.err: at com.tencent.mm.ipcinvoker.IPCInvoker$IPCInvokeCallbackWrapper.onCallback(IPCInvoker.java:246)
08-27 16:12:13.823 3911 3934 W System.err: at com.tencent.mm.ipcinvoker.aidl.AIDL_IPCInvokeCallback$Stub.onTransact(AIDL_IPCInvokeCallback.java:68)
08-27 16:12:13.823 3911 3934 W System.err: at android.os.Binder.execTransactInternal(Binder.java:1154)
08-27 16:12:13.823 3911 3934 W System.err: at android.os.Binder.execTransact(Binder.java:1123)
08-27 16:12:13.823 3911 3934 I System.out: 注册voip结果异常register: emmc write fail00
mmmc命令读取
这个异常是写 key 失败。
你能使用 mmc 相关的工具来读写 rpmb 分区,理论上只要集成对应版本的 rpmbd 就可以,建议使用 1.5 版本的。
需要注意的是,voip 业务需要一块未被写过 key 的芯片,另外,你也可以使用 voipsdk-1.5.1 版本,此版本优化了对 rpmb 的写入逻辑。