Created
October 15, 2023 12:33
-
-
Save t4kemyh4nd/9247bb35893392b314e1036044ef501d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public final Bundle mo10213a(ury uryVar) { | |
if (((amnn) lcr.f119362bx).mo44601a().booleanValue()) { | |
Object obj = uryVar.f150338c; | |
String[] strArr = f136215d; | |
for (int i = 0; i < 5; i++) { | |
if (!strArr[i].equals(obj)) { | |
} | |
} | |
return null; | |
} | |
if (this.f136218c.mo2912t("PlayInstallService", wtr.f156870h)) { | |
return rgw.m8406bA("install_policy_disabled", null); | |
} | |
if (((amnn) lcr.f119363by).mo44601a().booleanValue() && !this.f136221g.checkSignature((String) uryVar.f150338c)) { // check packagename signature | |
FinskyLog.m32919h("WebAPK service failed Google signature verification.", new Object[0]); | |
return rgw.m8406bA("not_google_signed", null); | |
} else if (!((Bundle) uryVar.f150337b).containsKey("version_number")) { | |
FinskyLog.m32919h("WebAPK service missing version_number.", new Object[0]); | |
return rgw.m8406bA("missing_version_number", null); | |
} else if (!((Bundle) uryVar.f150337b).containsKey("title")) { | |
FinskyLog.m32919h("WebAPK service missing title.", new Object[0]); | |
return rgw.m8406bA("missing_title", null); | |
} else if (!((Bundle) uryVar.f150337b).containsKey("notification_intent")) { | |
FinskyLog.m32919h("WebAPK service missing notification_intent.", new Object[0]); | |
return rgw.m8406bA("missing_notification_intent", null); | |
} else if (!((Bundle) uryVar.f150337b).containsKey("wam_token")) { | |
FinskyLog.m32919h("WebAPK service missing wam_token.", new Object[0]); | |
return rgw.m8406bA("missing_wam_token", null); | |
} else if (TextUtils.isEmpty(uryVar.f150336a)) { | |
FinskyLog.m32919h("WebAPK service missing package name", new Object[0]); | |
return rgw.m8406bA("missing_package_name", null); | |
} else { | |
ivx m23038d = this.f136220f.m23038d(this.f136216a); | |
if (m23038d == null) { | |
FinskyLog.m32919h("WebAPK service unknown_account.", new Object[0]); | |
return rgw.m8406bA("unknown_account", null); | |
} | |
icg m24253a = icg.m24253a(); | |
m23038d.mo23098co((String) uryVar.f150336a, ((Bundle) uryVar.f150337b).getString("wam_token"), m24253a, m24253a); | |
int i2 = 1; | |
try { | |
auvl auvlVar = (auvl) rgw.m8403bD(m24253a, "Unable to resolve WebAPK"); | |
int i3 = auvlVar.f63888d; | |
int m16687A = C0804ky.m16687A(i3); | |
if (m16687A != 0 && m16687A == 2) { | |
this.f136219e.execute(new omt(this, uryVar, auvlVar, 10, (char[]) null)); | |
FinskyLog.m32921f("WebAPK service install success", new Object[0]); | |
return rgw.m8404bC(); | |
} | |
Object[] objArr = new Object[1]; | |
int m16687A2 = C0804ky.m16687A(i3); | |
if (m16687A2 != 0) { | |
i2 = m16687A2; | |
} | |
objArr[0] = Integer.toString(C0804ky.m16648i(i2)); | |
FinskyLog.m32921f("Server returned error resolving WebAPK, status=%s", objArr); | |
return rgw.m8406bA("error_resolving_webapk", null); | |
} catch (VolleyError | InterruptedException e) { | |
FinskyLog.m32923d("Error during WebAPK install: %s", e); | |
return rgw.m8406bA("network_error", e.getClass().getSimpleName()); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment