867 lines
32 KiB
Java
867 lines
32 KiB
Java
package com.google.android.gms.internal.gtm;
|
|
|
|
import android.content.ComponentName;
|
|
import android.content.Context;
|
|
import android.content.pm.PackageManager;
|
|
import android.content.pm.ServiceInfo;
|
|
import android.graphics.Color;
|
|
import android.media.AudioTrack;
|
|
import android.os.Process;
|
|
import android.os.SystemClock;
|
|
import android.telephony.cdma.CdmaCellLocation;
|
|
import android.text.TextUtils;
|
|
import android.view.Gravity;
|
|
import android.view.KeyEvent;
|
|
import android.view.View;
|
|
import android.view.ViewConfiguration;
|
|
import android.widget.ExpandableListView;
|
|
import com.google.android.gms.common.internal.Preconditions;
|
|
import com.google.android.gms.common.util.HttpUtils;
|
|
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
|
|
import com.google.common.base.Ascii;
|
|
import com.huawei.hms.android.HwBuildEx;
|
|
import com.huawei.hms.framework.common.ContainerUtils;
|
|
import java.io.UnsupportedEncodingException;
|
|
import java.lang.reflect.Method;
|
|
import java.net.URI;
|
|
import java.net.URISyntaxException;
|
|
import java.net.URLDecoder;
|
|
import java.security.MessageDigest;
|
|
import java.security.NoSuchAlgorithmException;
|
|
import java.util.HashMap;
|
|
import java.util.Locale;
|
|
import java.util.Map;
|
|
import o.IRS;
|
|
import o.xzZ;
|
|
|
|
/* loaded from: classes.dex */
|
|
public final class zzcz {
|
|
private static final byte[] $$a = {Ascii.ESC, -53, 19, -66};
|
|
private static final int $$b = 74;
|
|
private static int $10 = 0;
|
|
private static int $11 = 1;
|
|
private static int a = 1;
|
|
private static int b;
|
|
private static char c;
|
|
private static char[] d;
|
|
private static final char[] zzact;
|
|
|
|
/* JADX WARN: Removed duplicated region for block: B:10:0x0026 */
|
|
/* JADX WARN: Removed duplicated region for block: B:7:0x001e */
|
|
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0026 -> B:4:0x002a). Please report as a decompilation issue!!! */
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
private static void f(int r6, byte r7, short r8, java.lang.Object[] r9) {
|
|
/*
|
|
byte[] r0 = com.google.android.gms.internal.gtm.zzcz.$$a
|
|
int r8 = r8 * 4
|
|
int r1 = r8 + 1
|
|
int r7 = r7 * 4
|
|
int r7 = r7 + 4
|
|
int r6 = 120 - r6
|
|
byte[] r1 = new byte[r1]
|
|
r2 = 0
|
|
if (r0 != 0) goto L15
|
|
r6 = r7
|
|
r4 = r8
|
|
r3 = r2
|
|
goto L2a
|
|
L15:
|
|
r3 = r2
|
|
r5 = r7
|
|
r7 = r6
|
|
r6 = r5
|
|
L19:
|
|
byte r4 = (byte) r7
|
|
r1[r3] = r4
|
|
if (r3 != r8) goto L26
|
|
java.lang.String r6 = new java.lang.String
|
|
r6.<init>(r1, r2)
|
|
r9[r2] = r6
|
|
return
|
|
L26:
|
|
int r3 = r3 + 1
|
|
r4 = r0[r6]
|
|
L2a:
|
|
int r7 = r7 + r4
|
|
int r6 = r6 + 1
|
|
goto L19
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.internal.gtm.zzcz.f(int, byte, short, java.lang.Object[]):void");
|
|
}
|
|
|
|
public static Map<String, String> zzaf(String str) {
|
|
int i = 2 % 2;
|
|
HashMap hashMap = new HashMap();
|
|
for (String str2 : str.split(ContainerUtils.FIELD_DELIMITER)) {
|
|
int i2 = a + 25;
|
|
b = i2 % 128;
|
|
int i3 = i2 % 2;
|
|
String[] split = str2.split(ContainerUtils.KEY_VALUE_DELIMITER, 3);
|
|
String str3 = null;
|
|
if (split.length > 1) {
|
|
hashMap.put(split[0], TextUtils.isEmpty(split[1]) ? null : split[1]);
|
|
if (split.length == 3 && !TextUtils.isEmpty(split[1])) {
|
|
int i4 = b + 87;
|
|
a = i4 % 128;
|
|
int i5 = i4 % 2;
|
|
if (!hashMap.containsKey(split[1])) {
|
|
String str4 = split[1];
|
|
if (TextUtils.isEmpty(split[2])) {
|
|
int i6 = b + 41;
|
|
a = i6 % 128;
|
|
if (i6 % 2 == 0) {
|
|
int i7 = 32 / 0;
|
|
}
|
|
} else {
|
|
str3 = split[2];
|
|
}
|
|
hashMap.put(str4, str3);
|
|
int i8 = b + 67;
|
|
a = i8 % 128;
|
|
int i9 = i8 % 2;
|
|
}
|
|
}
|
|
} else if (split.length == 1 && split[0].length() != 0) {
|
|
hashMap.put(split[0], null);
|
|
}
|
|
}
|
|
return hashMap;
|
|
}
|
|
|
|
public static double zza(String str, double d2) {
|
|
int i = 2 % 2;
|
|
int i2 = b;
|
|
int i3 = i2 + 27;
|
|
a = i3 % 128;
|
|
int i4 = i3 % 2;
|
|
if (str != null) {
|
|
try {
|
|
return Double.parseDouble(str);
|
|
} catch (NumberFormatException unused) {
|
|
return 100.0d;
|
|
}
|
|
}
|
|
int i5 = i2 + 17;
|
|
a = i5 % 128;
|
|
if (i5 % 2 == 0) {
|
|
int i6 = 89 / 0;
|
|
}
|
|
return 100.0d;
|
|
}
|
|
|
|
public static long zzag(String str) {
|
|
int i = 2 % 2;
|
|
long j = 0;
|
|
if (str == null) {
|
|
int i2 = a + 51;
|
|
b = i2 % 128;
|
|
int i3 = i2 % 2;
|
|
return 0L;
|
|
}
|
|
try {
|
|
j = Long.parseLong(str);
|
|
int i4 = a + 105;
|
|
b = i4 % 128;
|
|
int i5 = i4 % 2;
|
|
} catch (NumberFormatException unused) {
|
|
}
|
|
return j;
|
|
}
|
|
|
|
public static boolean zzb(String str, boolean z) {
|
|
int i = 2 % 2;
|
|
if (str != null) {
|
|
int i2 = a + 69;
|
|
b = i2 % 128;
|
|
Object obj = null;
|
|
if (i2 % 2 == 0) {
|
|
if (!str.equalsIgnoreCase("true") && !str.equalsIgnoreCase("yes")) {
|
|
Object[] objArr = new Object[1];
|
|
e(1 - TextUtils.indexOf("", "", 0), new char[]{13786}, (byte) ((ViewConfiguration.getGlobalActionKeyTimeout() > 0L ? 1 : (ViewConfiguration.getGlobalActionKeyTimeout() == 0L ? 0 : -1)) + 46), objArr);
|
|
if (!str.equalsIgnoreCase(((String) objArr[0]).intern())) {
|
|
if (!str.equalsIgnoreCase("false")) {
|
|
int i3 = b + 73;
|
|
a = i3 % 128;
|
|
if (i3 % 2 != 0) {
|
|
if (!str.equalsIgnoreCase("no")) {
|
|
e((AudioTrack.getMaxVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMaxVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), new char[]{13740}, (byte) (TextUtils.indexOf((CharSequence) "", '0', 0) + 3), new Object[1]);
|
|
if (!(!str.equalsIgnoreCase(((String) r4[0]).intern()))) {
|
|
}
|
|
}
|
|
} else {
|
|
str.equalsIgnoreCase("no");
|
|
throw null;
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
}
|
|
} else {
|
|
str.equalsIgnoreCase("true");
|
|
obj.hashCode();
|
|
throw null;
|
|
}
|
|
}
|
|
return true;
|
|
}
|
|
|
|
public static String zzah(String str) {
|
|
String str2 = str;
|
|
int i = 2 % 2;
|
|
int i2 = b + 47;
|
|
a = i2 % 128;
|
|
Object obj = null;
|
|
if (i2 % 2 == 0) {
|
|
TextUtils.isEmpty(str);
|
|
obj.hashCode();
|
|
throw null;
|
|
}
|
|
if (TextUtils.isEmpty(str)) {
|
|
int i3 = a + 81;
|
|
b = i3 % 128;
|
|
int i4 = i3 % 2;
|
|
return null;
|
|
}
|
|
if (str2.contains("?")) {
|
|
int i5 = a + 69;
|
|
b = i5 % 128;
|
|
int i6 = i5 % 2;
|
|
String[] split = str2.split("[\\?]");
|
|
if (split.length > 1) {
|
|
str2 = split[1];
|
|
}
|
|
}
|
|
if (str2.contains("%3D")) {
|
|
int i7 = a + 15;
|
|
b = i7 % 128;
|
|
try {
|
|
if (i7 % 2 != 0) {
|
|
URLDecoder.decode(str2, "UTF-8");
|
|
throw null;
|
|
}
|
|
str2 = URLDecoder.decode(str2, "UTF-8");
|
|
} catch (UnsupportedEncodingException unused) {
|
|
return null;
|
|
}
|
|
} else if (!str2.contains(ContainerUtils.KEY_VALUE_DELIMITER)) {
|
|
return null;
|
|
}
|
|
Map<String, String> zzaf = zzaf(str2);
|
|
String[] strArr = {"dclid", "utm_source", "gclid", "aclid", "utm_campaign", "utm_medium", "utm_term", "utm_content", "utm_id", "anid", "gmob_t"};
|
|
StringBuilder sb = new StringBuilder();
|
|
for (int i8 = 0; i8 < 11; i8++) {
|
|
if (!TextUtils.isEmpty(zzaf.get(strArr[i8]))) {
|
|
if (sb.length() > 0) {
|
|
sb.append(ContainerUtils.FIELD_DELIMITER);
|
|
int i9 = a + 55;
|
|
b = i9 % 128;
|
|
if (i9 % 2 != 0) {
|
|
int i10 = 2 % 3;
|
|
}
|
|
}
|
|
sb.append(strArr[i8]);
|
|
sb.append(ContainerUtils.KEY_VALUE_DELIMITER);
|
|
sb.append(zzaf.get(strArr[i8]));
|
|
}
|
|
}
|
|
return sb.toString();
|
|
}
|
|
|
|
public static zzr zza(zzci zzciVar, String str) {
|
|
String str2;
|
|
int i = 2 % 2;
|
|
Preconditions.checkNotNull(zzciVar);
|
|
if (TextUtils.isEmpty(str)) {
|
|
int i2 = a + 111;
|
|
b = i2 % 128;
|
|
if (i2 % 2 != 0) {
|
|
int i3 = 47 / 0;
|
|
}
|
|
return null;
|
|
}
|
|
new HashMap();
|
|
try {
|
|
String valueOf = String.valueOf(str);
|
|
if (valueOf.length() != 0) {
|
|
str2 = "?".concat(valueOf);
|
|
} else {
|
|
str2 = new String("?");
|
|
int i4 = b + 57;
|
|
a = i4 % 128;
|
|
int i5 = i4 % 2;
|
|
}
|
|
Map<String, String> parse = HttpUtils.parse(new URI(str2), "UTF-8");
|
|
zzr zzrVar = new zzr();
|
|
zzrVar.zzf(parse.get("utm_content"));
|
|
zzrVar.zzd(parse.get("utm_medium"));
|
|
zzrVar.setName(parse.get("utm_campaign"));
|
|
zzrVar.zzc(parse.get("utm_source"));
|
|
zzrVar.zze(parse.get("utm_term"));
|
|
zzrVar.zzg(parse.get("utm_id"));
|
|
zzrVar.zzh(parse.get("anid"));
|
|
zzrVar.zzi(parse.get("gclid"));
|
|
zzrVar.zzj(parse.get("dclid"));
|
|
zzrVar.zzk(parse.get("aclid"));
|
|
return zzrVar;
|
|
} catch (URISyntaxException e) {
|
|
zzciVar.zzd("No valid campaign data found", e);
|
|
return null;
|
|
}
|
|
}
|
|
|
|
public static String zza(Locale locale) {
|
|
int i = 2 % 2;
|
|
Object obj = null;
|
|
if (locale == null) {
|
|
int i2 = a + 97;
|
|
b = i2 % 128;
|
|
int i3 = i2 % 2;
|
|
return null;
|
|
}
|
|
String language = locale.getLanguage();
|
|
if (TextUtils.isEmpty(language)) {
|
|
int i4 = a + 119;
|
|
b = i4 % 128;
|
|
if (i4 % 2 != 0) {
|
|
int i5 = 8 / 0;
|
|
}
|
|
return null;
|
|
}
|
|
StringBuilder sb = new StringBuilder();
|
|
sb.append(language.toLowerCase(locale));
|
|
if (!TextUtils.isEmpty(locale.getCountry())) {
|
|
int i6 = b + 67;
|
|
a = i6 % 128;
|
|
if (i6 % 2 == 0) {
|
|
sb.append("-");
|
|
sb.append(locale.getCountry().toLowerCase(locale));
|
|
obj.hashCode();
|
|
throw null;
|
|
}
|
|
sb.append("-");
|
|
sb.append(locale.getCountry().toLowerCase(locale));
|
|
}
|
|
return sb.toString();
|
|
}
|
|
|
|
public static void zzb(Map<String, String> map, String str, String str2) {
|
|
int i = 2 % 2;
|
|
int i2 = b + 11;
|
|
int i3 = i2 % 128;
|
|
a = i3;
|
|
Object obj = null;
|
|
if (i2 % 2 == 0) {
|
|
obj.hashCode();
|
|
throw null;
|
|
}
|
|
if (str2 != null) {
|
|
int i4 = i3 + 119;
|
|
b = i4 % 128;
|
|
if (i4 % 2 == 0) {
|
|
if (!map.containsKey(str)) {
|
|
map.put(str, str2);
|
|
}
|
|
} else {
|
|
map.containsKey(str);
|
|
obj.hashCode();
|
|
throw null;
|
|
}
|
|
}
|
|
}
|
|
|
|
public static void zzc(Map<String, String> map, String str, String str2) {
|
|
int i = 2 % 2;
|
|
int i2 = a + 71;
|
|
b = i2 % 128;
|
|
int i3 = i2 % 2;
|
|
if (str2 != null && TextUtils.isEmpty(map.get(str))) {
|
|
int i4 = a + 45;
|
|
b = i4 % 128;
|
|
int i5 = i4 % 2;
|
|
map.put(str, str2);
|
|
if (i5 != 0) {
|
|
throw null;
|
|
}
|
|
}
|
|
int i6 = a + 77;
|
|
b = i6 % 128;
|
|
int i7 = i6 % 2;
|
|
}
|
|
|
|
public static void zzb(Map<String, String> map, String str, boolean z) {
|
|
Object obj;
|
|
int i = 2 % 2;
|
|
int i2 = b + 91;
|
|
a = i2 % 128;
|
|
Object obj2 = null;
|
|
if (i2 % 2 == 0) {
|
|
map.containsKey(str);
|
|
obj2.hashCode();
|
|
throw null;
|
|
}
|
|
if (!map.containsKey(str)) {
|
|
int i3 = b + 119;
|
|
a = i3 % 128;
|
|
int i4 = i3 % 2;
|
|
if (z) {
|
|
Object[] objArr = new Object[1];
|
|
e(Color.argb(0, 0, 0, 0) + 1, new char[]{13786}, (byte) (Gravity.getAbsoluteGravity(0, 0) + 47), objArr);
|
|
obj = objArr[0];
|
|
} else {
|
|
Object[] objArr2 = new Object[1];
|
|
e((ViewConfiguration.getPressedStateDuration() >> 16) + 1, new char[]{13740}, (byte) (2 - TextUtils.getOffsetAfter("", 0)), objArr2);
|
|
obj = objArr2[0];
|
|
}
|
|
map.put(str, ((String) obj).intern());
|
|
}
|
|
int i5 = a + 105;
|
|
b = i5 % 128;
|
|
if (i5 % 2 == 0) {
|
|
return;
|
|
}
|
|
obj2.hashCode();
|
|
throw null;
|
|
}
|
|
|
|
public static void zza(Map<String, String> map, String str, Map<String, String> map2) {
|
|
int i = 2 % 2;
|
|
int i2 = a + 113;
|
|
b = i2 % 128;
|
|
int i3 = i2 % 2;
|
|
String str2 = map2.get(str);
|
|
if (i3 == 0) {
|
|
zzb(map, str, str2);
|
|
return;
|
|
}
|
|
zzb(map, str, str2);
|
|
Object obj = null;
|
|
obj.hashCode();
|
|
throw null;
|
|
}
|
|
|
|
public static MessageDigest zzai(String str) {
|
|
MessageDigest messageDigest;
|
|
int i = 2 % 2;
|
|
int i2 = a + 105;
|
|
b = i2 % 128;
|
|
if (i2 % 2 != 0) {
|
|
int i3 = 5 % 2;
|
|
}
|
|
for (int i4 = 0; i4 < 2; i4++) {
|
|
int i5 = a + 75;
|
|
b = i5 % 128;
|
|
int i6 = i5 % 2;
|
|
try {
|
|
messageDigest = MessageDigest.getInstance(str);
|
|
} catch (NoSuchAlgorithmException unused) {
|
|
}
|
|
if (messageDigest != null) {
|
|
return messageDigest;
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
|
|
public static boolean zza(double d2, String str) {
|
|
int i;
|
|
int i2 = 2 % 2;
|
|
if (d2 > 0.0d) {
|
|
int i3 = b + 1;
|
|
a = i3 % 128;
|
|
int i4 = i3 % 2;
|
|
if (d2 < 100.0d) {
|
|
if (!TextUtils.isEmpty(str)) {
|
|
int i5 = a + 105;
|
|
b = i5 % 128;
|
|
int i6 = i5 % 2;
|
|
int length = str.length() - 1;
|
|
i = 0;
|
|
while (length >= 0) {
|
|
int i7 = a + 57;
|
|
b = i7 % 128;
|
|
int i8 = i7 % 2;
|
|
char charAt = str.charAt(length);
|
|
i = ((i << 6) & 268435455) + charAt + (charAt << 14);
|
|
int i9 = 266338304 & i;
|
|
if (i9 != 0) {
|
|
int i10 = a + 111;
|
|
b = i10 % 128;
|
|
int i11 = i10 % 2;
|
|
i ^= i9 >> 21;
|
|
}
|
|
length--;
|
|
int i12 = b + 23;
|
|
a = i12 % 128;
|
|
int i13 = i12 % 2;
|
|
}
|
|
} else {
|
|
i = 1;
|
|
}
|
|
if (i % HwBuildEx.VersionCodes.CUR_DEVELOPMENT >= d2 * 100.0d) {
|
|
return true;
|
|
}
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
|
|
/* JADX WARN: Code restructure failed: missing block: B:10:0x003b, code lost:
|
|
|
|
return false;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:11:0x001f, code lost:
|
|
|
|
r5 = com.google.android.gms.internal.gtm.zzcz.a + 113;
|
|
com.google.android.gms.internal.gtm.zzcz.b = r5 % 128;
|
|
r5 = r5 % 2;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:12:0x0028, code lost:
|
|
|
|
return true;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:14:0x001d, code lost:
|
|
|
|
if (android.text.TextUtils.isEmpty(r5) != false) goto L9;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:4:0x0016, code lost:
|
|
|
|
if (android.text.TextUtils.isEmpty(r5) != false) goto L9;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:6:0x002f, code lost:
|
|
|
|
if (r5.startsWith("http:") != false) goto L14;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:7:0x0031, code lost:
|
|
|
|
return true;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:9:0x0032, code lost:
|
|
|
|
r5 = com.google.android.gms.internal.gtm.zzcz.b + 83;
|
|
com.google.android.gms.internal.gtm.zzcz.a = r5 % 128;
|
|
r5 = r5 % 2;
|
|
*/
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public static boolean zzaj(java.lang.String r5) {
|
|
/*
|
|
r0 = 2
|
|
int r1 = r0 % r0
|
|
int r1 = com.google.android.gms.internal.gtm.zzcz.a
|
|
int r1 = r1 + 101
|
|
int r2 = r1 % 128
|
|
com.google.android.gms.internal.gtm.zzcz.b = r2
|
|
int r1 = r1 % r0
|
|
r2 = 1
|
|
r3 = 0
|
|
if (r1 == 0) goto L19
|
|
boolean r1 = android.text.TextUtils.isEmpty(r5)
|
|
r4 = 5
|
|
int r4 = r4 / r3
|
|
if (r1 == 0) goto L29
|
|
goto L1f
|
|
L19:
|
|
boolean r1 = android.text.TextUtils.isEmpty(r5)
|
|
if (r1 == 0) goto L29
|
|
L1f:
|
|
int r5 = com.google.android.gms.internal.gtm.zzcz.a
|
|
int r5 = r5 + 113
|
|
int r1 = r5 % 128
|
|
com.google.android.gms.internal.gtm.zzcz.b = r1
|
|
int r5 = r5 % r0
|
|
return r2
|
|
L29:
|
|
java.lang.String r1 = "http:"
|
|
boolean r5 = r5.startsWith(r1)
|
|
if (r5 != 0) goto L32
|
|
return r2
|
|
L32:
|
|
int r5 = com.google.android.gms.internal.gtm.zzcz.b
|
|
int r5 = r5 + 83
|
|
int r1 = r5 % 128
|
|
com.google.android.gms.internal.gtm.zzcz.a = r1
|
|
int r5 = r5 % r0
|
|
return r3
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.internal.gtm.zzcz.zzaj(java.lang.String):boolean");
|
|
}
|
|
|
|
/* JADX WARN: Code restructure failed: missing block: B:11:0x003a, code lost:
|
|
|
|
if (android.content.pm.ActivityInfo.class.getField("exported").getBoolean(r4) != true) goto L16;
|
|
*/
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public static boolean zza(android.content.Context r4, java.lang.String r5, boolean r6) {
|
|
/*
|
|
r0 = 2
|
|
int r1 = r0 % r0
|
|
r1 = 0
|
|
android.content.pm.PackageManager r2 = r4.getPackageManager() // Catch: android.content.pm.PackageManager.NameNotFoundException -> L47
|
|
android.content.ComponentName r3 = new android.content.ComponentName // Catch: android.content.pm.PackageManager.NameNotFoundException -> L47
|
|
r3.<init>(r4, r5) // Catch: android.content.pm.PackageManager.NameNotFoundException -> L47
|
|
android.content.pm.ActivityInfo r4 = r2.getReceiverInfo(r3, r1) // Catch: android.content.pm.PackageManager.NameNotFoundException -> L47
|
|
if (r4 == 0) goto L47
|
|
java.lang.Class<android.content.pm.ActivityInfo> r5 = android.content.pm.ActivityInfo.class
|
|
java.lang.String r2 = "enabled"
|
|
java.lang.reflect.Field r5 = r5.getField(r2) // Catch: android.content.pm.PackageManager.NameNotFoundException -> L47
|
|
boolean r5 = r5.getBoolean(r4) // Catch: android.content.pm.PackageManager.NameNotFoundException -> L47
|
|
r2 = 1
|
|
if (r5 == r2) goto L23
|
|
goto L47
|
|
L23:
|
|
if (r6 == 0) goto L3d
|
|
int r5 = com.google.android.gms.internal.gtm.zzcz.b
|
|
int r5 = r5 + 61
|
|
int r6 = r5 % 128
|
|
com.google.android.gms.internal.gtm.zzcz.a = r6
|
|
int r5 = r5 % r0
|
|
java.lang.Class<android.content.pm.ActivityInfo> r5 = android.content.pm.ActivityInfo.class
|
|
java.lang.String r6 = "exported"
|
|
java.lang.reflect.Field r5 = r5.getField(r6) // Catch: android.content.pm.PackageManager.NameNotFoundException -> L47
|
|
boolean r4 = r5.getBoolean(r4) // Catch: android.content.pm.PackageManager.NameNotFoundException -> L47
|
|
if (r4 == r2) goto L3d
|
|
goto L47
|
|
L3d:
|
|
int r4 = com.google.android.gms.internal.gtm.zzcz.a
|
|
int r4 = r4 + 47
|
|
int r5 = r4 % 128
|
|
com.google.android.gms.internal.gtm.zzcz.b = r5
|
|
int r4 = r4 % r0
|
|
return r2
|
|
L47:
|
|
return r1
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.internal.gtm.zzcz.zza(android.content.Context, java.lang.String, boolean):boolean");
|
|
}
|
|
|
|
public static boolean zzc(Context context, String str) {
|
|
int i = 2 % 2;
|
|
Object obj = null;
|
|
try {
|
|
ServiceInfo serviceInfo = context.getPackageManager().getServiceInfo(new ComponentName(context, str), 0);
|
|
if (serviceInfo != null) {
|
|
int i2 = b + 89;
|
|
a = i2 % 128;
|
|
if (i2 % 2 == 0) {
|
|
Class.forName("android.content.pm.ServiceInfo").getField("enabled").getBoolean(serviceInfo);
|
|
obj.hashCode();
|
|
throw null;
|
|
}
|
|
if (Class.forName("android.content.pm.ServiceInfo").getField("enabled").getBoolean(serviceInfo)) {
|
|
return true;
|
|
}
|
|
}
|
|
} catch (PackageManager.NameNotFoundException unused) {
|
|
}
|
|
int i3 = b + 121;
|
|
a = i3 % 128;
|
|
if (i3 % 2 != 0) {
|
|
return false;
|
|
}
|
|
throw null;
|
|
}
|
|
|
|
private static void e(int i, char[] cArr, byte b2, Object[] objArr) {
|
|
int i2;
|
|
char c2;
|
|
int i3 = 2 % 2;
|
|
IRS irs = new IRS();
|
|
char[] cArr2 = d;
|
|
int i4 = 5;
|
|
int i5 = 3;
|
|
if (cArr2 != null) {
|
|
int length = cArr2.length;
|
|
char[] cArr3 = new char[length];
|
|
int i6 = 0;
|
|
while (i6 < length) {
|
|
try {
|
|
Object[] objArr2 = {Integer.valueOf(cArr2[i6])};
|
|
Object obj = xzZ.y.get(-1987398494);
|
|
if (obj == null) {
|
|
Class cls = (Class) xzZ.c((ViewConfiguration.getKeyRepeatTimeout() >> 16) + 298, TextUtils.getOffsetAfter("", 0) + i4, (char) View.MeasureSpec.makeMeasureSpec(0, 0));
|
|
byte b3 = (byte) i5;
|
|
byte b4 = (byte) (b3 - 3);
|
|
Object[] objArr3 = new Object[1];
|
|
f(b3, b4, b4, objArr3);
|
|
obj = cls.getMethod((String) objArr3[0], Integer.TYPE);
|
|
xzZ.y.put(-1987398494, obj);
|
|
}
|
|
cArr3[i6] = ((Character) ((Method) obj).invoke(null, objArr2)).charValue();
|
|
i6++;
|
|
i4 = 5;
|
|
i5 = 3;
|
|
} catch (Throwable th) {
|
|
Throwable cause = th.getCause();
|
|
if (cause == null) {
|
|
throw th;
|
|
}
|
|
throw cause;
|
|
}
|
|
}
|
|
cArr2 = cArr3;
|
|
}
|
|
Object[] objArr4 = {Integer.valueOf(c)};
|
|
Object obj2 = xzZ.y.get(-1987398494);
|
|
char c3 = 4;
|
|
if (obj2 == null) {
|
|
Class cls2 = (Class) xzZ.c((ViewConfiguration.getScrollDefaultDelay() >> 16) + 298, 4 - TextUtils.lastIndexOf("", '0', 0, 0), (char) KeyEvent.keyCodeFromString(""));
|
|
byte b5 = (byte) 3;
|
|
byte b6 = (byte) (b5 - 3);
|
|
Object[] objArr5 = new Object[1];
|
|
f(b5, b6, b6, objArr5);
|
|
obj2 = cls2.getMethod((String) objArr5[0], Integer.TYPE);
|
|
xzZ.y.put(-1987398494, obj2);
|
|
}
|
|
char charValue = ((Character) ((Method) obj2).invoke(null, objArr4)).charValue();
|
|
char[] cArr4 = new char[i];
|
|
if (i % 2 != 0) {
|
|
i2 = i - 1;
|
|
cArr4[i2] = (char) (cArr[i2] - b2);
|
|
} else {
|
|
i2 = i;
|
|
}
|
|
if (i2 > 1) {
|
|
irs.e = 0;
|
|
while (irs.e < i2) {
|
|
irs.b = cArr[irs.e];
|
|
irs.c = cArr[irs.e + 1];
|
|
if (irs.b == irs.c) {
|
|
int i7 = $11 + 71;
|
|
$10 = i7 % 128;
|
|
int i8 = i7 % 2;
|
|
cArr4[irs.e] = (char) (irs.b - b2);
|
|
cArr4[irs.e + 1] = (char) (irs.c - b2);
|
|
int i9 = $10 + 21;
|
|
$11 = i9 % 128;
|
|
int i10 = i9 % 2;
|
|
c2 = c3;
|
|
} else {
|
|
Object[] objArr6 = new Object[13];
|
|
objArr6[12] = irs;
|
|
objArr6[11] = Integer.valueOf(charValue);
|
|
objArr6[10] = irs;
|
|
objArr6[9] = irs;
|
|
objArr6[8] = Integer.valueOf(charValue);
|
|
objArr6[7] = irs;
|
|
objArr6[6] = irs;
|
|
objArr6[5] = Integer.valueOf(charValue);
|
|
objArr6[c3] = irs;
|
|
objArr6[3] = irs;
|
|
objArr6[2] = Integer.valueOf(charValue);
|
|
objArr6[1] = irs;
|
|
objArr6[0] = irs;
|
|
Object obj3 = xzZ.y.get(822107368);
|
|
if (obj3 == null) {
|
|
Class cls3 = (Class) xzZ.c(TextUtils.getTrimmedLength("") + 233, (CdmaCellLocation.convertQuartSecToDecDegrees(0) > 0.0d ? 1 : (CdmaCellLocation.convertQuartSecToDecDegrees(0) == 0.0d ? 0 : -1)) + 5, (char) (22023 - ((byte) KeyEvent.getModifierMetaStateMask())));
|
|
byte b7 = (byte) 0;
|
|
byte b8 = b7;
|
|
Object[] objArr7 = new Object[1];
|
|
f(b7, b8, b8, objArr7);
|
|
obj3 = cls3.getMethod((String) objArr7[0], Object.class, Object.class, Integer.TYPE, Object.class, Object.class, Integer.TYPE, Object.class, Object.class, Integer.TYPE, Object.class, Object.class, Integer.TYPE, Object.class);
|
|
xzZ.y.put(822107368, obj3);
|
|
}
|
|
if (((Integer) ((Method) obj3).invoke(null, objArr6)).intValue() == irs.j) {
|
|
Object[] objArr8 = {irs, irs, Integer.valueOf(charValue), Integer.valueOf(charValue), irs, irs, Integer.valueOf(charValue), Integer.valueOf(charValue), irs, Integer.valueOf(charValue), irs};
|
|
Object obj4 = xzZ.y.get(-1152873385);
|
|
if (obj4 != null) {
|
|
c2 = 4;
|
|
} else {
|
|
Class cls4 = (Class) xzZ.c(View.MeasureSpec.getSize(0) + 327, 5 - Color.argb(0, 0, 0, 0), (char) ((SystemClock.currentThreadTimeMillis() > (-1L) ? 1 : (SystemClock.currentThreadTimeMillis() == (-1L) ? 0 : -1)) - 1));
|
|
byte b9 = (byte) ($$b & 7);
|
|
byte b10 = (byte) (b9 - 2);
|
|
Object[] objArr9 = new Object[1];
|
|
f(b9, b10, b10, objArr9);
|
|
c2 = 4;
|
|
obj4 = cls4.getMethod((String) objArr9[0], Object.class, Object.class, Integer.TYPE, Integer.TYPE, Object.class, Object.class, Integer.TYPE, Integer.TYPE, Object.class, Integer.TYPE, Object.class);
|
|
xzZ.y.put(-1152873385, obj4);
|
|
}
|
|
int intValue = ((Integer) ((Method) obj4).invoke(null, objArr8)).intValue();
|
|
int i11 = (irs.d * charValue) + irs.j;
|
|
cArr4[irs.e] = cArr2[intValue];
|
|
cArr4[irs.e + 1] = cArr2[i11];
|
|
} else {
|
|
c2 = 4;
|
|
if (irs.a == irs.d) {
|
|
int i12 = $11 + 41;
|
|
$10 = i12 % 128;
|
|
int i13 = i12 % 2;
|
|
irs.f = ((irs.f + charValue) - 1) % charValue;
|
|
irs.j = ((irs.j + charValue) - 1) % charValue;
|
|
int i14 = (irs.a * charValue) + irs.f;
|
|
int i15 = (irs.d * charValue) + irs.j;
|
|
cArr4[irs.e] = cArr2[i14];
|
|
cArr4[irs.e + 1] = cArr2[i15];
|
|
int i16 = $11 + 101;
|
|
$10 = i16 % 128;
|
|
int i17 = i16 % 2;
|
|
} else {
|
|
int i18 = (irs.a * charValue) + irs.j;
|
|
int i19 = (irs.d * charValue) + irs.f;
|
|
cArr4[irs.e] = cArr2[i18];
|
|
cArr4[irs.e + 1] = cArr2[i19];
|
|
}
|
|
}
|
|
}
|
|
irs.e += 2;
|
|
c3 = c2;
|
|
}
|
|
}
|
|
for (int i20 = 0; i20 < i; i20++) {
|
|
cArr4[i20] = (char) (cArr4[i20] ^ 13722);
|
|
}
|
|
objArr[0] = new String(cArr4);
|
|
}
|
|
|
|
static void d() {
|
|
d = new char[]{49027, 49026, 49029, 49028};
|
|
c = (char) 35371;
|
|
}
|
|
|
|
public static String zzc(boolean z) {
|
|
Object obj;
|
|
int i = 2 % 2;
|
|
int i2 = a + 45;
|
|
int i3 = i2 % 128;
|
|
b = i3;
|
|
int i4 = i2 % 2;
|
|
if (!z) {
|
|
Object[] objArr = new Object[1];
|
|
e((Process.myPid() >> 22) + 1, new char[]{13740}, (byte) (Process.getGidForName("") + 3), objArr);
|
|
return ((String) objArr[0]).intern();
|
|
}
|
|
int i5 = i3 + 21;
|
|
a = i5 % 128;
|
|
int i6 = i5 % 2;
|
|
int i7 = -ExpandableListView.getPackedPositionChild(0L);
|
|
if (i6 == 0) {
|
|
Object[] objArr2 = new Object[1];
|
|
e(i7, new char[]{13786}, (byte) (39 % (ViewConfiguration.getScrollDefaultDelay() >> 14)), objArr2);
|
|
obj = objArr2[0];
|
|
} else {
|
|
Object[] objArr3 = new Object[1];
|
|
e(i7, new char[]{13786}, (byte) (47 - (ViewConfiguration.getScrollDefaultDelay() >> 16)), objArr3);
|
|
obj = objArr3[0];
|
|
}
|
|
return ((String) obj).intern();
|
|
}
|
|
|
|
static {
|
|
b = 0;
|
|
d();
|
|
zzact = new char[]{'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F'};
|
|
int i = a + 91;
|
|
b = i % 128;
|
|
if (i % 2 != 0) {
|
|
int i2 = 45 / 0;
|
|
}
|
|
}
|
|
}
|