Open magicKen opened 4 years ago
Android Studio升级到4.1之后,运行报java.lang.AssertionError错误:
1 com.tencent.soter.core.model.CertUtil.extractAttestationSequence(CertUtil.java:96) 2 com.tencent.soter.core.model.SoterPubKeyModel.loadDeviceInfo(SoterPubKeyModel.java:136) 3 com.tencent.soter.core.model.SoterPubKeyModel.<init>(SoterPubKeyModel.java:115) 4 com.tencent.soter.core.sotercore.CertSoterCore.getAppGlobalSecureKeyModel(CertSoterCore.java:79) 5 com.tencent.soter.core.sotercore.SoterCoreBeforeTreble.isAppGlobalSecureKeyValid(SoterCoreBeforeTreble.java:172) 6 com.tencent.soter.core.SoterCore.isAppGlobalSecureKeyValid(SoterCore.java:224) 7 com.tencent.soter.wrapper.wrap_task.TaskPrepareAuthKey.preExecute(TaskPrepareAuthKey.java:73) 8 com.tencent.soter.wrapper.wrap_task.SoterTaskManager.addToTask(SoterTaskManager.java:62) 9 com.tencent.soter.wrapper.SoterWrapperApi.prepareAuthKey(SoterWrapperApi.java:118)
报错语句:
assert attestationExtensionBytes[jsonStartOff-1]==(jsonEndOff-jsonStartOff+1);
jdk(Android Studio Embedded)版本:
openjdk version "1.8.0_242-release" OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593) OpenJDK 64-Bit Server VM (build 25.242-b3-6222593, mixed mode)
经过测试,SoterPubKeyModel.loadDeviceInfo中的try{} catch(Exception e){}无法捕获java.lang.AssertionError
SoterPubKeyModel.loadDeviceInfo
try{} catch(Exception e){}
Android Studio升级到4.1之后,运行报java.lang.AssertionError错误:
报错语句:
jdk(Android Studio Embedded)版本:
经过测试,
SoterPubKeyModel.loadDeviceInfo
中的try{} catch(Exception e){}
无法捕获java.lang.AssertionError