Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.AssertionError #86

Open
magicKen opened this issue Oct 20, 2020 · 0 comments
Open

java.lang.AssertionError #86

magicKen opened this issue Oct 20, 2020 · 0 comments

Comments

@magicKen
Copy link

magicKen commented Oct 20, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant