what-the-bank/sources/com/huawei/hms/hwid/ac.java

127 lines
6.3 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.huawei.hms.hwid;
import com.huawei.hms.common.internal.TaskApiCall;
import com.huawei.hms.support.hwid.result.AuthHuaweiId;
/* loaded from: classes2.dex */
public class ac extends TaskApiCall<u, AuthHuaweiId> {
@Override // com.huawei.hms.common.internal.TaskApiCall
public int getApiLevel() {
return 1;
}
public ac(String str, String str2, String str3) {
super(str, str2, str3);
}
/* JADX INFO: Access modifiers changed from: protected */
/* JADX WARN: Removed duplicated region for block: B:11:0x00c7 */
@Override // com.huawei.hms.common.internal.TaskApiCall
/* renamed from: a, reason: merged with bridge method [inline-methods] */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public void doExecute(com.huawei.hms.hwid.u r17, com.huawei.hms.common.internal.ResponseErrorCode r18, java.lang.String r19, o.nNj<com.huawei.hms.support.hwid.result.AuthHuaweiId> r20) {
/*
r16 = this;
r0 = r20
r1 = 1
java.lang.String r2 = "[HUAWEIIDSDK]SignInTaskApiCall"
if (r18 != 0) goto L1c
java.lang.String r3 = "response is null."
com.huawei.hms.hwid.as.b(r2, r3, r1)
com.huawei.hms.support.api.client.Status r1 = new com.huawei.hms.support.api.client.Status
r2 = 2003(0x7d3, float:2.807E-42)
r1.<init>(r2, r3)
com.huawei.hms.common.ApiException r2 = new com.huawei.hms.common.ApiException
r2.<init>(r1)
r0.c(r2)
return
L1c:
java.lang.StringBuilder r3 = new java.lang.StringBuilder
java.lang.String r4 = "ResponseErrorCode.status:"
r3.<init>(r4)
int r4 = r18.getErrorCode()
r3.append(r4)
java.lang.String r3 = r3.toString()
com.huawei.hms.hwid.as.b(r2, r3, r1)
int r3 = r18.getErrorCode()
boolean r4 = android.text.TextUtils.isEmpty(r19)
r5 = 0
if (r4 != 0) goto La2
com.huawei.hms.support.hwid.result.HuaweiIdAuthResult r4 = new com.huawei.hms.support.hwid.result.HuaweiIdAuthResult // Catch: org.json.JSONException -> L85
r4.<init>() // Catch: org.json.JSONException -> L85
r6 = r19
com.huawei.hms.support.hwid.result.HuaweiIdAuthResult r4 = r4.fromJson(r6) // Catch: org.json.JSONException -> L85
com.huawei.hms.support.api.client.Status r6 = r4.getStatus() // Catch: org.json.JSONException -> L85
int r3 = r6.getStatusCode() // Catch: org.json.JSONException -> L85
boolean r6 = r4.isSuccess() // Catch: org.json.JSONException -> L85
if (r6 == 0) goto L72
java.lang.String r6 = "signIn success"
com.huawei.hms.hwid.as.b(r2, r6, r1) // Catch: org.json.JSONException -> L85
com.huawei.hms.hwid.w r6 = new com.huawei.hms.hwid.w // Catch: org.json.JSONException -> L85
android.content.Context r7 = r17.getContext() // Catch: org.json.JSONException -> L85
r6.<init>(r7) // Catch: org.json.JSONException -> L85
r6.a() // Catch: org.json.JSONException -> L85
com.huawei.hms.support.hwid.result.AuthHuaweiId r6 = r4.getHuaweiId() // Catch: org.json.JSONException -> L85
com.huawei.hms.support.hwid.result.AuthHuaweiId r4 = r4.getHuaweiId() // Catch: org.json.JSONException -> L86
r0.b(r4) // Catch: org.json.JSONException -> L86
goto La0
L72:
java.lang.String r6 = "signIn failed"
com.huawei.hms.hwid.as.b(r2, r6, r1) // Catch: org.json.JSONException -> L85
com.huawei.hms.common.ApiException r6 = new com.huawei.hms.common.ApiException // Catch: org.json.JSONException -> L85
com.huawei.hms.support.api.client.Status r4 = r4.getStatus() // Catch: org.json.JSONException -> L85
r6.<init>(r4) // Catch: org.json.JSONException -> L85
r0.c(r6) // Catch: org.json.JSONException -> L85
r6 = r5
goto La0
L85:
r6 = r5
L86:
java.lang.String r4 = "signIn complete, but parser json exception"
com.huawei.hms.hwid.as.c(r2, r4, r1)
com.huawei.hms.common.ApiException r4 = new com.huawei.hms.common.ApiException
com.huawei.hms.support.api.client.Status r7 = new com.huawei.hms.support.api.client.Status
int r8 = r18.getErrorCode()
java.lang.String r9 = r18.getErrorReason()
r7.<init>(r8, r9)
r4.<init>(r7)
r0.c(r4)
La0:
r14 = r3
goto Lbe
La2:
java.lang.String r4 = "signIn complete, response is null, failed"
com.huawei.hms.hwid.as.b(r2, r4, r1)
com.huawei.hms.common.ApiException r4 = new com.huawei.hms.common.ApiException
com.huawei.hms.support.api.client.Status r6 = new com.huawei.hms.support.api.client.Status
int r7 = r18.getErrorCode()
java.lang.String r8 = r18.getErrorReason()
r6.<init>(r7, r8)
r4.<init>(r6)
r0.c(r4)
r14 = r3
r6 = r5
Lbe:
com.huawei.hms.hwid.y r0 = com.huawei.hms.hwid.y.a()
r0.a(r6, r5)
if (r17 == 0) goto Le3
android.content.Context r9 = r17.getContext()
java.lang.String r11 = r16.getTransactionId()
android.content.Context r0 = r17.getContext()
java.lang.String r12 = com.huawei.hms.utils.Util.getAppId(r0)
int r13 = com.huawei.hms.hwid.ar.a(r14)
java.lang.String r10 = "hwid.silentSignIn"
r15 = 61100301(0x3a4510d, float:9.657662E-37)
com.huawei.hms.support.hianalytics.HiAnalyticsClient.reportExit(r9, r10, r11, r12, r13, r14, r15)
Le3:
java.lang.String r0 = "report: api=hwid.silentSignInversion=61100301"
com.huawei.hms.hwid.as.b(r2, r0, r1)
return
*/
throw new UnsupportedOperationException("Method not decompiled: com.huawei.hms.hwid.ac.doExecute(com.huawei.hms.hwid.u, com.huawei.hms.common.internal.ResponseErrorCode, java.lang.String, o.nNj):void");
}
}