在application实现init方法,addDevice时也传入了sn,registerMiniProgramDevice也返回成功,调用registerDeviceActivationOutdatedEventListener时判断isActivited = false,但activite device时却报错,确认数据一致,也清除过wmpf缓存,日志如下:
invokeSync >>>> request [IS_DEVICE_ACTIVATED] [AbstractWMPFSyncInvokeRequest{clientVersion=0, clientApplicationId='null', clientInvokeToken='null', invokeTimestamp=-1, clientProcessName='null'}] rId [0]
newThread(thread : IPCThreadPool#Thread-1)
[getIPCBridge] bw:38244042, id:1932598204225, process:com.tencent.wmpf pingBinder:true
addIntoSet(com.tencent.wmpf)
keep ref of callback(249013508)
invokeSync <<<< response [WMPFIsDeviceActivatedResponse{isActivated=false}] rId [0]
invokeSync >>>> request [ACTIVATE_DEVICE] [AbstractWMPFSyncInvokeRequest{clientVersion=0, clientApplicationId='null', clientInvokeToken='null', invokeTimestamp=-1, clientProcessName='null'}WMPFActivateDeviceSyncRequest{wmpfDevice=WMPFDevice{hostAppId='wxb...828', productId=5417, keyVersion=1, deviceId='46d3e1834268f9f1', signature='MEYCIQD5q80gQYcJUOJU3Ak/vR0un8A7gyY/KKkDA/qKc8RHyAIhAMZXOdD/acmwVNyi5edCbxAqqkmf/w/gFnlTH6bAxA2H', features=[], signatureTimestamp=0, authType=0}}] rId [1]
[getIPCBridge] bw:38244042, id:1932670506358, process:com.tencent.wmpf pingBinder:true
addIntoSet(com.tencent.wmpf)
keep ref of callback(135998754)
newThread(thread : IPCThreadPool#Thread-2)
invokeSync <<<< response [WMPFActivateDeviceSyncResponse{invokeToken=''}] rId [1]
activate device(WMPFDevice{hostAppId='wxbf....88828', productId=5417, keyVersion=1, deviceId='46d3e1834268f9f1', signature='MEYCIQD5q80gQYcJUOJU3Ak/vR0un8A7gyY/KKkDA/qKc8RHyAIhAMZXOdD/acmwVNyi5edCbxAqqkmf/w/gFnlTH6bAxA2H', features=[], signatureTimestamp=0, authType=0}) failed, please check your device info. reason=(10017,device id not registered)
clear invoke token
是否与invokeToken为空有关,采用另一种成功的设备类型测试日志如下: