KeyManager获取设备序列号,但回调一直不执行
已完成之前测试正常,但今天突然不行,已将原PILOT2强行停止,希望能得到帮助
//绑定遥控器
KeyManager.getInstance().getValue(KeyTools.createKey(RemoteControllerKey.KeySerialNumber), new CommonCallbacks.CompletionCallbackWithParam<String>() {
@Override
public void onSuccess(String s) {
gatewaySerial = s;
registerGateway(s);
LogUtils.i(tag, "遥控器连接成功", s);
}
@Override
public void onFailure(@NonNull IDJIError error) {
LogUtils.e(tag, "遥控器连接失败", error.errorCode(), error.description());
}
});
日志内的异常信息W/KeyStore: KeyStore exception 出现多次,日志内有个 未登陆的提示,这个登陆是哪块的呢?
E/DJIV5/AESUtil: (decryptedString:9) last block incomplete in decryption
E/DJIV5/UserAccountManager: (onFailure:1) updateUserAccountValidation onFailure: ErrorImp{errorType='USER_LOGIN', errorCode='NOT_LOGGED_IN', innerCode='null', description='当前用户未登录', hint='No logged in account'}
I/DJIV5/co_a@8d37186: (co_a:3) init
E/DJIV5/RXUtil: (apply:2) retryTimes:io.reactivex.rxjava3.processors.SerializedProcessor@a4fd39d
I/DJIV5/DpadProductManager@e422ed2: (co_a:2) init(), productType = RM510
W/KeyStore: KeyStore exception
android.os.ServiceSpecificException: (code 7)
at android.os.Parcel.createException(Parcel.java:2085)
at android.os.Parcel.readException(Parcel.java:2039)
at android.os.Parcel.readException(Parcel.java:1987)
at android.security.keystore.IKeystoreService$Stub$Proxy.get(IKeystoreService.java:978)
at android.security.KeyStore.get(KeyStore.java:236)
at android.security.KeyStore.get(KeyStore.java:225)
at android.security.keystore.AndroidKeyStoreSpi.engineGetCertificate(AndroidKeyStoreSpi.java:160)
at java.security.KeyStore.getCertificate(KeyStore.java:1120)
请先登录再写评论。
评论
3 条评论