2

在此处输入图像描述

调用account kit的API登录报错6003,并且AGC上已经配置了证书指纹,还是报6003错误码。日志如下:</p>

11-02 10:18:01.407 2876-4650/com.example.hellohuawei I ple.hellohuawe: [nanotrace] Start tracing
11-02 10:18:01.407 2876-4637/com.example.hellohuawei I ple.hellohuawe: jit_compiled:[OK] boolean java.lang.Object.equals(java.lang.Object) @ /apex/com.android.runtime/javalib/core-oj.jar
11-02 10:18:01.415 2876-2876/com.example.hellohuawei I ViewRootImpl[BridgeStubAbilityShellActivity]: handleWindowFocusChanged: hasWindowFocus true inTouchMode true
11-02 10:18:01.415 2876-2876/com.example.hellohuawei W InputMethodManager: startInputReason = 1
11-02 10:18:01.423 2876-2876/com.example.hellohuawei I HMSSDK_[AccountHos][ACCOUNTSDK]AccountSignInHubActivityStub: onActivityResult: requestCode:16587 , resultCode:6003
11-02 10:18:01.423 2876-4637/com.example.hellohuawei I ple.hellohuawe: jit_compiled:[OK] void java.util.Calendar.updateTime() @ /apex/com.android.runtime/javalib/core-oj.jar
11-02 10:18:01.423 2876-2876/com.example.hellohuawei I HMSSDK_[AccountHos][ACCOUNTSDK]AccountSignInHubActivityStub: onSignInAccountFailed: retCode:6003
11-02 10:18:01.424 2876-2876/com.example.hellohuawei I HMSSDK_[AccountHos]MessageBus: enter publishMessage messageKey:signin
11-02 10:18:01.424 2876-2876/com.example.hellohuawei I HMSSDK_[AccountHos]AccountAuthServiceAdapterImpl: signIn setreulst taskCompletionSource
11-02 10:18:01.424 2876-2876/com.example.hellohuawei I HMSSDK_[AccountHos]AccountAuthUtil: getSignInResultFromIntent
11-02 10:18:01.427 2876-4637/com.example.hellohuawei I ple.hellohuawe: jit_compiled:[OK] int libcore.io.ForwardingOs.getpid() @ /apex/com.android.runtime/javalib/core-libart.jar
11-02 10:18:01.428 2876-5448/com.example.hellohuawei E EncryptUtil: getSecureRandomBytes: NoSuchAlgorithmException
11-02 10:18:01.428 2876-5448/com.example.hellohuawei E SecurityComp10105306: AesGcmKS: alias or encrypt content is null
11-02 10:18:01.433 2876-2876/com.example.hellohuawei I 01110/[AccountHos]HuaweiAccountSDKProxy: SignIn foreground FAILED.
11-02 10:18:01.433 2876-2876/com.example.hellohuawei I 01110/[AccountHos]HuaweiAccountSDKProxy: SignIn foreground FAILED. status code: 6003.
11-02 10:18:01.432 2876-2876/com.example.hellohuawei I ViewRootImpl[BridgeStubAbilityShellActivity]: handleAppVisibility: mAppVisible false
11-02 10:18:01.433 2876-4637/com.example.hellohuawei I ple.hellohuawe: jit_compiled:[OK] char android.util.HiLogFormatter$FormatSpecifier.conversion(java.lang.String) @ /system/framework/hwEmui.jar
11-02 10:18:01.435 2876-5448/com.example.hellohuawei E EncryptUtil: getSecureRandomBytes: NoSuchAlgorithmException
11-02 10:18:01.435 2876-5448/com.example.hellohuawei E SecurityComp10105306: AesCbc: cbc encrypt param is not right
11-02 10:18:01.440 2876-5448/com.example.hellohuawei E EncryptUtil: getSecureRandomBytes: NoSuchAlgorithmException
11-02 10:18:01.440 2876-5448/com.example.hellohuawei E SecurityComp10105306: AesGcmKS: alias or encrypt content is null
11-02 10:18:01.441 2876-5448/com.example.hellohuawei E EncryptUtil: getSecureRandomBytes: NoSuchAlgorithmException
11-02 10:18:01.441 2876-5448/com.example.hellohuawei E SecurityComp10105306: AesCbc: cbc encrypt param is not right
11-02 10:18:01.443 2876-4637/com.example.hellohuawei I ple.hellohuawe: jit_compiled:[OK] sun.misc.Cleaner sun.misc.Cleaner.add(sun.misc.Cleaner) @ /apex/com.android.runtime/javalib/core-oj.jar
11-02 10:18:01.449 2876-2876/com.example.hellohuawei E 01400/AGP_VIEW: notifyEditingTextChangeInternal mEditingCapability is null
11-02 10:18:01.449 2876-2876/com.example.hellohuawei E 01400/AGP_VIEW: notifyEditingTextChangeInternal mEditingCapability is null
11-02 10:18:01.450 2876-2876/com.example.hellohuawei I ViewRootImpl[BridgeStubAbilityShellActivity]: viewVisibilityChanged changed reason: viewVisibility change to invisible
11-02 10:18:01.451 2876-4659/com.example.hellohuawei I ViewRootImpl[HuaweiLoginAbilityShellActivity]: windowFocusChanged: hasFocus true inTouchMode true
11-02 10:18:01.451 2876-4659/com.example.hellohuawei I ViewRootImpl[BridgeStubAbilityShellActivity]: windowFocusChanged: hasFocus false inTouchMode true
11-02 10:18:01.452 2876-4689/com.example.hellohuawei W libEGL  : EGLNativeWindowType 0x708daa1490 disconnect failed
11-02 10:18:01.452 2876-2876/com.example.hellohuawei I ViewRootImpl[BridgeStubAbilityShellActivity]: relayoutWindow reason: viewVisibilityChanged = true
11-02 10:18:01.456 2876-2876/com.example.hellohuawei I ViewRootImpl[BridgeStubAbilityShellActivity]: relayoutWindow relayoutResult 5
11-02 10:18:01.457 2876-4637/com.example.hellohuawei I ple.hellohuawe: jit_compiled:[OK] void java.lang.ref.Reference.<init>(java.lang.Object) @ /apex/com.android.runtime/javalib/core-oj.jar
11-02 10:18:01.459 2876-2876/com.example.hellohuawei I ViewRootImpl[HuaweiLoginAbilityShellActivity]: handleWindowFocusChanged: hasWindowFocus true inTouchMode true
11-02 10:18:01.459 2876-2876/com.example.hellohuawei W InputMethodManager: startInputReason = 1
11-02 10:18:01.461 2876-2876/com.example.hellohuawei I ViewRootImpl[BridgeStubAbilityShellActivity]: handleWindowFocusChanged: hasWindowFocus false inTouchMode true
11-02 10:18:01.462 2876-2876/com.example.hellohuawei I ActivityManager_activity: Reporting idle of ActivityRecord{2052cc8 token=android.os.BinderProxy@388391 {com.example.hellohuawei/com.example.hellohuawei.HuaweiLoginAbilityShellActivity}} finished=false
11-02 10:18:01.466 2876-5448/com.example.hellohuawei E EncryptUtil: getSecureRandomBytes: NoSuchAlgorithmException
11-02 10:18:01.466 2876-4637/com.example.hellohuawei I ple.hellohuawe: jit_compiled:[OK] org.json.JSONObject org.json.JSONObject.put(java.lang.String, int) @ /apex/com.android.runtime/javalib/core-libart.jar
11-02 10:18:01.466 2876-5448/com.example.hellohuawei E SecurityComp10105306: AesGcmKS: alias or encrypt content is null
11-02 10:18:01.466 2876-5448/com.example.hellohuawei E EncryptUtil: getSecureRandomBytes: NoSuchAlgorithmException
11-02 10:18:01.466 2876-5448/com.example.hellohuawei E SecurityComp10105306: AesCbc: cbc encrypt param is not right
11-02 10:18:01.471 2876-5448/com.example.hellohuawei E EncryptUtil: getSecureRandomBytes: NoSuchAlgorithmException
11-02 10:18:01.471 2876-5448/com.example.hellohuawei E SecurityComp10105306: AesGcmKS: alias or encrypt content is null
11-02 10:18:01.471 2876-5448/com.example.hellohuawei E EncryptUtil: getSecureRandomBytes: NoSuchAlgorithmException
11-02 10:18:01.471 2876-5448/com.example.hellohuawei E SecurityComp10105306: AesCbc: cbc encrypt param is not right
11-02 10:18:01.475 2876-4689/com.example.hellohuawei W libEGL  : EGLNativeWindowType 0x708daa1350 disconnect failed
11-02 10:18:01.566 2876-4637/com.example.hellohuawei I ple.hellohuawe: jit_compiled:[OK] int java.lang.String.indexOf(java.lang.String) @ /apex/com.android.runtime/javalib/core-oj.jar
11-02 10:18:01.697 2876-2876/com.example.hellohuawei I ViewRootImpl[AccountSignInHubStubAbilityShellActivity]: handleAppVisibility: mAppVisible false

知道如何解决这个问题吗?

4

1 回答 1

1

HarmonyOS应用的签名证书与Android应用的签名证书不同。

HarmonyOS应用程序的签名证书为.p12文件。如下:

在此处输入图像描述

您可以按如下方式检查签名证书指纹:

在此处输入图像描述

于 2021-11-03T07:16:42.577 回答