正在查看: Tuna Cash v1.0.0 应用的 lILII.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Tuna Cash v1.0.0 应用的 lILII.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package lLLii;
import android.content.ComponentName;
import android.content.Context;
import android.content.pm.ActivityInfo;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.content.pm.ServiceInfo;
import android.content.pm.Signature;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.os.Parcel;
import android.os.Parcelable;
import android.os.RemoteException;
import android.text.TextUtils;
import android.util.Log;
import androidx.compose.ui.graphics.Fields;
import androidx.datastore.preferences.protobuf.DescriptorProtos;
import androidx.privacysandbox.ads.adservices.measurement.LLiIl;
import iiIIIi.lIliL;
import iiIIIi.lLILIl;
import java.io.ByteArrayInputStream;
import java.math.BigInteger;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.security.SecureRandom;
import java.security.cert.CertificateException;
import java.security.cert.CertificateFactory;
import java.security.cert.X509Certificate;
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.Objects;
import java.util.Random;
import java.util.TreeSet;
import java.util.concurrent.atomic.AtomicBoolean;
import java.util.concurrent.atomic.AtomicLong;
import javax.security.auth.x500.X500Principal;
import kotlin.jvm.internal.Intrinsics;
import lIliL.iliLLil;
import llLil.IlIlliI;
public final class lILII extends lLiiLL {
public Boolean IILlL;
public SecureRandom ILLiI;
public androidx.privacysandbox.ads.adservices.java.measurement.IILii LLILli;
public Integer iiIiLl;
public int lIIiL;
public final AtomicLong liLILi;
public static final String[] lIiiLli = {"firebase_", "google_", "ga_"};
public static final String[] LllLii = {"_err"};
public lILII(llllli llllliVar) {
super(llllliVar);
this.iiIiLl = null;
this.liLILi = new AtomicLong(0L);
}
public static boolean IILLiL(String str, String[] strArr) {
IlIlliI.lLlii(strArr);
for (String str2 : strArr) {
if (Objects.equals(str, str2)) {
return true;
}
}
return false;
}
public static MessageDigest IILlL() {
MessageDigest messageDigest;
for (int i = 0; i < 2; i++) {
try {
messageDigest = MessageDigest.getInstance("MD5");
} catch (NoSuchAlgorithmException unused) {
}
if (messageDigest != null) {
return messageDigest;
}
}
return null;
}
public static byte[] IiIIl(Parcelable parcelable) {
if (parcelable == null) {
return null;
}
Parcel obtain = Parcel.obtain();
try {
parcelable.writeToParcel(obtain, 0);
return obtain.marshall();
} finally {
obtain.recycle();
}
}
public static void IiILLi(IlLIILl ilLIILl, String str, int i, String str2, String str3, int i2) {
Bundle bundle = new Bundle();
lLlili(i, bundle);
if (!TextUtils.isEmpty(str2) && !TextUtils.isEmpty(str3)) {
bundle.putString(str2, str3);
}
if (i == 6 || i == 7 || i == 2) {
bundle.putLong("_el", i2);
}
ilLIILl.LLiIl(str, "_err", bundle);
}
public static boolean IiLIi(String str) {
return !TextUtils.isEmpty(str) && str.startsWith("_");
}
public static String LLILli(int i, boolean z, String str) {
if (str == null) {
return null;
}
if (str.codePointCount(0, str.length()) <= i) {
return str;
}
if (z) {
return String.valueOf(str.substring(0, str.offsetByCodePoints(0, i))).concat("...");
}
return null;
}
public static long LLLli(byte[] bArr) {
IlIlliI.lLlii(bArr);
int length = bArr.length;
if (length <= 0) {
throw new IllegalStateException();
}
int i = 0;
long j = 0;
for (int i2 = length - 1; i2 >= 0 && i2 >= bArr.length - 8; i2--) {
j += (bArr[i2] & 255) << i;
i += 8;
}
return j;
}
public static void LlLlL(LilIlll lilIlll, Bundle bundle, boolean z) {
if (bundle != null && lilIlll != null) {
if (!bundle.containsKey("_sc") || z) {
String str = lilIlll.lLILIl;
if (str != null) {
bundle.putString("_sn", str);
} else {
bundle.remove("_sn");
}
String str2 = lilIlll.lIliL;
if (str2 != null) {
bundle.putString("_sc", str2);
} else {
bundle.remove("_sc");
}
bundle.putLong("_si", lilIlll.LLiIl);
return;
}
z = false;
}
if (bundle != null && lilIlll == null && z) {
bundle.remove("_sn");
bundle.remove("_sc");
bundle.remove("_si");
}
}
public static boolean iiiIL(Context context) {
return Build.VERSION.SDK_INT >= 24 ? lLLIi(context, "com.google.android.gms.measurement.AppMeasurementJobService") : lLLIi(context, "com.google.android.gms.measurement.AppMeasurementService");
}
public static boolean iilLli(String str) {
IlIlliI.iLLLl(str);
return str.charAt(0) != '_' || str.equals("_ep");
}
public static ArrayList lIiiLli(List list) {
if (list == null) {
return new ArrayList(0);
}
ArrayList arrayList = new ArrayList(list.size());
Iterator it = list.iterator();
while (it.hasNext()) {
LILlLi lILlLi = (LILlLi) it.next();
Bundle bundle = new Bundle();
bundle.putString("app_id", lILlLi.lLlii);
bundle.putString("origin", lILlLi.iiILI);
bundle.putLong("creation_timestamp", lILlLi.liLILi);
bundle.putString("name", lILlLi.ILLiI.iiILI);
Object lIliL = lILlLi.ILLiI.lIliL();
IlIlliI.lLlii(lIliL);
lllLI.iLIlli.ilLll(bundle, lIliL);
bundle.putBoolean("active", lILlLi.lIIiL);
String str = lILlLi.LLILli;
if (str != null) {
bundle.putString("trigger_event_name", str);
}
IiILLi iiILLi = lILlLi.IILlL;
if (iiILLi != null) {
bundle.putString("timed_out_event_name", iiILLi.lLlii);
LlLiILL llLiILL = iiILLi.iiILI;
if (llLiILL != null) {
bundle.putBundle("timed_out_event_params", llLiILL.lIliL());
}
}
bundle.putLong("trigger_timeout", lILlLi.iiIiLl);
IiILLi iiILLi2 = lILlLi.lIiiLli;
if (iiILLi2 != null) {
bundle.putString("triggered_event_name", iiILLi2.lLlii);
LlLiILL llLiILL2 = iiILLi2.iiILI;
if (llLiILL2 != null) {
bundle.putBundle("triggered_event_params", llLiILL2.lIliL());
}
}
bundle.putLong("triggered_timestamp", lILlLi.ILLiI.ILLiI);
bundle.putLong("time_to_live", lILlLi.LllLii);
IiILLi iiILLi3 = lILlLi.LILli;
if (iiILLi3 != null) {
bundle.putString("expired_event_name", iiILLi3.lLlii);
LlLiILL llLiILL3 = iiILLi3.iiILI;
if (llLiILL3 != null) {
bundle.putBundle("expired_event_params", llLiILL3.lIliL());
}
}
arrayList.add(bundle);
}
return arrayList;
}
public static boolean lIllL(Context context) {
ActivityInfo receiverInfo;
IlIlliI.lLlii(context);
try {
PackageManager packageManager = context.getPackageManager();
if (packageManager != null && (receiverInfo = packageManager.getReceiverInfo(new ComponentName(context, "com.google.android.gms.measurement.AppMeasurementReceiver"), 0)) != null) {
if (receiverInfo.enabled) {
return true;
}
}
} catch (PackageManager.NameNotFoundException unused) {
}
return false;
}
public static boolean lLLIi(Context context, String str) {
ServiceInfo serviceInfo;
try {
PackageManager packageManager = context.getPackageManager();
if (packageManager != null && (serviceInfo = packageManager.getServiceInfo(new ComponentName(context, str), 0)) != null) {
if (serviceInfo.enabled) {
return true;
}
}
} catch (PackageManager.NameNotFoundException unused) {
}
return false;
}
public static boolean lLLIiI(Object obj) {
return (obj instanceof Parcelable[]) || (obj instanceof ArrayList) || (obj instanceof Bundle);
}
public static final boolean lLlili(int i, Bundle bundle) {
if (bundle == null || bundle.getLong("_err") != 0) {
return false;
}
bundle.putLong("_err", i);
return true;
}
public static boolean lilLl(String str) {
String str2 = (String) liIiIiI.f94LLLliL.lLILIl(null);
return str2.equals("*") || Arrays.asList(str2.split(",")).contains(str);
}
public final int IIIIlIi(String str) {
if (!IlILllI("event param", str)) {
return 3;
}
if (!IlIIiiI("event param", null, null, str)) {
return 14;
}
((llllli) ((iliLLil) this).lLlii).getClass();
return !iIllL(40, "event param", str) ? 3 : 0;
}
public final boolean IILliLL(String str, String str2, int i, Object obj) {
if (obj != null && !(obj instanceof Long) && !(obj instanceof Float) && !(obj instanceof Integer) && !(obj instanceof Byte) && !(obj instanceof Short) && !(obj instanceof Boolean) && !(obj instanceof Double)) {
if (!(obj instanceof String) && !(obj instanceof Character) && !(obj instanceof CharSequence)) {
return false;
}
String obj2 = obj.toString();
if (obj2.codePointCount(0, obj2.length()) > i) {
LLLli lLLli = ((llllli) ((iliLLil) this).lLlii).lIiiLli;
llllli.iLLLl(lLLli);
lLLli.LILli.iliLLil("Value is too long; discarded. Value kind, name, value length", str, str2, Integer.valueOf(obj2.length()));
return false;
}
}
return true;
}
public final boolean IIilLI(String str) {
IlIlliI.lLlii(str);
return str.matches(true != ((llllli) ((iliLLil) this).lLlii).IILlL.LllLii(null, liIiIiI.f114iilIIl) ? "^(1:\\d+:android:[a-f0-9]+|ca-app-pub-.*)$" : "^1:\\d+:android:[a-f0-9]+$");
}
public final Object ILLiI(Object obj, String str) {
boolean equals = "_ev".equals(str);
Object obj2 = ((iliLLil) this).lLlii;
if (equals) {
return IlllI(Math.max(((llllli) obj2).IILlL.iiILI(null, false), Fields.RotationX), obj, true, true);
}
return IlllI(IiLIi(str) ? Math.max(((llllli) obj2).IILlL.iiILI(null, false), Fields.RotationX) : ((llllli) obj2).IILlL.iiILI(null, false), obj, false, true);
}
public final Bundle IiilIli(Uri uri) {
String str;
String str2;
String str3;
String str4;
String str5;
String str6;
String str7;
String str8;
String str9;
String str10;
if (uri == null) {
return null;
}
try {
if (uri.isHierarchical()) {
str = uri.getQueryParameter("utm_campaign");
str2 = uri.getQueryParameter("utm_source");
str3 = uri.getQueryParameter("utm_medium");
str4 = uri.getQueryParameter("gclid");
str5 = uri.getQueryParameter("gbraid");
str6 = uri.getQueryParameter("utm_id");
str7 = uri.getQueryParameter("dclid");
str8 = uri.getQueryParameter("srsltid");
str9 = uri.getQueryParameter("sfmc_id");
} else {
str = null;
str2 = null;
str3 = null;
str4 = null;
str5 = null;
str6 = null;
str7 = null;
str8 = null;
str9 = null;
}
if (TextUtils.isEmpty(str) && TextUtils.isEmpty(str2) && TextUtils.isEmpty(str3) && TextUtils.isEmpty(str4) && TextUtils.isEmpty(str5) && TextUtils.isEmpty(str6) && TextUtils.isEmpty(str7) && TextUtils.isEmpty(str8) && TextUtils.isEmpty(str9)) {
return null;
}
Bundle bundle = new Bundle();
if (TextUtils.isEmpty(str)) {
str10 = "sfmc_id";
} else {
str10 = "sfmc_id";
bundle.putString("campaign", str);
}
if (!TextUtils.isEmpty(str2)) {
bundle.putString("source", str2);
}
if (!TextUtils.isEmpty(str3)) {
bundle.putString("medium", str3);
}
if (!TextUtils.isEmpty(str4)) {
bundle.putString("gclid", str4);
}
if (!TextUtils.isEmpty(str5)) {
bundle.putString("gbraid", str5);
}
String queryParameter = uri.getQueryParameter("gad_source");
if (!TextUtils.isEmpty(queryParameter)) {
bundle.putString("gad_source", queryParameter);
}
String queryParameter2 = uri.getQueryParameter("utm_term");
if (!TextUtils.isEmpty(queryParameter2)) {
bundle.putString("term", queryParameter2);
}
String queryParameter3 = uri.getQueryParameter("utm_content");
if (!TextUtils.isEmpty(queryParameter3)) {
bundle.putString("content", queryParameter3);
}
String queryParameter4 = uri.getQueryParameter("aclid");
if (!TextUtils.isEmpty(queryParameter4)) {
bundle.putString("aclid", queryParameter4);
}
String queryParameter5 = uri.getQueryParameter("cp1");
if (!TextUtils.isEmpty(queryParameter5)) {
bundle.putString("cp1", queryParameter5);
}
String queryParameter6 = uri.getQueryParameter("anid");
if (!TextUtils.isEmpty(queryParameter6)) {
bundle.putString("anid", queryParameter6);
}
if (!TextUtils.isEmpty(str6)) {
bundle.putString("campaign_id", str6);
}
if (!TextUtils.isEmpty(str7)) {
bundle.putString("dclid", str7);
}
String queryParameter7 = uri.getQueryParameter("utm_source_platform");
if (!TextUtils.isEmpty(queryParameter7)) {
bundle.putString("source_platform", queryParameter7);
}
String queryParameter8 = uri.getQueryParameter("utm_creative_format");
if (!TextUtils.isEmpty(queryParameter8)) {
bundle.putString("creative_format", queryParameter8);
}
String queryParameter9 = uri.getQueryParameter("utm_marketing_tactic");
if (!TextUtils.isEmpty(queryParameter9)) {
bundle.putString("marketing_tactic", queryParameter9);
}
if (!TextUtils.isEmpty(str8)) {
bundle.putString("srsltid", str8);
}
if (!TextUtils.isEmpty(str9)) {
bundle.putString(str10, str9);
}
return bundle;
} catch (UnsupportedOperationException e) {
LLLli lLLli = ((llllli) ((iliLLil) this).lLlii).lIiiLli;
llllli.iLLLl(lLLli);
lLLli.lIiiLli.lIliL(e, "Install referrer url isn't a hierarchical URI");
return null;
}
}
public final boolean IlIIiiI(String str, String[] strArr, String[] strArr2, String str2) {
Object obj = ((iliLLil) this).lLlii;
if (str2 == null) {
LLLli lLLli = ((llllli) obj).lIiiLli;
llllli.iLLLl(lLLli);
lLLli.iiIiLl.lIliL(str, "Name is required and can't be null. Type");
return false;
}
String[] strArr3 = lIiiLli;
for (int i = 0; i < 3; i++) {
if (str2.startsWith(strArr3[i])) {
LLLli lLLli2 = ((llllli) obj).lIiiLli;
llllli.iLLLl(lLLli2);
lLLli2.iiIiLl.LLiIl(str, str2, "Name starts with reserved prefix. Type, name");
return false;
}
}
if (strArr == null || !IILLiL(str2, strArr)) {
return true;
}
if (strArr2 != null && IILLiL(str2, strArr2)) {
return true;
}
LLLli lLLli3 = ((llllli) obj).lIiiLli;
llllli.iLLLl(lLLli3);
lLLli3.iiIiLl.LLiIl(str, str2, "Name is reserved. Type, name");
return false;
}
public final boolean IlILllI(String str, String str2) {
Object obj = ((iliLLil) this).lLlii;
if (str2 == null) {
LLLli lLLli = ((llllli) obj).lIiiLli;
llllli.iLLLl(lLLli);
lLLli.iiIiLl.lIliL(str, "Name is required and can't be null. Type");
return false;
}
if (str2.length() == 0) {
LLLli lLLli2 = ((llllli) obj).lIiiLli;
llllli.iLLLl(lLLli2);
lLLli2.iiIiLl.lIliL(str, "Name is required and can't be empty. Type");
return false;
}
int codePointAt = str2.codePointAt(0);
if (!Character.isLetter(codePointAt)) {
if (codePointAt != 95) {
LLLli lLLli3 = ((llllli) obj).lIiiLli;
llllli.iLLLl(lLLli3);
lLLli3.iiIiLl.LLiIl(str, str2, "Name must start with a letter or _ (underscore). Type, name");
return false;
}
codePointAt = 95;
}
int length = str2.length();
int charCount = Character.charCount(codePointAt);
while (charCount < length) {
int codePointAt2 = str2.codePointAt(charCount);
if (codePointAt2 != 95 && !Character.isLetterOrDigit(codePointAt2)) {
LLLli lLLli4 = ((llllli) obj).lIiiLli;
llllli.iLLLl(lLLli4);
lLLli4.iiIiLl.LLiIl(str, str2, "Name must consist of letters, digits or _ (underscores). Type, name");
return false;
}
charCount += Character.charCount(codePointAt2);
}
return true;
}
public final Object IlllI(int i, Object obj, boolean z, boolean z2) {
if (obj == null) {
return null;
}
if ((obj instanceof Long) || (obj instanceof Double)) {
return obj;
}
if (obj instanceof Integer) {
return Long.valueOf(((Integer) obj).intValue());
}
if (obj instanceof Byte) {
return Long.valueOf(((Byte) obj).byteValue());
}
if (obj instanceof Short) {
return Long.valueOf(((Short) obj).shortValue());
}
if (obj instanceof Boolean) {
return Long.valueOf(true != ((Boolean) obj).booleanValue() ? 0L : 1L);
}
if (obj instanceof Float) {
return Double.valueOf(((Float) obj).doubleValue());
}
if ((obj instanceof String) || (obj instanceof Character) || (obj instanceof CharSequence)) {
return LLILli(i, z, obj.toString());
}
if (!z2 || (!(obj instanceof Bundle[]) && !(obj instanceof Parcelable[]))) {
return null;
}
ArrayList arrayList = new ArrayList();
for (Parcelable parcelable : (Parcelable[]) obj) {
if (parcelable instanceof Bundle) {
Bundle liLLi2 = liLLi((Bundle) parcelable);
if (!liLLi2.isEmpty()) {
arrayList.add(liLLi2);
}
}
}
return arrayList.toArray(new Bundle[arrayList.size()]);
}
public final boolean LIILi(String str, String str2) {
Object obj = ((iliLLil) this).lLlii;
if (str2 == null) {
LLLli lLLli = ((llllli) obj).lIiiLli;
llllli.iLLLl(lLLli);
lLLli.iiIiLl.lIliL(str, "Name is required and can't be null. Type");
return false;
}
if (str2.length() == 0) {
LLLli lLLli2 = ((llllli) obj).lIiiLli;
llllli.iLLLl(lLLli2);
lLLli2.iiIiLl.lIliL(str, "Name is required and can't be empty. Type");
return false;
}
int codePointAt = str2.codePointAt(0);
if (!Character.isLetter(codePointAt)) {
LLLli lLLli3 = ((llllli) obj).lIiiLli;
llllli.iLLLl(lLLli3);
lLLli3.iiIiLl.LLiIl(str, str2, "Name must start with a letter. Type, name");
return false;
}
int length = str2.length();
int charCount = Character.charCount(codePointAt);
while (charCount < length) {
int codePointAt2 = str2.codePointAt(charCount);
if (codePointAt2 != 95 && !Character.isLetterOrDigit(codePointAt2)) {
LLLli lLLli4 = ((llllli) obj).lIiiLli;
llllli.iLLLl(lLLli4);
lLLli4.iiIiLl.LLiIl(str, str2, "Name must consist of letters, digits or _ (underscores). Type, name");
return false;
}
charCount += Character.charCount(codePointAt2);
}
return true;
}
@Override
public final boolean LILlLi() {
return true;
}
public final void LILli(Bundle bundle, int i, String str, Object obj) {
if (lLlili(i, bundle)) {
((llllli) ((iliLLil) this).lLlii).getClass();
bundle.putString("_ev", LLILli(40, true, str));
if (obj != null) {
if ((obj instanceof String) || (obj instanceof CharSequence)) {
bundle.putLong("_el", obj.toString().length());
}
}
}
}
public final boolean LIiII(Context context, String str) {
Signature[] signatureArr;
Object obj = ((iliLLil) this).lLlii;
X500Principal x500Principal = new X500Principal("CN=Android Debug,O=Android,C=US");
try {
PackageInfo iiILI = iLllL.iliLLil.lLILIl(context).iiILI(64, str);
if (iiILI == null || (signatureArr = iiILI.signatures) == null || signatureArr.length <= 0) {
return true;
}
return ((X509Certificate) CertificateFactory.getInstance("X.509").generateCertificate(new ByteArrayInputStream(signatureArr[0].toByteArray()))).getSubjectX500Principal().equals(x500Principal);
} catch (PackageManager.NameNotFoundException e) {
LLLli lLLli = ((llllli) obj).lIiiLli;
llllli.iLLLl(lLLli);
lLLli.LLILli.lIliL(e, "Package name not found");
return true;
} catch (CertificateException e2) {
LLLli lLLli2 = ((llllli) obj).lIiiLli;
llllli.iLLLl(lLLli2);
lLLli2.LLILli.lIliL(e2, "Error obtaining certificate");
return true;
}
}
public final boolean LIili(String str, String str2) {
llllli llllliVar = (llllli) ((iliLLil) this).lLlii;
boolean LllLii2 = llllliVar.IILlL.LllLii(null, liIiIiI.f114iilIIl);
LLLli lLLli = llllliVar.lIiiLli;
if (LllLii2) {
if (TextUtils.isEmpty(str)) {
if (TextUtils.isEmpty(llllliVar.iiILI)) {
llllli.iLLLl(lLLli);
lLLli.iiIiLl.lLILIl("Missing google_app_id. Firebase Analytics disabled. See https://goo.gl/NAOOOI");
return false;
}
} else {
if (IIilLI(str)) {
return true;
}
if (TextUtils.isEmpty(llllliVar.iiILI)) {
llllli.iLLLl(lLLli);
lLLli.iiIiLl.lIliL(LLLli.lIIiL(str), "Invalid google_app_id. Firebase Analytics disabled. See https://goo.gl/NAOOOI. provided id");
return false;
}
}
return false;
}
if (TextUtils.isEmpty(str)) {
if (TextUtils.isEmpty(str2)) {
if (TextUtils.isEmpty(llllliVar.iiILI)) {
llllli.iLLLl(lLLli);
lLLli.iiIiLl.lLILIl("Missing google_app_id. Firebase Analytics disabled. See https://goo.gl/NAOOOI");
}
return false;
}
if (!IIilLI(str2)) {
llllli.iLLLl(lLLli);
lLLli.iiIiLl.lIliL(LLLli.lIIiL(str2), "Invalid admob_app_id. Analytics disabled.");
return false;
}
} else if (!IIilLI(str)) {
if (TextUtils.isEmpty(llllliVar.iiILI)) {
llllli.iLLLl(lLLli);
lLLli.iiIiLl.lIliL(LLLli.lIIiL(str), "Invalid google_app_id. Firebase Analytics disabled. See https://goo.gl/NAOOOI. provided id");
}
return false;
}
return true;
}
public final int LLIll(String str) {
if (!LIILi("event param", str)) {
return 3;
}
if (!IlIIiiI("event param", null, null, str)) {
return 14;
}
((llllli) ((iliLLil) this).lLlii).getClass();
return !iIllL(40, "event param", str) ? 3 : 0;
}
public final void LLLIl(com.google.android.gms.internal.measurement.IlILllI ilILllI, long j) {
Bundle bundle = new Bundle();
bundle.putLong("r", j);
try {
ilILllI.zze(bundle);
} catch (RemoteException e) {
LLLli lLLli = ((llllli) ((iliLLil) this).lLlii).lIiiLli;
llllli.iLLLl(lLLli);
lLLli.lIiiLli.lIliL(e, "Error returning long value to wrapper");
}
}
public final int LLLliL() {
if (this.iiIiLl == null) {
llllli llllliVar = (llllli) ((iliLLil) this).lLlii;
liIllI.ilLll illll2 = liIllI.ilLll.lIliL;
Context context = llllliVar.lLlii;
illll2.getClass();
AtomicBoolean atomicBoolean = liIllI.iiIiiI.lLILIl;
int i = 0;
try {
i = context.getPackageManager().getPackageInfo("com.google.android.gms", 0).versionCode;
} catch (PackageManager.NameNotFoundException unused) {
Log.w("GooglePlayServicesUtil", "Google Play services is missing.");
}
this.iiIiLl = Integer.valueOf(i / DescriptorProtos.Edition.EDITION_2023_VALUE);
}
return this.iiIiLl.intValue();
}
public final boolean LLiil(String str) {
iiIiiI();
llllli llllliVar = (llllli) ((iliLLil) this).lLlii;
if (iLllL.iliLLil.lLILIl(llllliVar.lLlii).lLILIl.checkCallingOrSelfPermission(str) == 0) {
return true;
}
LLLli lLLli = llllliVar.lIiiLli;
llllli.iLLLl(lLLli);
lLLli.iilIL.lIliL(str, "Permission not granted");
return false;
}
public final long LLlii() {
throw new UnsupportedOperationException("Method not decompiled: lLLii.lILII.LLlii():long");
}
public final void Liiii(String str, String str2, Bundle bundle, List list, boolean z) {
int LLIll2;
int i;
LLLli lLLli;
String str3;
int lIlilI;
if (bundle == null) {
return;
}
llllli llllliVar = (llllli) ((iliLLil) this).lLlii;
lILII lilii = ((llllli) ((iliLLil) llllliVar.IILlL).lLlii).LlLlL;
llllli.iiIiiI(lilii);
int i2 = true != lilii.iLiLiI(231100000) ? 0 : 35;
Iterator it = new TreeSet(bundle.keySet()).iterator();
int i3 = 0;
boolean z2 = false;
while (it.hasNext()) {
String str4 = (String) it.next();
if (list == null || !list.contains(str4)) {
LLIll2 = !z ? LLIll(str4) : 0;
if (LLIll2 == 0) {
LLIll2 = IIIIlIi(str4);
}
} else {
LLIll2 = 0;
}
if (LLIll2 != 0) {
LILli(bundle, LLIll2, str4, LLIll2 == 3 ? str4 : null);
bundle.remove(str4);
i = i2;
} else {
boolean lLLIiI = lLLIiI(bundle.get(str4));
LLLli lLLli2 = llllliVar.lIiiLli;
if (lLLIiI) {
llllli.iLLLl(lLLli2);
lLLli2.LILli.iliLLil("Nested Bundle parameters are not allowed; discarded. event name, param name, child param name", str, str2, str4);
lIlilI = 22;
lLLli = lLLli2;
str3 = str4;
i = i2;
} else {
lLLli = lLLli2;
str3 = str4;
i = i2;
lIlilI = lIlilI(str, str4, bundle.get(str4), bundle, list, z, false);
}
if (lIlilI != 0 && !"_ev".equals(str3)) {
LILli(bundle, lIlilI, str3, bundle.get(str3));
bundle.remove(str3);
} else if (iilLli(str3) && !IILLiL(str3, IlLIl.IILii)) {
int i4 = i3 + 1;
boolean iLiLiI = iLiLiI(231100000);
lLlili lllili = llllliVar.iilIL;
if (iLiLiI) {
LLLli lLLli3 = lLLli;
if (i4 > i) {
if (!llllliVar.IILlL.LllLii(null, liIiIiI.f95LLilL) || !z2) {
llllli.iLLLl(lLLli3);
lLLli3.iiIiLl.LLiIl(lllili.iliLLil(str), lllili.lIliL(bundle), "Item can't contain more than " + i + " item-scoped custom params");
}
lLlili(28, bundle);
bundle.remove(str3);
i3 = i4;
i2 = i;
z2 = true;
}
} else {
llllli.iLLLl(lLLli);
lLLli.iiIiLl.LLiIl(lllili.iliLLil(str), lllili.lIliL(bundle), "Item array not supported on client's version of Google Play Services (Android Only)");
lLlili(23, bundle);
bundle.remove(str3);
}
i3 = i4;
}
}
i2 = i;
}
}
public final void LlLiILL(iIILLL iiilll, int i) {
Bundle bundle = (Bundle) iiilll.llLii;
Iterator it = new TreeSet(bundle.keySet()).iterator();
int i2 = 0;
boolean z = false;
while (it.hasNext()) {
String str = (String) it.next();
if (iilLli(str) && (i2 = i2 + 1) > i) {
llllli llllliVar = (llllli) ((iliLLil) this).lLlii;
if (!llllliVar.IILlL.LllLii(null, liIiIiI.f95LLilL) || !z) {
String lLILl = LlLlL.IILlL.lLILl("Event can't contain more than ", i, " params");
LLLli lLLli = llllliVar.lIiiLli;
llllli.iLLLl(lLLli);
String str2 = (String) iiilll.LLiIl;
lLlili lllili = llllliVar.iilIL;
lLLli.iiIiLl.LLiIl(lllili.iliLLil(str2), lllili.lIliL(bundle), lLILl);
lLlili(5, bundle);
}
bundle.remove(str);
z = true;
}
}
}
public final void LllLii(Bundle bundle, long j) {
long j2 = bundle.getLong("_et");
if (j2 != 0) {
LLLli lLLli = ((llllli) ((iliLLil) this).lLlii).lIiiLli;
llllli.iLLLl(lLLli);
lLLli.lIiiLli.lIliL(Long.valueOf(j2), "Params already contained engagement");
} else {
j2 = 0;
}
bundle.putLong("_et", j + j2);
}
public final long iIILLL() {
long andIncrement;
long j;
AtomicLong atomicLong = this.liLILi;
if (atomicLong.get() != 0) {
AtomicLong atomicLong2 = this.liLILi;
synchronized (atomicLong2) {
atomicLong2.compareAndSet(-1L, 1L);
andIncrement = atomicLong2.getAndIncrement();
}
return andIncrement;
}
synchronized (atomicLong) {
long nanoTime = System.nanoTime();
((llllli) ((iliLLil) this).lLlii).iliilLi.getClass();
long nextLong = new Random(nanoTime ^ System.currentTimeMillis()).nextLong();
int i = this.lIIiL + 1;
this.lIIiL = i;
j = nextLong + i;
}
return j;
}
public final void iIliII(com.google.android.gms.internal.measurement.IlILllI ilILllI, byte[] bArr) {
Bundle bundle = new Bundle();
bundle.putByteArray("r", bArr);
try {
ilILllI.zze(bundle);
} catch (RemoteException e) {
LLLli lLLli = ((llllli) ((iliLLil) this).lLlii).lIiiLli;
llllli.iLLLl(lLLli);
lLLli.lIiiLli.lIliL(e, "Error returning byte array to wrapper");
}
}
public final boolean iIllL(int i, String str, String str2) {
Object obj = ((iliLLil) this).lLlii;
if (str2 == null) {
LLLli lLLli = ((llllli) obj).lIiiLli;
llllli.iLLLl(lLLli);
lLLli.iiIiLl.lIliL(str, "Name is required and can't be null. Type");
return false;
}
if (str2.codePointCount(0, str2.length()) <= i) {
return true;
}
LLLli lLLli2 = ((llllli) obj).lIiiLli;
llllli.iLLLl(lLLli2);
lLLli2.iiIiLl.iliLLil("Name is too long. Type, maximum supported length, name", str, Integer.valueOf(i), str2);
return false;
}
public final int iLIlli(String str) {
if (!IlILllI("user property", str)) {
return 6;
}
if (!IlIIiiI("user property", IlLIl.iiIiiI, null, str)) {
return 15;
}
((llllli) ((iliLLil) this).lLlii).getClass();
return !iIllL(24, "user property", str) ? 6 : 0;
}
public final boolean iLiLiI(int i) {
Boolean bool = ((llllli) ((iliLLil) this).lLlii).LLILli().lIIiL;
if (LLLliL() < i / DescriptorProtos.Edition.EDITION_2023_VALUE) {
return (bool == null || bool.booleanValue()) ? false : true;
}
return true;
}
public final void iLilI(com.google.android.gms.internal.measurement.IlILllI ilILllI, ArrayList arrayList) {
Bundle bundle = new Bundle();
bundle.putParcelableArrayList("r", arrayList);
try {
ilILllI.zze(bundle);
} catch (RemoteException e) {
LLLli lLLli = ((llllli) ((iliLLil) this).lLlii).lIiiLli;
llllli.iLLLl(lLLli);
lLLli.lIiiLli.lIliL(e, "Error returning bundle list to wrapper");
}
}
public final IiILLi iiILI(String str, Bundle bundle, String str2, long j, boolean z) {
if (TextUtils.isEmpty(str)) {
return null;
}
if (liILil(str) != 0) {
llllli llllliVar = (llllli) ((iliLLil) this).lLlii;
LLLli lLLli = llllliVar.lIiiLli;
llllli.iLLLl(lLLli);
lLLli.LLILli.lIliL(llllliVar.iilIL.ilLll(str), "Invalid conditional property event name");
throw new IllegalArgumentException();
}
Bundle bundle2 = bundle != null ? new Bundle(bundle) : new Bundle();
bundle2.putString("_o", str2);
Bundle lLILl = lLILl(str, bundle2, Collections.singletonList("_o"), true);
if (z) {
lLILl = liLLi(lLILl);
}
IlIlliI.lLlii(lLILl);
return new IiILLi(str, new LlLiILL(lLILl), str2, j);
}
public final SecureRandom iiIiLl() {
iiIiiI();
if (this.ILLiI == null) {
this.ILLiI = new SecureRandom();
}
return this.ILLiI;
}
public final void iilIL(Bundle bundle, Bundle bundle2) {
if (bundle2 == null) {
return;
}
for (String str : bundle2.keySet()) {
if (!bundle.containsKey(str)) {
lILII lilii = ((llllli) ((iliLLil) this).lLlii).LlLlL;
llllli.iiIiiI(lilii);
lilii.liIiI(bundle, str, bundle2.get(str));
}
}
}
public final int iilIlI(String str) {
boolean equals = "_ldl".equals(str);
Object obj = ((iliLLil) this).lLlii;
if (equals) {
((llllli) obj).getClass();
return Fields.CameraDistance;
}
if ("_id".equals(str)) {
((llllli) obj).getClass();
return Fields.RotationX;
}
if ("_lgclid".equals(str)) {
((llllli) obj).getClass();
return 100;
}
((llllli) obj).getClass();
return 36;
}
public final void iilLIL(com.google.android.gms.internal.measurement.IlILllI ilILllI, boolean z) {
Bundle bundle = new Bundle();
bundle.putBoolean("r", z);
try {
ilILllI.zze(bundle);
} catch (RemoteException e) {
LLLli lLLli = ((llllli) ((iliLLil) this).lLlii).lIiiLli;
llllli.iLLLl(lLLli);
lLLli.lIiiLli.lIliL(e, "Error returning boolean value to wrapper");
}
}
public final boolean iliLi(String str, String str2) {
if (!TextUtils.isEmpty(str2)) {
return true;
}
if (TextUtils.isEmpty(str)) {
return false;
}
return ((llllli) ((iliLLil) this).lLlii).IILlL.lLILl("debug.firebase.analytics.app").equals(str);
}
public final int iliLlIl(Object obj, String str) {
return "_ldl".equals(str) ? IILliLL("user property referrer", str, iilIlI(str), obj) : IILliLL("user property", str, iilIlI(str), obj) ? 0 : 7;
}
public final void iliilLi(Parcelable[] parcelableArr, int i) {
IlIlliI.lLlii(parcelableArr);
for (Parcelable parcelable : parcelableArr) {
Bundle bundle = (Bundle) parcelable;
Iterator it = new TreeSet(bundle.keySet()).iterator();
int i2 = 0;
boolean z = false;
while (it.hasNext()) {
String str = (String) it.next();
if (iilLli(str) && !IILLiL(str, IlLIl.IILii) && (i2 = i2 + 1) > i) {
llllli llllliVar = (llllli) ((iliLLil) this).lLlii;
if (!llllliVar.IILlL.LllLii(null, liIiIiI.f95LLilL) || !z) {
LLLli lLLli = llllliVar.lIiiLli;
llllli.iLLLl(lLLli);
lLlili lllili = llllliVar.iilIL;
lLLli.iiIiLl.LLiIl(lllili.llLii(str), lllili.lIliL(bundle), "Param can't contain more than " + i + " item-scoped custom parameters");
}
lLlili(28, bundle);
bundle.remove(str);
z = true;
}
}
}
}
public final String lIIiL() {
byte[] bArr = new byte[16];
iiIiLl().nextBytes(bArr);
return String.format(Locale.US, "%032x", new BigInteger(1, bArr));
}
public final int lIlilI(java.lang.String r14, java.lang.String r15, java.lang.Object r16, android.os.Bundle r17, java.util.List r18, boolean r19, boolean r20) {
throw new UnsupportedOperationException("Method not decompiled: lLLii.lILII.lIlilI(java.lang.String, java.lang.String, java.lang.Object, android.os.Bundle, java.util.List, boolean, boolean):int");
}
public final Bundle lLILl(String str, Bundle bundle, List list, boolean z) {
int LLIll2;
int i;
List list2 = list;
boolean IILLiL = IILLiL(str, IlLIl.iliLLil);
if (bundle == null) {
return null;
}
Bundle bundle2 = new Bundle(bundle);
llllli llllliVar = (llllli) ((iliLLil) this).lLlii;
lILII lilii = ((llllli) ((iliLLil) llllliVar.IILlL).lLlii).LlLlL;
llllli.iiIiiI(lilii);
int i2 = lilii.iLiLiI(201500000) ? 100 : 25;
Iterator it = new TreeSet(bundle.keySet()).iterator();
int i3 = 0;
boolean z2 = false;
while (it.hasNext()) {
String str2 = (String) it.next();
if (list2 == null || !list2.contains(str2)) {
LLIll2 = !z ? LLIll(str2) : 0;
if (LLIll2 == 0) {
LLIll2 = IIIIlIi(str2);
}
} else {
LLIll2 = 0;
}
if (LLIll2 != 0) {
LILli(bundle2, LLIll2, str2, LLIll2 == 3 ? str2 : null);
bundle2.remove(str2);
i = i2;
} else {
i = i2;
int lIlilI = lIlilI(str, str2, bundle.get(str2), bundle2, list, z, IILLiL);
if (lIlilI == 17) {
LILli(bundle2, 17, str2, Boolean.FALSE);
} else if (lIlilI != 0 && !"_ev".equals(str2)) {
LILli(bundle2, lIlilI, lIlilI == 21 ? str : str2, bundle.get(str2));
bundle2.remove(str2);
}
if (iilLli(str2)) {
int i4 = i3 + 1;
if (i4 > i) {
if (!llllliVar.IILlL.LllLii(null, liIiIiI.f95LLilL) || !z2) {
String lLILl = LlLlL.IILlL.lLILl("Event can't contain more than ", i, " params");
LLLli lLLli = llllliVar.lIiiLli;
llllli.iLLLl(lLLli);
lLlili lllili = llllliVar.iilIL;
lLLli.iiIiLl.LLiIl(lllili.iliLLil(str), lllili.lIliL(bundle), lLILl);
}
lLlili(5, bundle2);
bundle2.remove(str2);
z2 = true;
}
i3 = i4;
i2 = i;
list2 = list;
}
}
i2 = i;
list2 = list;
}
return bundle2;
}
public final boolean lLLIl(String str, String str2, String str3, String str4) {
if (((llllli) ((iliLLil) this).lLlii).IILlL.LllLii(null, liIiIiI.f114iilIIl)) {
boolean isEmpty = TextUtils.isEmpty(str);
boolean isEmpty2 = TextUtils.isEmpty(str2);
if (!isEmpty && !isEmpty2) {
IlIlliI.lLlii(str);
if (!str.equals(str2)) {
return true;
}
}
return false;
}
boolean isEmpty3 = TextUtils.isEmpty(str);
boolean isEmpty4 = TextUtils.isEmpty(str2);
if (!isEmpty3 && !isEmpty4) {
IlIlliI.lLlii(str);
return !str.equals(str2);
}
if (isEmpty3 && isEmpty4) {
return (TextUtils.isEmpty(str3) || TextUtils.isEmpty(str4)) ? !TextUtils.isEmpty(str4) : !str3.equals(str4);
}
if (isEmpty3) {
return TextUtils.isEmpty(str3) || !str3.equals(str4);
}
if (TextUtils.isEmpty(str4)) {
return false;
}
return TextUtils.isEmpty(str3) || !str3.equals(str4);
}
public final androidx.privacysandbox.ads.adservices.java.measurement.IILii lLlii() {
Object obj;
androidx.privacysandbox.ads.adservices.measurement.llLii lllii;
if (this.LLILli == null) {
Context context = ((llllli) ((iliLLil) this).lLlii).lLlii;
Intrinsics.checkNotNullParameter(context, "context");
Intrinsics.checkNotNullParameter(context, "context");
StringBuilder sb = new StringBuilder("AdServicesInfo.version=");
int i = Build.VERSION.SDK_INT;
lIliL lilil = lIliL.lLILIl;
sb.append(i >= 33 ? lilil.lLILIl() : 0);
Log.d("MeasurementManager", sb.toString());
if (i < 33 || lilil.lLILIl() < 5) {
lLILIl llilil = lLILIl.lLILIl;
if ((i == 31 || i == 32) && llilil.lLILIl() >= 9) {
androidx.privacysandbox.ads.adservices.measurement.lIliL lilil2 = new androidx.privacysandbox.ads.adservices.measurement.lIliL(context);
Intrinsics.checkNotNullParameter(context, "context");
Intrinsics.checkNotNullParameter("MeasurementManager", "tag");
Intrinsics.checkNotNullParameter(lilil2, "manager");
try {
obj = lilil2.invoke(context);
} catch (NoClassDefFoundError unused) {
StringBuilder sb2 = new StringBuilder("Unable to find adservices code, check manifest for uses-library tag, versionS=");
int i2 = Build.VERSION.SDK_INT;
sb2.append((i2 == 31 || i2 == 32) ? llilil.lLILIl() : 0);
Log.d("MeasurementManager", sb2.toString());
obj = null;
}
lllii = (androidx.privacysandbox.ads.adservices.measurement.llLii) obj;
} else {
lllii = null;
}
} else {
lllii = new LLiIl(context, 1);
}
this.LLILli = lllii != null ? new androidx.privacysandbox.ads.adservices.java.measurement.IILii(lllii) : null;
}
return this.LLILli;
}
public final void liIIii(String str, com.google.android.gms.internal.measurement.IlILllI ilILllI) {
Bundle bundle = new Bundle();
bundle.putString("r", str);
try {
ilILllI.zze(bundle);
} catch (RemoteException e) {
LLLli lLLli = ((llllli) ((iliLLil) this).lLlii).lIiiLli;
llllli.iLLLl(lLLli);
lLLli.lIiiLli.lIliL(e, "Error returning string value to wrapper");
}
}
public final int liILil(String str) {
if (!IlILllI("event", str)) {
return 2;
}
if (!IlIIiiI("event", IlLIl.lLILIl, IlLIl.lIliL, str)) {
return 13;
}
((llllli) ((iliLLil) this).lLlii).getClass();
return !iIllL(40, "event", str) ? 2 : 0;
}
public final void liIiI(Bundle bundle, String str, Object obj) {
if (bundle == null) {
return;
}
if (obj instanceof Long) {
bundle.putLong(str, ((Long) obj).longValue());
return;
}
if (obj instanceof String) {
bundle.putString(str, String.valueOf(obj));
return;
}
if (obj instanceof Double) {
bundle.putDouble(str, ((Double) obj).doubleValue());
return;
}
if (obj instanceof Bundle[]) {
bundle.putParcelableArray(str, (Bundle[]) obj);
return;
}
if (str != null) {
String simpleName = obj != null ? obj.getClass().getSimpleName() : null;
llllli llllliVar = (llllli) ((iliLLil) this).lLlii;
LLLli lLLli = llllliVar.lIiiLli;
llllli.iLLLl(lLLli);
lLLli.LILli.LLiIl(llllliVar.iilIL.llLii(str), simpleName, "Not putting event parameter. Invalid value type. name, type");
}
}
public final void liIiIiI() {
iiIiiI();
SecureRandom secureRandom = new SecureRandom();
long nextLong = secureRandom.nextLong();
if (nextLong == 0) {
nextLong = secureRandom.nextLong();
if (nextLong == 0) {
LLLli lLLli = ((llllli) ((iliLLil) this).lLlii).lIiiLli;
llllli.iLLLl(lLLli);
lLLli.lIiiLli.lLILIl("Utils falling back to Random for random id");
}
}
this.liLILi.set(nextLong);
}
public final Object liLILi(Object obj, String str) {
return "_ldl".equals(str) ? IlllI(iilIlI(str), obj, true, false) : IlllI(iilIlI(str), obj, false, false);
}
public final Bundle liLLi(Bundle bundle) {
Bundle bundle2 = new Bundle();
if (bundle != null) {
for (String str : bundle.keySet()) {
Object ILLiI = ILLiI(bundle.get(str), str);
if (ILLiI == null) {
llllli llllliVar = (llllli) ((iliLLil) this).lLlii;
LLLli lLLli = llllliVar.lIiiLli;
llllli.iLLLl(lLLli);
lLLli.LILli.lIliL(llllliVar.iilIL.llLii(str), "Param value can't be null");
} else {
liIiI(bundle2, str, ILLiI);
}
}
}
return bundle2;
}
public final void liLLllI(com.google.android.gms.internal.measurement.IlILllI ilILllI, Bundle bundle) {
try {
ilILllI.zze(bundle);
} catch (RemoteException e) {
LLLli lLLli = ((llllli) ((iliLLil) this).lLlii).lIiiLli;
llllli.iLLLl(lLLli);
lLLli.lIiiLli.lIliL(e, "Error returning bundle value to wrapper");
}
}
public final void lllIill(com.google.android.gms.internal.measurement.IlILllI ilILllI, int i) {
Bundle bundle = new Bundle();
bundle.putInt("r", i);
try {
ilILllI.zze(bundle);
} catch (RemoteException e) {
LLLli lLLli = ((llllli) ((iliLLil) this).lLlii).lIiiLli;
llllli.iLLLl(lLLli);
lLLli.lIiiLli.lIliL(e, "Error returning int value to wrapper");
}
}
}