正在查看: Simple Préstamo v2.1.4 应用的 g.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Simple Préstamo v2.1.4 应用的 g.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package K2;
import N1.t;
import android.net.TrafficStats;
import android.text.TextUtils;
import android.util.Log;
import java.io.IOException;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.Iterator;
import java.util.concurrent.Executor;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.TimeUnit;
import java.util.regex.Pattern;
import m1.C1005l;
import org.json.JSONException;
import org.json.JSONObject;
public final class g implements h {
public static final Object f1637m = new Object();
public final t2.f f1638a;
public final M2.e f1639b;
public final A.k f1640c;
public final q f1641d;
public final y2.n f1642e;
public final o f1643f;
public final Object f1644g;
public final ExecutorService f1645h;
public final Executor f1646i;
public String f1647j;
public final HashSet f1648k;
public final ArrayList f1649l;
static {
new e();
}
public g(t2.f fVar, J2.a aVar, ExecutorService executorService, z2.j jVar) {
Object[] objArr = 0;
fVar.a();
M2.e eVar = new M2.e(fVar.f11738a, aVar);
A.k kVar = new A.k(16, (Object) fVar, false);
Pattern pattern = q.f1657c;
N2.a a4 = N2.a.a();
if (q.f1658d == null) {
q.f1658d = new q(a4);
}
q qVar = q.f1658d;
y2.n nVar = new y2.n(new c(objArr == true ? 1 : 0, fVar));
o oVar = new o();
this.f1644g = new Object();
this.f1648k = new HashSet();
this.f1649l = new ArrayList();
this.f1638a = fVar;
this.f1639b = eVar;
this.f1640c = kVar;
this.f1641d = qVar;
this.f1642e = nVar;
this.f1643f = oVar;
this.f1645h = executorService;
this.f1646i = jVar;
}
public final void a(p pVar) {
synchronized (this.f1644g) {
this.f1649l.add(pVar);
}
}
public final void b() {
L2.f F3;
synchronized (f1637m) {
try {
t2.f fVar = this.f1638a;
fVar.a();
A.k n4 = A.k.n(fVar.f11738a);
try {
F3 = this.f1640c.F();
if (F3.f() == L2.d.NOT_GENERATED || F3.f() == L2.d.ATTEMPT_MIGRATION) {
String h4 = h(F3);
A.k kVar = this.f1640c;
L2.a h5 = F3.h();
h5.f1671a = h4;
h5.c(L2.d.UNREGISTERED);
F3 = h5.a();
kVar.C(F3);
}
if (n4 != null) {
n4.H();
}
} catch (Throwable th) {
if (n4 != null) {
n4.H();
}
throw th;
}
} catch (Throwable th2) {
throw th2;
}
}
k(F3);
this.f1646i.execute(new C.b(this));
}
public final L2.f c(L2.f fVar) {
int responseCode;
Object f4;
t2.f fVar2 = this.f1638a;
fVar2.a();
String str = fVar2.f11740c.f11747a;
String c4 = fVar.c();
fVar2.a();
String str2 = fVar2.f11740c.f11753g;
String e4 = fVar.e();
M2.e eVar = this.f1639b;
M2.i iVar = eVar.f1748c;
if (!iVar.b()) {
throw new j("Firebase Installations Service is unavailable. Please try again later.", i.UNAVAILABLE);
}
URL a4 = M2.e.a("projects/" + str2 + "/installations/" + c4 + "/authTokens:generate");
for (int i4 = 0; i4 <= 1; i4++) {
TrafficStats.setThreadStatsTag(32771);
HttpURLConnection c5 = eVar.c(a4, str);
try {
try {
c5.setRequestMethod("POST");
c5.addRequestProperty("Authorization", "FIS_v2 " + e4);
c5.setDoOutput(true);
M2.e.h(c5);
responseCode = c5.getResponseCode();
iVar.d(responseCode);
} catch (Throwable th) {
c5.disconnect();
TrafficStats.clearThreadStatsTag();
throw th;
}
} catch (IOException | AssertionError unused) {
}
if (responseCode >= 200 && responseCode < 300) {
f4 = M2.e.f(c5);
} else {
M2.e.b(c5, null, str, str2);
if (responseCode == 401 || responseCode == 404) {
M2.c a5 = M2.l.a();
a5.f1740c = M2.k.AUTH_ERROR;
f4 = a5.a();
} else {
if (responseCode == 429) {
throw new j("Firebase servers have received too many requests from this client in a short period of time. Please try again later.", i.TOO_MANY_REQUESTS);
}
if (responseCode < 500 || responseCode >= 600) {
Log.e("Firebase-Installations", "Firebase Installations can not communicate with Firebase server APIs due to invalid configuration. Please update your Firebase initialization process and set valid Firebase options (API key, Project ID, Application ID) when initializing Firebase.");
M2.c a6 = M2.l.a();
a6.f1740c = M2.k.BAD_CONFIG;
f4 = a6.a();
}
c5.disconnect();
TrafficStats.clearThreadStatsTag();
}
}
c5.disconnect();
TrafficStats.clearThreadStatsTag();
M2.d dVar = (M2.d) f4;
int i5 = f.f1636b[dVar.f1743c.ordinal()];
if (i5 == 1) {
q qVar = this.f1641d;
qVar.getClass();
TimeUnit timeUnit = TimeUnit.MILLISECONDS;
qVar.f1659a.getClass();
long seconds = timeUnit.toSeconds(System.currentTimeMillis());
L2.a h4 = fVar.h();
h4.f1673c = dVar.f1741a;
h4.f1675e = Long.valueOf(dVar.f1742b);
h4.f1676f = Long.valueOf(seconds);
return h4.a();
}
if (i5 == 2) {
L2.a h5 = fVar.h();
h5.f1677g = "BAD CONFIG";
h5.c(L2.d.REGISTER_ERROR);
return h5.a();
}
if (i5 != 3) {
throw new j("Firebase Installations Service is unavailable. Please try again later.", i.UNAVAILABLE);
}
l(null);
L2.a h6 = fVar.h();
h6.c(L2.d.NOT_GENERATED);
return h6.a();
}
throw new j("Firebase Installations Service is unavailable. Please try again later.", i.UNAVAILABLE);
}
public final t d() {
String str;
g();
synchronized (this) {
str = this.f1647j;
}
if (str != null) {
return N1.l.d(str);
}
N1.j jVar = new N1.j();
a(new l(jVar));
t tVar = jVar.f1869a;
this.f1645h.execute(new d(this, 0));
return tVar;
}
public final t e() {
g();
N1.j jVar = new N1.j();
a(new k(this.f1641d, jVar));
this.f1645h.execute(new d(this, 1));
return jVar.f1869a;
}
public final void f(L2.f fVar) {
synchronized (f1637m) {
try {
t2.f fVar2 = this.f1638a;
fVar2.a();
A.k n4 = A.k.n(fVar2.f11738a);
try {
this.f1640c.C(fVar);
if (n4 != null) {
n4.H();
}
} catch (Throwable th) {
if (n4 != null) {
n4.H();
}
throw th;
}
} catch (Throwable th2) {
throw th2;
}
}
}
public final void g() {
t2.f fVar = this.f1638a;
fVar.a();
C1005l.f(fVar.f11740c.f11748b, "Please set your Application ID. A valid Firebase App ID is required to communicate with Firebase server APIs: It identifies your application with Firebase.Please refer to https://firebase.google.com/support/privacy/init-options.");
fVar.a();
C1005l.f(fVar.f11740c.f11753g, "Please set your Project ID. A valid Firebase Project ID is required to communicate with Firebase server APIs: It identifies your application with Firebase.Please refer to https://firebase.google.com/support/privacy/init-options.");
fVar.a();
C1005l.f(fVar.f11740c.f11747a, "Please set a valid API key. A Firebase API key is required to communicate with Firebase server APIs: It authenticates your project with Google.Please refer to https://firebase.google.com/support/privacy/init-options.");
fVar.a();
String str = fVar.f11740c.f11748b;
Pattern pattern = q.f1657c;
C1005l.b(str.contains(":"), "Please set your Application ID. A valid Firebase App ID is required to communicate with Firebase server APIs: It identifies your application with Firebase.Please refer to https://firebase.google.com/support/privacy/init-options.");
fVar.a();
C1005l.b(q.f1657c.matcher(fVar.f11740c.f11747a).matches(), "Please set a valid API key. A Firebase API key is required to communicate with Firebase server APIs: It authenticates your project with Google.Please refer to https://firebase.google.com/support/privacy/init-options.");
}
public final java.lang.String h(L2.f r3) {
throw new UnsupportedOperationException("Method not decompiled: K2.g.h(L2.f):java.lang.String");
}
public final L2.f i(L2.f fVar) {
int responseCode;
M2.h hVar;
String str = null;
if (fVar.c() != null && fVar.c().length() == 11) {
L2.c cVar = (L2.c) this.f1642e.get();
synchronized (cVar.f1686a) {
try {
String[] strArr = L2.c.f1685c;
int i4 = 0;
while (true) {
if (i4 < 4) {
String str2 = strArr[i4];
String string = cVar.f1686a.getString("|T|" + cVar.f1687b + "|" + str2, null);
if (string == null || string.isEmpty()) {
i4++;
} else if (string.startsWith("{")) {
try {
str = new JSONObject(string).getString("token");
} catch (JSONException unused) {
}
} else {
str = string;
}
}
}
} finally {
}
}
}
M2.e eVar = this.f1639b;
t2.f fVar2 = this.f1638a;
fVar2.a();
String str3 = fVar2.f11740c.f11747a;
String c4 = fVar.c();
t2.f fVar3 = this.f1638a;
fVar3.a();
String str4 = fVar3.f11740c.f11753g;
t2.f fVar4 = this.f1638a;
fVar4.a();
String str5 = fVar4.f11740c.f11748b;
M2.i iVar = eVar.f1748c;
if (!iVar.b()) {
throw new j("Firebase Installations Service is unavailable. Please try again later.", i.UNAVAILABLE);
}
URL a4 = M2.e.a("projects/" + str4 + "/installations");
for (int i5 = 0; i5 <= 1; i5++) {
TrafficStats.setThreadStatsTag(32769);
HttpURLConnection c5 = eVar.c(a4, str3);
try {
try {
c5.setRequestMethod("POST");
c5.setDoOutput(true);
if (str != null) {
c5.addRequestProperty("x-goog-fis-android-iid-migration-auth", str);
}
M2.e.g(c5, c4, str5);
responseCode = c5.getResponseCode();
iVar.d(responseCode);
} catch (IOException | AssertionError unused2) {
}
if (responseCode < 200 || responseCode >= 300) {
M2.e.b(c5, str5, str3, str4);
if (responseCode == 429) {
throw new j("Firebase servers have received too many requests from this client in a short period of time. Please try again later.", i.TOO_MANY_REQUESTS);
}
if (responseCode < 500 || responseCode >= 600) {
Log.e("Firebase-Installations", "Firebase Installations can not communicate with Firebase server APIs due to invalid configuration. Please update your Firebase initialization process and set valid Firebase options (API key, Project ID, Application ID) when initializing Firebase.");
M2.a aVar = new M2.a();
M2.b bVar = new M2.b(aVar.f1729a, aVar.f1730b, aVar.f1731c, aVar.f1732d, M2.g.BAD_CONFIG);
c5.disconnect();
TrafficStats.clearThreadStatsTag();
hVar = bVar;
}
c5.disconnect();
TrafficStats.clearThreadStatsTag();
} else {
hVar = M2.e.e(c5);
c5.disconnect();
TrafficStats.clearThreadStatsTag();
}
M2.b bVar2 = (M2.b) hVar;
int i6 = f.f1635a[bVar2.f1737e.ordinal()];
if (i6 != 1) {
if (i6 != 2) {
throw new j("Firebase Installations Service is unavailable. Please try again later.", i.UNAVAILABLE);
}
L2.a h4 = fVar.h();
h4.f1677g = "BAD CONFIG";
h4.c(L2.d.REGISTER_ERROR);
return h4.a();
}
String str6 = bVar2.f1734b;
String str7 = bVar2.f1735c;
q qVar = this.f1641d;
qVar.getClass();
TimeUnit timeUnit = TimeUnit.MILLISECONDS;
qVar.f1659a.getClass();
long seconds = timeUnit.toSeconds(System.currentTimeMillis());
String c6 = bVar2.f1736d.c();
long d4 = bVar2.f1736d.d();
L2.a h5 = fVar.h();
h5.f1671a = str6;
h5.c(L2.d.REGISTERED);
h5.f1673c = c6;
h5.f1674d = str7;
h5.f1675e = Long.valueOf(d4);
h5.f1676f = Long.valueOf(seconds);
return h5.a();
} finally {
c5.disconnect();
TrafficStats.clearThreadStatsTag();
}
}
throw new j("Firebase Installations Service is unavailable. Please try again later.", i.UNAVAILABLE);
}
public final void j(Exception exc) {
synchronized (this.f1644g) {
try {
Iterator it = this.f1649l.iterator();
while (it.hasNext()) {
if (((p) it.next()).b(exc)) {
it.remove();
}
}
} catch (Throwable th) {
throw th;
}
}
}
public final void k(L2.f fVar) {
synchronized (this.f1644g) {
try {
Iterator it = this.f1649l.iterator();
while (it.hasNext()) {
if (((p) it.next()).a(fVar)) {
it.remove();
}
}
} catch (Throwable th) {
throw th;
}
}
}
public final synchronized void l(String str) {
this.f1647j = str;
}
public final synchronized void m(L2.f fVar, L2.f fVar2) {
if (this.f1648k.size() != 0 && !TextUtils.equals(fVar.c(), fVar2.c())) {
Iterator it = this.f1648k.iterator();
if (it.hasNext()) {
B0.f.I(it.next());
throw null;
}
}
}
}