Live Football Updates v1.0.1版本的 MD5 值为:636649089335ebb37514551724606ad0
以下内容为反编译后的 j5.java 源代码,内容仅作参考
package pa;
import android.app.Activity;
import android.app.Application;
import android.content.Context;
import android.content.SharedPreferences;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.os.Build;
import android.os.Bundle;
import android.os.Parcel;
import android.os.Parcelable;
import android.os.RemoteException;
import android.os.SystemClock;
import android.text.TextUtils;
import android.util.Pair;
import com.google.android.gms.ads.identifier.AdvertisingIdClient;
import com.google.android.gms.internal.measurement.f9;
import com.google.android.gms.internal.measurement.jb;
import com.google.android.gms.internal.measurement.kb;
import com.google.android.gms.internal.measurement.ta;
import com.google.android.gms.internal.measurement.ua;
import com.google.android.gms.internal.measurement.wa;
import com.google.android.gms.internal.measurement.xa;
import com.google.android.gms.internal.measurement.xc;
import com.google.android.gms.measurement.internal.AppMeasurementDynamiteService;
import com.ironsource.q2;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
import java.util.Locale;
import java.util.concurrent.CopyOnWriteArraySet;
import java.util.concurrent.atomic.AtomicLong;
import java.util.concurrent.atomic.AtomicReference;
public final class j5 extends e3 {
public i5 f28828d;
public u1.r f28829e;
public final CopyOnWriteArraySet f28830f;
public boolean f28831g;
public final AtomicReference f28832h;
public final Object i;
public s4 f28833j;
public final AtomicLong f28834k;
public long f28835l;
public final l7 f28836m;
public boolean f28837n;
public final a6.b f28838o;
public j5(b4 b4Var) {
super(b4Var);
this.f28830f = new CopyOnWriteArraySet();
this.i = new Object();
this.f28837n = true;
this.f28838o = new a6.b(this);
this.f28832h = new AtomicReference();
this.f28833j = s4.f29132c;
this.f28835l = -1L;
this.f28834k = new AtomicLong(0L);
this.f28836m = new l7(b4Var);
}
public static void C(j5 j5Var, s4 s4Var, s4 s4Var2) {
boolean z10;
r4 r4Var = r4.ANALYTICS_STORAGE;
r4 r4Var2 = r4.AD_STORAGE;
r4[] r4VarArr = {r4Var, r4Var2};
int i = 0;
while (true) {
if (i < 2) {
r4 r4Var3 = r4VarArr[i];
if (!s4Var2.f(r4Var3) && s4Var.f(r4Var3)) {
z10 = true;
break;
}
i++;
} else {
z10 = false;
break;
}
}
boolean g10 = s4Var.g(s4Var2, r4Var, r4Var2);
if (!z10 && !g10) {
return;
}
((b4) j5Var.f27031b).l().n();
}
public static void D(j5 j5Var, s4 s4Var, long j4, boolean z10, boolean z11) {
boolean z12;
j5Var.c();
j5Var.e();
b4 b4Var = (b4) j5Var.f27031b;
m3 m3Var = b4Var.f28615h;
b4.e(m3Var);
s4 l10 = m3Var.l();
if (j4 <= j5Var.f28835l) {
if (l10.f29134b <= s4Var.f29134b) {
z12 = true;
} else {
z12 = false;
}
if (z12) {
y2 y2Var = b4Var.i;
b4.g(y2Var);
y2Var.f29247m.b(s4Var, "Dropped out-of-date consent setting, proposed settings");
return;
}
}
m3 m3Var2 = b4Var.f28615h;
b4.e(m3Var2);
m3Var2.c();
int i = s4Var.f29134b;
if (m3Var2.t(i)) {
SharedPreferences.Editor edit = m3Var2.j().edit();
edit.putString("consent_settings", s4Var.e());
edit.putInt("consent_source", i);
edit.apply();
j5Var.f28835l = j4;
f6 r10 = b4Var.r();
r10.c();
r10.e();
if (z10) {
Object obj = r10.f27031b;
((b4) obj).getClass();
((b4) obj).n().k();
}
if (r10.n()) {
r10.v(new u9.n(r10, 4, r10.p(false)));
}
if (z11) {
b4Var.r().z(new AtomicReference());
return;
}
return;
}
y2 y2Var2 = b4Var.i;
b4.g(y2Var2);
y2Var2.f29247m.b(Integer.valueOf(s4Var.f29134b), "Lower precedence consent source ignored, proposed source");
}
public final void A(Boolean bool, boolean z10) {
c();
e();
b4 b4Var = (b4) this.f27031b;
y2 y2Var = b4Var.i;
b4.g(y2Var);
y2Var.f29248n.b(bool, "Setting app measurement enabled (FE)");
m3 m3Var = b4Var.f28615h;
b4.e(m3Var);
m3Var.o(bool);
if (z10) {
m3 m3Var2 = b4Var.f28615h;
b4.e(m3Var2);
m3Var2.c();
SharedPreferences.Editor edit = m3Var2.j().edit();
if (bool != null) {
edit.putBoolean("measurement_enabled_from_api", bool.booleanValue());
} else {
edit.remove("measurement_enabled_from_api");
}
edit.apply();
}
a4 a4Var = b4Var.f28616j;
b4.g(a4Var);
a4Var.c();
if (!b4Var.D && (bool == null || bool.booleanValue())) {
return;
}
B();
}
public final void B() {
long j4;
c();
b4 b4Var = (b4) this.f27031b;
m3 m3Var = b4Var.f28615h;
b4.e(m3Var);
String a10 = m3Var.f28968m.a();
if (a10 != null) {
if ("unset".equals(a10)) {
b4Var.f28620n.getClass();
z(System.currentTimeMillis(), null, "app", "_npa");
} else {
if (true != com.ironsource.mediationsdk.metadata.a.f19345g.equals(a10)) {
j4 = 0;
} else {
j4 = 1;
}
Long valueOf = Long.valueOf(j4);
b4Var.f28620n.getClass();
z(System.currentTimeMillis(), valueOf, "app", "_npa");
}
}
if (b4Var.b() && this.f28837n) {
y2 y2Var = b4Var.i;
b4.g(y2Var);
y2Var.f29248n.a("Recording app launch after enabling measurement for the first time (FE)");
E();
((kb) jb.f16414b.f16415a.zza()).zza();
if (b4Var.f28614g.p(null, m2.f0)) {
r6 r6Var = b4Var.f28617k;
b4.f(r6Var);
r6Var.f29123f.a();
}
a4 a4Var = b4Var.f28616j;
b4.g(a4Var);
a4Var.o(new u9.v(1, this));
return;
}
y2 y2Var2 = b4Var.i;
b4.g(y2Var2);
y2Var2.f29248n.a("Updating Scion state (FE)");
f6 r10 = b4Var.r();
r10.c();
r10.e();
r10.v(new i4(r10, 4, r10.p(true)));
}
public final void E() {
c();
e();
b4 b4Var = (b4) this.f27031b;
if (b4Var.c()) {
if (b4Var.f28614g.p(null, m2.Z)) {
f fVar = b4Var.f28614g;
((b4) fVar.f27031b).getClass();
Boolean o10 = fVar.o("google_analytics_deferred_deep_link_enabled");
if (o10 != null && o10.booleanValue()) {
y2 y2Var = b4Var.i;
b4.g(y2Var);
y2Var.f29248n.a("Deferred Deep Link feature enabled.");
a4 a4Var = b4Var.f28616j;
b4.g(a4Var);
a4Var.o(new Runnable() {
@Override
public final void run() {
Pair pair;
boolean z10;
NetworkInfo activeNetworkInfo;
URL url;
j5 j5Var = j5.this;
j5Var.c();
b4 b4Var2 = (b4) j5Var.f27031b;
m3 m3Var = b4Var2.f28615h;
b4.e(m3Var);
if (!m3Var.f28974s.b()) {
m3 m3Var2 = b4Var2.f28615h;
b4.e(m3Var2);
long a10 = m3Var2.t.a();
m3 m3Var3 = b4Var2.f28615h;
b4.e(m3Var3);
m3Var3.t.b(1 + a10);
b4Var2.getClass();
if (a10 >= 5) {
y2 y2Var2 = b4Var2.i;
b4.g(y2Var2);
y2Var2.f29244j.a("Permanently failed to retrieve Deferred Deep Link. Reached maximum retries.");
m3 m3Var4 = b4Var2.f28615h;
b4.e(m3Var4);
m3Var4.f28974s.a(true);
return;
}
a4 a4Var2 = b4Var2.f28616j;
b4.g(a4Var2);
a4Var2.c();
n5 n5Var = b4Var2.f28624r;
b4.g(n5Var);
b4.g(n5Var);
String k10 = b4Var2.l().k();
m3 m3Var5 = b4Var2.f28615h;
b4.e(m3Var5);
m3Var5.c();
((xa) wa.f16665b.f16666a.zza()).zza();
Object obj = m3Var5.f27031b;
b4 b4Var3 = (b4) obj;
if (b4Var3.f28614g.p(null, m2.B0) && !m3Var5.l().f(r4.AD_STORAGE)) {
pair = new Pair("", Boolean.FALSE);
} else {
b4Var3.f28620n.getClass();
long elapsedRealtime = SystemClock.elapsedRealtime();
String str = m3Var5.f28964h;
if (str != null && elapsedRealtime < m3Var5.f28965j) {
pair = new Pair(str, Boolean.valueOf(m3Var5.i));
} else {
m3Var5.f28965j = b4Var3.f28614g.l(k10, m2.f28913b) + elapsedRealtime;
AdvertisingIdClient.setShouldSkipGmsCoreVersionCheck(true);
try {
AdvertisingIdClient.Info advertisingIdInfo = AdvertisingIdClient.getAdvertisingIdInfo(((b4) obj).f28608a);
m3Var5.f28964h = "";
String id2 = advertisingIdInfo.getId();
if (id2 != null) {
m3Var5.f28964h = id2;
}
m3Var5.i = advertisingIdInfo.isLimitAdTrackingEnabled();
} catch (Exception e10) {
y2 y2Var3 = b4Var3.i;
b4.g(y2Var3);
y2Var3.f29248n.b(e10, "Unable to get advertising id");
m3Var5.f28964h = "";
}
AdvertisingIdClient.setShouldSkipGmsCoreVersionCheck(false);
pair = new Pair(m3Var5.f28964h, Boolean.valueOf(m3Var5.i));
}
}
Boolean o11 = b4Var2.f28614g.o("google_analytics_adid_collection_enabled");
if (o11 != null && !o11.booleanValue()) {
z10 = false;
} else {
z10 = true;
}
y2 y2Var4 = b4Var2.i;
if (z10 && !((Boolean) pair.second).booleanValue() && !TextUtils.isEmpty((CharSequence) pair.first)) {
b4.g(n5Var);
n5Var.h();
b4 b4Var4 = (b4) n5Var.f27031b;
ConnectivityManager connectivityManager = (ConnectivityManager) b4Var4.f28608a.getSystemService("connectivity");
if (connectivityManager != null) {
try {
activeNetworkInfo = connectivityManager.getActiveNetworkInfo();
} catch (SecurityException unused) {
}
if (activeNetworkInfo == null && activeNetworkInfo.isConnected()) {
g7 g7Var = b4Var2.f28618l;
b4.e(g7Var);
((b4) b4Var2.l().f27031b).f28614g.k();
String str2 = (String) pair.first;
long a11 = m3Var5.t.a() - 1;
Object obj2 = g7Var.f27031b;
try {
x9.l.f(str2);
x9.l.f(k10);
String format = String.format("https://www.googleadservices.com/pagead/conversion/app/deeplink?id_type=adid&sdk_version=%s&rdid=%s&bundleid=%s&retry=%s", String.format("v%s.%s", 79000L, Integer.valueOf(g7Var.m0())), str2, k10, Long.valueOf(a11));
if (k10.equals(((b4) obj2).f28614g.e("debug.deferred.deeplink"))) {
format = format.concat("&ddl_test=1");
}
url = new URL(format);
} catch (IllegalArgumentException | MalformedURLException e11) {
y2 y2Var5 = ((b4) obj2).i;
b4.g(y2Var5);
y2Var5.f29242g.b(e11.getMessage(), "Failed to create BOW URL for Deferred Deep Link. exception");
url = null;
}
if (url != null) {
b4.g(n5Var);
androidx.lifecycle.m0 m0Var = new androidx.lifecycle.m0(5, b4Var2);
n5Var.c();
n5Var.h();
a4 a4Var3 = b4Var4.f28616j;
b4.g(a4Var3);
a4Var3.n(new m5(n5Var, k10, url, m0Var));
return;
}
return;
}
b4.g(y2Var4);
y2Var4.f29244j.a("Network is not available for Deferred Deep Link request. Skipping");
return;
}
activeNetworkInfo = null;
if (activeNetworkInfo == null) {
}
b4.g(y2Var4);
y2Var4.f29244j.a("Network is not available for Deferred Deep Link request. Skipping");
return;
}
b4.g(y2Var4);
y2Var4.f29248n.a("ADID unavailable to retrieve Deferred Deep Link. Skipping");
return;
}
y2 y2Var6 = b4Var2.i;
b4.g(y2Var6);
y2Var6.f29248n.a("Deferred Deep Link already retrieved. Not fetching again.");
}
});
}
}
f6 r10 = b4Var.r();
r10.c();
r10.e();
j7 p10 = r10.p(true);
((b4) r10.f27031b).n().n(new byte[0], 3);
r10.v(new com.google.android.gms.internal.ads.n(r10, p10, 11));
this.f28837n = false;
m3 m3Var = b4Var.f28615h;
b4.e(m3Var);
m3Var.c();
String string = m3Var.j().getString("previous_os_version", null);
((b4) m3Var.f27031b).k().h();
String str = Build.VERSION.RELEASE;
if (!TextUtils.isEmpty(str) && !str.equals(string)) {
SharedPreferences.Editor edit = m3Var.j().edit();
edit.putString("previous_os_version", str);
edit.apply();
}
if (!TextUtils.isEmpty(string)) {
b4Var.k().h();
if (!string.equals(str)) {
Bundle bundle = new Bundle();
bundle.putString("_po", string);
n("auto", bundle, "_ou");
}
}
}
}
@Override
public final boolean i() {
return false;
}
public final void j(String str, Bundle bundle, String str2) {
b4 b4Var = (b4) this.f27031b;
b4Var.f28620n.getClass();
long currentTimeMillis = System.currentTimeMillis();
x9.l.f(str);
Bundle bundle2 = new Bundle();
bundle2.putString(com.ironsource.q2.f19990p, str);
bundle2.putLong("creation_timestamp", currentTimeMillis);
if (str2 != null) {
bundle2.putString("expired_event_name", str2);
bundle2.putBundle("expired_event_params", bundle);
}
a4 a4Var = b4Var.f28616j;
b4.g(a4Var);
a4Var.o(new i4(this, 2, bundle2));
}
public final void k() {
Object obj = this.f27031b;
if ((((b4) obj).f28608a.getApplicationContext() instanceof Application) && this.f28828d != null) {
((Application) ((b4) obj).f28608a.getApplicationContext()).unregisterActivityLifecycleCallbacks(this.f28828d);
}
}
public final void l(String str, String str2, Bundle bundle, boolean z10, boolean z11, long j4) {
Bundle bundle2;
String str3;
String str4;
String str5;
p5 p5Var;
String str6;
boolean z12;
String str7;
if (bundle == null) {
bundle2 = new Bundle();
} else {
bundle2 = bundle;
}
if (str2 != "screen_view" && (str2 == null || !str2.equals("screen_view"))) {
if (z11 && this.f28829e != null && !g7.X(str2)) {
z12 = false;
} else {
z12 = true;
}
if (str == null) {
str7 = "app";
} else {
str7 = str;
}
Bundle bundle3 = new Bundle(bundle2);
for (String str8 : bundle3.keySet()) {
Object obj = bundle3.get(str8);
if (obj instanceof Bundle) {
bundle3.putBundle(str8, new Bundle((Bundle) obj));
} else if (obj instanceof Parcelable[]) {
Parcelable[] parcelableArr = (Parcelable[]) obj;
for (int i = 0; i < parcelableArr.length; i++) {
Parcelable parcelable = parcelableArr[i];
if (parcelable instanceof Bundle) {
parcelableArr[i] = new Bundle((Bundle) parcelable);
}
}
} else if (obj instanceof List) {
List list = (List) obj;
for (int i10 = 0; i10 < list.size(); i10++) {
Object obj2 = list.get(i10);
if (obj2 instanceof Bundle) {
list.set(i10, new Bundle((Bundle) obj2));
}
}
}
}
a4 a4Var = ((b4) this.f27031b).f28616j;
b4.g(a4Var);
a4Var.o(new z4(this, str7, str2, j4, bundle3, z11, z12, z10));
return;
}
s5 s5Var = ((b4) this.f27031b).f28621o;
b4.f(s5Var);
synchronized (s5Var.f29143m) {
try {
if (!s5Var.f29142l) {
y2 y2Var = ((b4) s5Var.f27031b).i;
b4.g(y2Var);
y2Var.f29246l.a("Cannot log screen view event when the app is in the background.");
return;
}
String string = bundle2.getString("screen_name");
if (string != null) {
if (string.length() > 0) {
int length = string.length();
((b4) s5Var.f27031b).getClass();
}
y2 y2Var2 = ((b4) s5Var.f27031b).i;
b4.g(y2Var2);
y2Var2.f29246l.b(Integer.valueOf(string.length()), "Invalid screen name length for screen view. Length");
return;
}
String string2 = bundle2.getString("screen_class");
if (string2 != null) {
if (string2.length() > 0) {
int length2 = string2.length();
((b4) s5Var.f27031b).getClass();
}
y2 y2Var3 = ((b4) s5Var.f27031b).i;
b4.g(y2Var3);
y2Var3.f29246l.b(Integer.valueOf(string2.length()), "Invalid screen class length for screen view. Length");
return;
}
if (string2 == null) {
Activity activity = s5Var.f29139h;
if (activity != null) {
str6 = s5Var.n(activity.getClass());
} else {
str6 = "Activity";
}
str3 = str6;
} else {
str3 = string2;
}
p5 p5Var2 = s5Var.f29135d;
if (s5Var.i && p5Var2 != null) {
s5Var.i = false;
boolean q10 = f9.q(p5Var2.f29046b, str3);
boolean q11 = f9.q(p5Var2.f29045a, string);
if (q10 && q11) {
y2 y2Var4 = ((b4) s5Var.f27031b).i;
b4.g(y2Var4);
y2Var4.f29246l.a("Ignoring call to log screen view event with duplicate parameters.");
return;
}
}
y2 y2Var5 = ((b4) s5Var.f27031b).i;
b4.g(y2Var5);
w2 w2Var = y2Var5.f29249o;
if (string == null) {
str4 = "null";
} else {
str4 = string;
}
if (str3 == null) {
str5 = "null";
} else {
str5 = str3;
}
w2Var.c(str4, str5, "Logging screen view with name, class");
if (s5Var.f29135d == null) {
p5Var = s5Var.f29136e;
} else {
p5Var = s5Var.f29135d;
}
p5 p5Var3 = p5Var;
g7 g7Var = ((b4) s5Var.f27031b).f28618l;
b4.e(g7Var);
p5 p5Var4 = new p5(string, str3, g7Var.o0(), true, j4);
s5Var.f29135d = p5Var4;
s5Var.f29136e = p5Var3;
s5Var.f29140j = p5Var4;
((b4) s5Var.f27031b).f28620n.getClass();
long elapsedRealtime = SystemClock.elapsedRealtime();
a4 a4Var2 = ((b4) s5Var.f27031b).f28616j;
b4.g(a4Var2);
a4Var2.o(new a5(s5Var, bundle2, p5Var4, p5Var3, elapsedRealtime, 1));
} finally {
}
}
}
public final void n(String str, Bundle bundle, String str2) {
c();
((b4) this.f27031b).f28620n.getClass();
o(System.currentTimeMillis(), bundle, str, str2);
}
public final void o(long j4, Bundle bundle, String str, String str2) {
boolean z10;
c();
if (this.f28829e != null && !g7.X(str2)) {
z10 = false;
} else {
z10 = true;
}
p(str, str2, j4, bundle, true, z10, true, null);
}
public final void p(String str, String str2, long j4, Bundle bundle, boolean z10, boolean z11, boolean z12, String str3) {
boolean z13;
boolean z14;
boolean z15;
boolean z16;
boolean b10;
long j10;
Bundle[] bundleArr;
int i;
int size;
int i10;
int i11;
s5 s5Var;
String str4;
String str5;
boolean n10;
boolean z17;
Bundle[] bundleArr2;
boolean z18;
int i12;
Class<?> cls;
x9.l.f(str);
x9.l.j(bundle);
c();
e();
Object obj = this.f27031b;
b4 b4Var = (b4) obj;
if (b4Var.b()) {
List list = b4Var.l().f29069j;
if (list != null && !list.contains(str2)) {
y2 y2Var = b4Var.i;
b4.g(y2Var);
y2Var.f29248n.c(str2, str, "Dropping non-safelisted event. event name, origin");
return;
}
if (!this.f28831g) {
this.f28831g = true;
try {
if (!((b4) obj).f28612e) {
cls = Class.forName("com.google.android.gms.tagmanager.TagManagerService", true, ((b4) obj).f28608a.getClassLoader());
} else {
cls = Class.forName("com.google.android.gms.tagmanager.TagManagerService");
}
try {
cls.getDeclaredMethod("initialize", Context.class).invoke(null, ((b4) obj).f28608a);
} catch (Exception e10) {
y2 y2Var2 = ((b4) obj).i;
b4.g(y2Var2);
y2Var2.f29244j.b(e10, "Failed to invoke Tag Manager's initialize() method");
}
} catch (ClassNotFoundException unused) {
y2 y2Var3 = b4Var.i;
b4.g(y2Var3);
y2Var3.f29247m.a("Tag Manager is not found and thus will not be used");
}
}
if ("_cmp".equals(str2) && bundle.containsKey("gclid")) {
b4Var.getClass();
String string = bundle.getString("gclid");
b4Var.f28620n.getClass();
z13 = false;
z(System.currentTimeMillis(), string, "auto", "_lgclid");
} else {
z13 = false;
}
b4Var.getClass();
if (z10) {
z14 = true;
if (!g7.i[z13 ? 1 : 0].equals(str2)) {
g7 g7Var = b4Var.f28618l;
b4.e(g7Var);
m3 m3Var = b4Var.f28615h;
b4.e(m3Var);
g7Var.x(bundle, m3Var.f28978x.a());
}
} else {
z14 = true;
}
a6.b bVar = this.f28838o;
if (!z12) {
b4Var.getClass();
if (!"_iap".equals(str2)) {
g7 g7Var2 = b4Var.f28618l;
b4.e(g7Var2);
if (g7Var2.R("event", str2)) {
if (!g7Var2.O("event", cj.x.f4243c, cj.x.f4244d, str2)) {
i12 = 13;
} else {
((b4) g7Var2.f27031b).getClass();
if (g7Var2.L(40, "event", str2)) {
i12 = z13 ? 1 : 0;
}
}
if (i12 != 0) {
y2 y2Var4 = b4Var.i;
b4.g(y2Var4);
y2Var4.i.b(b4Var.f28619m.d(str2), "Invalid public event name. Event will not be logged (FE)");
g7 g7Var3 = b4Var.f28618l;
b4.e(g7Var3);
b4Var.getClass();
g7Var3.getClass();
String n11 = g7.n(40, str2, z14);
boolean z19 = z13;
if (str2 != null) {
z19 = str2.length();
}
g7 g7Var4 = b4Var.f28618l;
b4.e(g7Var4);
g7Var4.getClass();
g7.A(bVar, null, i12, "_ev", n11, z19);
return;
}
}
i12 = 2;
if (i12 != 0) {
}
}
}
b4Var.getClass();
s5 s5Var2 = b4Var.f28621o;
b4.f(s5Var2);
p5 l10 = s5Var2.l(z13);
if (l10 != null && !bundle.containsKey("_sc")) {
l10.f29048d = z14;
}
if (z10 && !z12) {
z15 = z14;
} else {
z15 = z13 ? 1 : 0;
}
g7.w(l10, bundle, z15);
boolean equals = "am".equals(str);
boolean X = g7.X(str2);
if (z10 && this.f28829e != null && !X) {
if (equals) {
z16 = z14;
} else {
y2 y2Var5 = b4Var.i;
b4.g(y2Var5);
y2Var5.f29248n.c(b4Var.f28619m.d(str2), b4Var.f28619m.b(bundle), "Passing event to registered event handler (FE)");
x9.l.j(this.f28829e);
u1.r rVar = this.f28829e;
rVar.getClass();
try {
((com.google.android.gms.internal.measurement.b1) rVar.f31297a).f0(j4, bundle, str, str2);
return;
} catch (RemoteException e11) {
b4 b4Var2 = ((AppMeasurementDynamiteService) rVar.f31298b).f16749a;
if (b4Var2 != null) {
y2 y2Var6 = b4Var2.i;
b4.g(y2Var6);
y2Var6.f29244j.b(e11, "Event interceptor threw exception");
return;
}
return;
}
}
} else {
z16 = equals;
}
if (b4Var.c()) {
g7 g7Var5 = b4Var.f28618l;
b4.e(g7Var5);
int i02 = g7Var5.i0(str2);
if (i02 != 0) {
y2 y2Var7 = b4Var.i;
b4.g(y2Var7);
y2Var7.i.b(b4Var.f28619m.d(str2), "Invalid event name. Event will not be logged (FE)");
g7 g7Var6 = b4Var.f28618l;
b4.e(g7Var6);
b4Var.getClass();
g7Var6.getClass();
String n12 = g7.n(40, str2, z14);
boolean z20 = z13;
if (str2 != null) {
z20 = str2.length();
}
g7 g7Var7 = b4Var.f28618l;
b4.e(g7Var7);
g7Var7.getClass();
g7.A(bVar, str3, i02, "_ev", n12, z20);
return;
}
List unmodifiableList = Collections.unmodifiableList(Arrays.asList("_o", "_sn", "_sc", "_si"));
g7 g7Var8 = b4Var.f28618l;
b4.e(g7Var8);
Bundle r02 = g7Var8.r0(str2, bundle, unmodifiableList, z12);
x9.l.j(r02);
b4Var.getClass();
s5 s5Var3 = b4Var.f28621o;
b4.f(s5Var3);
if (s5Var3.l(z13) != null && "_ae".equals(str2)) {
r6 r6Var = b4Var.f28617k;
b4.f(r6Var);
p6 p6Var = r6Var.f29124g;
((b4) p6Var.f29054d.f27031b).f28620n.getClass();
long elapsedRealtime = SystemClock.elapsedRealtime();
long j11 = elapsedRealtime - p6Var.f29052b;
p6Var.f29052b = elapsedRealtime;
if (j11 > 0) {
g7 g7Var9 = b4Var.f28618l;
b4.e(g7Var9);
g7Var9.t(r02, j11);
}
}
((ua) ta.f16630b.f16631a.zza()).zza();
if (b4Var.f28614g.p(null, m2.f28919e0)) {
if (!"auto".equals(str) && "_ssr".equals(str2)) {
g7 g7Var10 = b4Var.f28618l;
b4.e(g7Var10);
String string2 = r02.getString("_ffr");
if (ba.k.a(string2)) {
string2 = null;
} else if (string2 != null) {
string2 = string2.trim();
}
m3 m3Var2 = ((b4) g7Var10.f27031b).f28615h;
b4.e(m3Var2);
String a10 = m3Var2.f28975u.a();
if (string2 != a10 && (string2 == null || !string2.equals(a10))) {
z18 = z13 ? 1 : 0;
} else {
z18 = true;
}
Object obj2 = g7Var10.f27031b;
if (!z18) {
m3 m3Var3 = ((b4) obj2).f28615h;
b4.e(m3Var3);
m3Var3.f28975u.b(string2);
} else {
y2 y2Var8 = ((b4) obj2).i;
b4.g(y2Var8);
y2Var8.f29248n.a("Not logging duplicate session_start_with_rollout event");
return;
}
} else if ("_ae".equals(str2)) {
g7 g7Var11 = b4Var.f28618l;
b4.e(g7Var11);
m3 m3Var4 = ((b4) g7Var11.f27031b).f28615h;
b4.e(m3Var4);
String a11 = m3Var4.f28975u.a();
if (!TextUtils.isEmpty(a11)) {
r02.putString("_ffr", a11);
}
}
}
ArrayList arrayList = new ArrayList();
arrayList.add(r02);
if (b4Var.f28614g.p(null, m2.f28958z0)) {
r6 r6Var2 = b4Var.f28617k;
b4.f(r6Var2);
r6Var2.c();
b10 = r6Var2.f29122e;
} else {
m3 m3Var5 = b4Var.f28615h;
b4.e(m3Var5);
b10 = m3Var5.f28973r.b();
}
m3 m3Var6 = b4Var.f28615h;
b4.e(m3Var6);
if (m3Var6.f28970o.a() > 0) {
m3 m3Var7 = b4Var.f28615h;
b4.e(m3Var7);
if (m3Var7.r(j4) && b10) {
y2 y2Var9 = b4Var.i;
b4.g(y2Var9);
y2Var9.f29249o.a("Current session is expired, remove the session number, ID, and engagement time");
b4Var.f28620n.getClass();
j10 = 0;
bundleArr = null;
i = 1;
z(System.currentTimeMillis(), null, "auto", "_sid");
b4Var.f28620n.getClass();
z(System.currentTimeMillis(), null, "auto", "_sno");
b4Var.f28620n.getClass();
z(System.currentTimeMillis(), null, "auto", "_se");
m3 m3Var8 = b4Var.f28615h;
b4.e(m3Var8);
m3Var8.f28971p.b(0L);
if (r02.getLong("extend_session", j10) == 1) {
y2 y2Var10 = b4Var.i;
b4.g(y2Var10);
y2Var10.f29249o.a("EXTEND_SESSION param attached: initiate a new session or extend the current active session");
r6 r6Var3 = b4Var.f28617k;
b4.f(r6Var3);
r6Var3.f29123f.b(j4, i);
}
ArrayList arrayList2 = new ArrayList(r02.keySet());
Collections.sort(arrayList2);
size = arrayList2.size();
for (i10 = 0; i10 < size; i10++) {
String str6 = (String) arrayList2.get(i10);
if (str6 != null) {
b4.e(b4Var.f28618l);
Object obj3 = r02.get(str6);
if (obj3 instanceof Bundle) {
Bundle[] bundleArr3 = new Bundle[i];
bundleArr3[0] = (Bundle) obj3;
bundleArr2 = bundleArr3;
} else if (obj3 instanceof Parcelable[]) {
Parcelable[] parcelableArr = (Parcelable[]) obj3;
bundleArr2 = (Bundle[]) Arrays.copyOf(parcelableArr, parcelableArr.length, Bundle[].class);
} else if (obj3 instanceof ArrayList) {
ArrayList arrayList3 = (ArrayList) obj3;
bundleArr2 = (Bundle[]) arrayList3.toArray(new Bundle[arrayList3.size()]);
} else {
bundleArr2 = bundleArr;
}
if (bundleArr2 != null) {
r02.putParcelableArray(str6, bundleArr2);
}
}
}
for (i11 = 0; i11 < arrayList.size(); i11++) {
Bundle bundle2 = (Bundle) arrayList.get(i11);
if (i11 != 0) {
str5 = "_ep";
str4 = str;
} else {
str4 = str;
str5 = str2;
}
bundle2.putString("_o", str4);
if (z11) {
g7 g7Var12 = b4Var.f28618l;
b4.e(g7Var12);
bundle2 = g7Var12.q0(bundle2);
}
Bundle bundle3 = bundle2;
t tVar = new t(str5, new r(bundle3), str, j4);
f6 r10 = b4Var.r();
r10.getClass();
r10.c();
r10.e();
Object obj4 = r10.f27031b;
((b4) obj4).getClass();
s2 n13 = ((b4) obj4).n();
n13.getClass();
Parcel obtain = Parcel.obtain();
u.a(tVar, obtain, 0);
byte[] marshall = obtain.marshall();
obtain.recycle();
if (marshall.length > 131072) {
y2 y2Var11 = ((b4) n13.f27031b).i;
b4.g(y2Var11);
y2Var11.f29243h.a("Event is too long for local database. Sending event directly to service");
z17 = true;
n10 = false;
} else {
n10 = n13.n(marshall, 0);
z17 = true;
}
r10.v(new z5(r10, r10.p(z17), n10, tVar));
if (!z16) {
Iterator it = this.f28830f.iterator();
while (it.hasNext()) {
((t4) it.next()).a(j4, new Bundle(bundle3), str, str2);
}
}
}
b4Var.getClass();
s5Var = b4Var.f28621o;
b4.f(s5Var);
if (s5Var.l(false) == null && "_ae".equals(str2)) {
r6 r6Var4 = b4Var.f28617k;
b4.f(r6Var4);
b4Var.f28620n.getClass();
r6Var4.f29124g.a(true, SystemClock.elapsedRealtime(), true);
return;
}
return;
}
}
j10 = 0;
bundleArr = null;
i = 1;
if (r02.getLong("extend_session", j10) == 1) {
}
ArrayList arrayList22 = new ArrayList(r02.keySet());
Collections.sort(arrayList22);
size = arrayList22.size();
while (i10 < size) {
}
while (i11 < arrayList.size()) {
}
b4Var.getClass();
s5Var = b4Var.f28621o;
b4.f(s5Var);
if (s5Var.l(false) == null) {
return;
}
return;
}
return;
}
y2 y2Var12 = b4Var.i;
b4.g(y2Var12);
y2Var12.f29248n.a("Event not sent since app measurement is disabled");
}
public final void r(long j4, boolean z10) {
c();
e();
b4 b4Var = (b4) this.f27031b;
y2 y2Var = b4Var.i;
b4.g(y2Var);
y2Var.f29248n.a("Resetting analytics data (FE)");
r6 r6Var = b4Var.f28617k;
b4.f(r6Var);
r6Var.c();
p6 p6Var = r6Var.f29124g;
p6Var.f29053c.a();
p6Var.f29051a = 0L;
p6Var.f29052b = 0L;
xc.b();
if (b4Var.f28614g.p(null, m2.f28929k0)) {
b4Var.l().n();
}
boolean b10 = b4Var.b();
m3 m3Var = b4Var.f28615h;
b4.e(m3Var);
m3Var.f28962f.b(j4);
b4 b4Var2 = (b4) m3Var.f27031b;
m3 m3Var2 = b4Var2.f28615h;
b4.e(m3Var2);
if (!TextUtils.isEmpty(m3Var2.f28975u.a())) {
m3Var.f28975u.b(null);
}
jb jbVar = jb.f16414b;
((kb) jbVar.f16415a.zza()).zza();
f fVar = b4Var2.f28614g;
l2 l2Var = m2.f0;
if (fVar.p(null, l2Var)) {
m3Var.f28970o.b(0L);
}
m3Var.f28971p.b(0L);
if (!b4Var2.f28614g.t()) {
m3Var.p(!b10);
}
m3Var.f28976v.b(null);
m3Var.f28977w.b(0L);
m3Var.f28978x.b(null);
if (z10) {
f6 r10 = b4Var.r();
r10.c();
r10.e();
j7 p10 = r10.p(false);
Object obj = r10.f27031b;
((b4) obj).getClass();
((b4) obj).n().k();
r10.v(new com.google.android.gms.common.api.internal.h1(r10, 3, p10));
}
((kb) jbVar.f16415a.zza()).zza();
if (b4Var.f28614g.p(null, l2Var)) {
r6 r6Var2 = b4Var.f28617k;
b4.f(r6Var2);
r6Var2.f29123f.a();
}
this.f28837n = !b10;
}
public final void t(Bundle bundle, long j4) {
x9.l.j(bundle);
Bundle bundle2 = new Bundle(bundle);
boolean isEmpty = TextUtils.isEmpty(bundle2.getString("app_id"));
Object obj = this.f27031b;
if (!isEmpty) {
y2 y2Var = ((b4) obj).i;
b4.g(y2Var);
y2Var.f29244j.a("Package name should be null when calling setConditionalUserProperty");
}
bundle2.remove("app_id");
a4.n0.k(bundle2, "app_id", String.class, null);
a4.n0.k(bundle2, com.ironsource.j4.f18719o, String.class, null);
a4.n0.k(bundle2, com.ironsource.q2.f19990p, String.class, null);
a4.n0.k(bundle2, q2.h.X, Object.class, null);
a4.n0.k(bundle2, "trigger_event_name", String.class, null);
a4.n0.k(bundle2, "trigger_timeout", Long.class, 0L);
a4.n0.k(bundle2, "timed_out_event_name", String.class, null);
a4.n0.k(bundle2, "timed_out_event_params", Bundle.class, null);
a4.n0.k(bundle2, "triggered_event_name", String.class, null);
a4.n0.k(bundle2, "triggered_event_params", Bundle.class, null);
a4.n0.k(bundle2, "time_to_live", Long.class, 0L);
a4.n0.k(bundle2, "expired_event_name", String.class, null);
a4.n0.k(bundle2, "expired_event_params", Bundle.class, null);
x9.l.f(bundle2.getString(com.ironsource.q2.f19990p));
x9.l.f(bundle2.getString(com.ironsource.j4.f18719o));
x9.l.j(bundle2.get(q2.h.X));
bundle2.putLong("creation_timestamp", j4);
String string = bundle2.getString(com.ironsource.q2.f19990p);
Object obj2 = bundle2.get(q2.h.X);
b4 b4Var = (b4) obj;
g7 g7Var = b4Var.f28618l;
b4.e(g7Var);
if (g7Var.l0(string) == 0) {
g7 g7Var2 = b4Var.f28618l;
b4.e(g7Var2);
if (g7Var2.h0(obj2, string) == 0) {
g7 g7Var3 = b4Var.f28618l;
b4.e(g7Var3);
Object k10 = g7Var3.k(obj2, string);
if (k10 == null) {
y2 y2Var2 = b4Var.i;
b4.g(y2Var2);
y2Var2.f29242g.c(b4Var.f28619m.f(string), obj2, "Unable to normalize conditional user property value");
return;
}
a4.n0.m(bundle2, k10);
long j10 = bundle2.getLong("trigger_timeout");
if (!TextUtils.isEmpty(bundle2.getString("trigger_event_name"))) {
b4Var.getClass();
if (j10 > 15552000000L || j10 < 1) {
y2 y2Var3 = b4Var.i;
b4.g(y2Var3);
y2Var3.f29242g.c(b4Var.f28619m.f(string), Long.valueOf(j10), "Invalid conditional user property timeout");
return;
}
}
long j11 = bundle2.getLong("time_to_live");
b4Var.getClass();
if (j11 <= 15552000000L && j11 >= 1) {
a4 a4Var = b4Var.f28616j;
b4.g(a4Var);
a4Var.o(new w4(this, bundle2, 1));
return;
}
y2 y2Var4 = b4Var.i;
b4.g(y2Var4);
y2Var4.f29242g.c(b4Var.f28619m.f(string), Long.valueOf(j11), "Invalid conditional user property time to live");
return;
}
y2 y2Var5 = b4Var.i;
b4.g(y2Var5);
y2Var5.f29242g.c(b4Var.f28619m.f(string), obj2, "Invalid conditional user property value");
return;
}
y2 y2Var6 = b4Var.i;
b4.g(y2Var6);
y2Var6.f29242g.b(b4Var.f28619m.f(string), "Invalid conditional user property name");
}
public final void v(s4 s4Var, long j4) {
s4 s4Var2;
boolean z10;
boolean z11;
boolean z12;
boolean z13;
s4 s4Var3 = s4Var;
e();
int i = s4Var3.f29134b;
if (i != -10) {
if (((Boolean) s4Var3.f29133a.get(r4.AD_STORAGE)) == null) {
if (((Boolean) s4Var3.f29133a.get(r4.ANALYTICS_STORAGE)) == null) {
y2 y2Var = ((b4) this.f27031b).i;
b4.g(y2Var);
y2Var.f29246l.a("Discarding empty consent settings");
return;
}
}
}
synchronized (this.i) {
try {
s4Var2 = this.f28833j;
z10 = false;
if (i <= s4Var2.f29134b) {
z11 = true;
} else {
z11 = false;
}
if (z11) {
z12 = s4Var3.g(s4Var2, (r4[]) s4Var3.f29133a.keySet().toArray(new r4[0]));
r4 r4Var = r4.ANALYTICS_STORAGE;
if (s4Var3.f(r4Var) && !this.f28833j.f(r4Var)) {
z10 = true;
}
s4Var3 = s4Var3.d(this.f28833j);
this.f28833j = s4Var3;
z13 = z10;
z10 = true;
} else {
z12 = false;
z13 = false;
}
} catch (Throwable th2) {
throw th2;
}
}
if (!z10) {
y2 y2Var2 = ((b4) this.f27031b).i;
b4.g(y2Var2);
y2Var2.f29247m.b(s4Var3, "Ignoring lower-priority consent settings, proposed settings");
return;
}
long andIncrement = this.f28834k.getAndIncrement();
if (z12) {
this.f28832h.set(null);
a4 a4Var = ((b4) this.f27031b).f28616j;
b4.g(a4Var);
a4Var.p(new f5(this, s4Var3, j4, andIncrement, z13, s4Var2));
return;
}
g5 g5Var = new g5(this, s4Var3, andIncrement, z13, s4Var2);
if (i != 30 && i != -10) {
a4 a4Var2 = ((b4) this.f27031b).f28616j;
b4.g(a4Var2);
a4Var2.o(g5Var);
return;
}
a4 a4Var3 = ((b4) this.f27031b).f28616j;
b4.g(a4Var3);
a4Var3.p(g5Var);
}
public final void w(Bundle bundle, int i, long j4) {
Object obj;
String string;
e();
s4 s4Var = s4.f29132c;
r4[] values = r4.values();
int length = values.length;
int i10 = 0;
while (true) {
obj = null;
if (i10 >= length) {
break;
}
r4 r4Var = values[i10];
if (bundle.containsKey(r4Var.f29118a) && (string = bundle.getString(r4Var.f29118a)) != null) {
if (string.equals("granted")) {
obj = Boolean.TRUE;
} else if (string.equals("denied")) {
obj = Boolean.FALSE;
}
if (obj == null) {
obj = string;
break;
}
}
i10++;
}
if (obj != null) {
b4 b4Var = (b4) this.f27031b;
y2 y2Var = b4Var.i;
b4.g(y2Var);
y2Var.f29246l.b(obj, "Ignoring invalid consent setting");
y2 y2Var2 = b4Var.i;
b4.g(y2Var2);
y2Var2.f29246l.a("Valid consent values are 'granted', 'denied'");
}
v(s4.a(i, bundle), j4);
}
public final void x(s4 s4Var) {
boolean z10;
Boolean bool;
c();
if ((s4Var.f(r4.ANALYTICS_STORAGE) && s4Var.f(r4.AD_STORAGE)) || ((b4) this.f27031b).r().n()) {
z10 = true;
} else {
z10 = false;
}
b4 b4Var = (b4) this.f27031b;
a4 a4Var = b4Var.f28616j;
b4.g(a4Var);
a4Var.c();
if (z10 != b4Var.D) {
b4 b4Var2 = (b4) this.f27031b;
a4 a4Var2 = b4Var2.f28616j;
b4.g(a4Var2);
a4Var2.c();
b4Var2.D = z10;
m3 m3Var = ((b4) this.f27031b).f28615h;
b4.e(m3Var);
m3Var.c();
if (m3Var.j().contains("measurement_enabled_from_api")) {
bool = Boolean.valueOf(m3Var.j().getBoolean("measurement_enabled_from_api", true));
} else {
bool = null;
}
if (!z10 || bool == null || bool.booleanValue()) {
A(Boolean.valueOf(z10), false);
}
}
}
public final void y(String str, String str2, Object obj, boolean z10, long j4) {
int i;
String str3;
int i10 = 0;
Object obj2 = this.f27031b;
if (z10) {
g7 g7Var = ((b4) obj2).f28618l;
b4.e(g7Var);
i = g7Var.l0(str2);
} else {
g7 g7Var2 = ((b4) obj2).f28618l;
b4.e(g7Var2);
if (g7Var2.R("user property", str2)) {
if (!g7Var2.O("user property", cj.h0.f4168p, null, str2)) {
i = 15;
} else {
((b4) g7Var2.f27031b).getClass();
if (g7Var2.L(24, "user property", str2)) {
i = 0;
}
}
}
i = 6;
}
a6.b bVar = this.f28838o;
if (i != 0) {
b4 b4Var = (b4) obj2;
g7 g7Var3 = b4Var.f28618l;
b4.e(g7Var3);
b4Var.getClass();
g7Var3.getClass();
String n10 = g7.n(24, str2, true);
if (str2 != null) {
i10 = str2.length();
}
g7 g7Var4 = b4Var.f28618l;
b4.e(g7Var4);
g7Var4.getClass();
g7.A(bVar, null, i, "_ev", n10, i10);
return;
}
if (str == null) {
str3 = "app";
} else {
str3 = str;
}
if (obj != null) {
b4 b4Var2 = (b4) obj2;
g7 g7Var5 = b4Var2.f28618l;
b4.e(g7Var5);
int h02 = g7Var5.h0(obj, str2);
if (h02 != 0) {
g7 g7Var6 = b4Var2.f28618l;
b4.e(g7Var6);
b4Var2.getClass();
g7Var6.getClass();
String n11 = g7.n(24, str2, true);
if ((obj instanceof String) || (obj instanceof CharSequence)) {
i10 = obj.toString().length();
}
g7 g7Var7 = b4Var2.f28618l;
b4.e(g7Var7);
g7Var7.getClass();
g7.A(bVar, null, h02, "_ev", n11, i10);
return;
}
g7 g7Var8 = b4Var2.f28618l;
b4.e(g7Var8);
Object k10 = g7Var8.k(obj, str2);
if (k10 != null) {
a4 a4Var = ((b4) obj2).f28616j;
b4.g(a4Var);
a4Var.o(new a5(this, str3, str2, k10, j4, 0));
return;
}
return;
}
a4 a4Var2 = ((b4) obj2).f28616j;
b4.g(a4Var2);
a4Var2.o(new a5(this, str3, str2, null, j4, 0));
}
public final void z(long j4, Object obj, String str, String str2) {
boolean n10;
long j10;
x9.l.f(str);
x9.l.f(str2);
c();
e();
boolean equals = "allow_personalized_ads".equals(str2);
Object obj2 = this.f27031b;
if (equals) {
if (obj instanceof String) {
String str3 = (String) obj;
if (!TextUtils.isEmpty(str3)) {
String str4 = "false";
if (true != "false".equals(str3.toLowerCase(Locale.ENGLISH))) {
j10 = 0;
} else {
j10 = 1;
}
Long valueOf = Long.valueOf(j10);
m3 m3Var = ((b4) obj2).f28615h;
b4.e(m3Var);
if (valueOf.longValue() == 1) {
str4 = com.ironsource.mediationsdk.metadata.a.f19345g;
}
m3Var.f28968m.b(str4);
obj = valueOf;
str2 = "_npa";
}
}
if (obj == null) {
m3 m3Var2 = ((b4) obj2).f28615h;
b4.e(m3Var2);
m3Var2.f28968m.b("unset");
obj = obj;
str2 = "_npa";
}
}
Object obj3 = obj;
String str5 = str2;
b4 b4Var = (b4) obj2;
if (!b4Var.b()) {
y2 y2Var = b4Var.i;
b4.g(y2Var);
y2Var.f29249o.a("User property not set since app measurement is disabled");
} else if (!b4Var.c()) {
} else {
c7 c7Var = new c7(j4, obj3, str5, str);
f6 r10 = b4Var.r();
r10.c();
r10.e();
Object obj4 = r10.f27031b;
((b4) obj4).getClass();
s2 n11 = ((b4) obj4).n();
n11.getClass();
Parcel obtain = Parcel.obtain();
d7.a(c7Var, obtain);
byte[] marshall = obtain.marshall();
obtain.recycle();
if (marshall.length > 131072) {
y2 y2Var2 = ((b4) n11.f27031b).i;
b4.g(y2Var2);
y2Var2.f29243h.a("User property too long for local database. Sending directly to service");
n10 = false;
} else {
n10 = n11.n(marshall, 1);
}
r10.v(new v5(r10, r10.p(true), n10, c7Var));
}
}
}