Live Football Updates v1.0版本的 MD5 值为:95609b5a5bec0a5f5a0b6e8e4d8f1cba
以下内容为反编译后的 e.java 源代码,内容仅作参考
package sd;
import android.annotation.SuppressLint;
import android.net.TrafficStats;
import android.text.TextUtils;
import android.util.Log;
import androidx.lifecycle.r;
import com.google.android.gms.tasks.Task;
import com.google.android.gms.tasks.TaskCompletionSource;
import com.google.android.gms.tasks.Tasks;
import com.ironsource.adapters.ironsource.IronSourceAdapter;
import com.ironsource.ka;
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.concurrent.atomic.AtomicInteger;
import java.util.regex.Pattern;
import org.json.JSONException;
import org.json.JSONObject;
import qc.p;
import rc.o;
import ud.a;
public final class e implements f {
public static final Object f30670m = new Object();
public final hc.e f30671a;
public final vd.c f30672b;
public final ud.c f30673c;
public final m f30674d;
public final p<ud.b> f30675e;
public final k f30676f;
public final Object f30677g;
public final ExecutorService f30678h;
public final Executor i;
public String f30679j;
public final HashSet f30680k;
public final ArrayList f30681l;
static {
new AtomicInteger(1);
}
@SuppressLint({"ThreadPoolCreation"})
public e() {
throw null;
}
@SuppressLint({"ThreadPoolCreation"})
public e(final hc.e eVar, rd.b bVar, ExecutorService executorService, o oVar) {
eVar.a();
vd.c cVar = new vd.c(eVar.f23802a, bVar);
ud.c cVar2 = new ud.c(eVar);
if (r.f2326b == null) {
r.f2326b = new r();
}
r rVar = r.f2326b;
if (m.f30689d == null) {
m.f30689d = new m(rVar);
}
m mVar = m.f30689d;
p<ud.b> pVar = new p<>(new rd.b() {
@Override
public final Object get() {
return new ud.b(hc.e.this);
}
});
k kVar = new k();
this.f30677g = new Object();
this.f30680k = new HashSet();
this.f30681l = new ArrayList();
this.f30671a = eVar;
this.f30672b = cVar;
this.f30673c = cVar2;
this.f30674d = mVar;
this.f30675e = pVar;
this.f30676f = kVar;
this.f30678h = executorService;
this.i = oVar;
}
public final void a(l lVar) {
synchronized (this.f30677g) {
this.f30681l.add(lVar);
}
}
public final void b(final boolean z10) {
ud.a c10;
synchronized (f30670m) {
hc.e eVar = this.f30671a;
eVar.a();
androidx.appcompat.widget.m b10 = androidx.appcompat.widget.m.b(eVar.f23802a);
c10 = this.f30673c.c();
int i = c10.f31676c;
boolean z11 = true;
if (i != 2 && i != 1) {
z11 = false;
}
if (b10 != null) {
b10.h();
}
}
if (z10) {
a.C0409a c0409a = new a.C0409a(c10);
c0409a.f31684c = null;
c10 = c0409a.a();
}
i(c10);
this.i.execute(new Runnable() {
@Override
public final void run() {
ud.a c11;
boolean z12;
ud.a g10;
boolean z13;
boolean z14;
boolean z15;
e eVar2 = e.this;
boolean z16 = z10;
eVar2.getClass();
synchronized (e.f30670m) {
hc.e eVar3 = eVar2.f30671a;
eVar3.a();
androidx.appcompat.widget.m b11 = androidx.appcompat.widget.m.b(eVar3.f23802a);
c11 = eVar2.f30673c.c();
if (b11 != null) {
b11.h();
}
}
try {
boolean z17 = true;
if (c11.f() == 5) {
z12 = true;
} else {
z12 = false;
}
if (!z12) {
if (c11.f() == 3) {
z15 = true;
} else {
z15 = false;
}
if (!z15) {
if (!z16 && !eVar2.f30674d.a(c11)) {
return;
}
g10 = eVar2.c(c11);
eVar2.d(g10);
eVar2.k(c11, g10);
if (g10.f() != 4) {
z13 = true;
} else {
z13 = false;
}
if (z13) {
eVar2.j(g10.f31675b);
}
if (g10.f() != 5) {
z14 = true;
} else {
z14 = false;
}
if (!z14) {
eVar2.h(new g());
return;
}
int i10 = g10.f31676c;
if (i10 != 2 && i10 != 1) {
z17 = false;
}
if (z17) {
eVar2.h(new IOException("Installation ID could not be validated with the Firebase servers (maybe it was deleted). Firebase Installations will need to create a new Installation ID and auth token. Please retry your last request."));
return;
} else {
eVar2.i(g10);
return;
}
}
}
g10 = eVar2.g(c11);
eVar2.d(g10);
eVar2.k(c11, g10);
if (g10.f() != 4) {
}
if (z13) {
}
if (g10.f() != 5) {
}
if (!z14) {
}
} catch (g e10) {
eVar2.h(e10);
}
}
});
}
public final ud.a c(ud.a aVar) throws g {
String str;
char c10;
String str2;
boolean z10;
int responseCode;
boolean z11;
String str3;
String str4;
hc.e eVar = this.f30671a;
eVar.a();
String str5 = eVar.f23804c.f23813a;
eVar.a();
String str6 = eVar.f23804c.f23819g;
String str7 = aVar.f31678e;
vd.c cVar = this.f30672b;
vd.e eVar2 = cVar.f31991c;
String str8 = "Firebase Installations Service is unavailable. Please try again later.";
if (eVar2.b()) {
char c11 = 2;
?? r11 = 1;
URL a10 = vd.c.a(String.format("projects/%s/installations/%s/authTokens:generate", str6, aVar.f31675b));
int i = 0;
vd.b bVar = str6;
while (i <= r11) {
TrafficStats.setThreadStatsTag(32771);
HttpURLConnection c12 = cVar.c(a10, str5);
try {
try {
c12.setRequestMethod(ka.f18788b);
c12.addRequestProperty("Authorization", "FIS_v2 " + str7);
c12.setDoOutput(r11);
vd.c.h(c12);
responseCode = c12.getResponseCode();
eVar2.d(responseCode);
if (responseCode >= 200 && responseCode < 300) {
z11 = r11;
} else {
z11 = false;
}
} catch (IOException | AssertionError unused) {
c10 = c11;
str2 = str8;
z10 = r11;
}
if (z11) {
bVar = vd.c.f(c12);
str = str8;
} else {
vd.c.b(c12, null, str5, bVar);
if (responseCode != 401 && responseCode != 404) {
if (responseCode != 429) {
if (responseCode >= 500 && responseCode < 600) {
c10 = c11;
str2 = str8;
z10 = true;
c12.disconnect();
TrafficStats.clearThreadStatsTag();
i++;
r11 = z10;
c11 = c10;
str8 = str2;
bVar = bVar;
} else {
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 l10 = 0L;
if (l10 == null) {
str4 = " tokenExpirationTimestamp";
} else {
str4 = "";
}
if (str4.isEmpty()) {
str = str8;
bVar = new vd.b(null, l10.longValue(), 2);
} else {
throw new IllegalStateException("Missing required properties:".concat(str4));
}
} catch (IOException | AssertionError unused2) {
str = str8;
str2 = str;
z10 = true;
c10 = 2;
c12.disconnect();
TrafficStats.clearThreadStatsTag();
i++;
r11 = z10;
c11 = c10;
str8 = str2;
bVar = bVar;
}
}
} else {
throw new g("Firebase servers have received too many requests from this client in a short period of time. Please try again later.");
}
} else {
try {
str = str8;
Long l11 = 0L;
if (l11 == null) {
str3 = " tokenExpirationTimestamp";
} else {
str3 = "";
}
if (str3.isEmpty()) {
bVar = new vd.b(null, l11.longValue(), 3);
} else {
str2 = str;
z10 = true;
c10 = 2;
try {
throw new IllegalStateException("Missing required properties:".concat(str3));
break;
} catch (IOException | AssertionError unused3) {
continue;
}
}
} catch (IOException | AssertionError unused4) {
str2 = str;
z10 = true;
c10 = 2;
c12.disconnect();
TrafficStats.clearThreadStatsTag();
i++;
r11 = z10;
c11 = c10;
str8 = str2;
bVar = bVar;
}
}
}
c12.disconnect();
TrafficStats.clearThreadStatsTag();
int b10 = x.g.b(bVar.f31986c);
if (b10 != 0) {
if (b10 != 1) {
if (b10 == 2) {
j(null);
a.C0409a c0409a = new a.C0409a(aVar);
c0409a.b(2);
return c0409a.a();
}
throw new g(str);
}
a.C0409a h10 = aVar.h();
h10.f31688g = "BAD CONFIG";
h10.b(5);
return h10.a();
}
m mVar = this.f30674d;
mVar.getClass();
TimeUnit timeUnit = TimeUnit.MILLISECONDS;
mVar.f30690a.getClass();
long seconds = timeUnit.toSeconds(System.currentTimeMillis());
a.C0409a c0409a2 = new a.C0409a(aVar);
c0409a2.f31684c = bVar.f31984a;
c0409a2.f31686e = Long.valueOf(bVar.f31985b);
c0409a2.f31687f = Long.valueOf(seconds);
return c0409a2.a();
} catch (Throwable th2) {
c12.disconnect();
TrafficStats.clearThreadStatsTag();
throw th2;
}
}
throw new g(str8);
}
throw new g("Firebase Installations Service is unavailable. Please try again later.");
}
public final void d(ud.a aVar) {
synchronized (f30670m) {
hc.e eVar = this.f30671a;
eVar.a();
androidx.appcompat.widget.m b10 = androidx.appcompat.widget.m.b(eVar.f23802a);
this.f30673c.b(aVar);
if (b10 != null) {
b10.h();
}
}
}
public final void e() {
hc.e eVar = this.f30671a;
eVar.a();
x9.l.g("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.", eVar.f23804c.f23814b);
eVar.a();
x9.l.g("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.", eVar.f23804c.f23819g);
eVar.a();
x9.l.g("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.", eVar.f23804c.f23813a);
eVar.a();
String str = eVar.f23804c.f23814b;
Pattern pattern = m.f30688c;
x9.l.a("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.", str.contains(":"));
eVar.a();
x9.l.a("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.", m.f30688c.matcher(eVar.f23804c.f23813a).matches());
}
public final String f(ud.a aVar) {
String a10;
hc.e eVar = this.f30671a;
eVar.a();
if (!eVar.f23803b.equals("CHIME_ANDROID_SDK")) {
hc.e eVar2 = this.f30671a;
eVar2.a();
}
boolean z10 = true;
if (aVar.f31676c != 1) {
z10 = false;
}
if (z10) {
ud.b bVar = this.f30675e.get();
synchronized (bVar.f31690a) {
a10 = bVar.a();
if (a10 == null) {
a10 = bVar.b();
}
}
if (TextUtils.isEmpty(a10)) {
this.f30676f.getClass();
return k.a();
}
return a10;
}
this.f30676f.getClass();
return k.a();
}
public final ud.a g(ud.a aVar) throws g {
int responseCode;
boolean z10;
vd.a e10;
String str = aVar.f31675b;
String str2 = null;
if (str != null && str.length() == 11) {
ud.b bVar = this.f30675e.get();
synchronized (bVar.f31690a) {
String[] strArr = ud.b.f31689c;
int i = 0;
while (true) {
if (i >= 4) {
break;
}
String str3 = strArr[i];
String string = bVar.f31690a.getString("|T|" + bVar.f31691b + "|" + str3, null);
if (string != null && !string.isEmpty()) {
if (string.startsWith("{")) {
try {
str2 = new JSONObject(string).getString(IronSourceAdapter.IRONSOURCE_BIDDING_TOKEN_KEY);
} catch (JSONException unused) {
}
} else {
str2 = string;
}
} else {
i++;
}
}
}
}
vd.c cVar = this.f30672b;
hc.e eVar = this.f30671a;
eVar.a();
String str4 = eVar.f23804c.f23813a;
String str5 = aVar.f31675b;
hc.e eVar2 = this.f30671a;
eVar2.a();
String str6 = eVar2.f23804c.f23819g;
hc.e eVar3 = this.f30671a;
eVar3.a();
String str7 = eVar3.f23804c.f23814b;
vd.e eVar4 = cVar.f31991c;
if (eVar4.b()) {
URL a10 = vd.c.a(String.format("projects/%s/installations", str6));
for (int i10 = 0; i10 <= 1; i10++) {
TrafficStats.setThreadStatsTag(32769);
HttpURLConnection c10 = cVar.c(a10, str4);
try {
try {
c10.setRequestMethod(ka.f18788b);
c10.setDoOutput(true);
if (str2 != null) {
c10.addRequestProperty("x-goog-fis-android-iid-migration-auth", str2);
}
vd.c.g(c10, str5, str7);
responseCode = c10.getResponseCode();
eVar4.d(responseCode);
if (responseCode >= 200 && responseCode < 300) {
z10 = true;
} else {
z10 = false;
}
} finally {
c10.disconnect();
TrafficStats.clearThreadStatsTag();
}
} catch (IOException | AssertionError unused2) {
}
if (z10) {
e10 = vd.c.e(c10);
c10.disconnect();
TrafficStats.clearThreadStatsTag();
} else {
vd.c.b(c10, str7, str4, str6);
if (responseCode != 429) {
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.");
vd.a aVar2 = new vd.a(null, null, null, null, 2);
c10.disconnect();
TrafficStats.clearThreadStatsTag();
e10 = aVar2;
} catch (IOException | AssertionError unused3) {
}
}
c10.disconnect();
TrafficStats.clearThreadStatsTag();
} else {
throw new g("Firebase servers have received too many requests from this client in a short period of time. Please try again later.");
}
}
int b10 = x.g.b(e10.f31983e);
if (b10 != 0) {
if (b10 == 1) {
a.C0409a h10 = aVar.h();
h10.f31688g = "BAD CONFIG";
h10.b(5);
return h10.a();
}
throw new g("Firebase Installations Service is unavailable. Please try again later.");
}
String str8 = e10.f31980b;
String str9 = e10.f31981c;
m mVar = this.f30674d;
mVar.getClass();
TimeUnit timeUnit = TimeUnit.MILLISECONDS;
mVar.f30690a.getClass();
long seconds = timeUnit.toSeconds(System.currentTimeMillis());
String b11 = e10.f31982d.b();
long c11 = e10.f31982d.c();
a.C0409a c0409a = new a.C0409a(aVar);
c0409a.f31682a = str8;
c0409a.b(4);
c0409a.f31684c = b11;
c0409a.f31685d = str9;
c0409a.f31686e = Long.valueOf(c11);
c0409a.f31687f = Long.valueOf(seconds);
return c0409a.a();
}
throw new g("Firebase Installations Service is unavailable. Please try again later.");
}
throw new g("Firebase Installations Service is unavailable. Please try again later.");
}
@Override
public final Task<String> getId() {
String str;
e();
synchronized (this) {
str = this.f30679j;
}
if (str != null) {
return Tasks.forResult(str);
}
TaskCompletionSource taskCompletionSource = new TaskCompletionSource();
a(new i(taskCompletionSource));
Task<String> task = taskCompletionSource.getTask();
this.f30678h.execute(new e.d(16, this));
return task;
}
@Override
public final Task getToken() {
e();
TaskCompletionSource taskCompletionSource = new TaskCompletionSource();
a(new h(this.f30674d, taskCompletionSource));
Task task = taskCompletionSource.getTask();
this.f30678h.execute(new Runnable() {
public final boolean f30669b = false;
@Override
public final void run() {
e.this.b(this.f30669b);
}
});
return task;
}
public final void h(Exception exc) {
synchronized (this.f30677g) {
Iterator it = this.f30681l.iterator();
while (it.hasNext()) {
if (((l) it.next()).a(exc)) {
it.remove();
}
}
}
}
public final void i(ud.a aVar) {
synchronized (this.f30677g) {
Iterator it = this.f30681l.iterator();
while (it.hasNext()) {
if (((l) it.next()).b(aVar)) {
it.remove();
}
}
}
}
public final synchronized void j(String str) {
this.f30679j = str;
}
public final synchronized void k(ud.a aVar, ud.a aVar2) {
if (this.f30680k.size() != 0 && !TextUtils.equals(aVar.f31675b, aVar2.f31675b)) {
Iterator it = this.f30680k.iterator();
while (it.hasNext()) {
((td.a) it.next()).a();
}
}
}
}