正在查看: Releam v2.13.2 应用的 b.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Releam v2.13.2 应用的 b.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package v6;
import a0.w;
import a6.o;
import android.net.TrafficStats;
import android.text.TextUtils;
import android.util.Log;
import androidx.appcompat.widget.a3;
import androidx.appcompat.widget.j3;
import com.google.android.gms.internal.measurement.k3;
import com.google.api.client.http.HttpMethods;
import f4.j;
import f4.s;
import java.io.IOException;
import java.net.URL;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.Iterator;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;
import java.util.regex.Pattern;
import javax.xml.XMLConstants;
import ka.v;
public final class b implements c {
public static final Object f10054m = new Object();
public static final a1.d f10055n = new a1.d(1);
public final v5.g f10056a;
public final x6.c f10057b;
public final a2.c f10058c;
public final g f10059d;
public final o f10060e;
public final f f10061f;
public final Object f10062g;
public final ExecutorService f10063h;
public final ThreadPoolExecutor f10064i;
public String f10065j;
public final HashSet f10066k;
public final ArrayList f10067l;
public b(v5.g gVar, u6.c cVar) {
TimeUnit timeUnit = TimeUnit.SECONDS;
LinkedBlockingQueue linkedBlockingQueue = new LinkedBlockingQueue();
a1.d dVar = f10055n;
ThreadPoolExecutor threadPoolExecutor = new ThreadPoolExecutor(0, 1, 30L, timeUnit, linkedBlockingQueue, dVar);
gVar.a();
x6.c cVar2 = new x6.c(gVar.f10036a, cVar);
a2.c cVar3 = new a2.c(gVar);
g a10 = g.a();
o oVar = new o(new a6.d(gVar, 2));
f fVar = new f();
this.f10062g = new Object();
this.f10066k = new HashSet();
this.f10067l = new ArrayList();
this.f10056a = gVar;
this.f10057b = cVar2;
this.f10058c = cVar3;
this.f10059d = a10;
this.f10060e = oVar;
this.f10061f = fVar;
this.f10063h = threadPoolExecutor;
this.f10064i = new ThreadPoolExecutor(0, 1, 30L, timeUnit, new LinkedBlockingQueue(), dVar);
}
public static b d() {
v5.g b10 = v5.g.b();
b10.a();
return (b) b10.f10039d.a(c.class);
}
public final s a() {
j jVar = new j();
e eVar = new e(jVar);
synchronized (this.f10062g) {
this.f10067l.add(eVar);
}
return jVar.f4656a;
}
public final w6.a b(w6.a aVar) {
Object obj;
String str;
char c10;
boolean z10;
int i10;
int responseCode;
x6.b bVar;
v5.g gVar = this.f10056a;
gVar.a();
String str2 = gVar.f10038c.f10045a;
gVar.a();
String str3 = gVar.f10038c.f10051g;
String str4 = aVar.f10519d;
x6.c cVar = this.f10057b;
x6.e eVar = cVar.f10689c;
if (!eVar.b()) {
throw new d("Firebase Installations Service is unavailable. Please try again later.");
}
char c11 = 2;
?? r11 = 1;
URL a10 = x6.c.a(String.format("projects/%s/installations/%s/authTokens:generate", str3, aVar.f10516a));
int i11 = 0;
?? r22 = str3;
while (i11 <= r11) {
TrafficStats.setThreadStatsTag(32771);
?? c12 = cVar.c(str2, a10);
try {
try {
c12.setRequestMethod(HttpMethods.POST);
c12.addRequestProperty("Authorization", "FIS_v2 " + str4);
c12.setDoOutput(r11);
x6.c.h(c12);
responseCode = c12.getResponseCode();
eVar.d(responseCode);
} catch (Throwable th) {
c12.disconnect();
TrafficStats.clearThreadStatsTag();
throw th;
}
} catch (IOException | AssertionError unused) {
obj = r22;
str = str2;
c10 = c11;
z10 = r11;
i10 = i11;
}
if ((responseCode < 200 || responseCode >= 300) ? false : r11) {
r22 = x6.c.f(c12);
} else {
x6.c.b(c12, null, str2, r22);
if (responseCode == 401 || responseCode == 404) {
try {
i10 = i11;
Long l10 = 0L;
x6.f fVar = x6.f.AUTH_ERROR;
String str5 = l10 == null ? " tokenExpirationTimestamp" : XMLConstants.DEFAULT_NS_PREFIX;
if (str5.isEmpty()) {
obj = r22;
str = str2;
try {
bVar = new x6.b(null, l10.longValue(), fVar);
} catch (IOException | AssertionError unused2) {
c10 = 2;
z10 = true;
c12.disconnect();
TrafficStats.clearThreadStatsTag();
i11 = i10 + 1;
c11 = c10;
r11 = z10;
str2 = str;
r22 = obj;
}
} else {
obj = r22;
str = str2;
c10 = 2;
z10 = true;
try {
throw new IllegalStateException("Missing required properties:".concat(str5));
} catch (IOException | AssertionError unused3) {
continue;
}
}
} catch (IOException | AssertionError unused4) {
obj = r22;
str = str2;
c10 = 2;
z10 = true;
c12.disconnect();
TrafficStats.clearThreadStatsTag();
i11 = i10 + 1;
c11 = c10;
r11 = z10;
str2 = str;
r22 = obj;
}
} else {
if (responseCode == 429) {
throw new d("Firebase servers have received too many requests from this client in a short period of time. Please try again later.");
}
if (responseCode < 500 || responseCode >= 600) {
try {
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.");
Long l11 = 0L;
try {
x6.f fVar2 = x6.f.BAD_CONFIG;
String str6 = l11 != null ? XMLConstants.DEFAULT_NS_PREFIX : " tokenExpirationTimestamp";
if (!str6.isEmpty()) {
throw new IllegalStateException("Missing required properties:".concat(str6));
}
bVar = new x6.b(null, l11.longValue(), fVar2);
} catch (IOException | AssertionError unused5) {
i10 = i11;
obj = r22;
str = str2;
z10 = r11;
}
} catch (IOException | AssertionError unused6) {
i10 = i11;
obj = r22;
str = str2;
c10 = 2;
z10 = true;
c12.disconnect();
TrafficStats.clearThreadStatsTag();
i11 = i10 + 1;
c11 = c10;
r11 = z10;
str2 = str;
r22 = obj;
}
} else {
obj = r22;
str = str2;
z10 = r11;
i10 = i11;
}
c10 = 2;
c12.disconnect();
TrafficStats.clearThreadStatsTag();
i11 = i10 + 1;
c11 = c10;
r11 = z10;
str2 = str;
r22 = obj;
}
r22 = bVar;
}
c12.disconnect();
TrafficStats.clearThreadStatsTag();
int ordinal = r22.f10684c.ordinal();
if (ordinal == 0) {
g gVar2 = this.f10059d;
gVar2.getClass();
TimeUnit timeUnit = TimeUnit.MILLISECONDS;
gVar2.f10074a.getClass();
long seconds = timeUnit.toSeconds(System.currentTimeMillis());
j3 j3Var = new j3(aVar);
j3Var.f674c = r22.f10682a;
j3Var.f676e = Long.valueOf(r22.f10683b);
j3Var.f677f = Long.valueOf(seconds);
return j3Var.a();
}
if (ordinal == 1) {
j3 j3Var2 = new j3(aVar);
j3Var2.f678g = "BAD CONFIG";
j3Var2.b(w6.c.REGISTER_ERROR);
return j3Var2.a();
}
if (ordinal != 2) {
throw new d("Firebase Installations Service is unavailable. Please try again later.");
}
j(null);
j3 j3Var3 = new j3(aVar);
j3Var3.b(w6.c.NOT_GENERATED);
return j3Var3.a();
}
throw new d("Firebase Installations Service is unavailable. Please try again later.");
}
public final s c() {
String str;
v5.g gVar = this.f10056a;
gVar.a();
v.r("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.", gVar.f10038c.f10046b);
v5.g gVar2 = this.f10056a;
gVar2.a();
v.r("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.", gVar2.f10038c.f10051g);
v5.g gVar3 = this.f10056a;
gVar3.a();
v.r("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.", gVar3.f10038c.f10045a);
v5.g gVar4 = this.f10056a;
gVar4.a();
String str2 = gVar4.f10038c.f10046b;
Pattern pattern = g.f10072c;
v.n(str2.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.");
v5.g gVar5 = this.f10056a;
gVar5.a();
v.n(g.f10072c.matcher(gVar5.f10038c.f10045a).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.");
synchronized (this) {
str = this.f10065j;
}
if (str != null) {
return f6.e.p(str);
}
s a10 = a();
this.f10063h.execute(new a3(this, 7));
return a10;
}
public final void e(w6.a aVar) {
synchronized (f10054m) {
v5.g gVar = this.f10056a;
gVar.a();
k3 b10 = k3.b(gVar.f10036a);
try {
this.f10058c.k(aVar);
} finally {
if (b10 != null) {
b10.e();
}
}
}
}
public final java.lang.String f(w6.a r3) {
throw new UnsupportedOperationException("Method not decompiled: v6.b.f(w6.a):java.lang.String");
}
public final w6.a g(w6.a r23) {
throw new UnsupportedOperationException("Method not decompiled: v6.b.g(w6.a):w6.a");
}
public final void h() {
synchronized (this.f10062g) {
Iterator it = this.f10067l.iterator();
while (it.hasNext()) {
((e) it.next()).getClass();
}
}
}
public final void i(w6.a r8) {
throw new UnsupportedOperationException("Method not decompiled: v6.b.i(w6.a):void");
}
public final synchronized void j(String str) {
this.f10065j = str;
}
public final synchronized void k(w6.a aVar, w6.a aVar2) {
if (this.f10066k.size() != 0 && !TextUtils.equals(aVar.f10516a, aVar2.f10516a)) {
Iterator it = this.f10066k.iterator();
if (it.hasNext()) {
w.y(it.next());
throw null;
}
}
}
}