Initial version -- added millennium read funcionality
This commit is contained in:
@@ -0,0 +1,268 @@
|
||||
package com.google.android.gms.dynamite;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.pm.ProviderInfo;
|
||||
import android.database.Cursor;
|
||||
import android.os.IBinder;
|
||||
import android.os.IInterface;
|
||||
import android.util.Log;
|
||||
import com.google.android.gms.common.GoogleApiAvailabilityLight;
|
||||
import com.google.android.gms.common.internal.Objects;
|
||||
import com.google.android.gms.common.internal.Preconditions;
|
||||
import com.google.errorprone.annotations.ResultIgnorabilityUnspecified;
|
||||
import java.lang.reflect.Field;
|
||||
import java.lang.reflect.InvocationTargetException;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-basement@@18.3.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
public final class DynamiteModule {
|
||||
public static final int LOCAL = -1;
|
||||
public static final int NONE = 0;
|
||||
public static final int NO_SELECTION = 0;
|
||||
public static final int REMOTE = 1;
|
||||
private static Boolean zzb = null;
|
||||
private static String zzc = null;
|
||||
private static boolean zzd = false;
|
||||
private static int zze = -1;
|
||||
private static Boolean zzf;
|
||||
private static zzq zzk;
|
||||
private static zzr zzl;
|
||||
private final Context zzj;
|
||||
private static final ThreadLocal zzg = new ThreadLocal();
|
||||
private static final ThreadLocal zzh = new zzd();
|
||||
private static final VersionPolicy.IVersions zzi = new zze();
|
||||
public static final VersionPolicy PREFER_REMOTE = new zzf();
|
||||
public static final VersionPolicy PREFER_LOCAL = new zzg();
|
||||
public static final VersionPolicy PREFER_REMOTE_VERSION_NO_FORCE_STAGING = new zzh();
|
||||
public static final VersionPolicy PREFER_HIGHEST_OR_LOCAL_VERSION = new zzi();
|
||||
public static final VersionPolicy PREFER_HIGHEST_OR_LOCAL_VERSION_NO_FORCE_STAGING = new zzj();
|
||||
public static final VersionPolicy PREFER_HIGHEST_OR_REMOTE_VERSION = new zzk();
|
||||
public static final VersionPolicy zza = new zzl();
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-basement@@18.3.0 */
|
||||
public static class DynamiteLoaderClassLoader {
|
||||
public static ClassLoader sClassLoader;
|
||||
}
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-basement@@18.3.0 */
|
||||
public static class LoadingException extends Exception {
|
||||
/* synthetic */ LoadingException(String str, zzp zzpVar) {
|
||||
super(str);
|
||||
}
|
||||
|
||||
/* synthetic */ LoadingException(String str, Throwable th, zzp zzpVar) {
|
||||
super(str, th);
|
||||
}
|
||||
}
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-basement@@18.3.0 */
|
||||
public interface VersionPolicy {
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-basement@@18.3.0 */
|
||||
public interface IVersions {
|
||||
int zza(Context context, String str);
|
||||
|
||||
int zzb(Context context, String str, boolean z) throws LoadingException;
|
||||
}
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-basement@@18.3.0 */
|
||||
public static class SelectionResult {
|
||||
public int localVersion = 0;
|
||||
public int remoteVersion = 0;
|
||||
public int selection = 0;
|
||||
}
|
||||
|
||||
SelectionResult selectModule(Context context, String str, IVersions iVersions) throws LoadingException;
|
||||
}
|
||||
|
||||
private DynamiteModule(Context context) {
|
||||
Preconditions.checkNotNull(context);
|
||||
this.zzj = context;
|
||||
}
|
||||
|
||||
public static int getLocalVersion(Context context, String str) {
|
||||
try {
|
||||
Class<?> clsLoadClass = context.getApplicationContext().getClassLoader().loadClass("com.google.android.gms.dynamite.descriptors." + str + ".ModuleDescriptor");
|
||||
Field declaredField = clsLoadClass.getDeclaredField("MODULE_ID");
|
||||
Field declaredField2 = clsLoadClass.getDeclaredField("MODULE_VERSION");
|
||||
if (Objects.equal(declaredField.get(null), str)) {
|
||||
return declaredField2.getInt(null);
|
||||
}
|
||||
Log.e("DynamiteModule", "Module descriptor id '" + String.valueOf(declaredField.get(null)) + "' didn't match expected id '" + str + "'");
|
||||
return 0;
|
||||
} catch (ClassNotFoundException unused) {
|
||||
Log.w("DynamiteModule", "Local module descriptor class for " + str + " not found.");
|
||||
return 0;
|
||||
} catch (Exception e) {
|
||||
Log.e("DynamiteModule", "Failed to load module descriptor class: ".concat(String.valueOf(e.getMessage())));
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
public static int getRemoteVersion(Context context, String str) {
|
||||
return zza(context, str, false);
|
||||
}
|
||||
|
||||
/* JADX WARN: Code restructure failed: missing block: B:17:0x008a, code lost:
|
||||
|
||||
if (r11 != 0) goto L18;
|
||||
*/
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
/* JADX WARN: Removed duplicated region for block: B:112:0x023c */
|
||||
/* JADX WARN: Removed duplicated region for block: B:113:0x0242 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:116:0x024f */
|
||||
/* JADX WARN: Removed duplicated region for block: B:16:0x0088 A[Catch: all -> 0x02ac, TryCatch #5 {all -> 0x02ac, blocks: (B:7:0x0052, B:11:0x0080, B:16:0x0088, B:19:0x008e, B:23:0x0097, B:97:0x01ef, B:98:0x01fa, B:100:0x01fc, B:102:0x01fe, B:103:0x0206, B:105:0x0208, B:107:0x0226, B:109:0x0234), top: B:144:0x0052 }] */
|
||||
/* JADX WARN: Removed duplicated region for block: B:19:0x008e A[Catch: all -> 0x02ac, TRY_LEAVE, TryCatch #5 {all -> 0x02ac, blocks: (B:7:0x0052, B:11:0x0080, B:16:0x0088, B:19:0x008e, B:23:0x0097, B:97:0x01ef, B:98:0x01fa, B:100:0x01fc, B:102:0x01fe, B:103:0x0206, B:105:0x0208, B:107:0x0226, B:109:0x0234), top: B:144:0x0052 }] */
|
||||
/* JADX WARN: Removed duplicated region for block: B:21:0x0094 */
|
||||
/* JADX WARN: Type inference failed for: r11v1, types: [com.google.android.gms.dynamite.zzn, java.lang.Object] */
|
||||
/* JADX WARN: Type inference failed for: r11v13 */
|
||||
/* JADX WARN: Type inference failed for: r11v14 */
|
||||
/* JADX WARN: Type inference failed for: r11v2 */
|
||||
/* JADX WARN: Type inference failed for: r11v3, types: [java.lang.Object] */
|
||||
/* JADX WARN: Type inference failed for: r11v4 */
|
||||
/* JADX WARN: Type inference failed for: r11v7 */
|
||||
@com.google.errorprone.annotations.ResultIgnorabilityUnspecified
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct code enable 'Show inconsistent code' option in preferences
|
||||
*/
|
||||
public static com.google.android.gms.dynamite.DynamiteModule load(android.content.Context r21, com.google.android.gms.dynamite.DynamiteModule.VersionPolicy r22, java.lang.String r23) throws java.lang.Throwable {
|
||||
/*
|
||||
Method dump skipped, instruction units count: 730
|
||||
To view this dump change 'Code comments level' option to 'DEBUG'
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.dynamite.DynamiteModule.load(android.content.Context, com.google.android.gms.dynamite.DynamiteModule$VersionPolicy, java.lang.String):com.google.android.gms.dynamite.DynamiteModule");
|
||||
}
|
||||
|
||||
/* JADX WARN: Removed duplicated region for block: B:94:0x0168 A[Catch: all -> 0x01c4, TRY_ENTER, TRY_LEAVE, TryCatch #2 {all -> 0x01c4, blocks: (B:3:0x0002, B:61:0x00db, B:63:0x00e1, B:68:0x0102, B:90:0x015a, B:94:0x0168, B:115:0x01bd, B:116:0x01c0, B:110:0x01b5, B:66:0x00e7, B:119:0x01c3, B:4:0x0003, B:7:0x0009, B:8:0x0025, B:59:0x00d8, B:19:0x0046, B:41:0x009a, B:44:0x009d, B:52:0x00b6, B:60:0x00da, B:58:0x00bc), top: B:127:0x0002, inners: #0, #11 }] */
|
||||
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:109:0x01b3 -> B:131:0x01b8). Please report as a decompilation issue!!! */
|
||||
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:110:0x01b5 -> B:131:0x01b8). Please report as a decompilation issue!!! */
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct code enable 'Show inconsistent code' option in preferences
|
||||
*/
|
||||
public static int zza(android.content.Context r10, java.lang.String r11, boolean r12) {
|
||||
/*
|
||||
Method dump skipped, instruction units count: 457
|
||||
To view this dump change 'Code comments level' option to 'DEBUG'
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.dynamite.DynamiteModule.zza(android.content.Context, java.lang.String, boolean):int");
|
||||
}
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
/* JADX WARN: Removed duplicated region for block: B:56:0x00dc */
|
||||
/* JADX WARN: Type inference failed for: r0v0 */
|
||||
/* JADX WARN: Type inference failed for: r0v1, types: [android.database.Cursor] */
|
||||
/* JADX WARN: Type inference failed for: r0v2 */
|
||||
/* JADX WARN: Type inference failed for: r0v3 */
|
||||
/* JADX WARN: Type inference failed for: r0v4 */
|
||||
/* JADX WARN: Type inference failed for: r0v5 */
|
||||
/* JADX WARN: Type inference failed for: r0v6 */
|
||||
/* JADX WARN: Type inference failed for: r0v7 */
|
||||
/* JADX WARN: Type inference failed for: r0v8 */
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct code enable 'Show inconsistent code' option in preferences
|
||||
*/
|
||||
private static int zzb(android.content.Context r8, java.lang.String r9, boolean r10, boolean r11) throws java.lang.Throwable {
|
||||
/*
|
||||
Method dump skipped, instruction units count: 224
|
||||
To view this dump change 'Code comments level' option to 'DEBUG'
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.dynamite.DynamiteModule.zzb(android.content.Context, java.lang.String, boolean, boolean):int");
|
||||
}
|
||||
|
||||
private static DynamiteModule zzc(Context context, String str) {
|
||||
Log.i("DynamiteModule", "Selected local version of ".concat(String.valueOf(str)));
|
||||
return new DynamiteModule(context);
|
||||
}
|
||||
|
||||
private static void zzd(ClassLoader classLoader) throws LoadingException {
|
||||
zzr zzrVar;
|
||||
zzp zzpVar = null;
|
||||
try {
|
||||
IBinder iBinder = (IBinder) classLoader.loadClass("com.google.android.gms.dynamiteloader.DynamiteLoaderV2").getConstructor(new Class[0]).newInstance(new Object[0]);
|
||||
if (iBinder == null) {
|
||||
zzrVar = null;
|
||||
} else {
|
||||
IInterface iInterfaceQueryLocalInterface = iBinder.queryLocalInterface("com.google.android.gms.dynamite.IDynamiteLoaderV2");
|
||||
zzrVar = iInterfaceQueryLocalInterface instanceof zzr ? (zzr) iInterfaceQueryLocalInterface : new zzr(iBinder);
|
||||
}
|
||||
zzl = zzrVar;
|
||||
} catch (ClassNotFoundException | IllegalAccessException | InstantiationException | NoSuchMethodException | InvocationTargetException e) {
|
||||
throw new LoadingException("Failed to instantiate dynamite loader", e, zzpVar);
|
||||
}
|
||||
}
|
||||
|
||||
private static boolean zze(Cursor cursor) {
|
||||
zzn zznVar = (zzn) zzg.get();
|
||||
if (zznVar == null || zznVar.zza != null) {
|
||||
return false;
|
||||
}
|
||||
zznVar.zza = cursor;
|
||||
return true;
|
||||
}
|
||||
|
||||
private static boolean zzf(Context context) {
|
||||
if (Boolean.TRUE.equals(null) || Boolean.TRUE.equals(zzf)) {
|
||||
return true;
|
||||
}
|
||||
boolean zBooleanValue = false;
|
||||
if (zzf == null) {
|
||||
ProviderInfo providerInfoResolveContentProvider = context.getPackageManager().resolveContentProvider("com.google.android.gms.chimera", 0);
|
||||
if (GoogleApiAvailabilityLight.getInstance().isGooglePlayServicesAvailable(context, 10000000) == 0 && providerInfoResolveContentProvider != null && "com.google.android.gms".equals(providerInfoResolveContentProvider.packageName)) {
|
||||
zBooleanValue = true;
|
||||
}
|
||||
Boolean boolValueOf = Boolean.valueOf(zBooleanValue);
|
||||
zzf = boolValueOf;
|
||||
zBooleanValue = boolValueOf.booleanValue();
|
||||
if (zBooleanValue && providerInfoResolveContentProvider.applicationInfo != null && (providerInfoResolveContentProvider.applicationInfo.flags & 129) == 0) {
|
||||
Log.i("DynamiteModule", "Non-system-image GmsCore APK, forcing V1");
|
||||
zzd = true;
|
||||
}
|
||||
}
|
||||
if (!zBooleanValue) {
|
||||
Log.e("DynamiteModule", "Invalid GmsCore APK, remote loading disabled.");
|
||||
}
|
||||
return zBooleanValue;
|
||||
}
|
||||
|
||||
private static zzq zzg(Context context) {
|
||||
zzq zzqVar;
|
||||
synchronized (DynamiteModule.class) {
|
||||
zzq zzqVar2 = zzk;
|
||||
if (zzqVar2 != null) {
|
||||
return zzqVar2;
|
||||
}
|
||||
try {
|
||||
IBinder iBinder = (IBinder) context.createPackageContext("com.google.android.gms", 3).getClassLoader().loadClass("com.google.android.gms.chimera.container.DynamiteLoaderImpl").newInstance();
|
||||
if (iBinder == null) {
|
||||
zzqVar = null;
|
||||
} else {
|
||||
IInterface iInterfaceQueryLocalInterface = iBinder.queryLocalInterface("com.google.android.gms.dynamite.IDynamiteLoader");
|
||||
zzqVar = iInterfaceQueryLocalInterface instanceof zzq ? (zzq) iInterfaceQueryLocalInterface : new zzq(iBinder);
|
||||
}
|
||||
if (zzqVar != null) {
|
||||
zzk = zzqVar;
|
||||
return zzqVar;
|
||||
}
|
||||
} catch (Exception e) {
|
||||
Log.e("DynamiteModule", "Failed to load IDynamiteLoader from GmsCore: " + e.getMessage());
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
@ResultIgnorabilityUnspecified
|
||||
public Context getModuleContext() {
|
||||
return this.zzj;
|
||||
}
|
||||
|
||||
public IBinder instantiate(String str) throws LoadingException {
|
||||
try {
|
||||
return (IBinder) this.zzj.getClassLoader().loadClass(str).newInstance();
|
||||
} catch (ClassNotFoundException | IllegalAccessException | InstantiationException e) {
|
||||
throw new LoadingException("Failed to instantiate module class: ".concat(String.valueOf(str)), e, null);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
package com.google.android.gms.dynamite;
|
||||
|
||||
import android.os.Process;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-basement@@18.3.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
final class zza extends Thread {
|
||||
zza(ThreadGroup threadGroup, String str) {
|
||||
super(threadGroup, "GmsDynamite");
|
||||
}
|
||||
|
||||
@Override // java.lang.Thread, java.lang.Runnable
|
||||
public final void run() {
|
||||
Process.setThreadPriority(19);
|
||||
synchronized (this) {
|
||||
while (true) {
|
||||
try {
|
||||
wait();
|
||||
} catch (InterruptedException unused) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package com.google.android.gms.dynamite;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-basement@@18.3.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
public final class zzb {
|
||||
private static ClassLoader zza;
|
||||
private static Thread zzb;
|
||||
|
||||
/* JADX WARN: Removed duplicated region for block: B:49:0x00a6 A[Catch: all -> 0x00d5, PHI: r1
|
||||
0x00a6: PHI (r1v4 java.lang.Thread) = (r1v3 java.lang.Thread), (r1v15 java.lang.Thread) binds: [B:7:0x000a, B:45:0x00a1] A[DONT_GENERATE, DONT_INLINE], TRY_LEAVE, TryCatch #0 {, blocks: (B:4:0x0003, B:6:0x0007, B:8:0x000c, B:44:0x009f, B:57:0x00cc, B:12:0x001f, B:48:0x00a5, B:49:0x00a6, B:60:0x00d0, B:61:0x00d1, B:50:0x00a7, B:56:0x00cb, B:55:0x00b1, B:13:0x0020, B:15:0x002d, B:21:0x0042, B:22:0x0049, B:24:0x0054, B:30:0x0069, B:31:0x0070, B:41:0x0083, B:42:0x009d, B:18:0x003c), top: B:67:0x0003, inners: #3, #4 }] */
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct code enable 'Show inconsistent code' option in preferences
|
||||
*/
|
||||
public static synchronized java.lang.ClassLoader zza() {
|
||||
/*
|
||||
Method dump skipped, instruction units count: 216
|
||||
To view this dump change 'Code comments level' option to 'DEBUG'
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.dynamite.zzb.zza():java.lang.ClassLoader");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package com.google.android.gms.dynamite;
|
||||
|
||||
import dalvik.system.PathClassLoader;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-basement@@18.3.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
final class zzc extends PathClassLoader {
|
||||
zzc(String str, ClassLoader classLoader) {
|
||||
super(str, classLoader);
|
||||
}
|
||||
|
||||
@Override // java.lang.ClassLoader
|
||||
protected final Class loadClass(String str, boolean z) throws ClassNotFoundException {
|
||||
if (!str.startsWith("java.") && !str.startsWith("android.")) {
|
||||
try {
|
||||
return findClass(str);
|
||||
} catch (ClassNotFoundException unused) {
|
||||
}
|
||||
}
|
||||
return super.loadClass(str, z);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
package com.google.android.gms.dynamite;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-basement@@18.3.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
final class zzd extends ThreadLocal {
|
||||
zzd() {
|
||||
}
|
||||
|
||||
@Override // java.lang.ThreadLocal
|
||||
protected final /* synthetic */ Object initialValue() {
|
||||
return 0L;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package com.google.android.gms.dynamite;
|
||||
|
||||
import android.content.Context;
|
||||
import com.google.android.gms.dynamite.DynamiteModule;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-basement@@18.3.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
final class zze implements DynamiteModule.VersionPolicy.IVersions {
|
||||
zze() {
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.dynamite.DynamiteModule.VersionPolicy.IVersions
|
||||
public final int zza(Context context, String str) {
|
||||
return DynamiteModule.getLocalVersion(context, str);
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.dynamite.DynamiteModule.VersionPolicy.IVersions
|
||||
public final int zzb(Context context, String str, boolean z) throws DynamiteModule.LoadingException {
|
||||
return DynamiteModule.zza(context, str, z);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
package com.google.android.gms.dynamite;
|
||||
|
||||
import android.content.Context;
|
||||
import com.google.android.gms.dynamite.DynamiteModule;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-basement@@18.3.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
final class zzf implements DynamiteModule.VersionPolicy {
|
||||
zzf() {
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.dynamite.DynamiteModule.VersionPolicy
|
||||
public final DynamiteModule.VersionPolicy.SelectionResult selectModule(Context context, String str, DynamiteModule.VersionPolicy.IVersions iVersions) throws DynamiteModule.LoadingException {
|
||||
DynamiteModule.VersionPolicy.SelectionResult selectionResult = new DynamiteModule.VersionPolicy.SelectionResult();
|
||||
int iZzb = iVersions.zzb(context, str, true);
|
||||
selectionResult.remoteVersion = iZzb;
|
||||
if (iZzb != 0) {
|
||||
selectionResult.selection = 1;
|
||||
} else {
|
||||
int iZza = iVersions.zza(context, str);
|
||||
selectionResult.localVersion = iZza;
|
||||
if (iZza != 0) {
|
||||
selectionResult.selection = -1;
|
||||
}
|
||||
}
|
||||
return selectionResult;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
package com.google.android.gms.dynamite;
|
||||
|
||||
import android.content.Context;
|
||||
import com.google.android.gms.dynamite.DynamiteModule;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-basement@@18.3.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
final class zzg implements DynamiteModule.VersionPolicy {
|
||||
zzg() {
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.dynamite.DynamiteModule.VersionPolicy
|
||||
public final DynamiteModule.VersionPolicy.SelectionResult selectModule(Context context, String str, DynamiteModule.VersionPolicy.IVersions iVersions) throws DynamiteModule.LoadingException {
|
||||
DynamiteModule.VersionPolicy.SelectionResult selectionResult = new DynamiteModule.VersionPolicy.SelectionResult();
|
||||
int iZza = iVersions.zza(context, str);
|
||||
selectionResult.localVersion = iZza;
|
||||
if (iZza != 0) {
|
||||
selectionResult.selection = -1;
|
||||
} else {
|
||||
int iZzb = iVersions.zzb(context, str, true);
|
||||
selectionResult.remoteVersion = iZzb;
|
||||
if (iZzb != 0) {
|
||||
selectionResult.selection = 1;
|
||||
}
|
||||
}
|
||||
return selectionResult;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.google.android.gms.dynamite;
|
||||
|
||||
import android.content.Context;
|
||||
import com.google.android.gms.dynamite.DynamiteModule;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-basement@@18.3.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
final class zzh implements DynamiteModule.VersionPolicy {
|
||||
zzh() {
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.dynamite.DynamiteModule.VersionPolicy
|
||||
public final DynamiteModule.VersionPolicy.SelectionResult selectModule(Context context, String str, DynamiteModule.VersionPolicy.IVersions iVersions) throws DynamiteModule.LoadingException {
|
||||
DynamiteModule.VersionPolicy.SelectionResult selectionResult = new DynamiteModule.VersionPolicy.SelectionResult();
|
||||
int iZzb = iVersions.zzb(context, str, false);
|
||||
selectionResult.remoteVersion = iZzb;
|
||||
selectionResult.selection = iZzb != 0 ? 1 : 0;
|
||||
return selectionResult;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
package com.google.android.gms.dynamite;
|
||||
|
||||
import com.google.android.gms.dynamite.DynamiteModule;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-basement@@18.3.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
final class zzi implements DynamiteModule.VersionPolicy {
|
||||
zzi() {
|
||||
}
|
||||
|
||||
/* JADX WARN: Removed duplicated region for block: B:7:0x001b A[PHI: r4
|
||||
0x001b: PHI (r4v2 int) = (r4v1 int), (r4v3 int) binds: [B:3:0x0014, B:5:0x0017] A[DONT_GENERATE, DONT_INLINE]] */
|
||||
@Override // com.google.android.gms.dynamite.DynamiteModule.VersionPolicy
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct code enable 'Show inconsistent code' option in preferences
|
||||
*/
|
||||
public final com.google.android.gms.dynamite.DynamiteModule.VersionPolicy.SelectionResult selectModule(android.content.Context r3, java.lang.String r4, com.google.android.gms.dynamite.DynamiteModule.VersionPolicy.IVersions r5) throws com.google.android.gms.dynamite.DynamiteModule.LoadingException {
|
||||
/*
|
||||
r2 = this;
|
||||
com.google.android.gms.dynamite.DynamiteModule$VersionPolicy$SelectionResult r0 = new com.google.android.gms.dynamite.DynamiteModule$VersionPolicy$SelectionResult
|
||||
r0.<init>()
|
||||
int r1 = r5.zza(r3, r4)
|
||||
r0.localVersion = r1
|
||||
r1 = 1
|
||||
int r3 = r5.zzb(r3, r4, r1)
|
||||
r0.remoteVersion = r3
|
||||
int r4 = r0.localVersion
|
||||
if (r4 != 0) goto L1b
|
||||
r4 = 0
|
||||
if (r3 != 0) goto L1b
|
||||
r1 = r4
|
||||
goto L1e
|
||||
L1b:
|
||||
if (r4 < r3) goto L1e
|
||||
r1 = -1
|
||||
L1e:
|
||||
r0.selection = r1
|
||||
return r0
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.dynamite.zzi.selectModule(android.content.Context, java.lang.String, com.google.android.gms.dynamite.DynamiteModule$VersionPolicy$IVersions):com.google.android.gms.dynamite.DynamiteModule$VersionPolicy$SelectionResult");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
package com.google.android.gms.dynamite;
|
||||
|
||||
import android.content.Context;
|
||||
import com.google.android.gms.dynamite.DynamiteModule;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-basement@@18.3.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
final class zzj implements DynamiteModule.VersionPolicy {
|
||||
zzj() {
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.dynamite.DynamiteModule.VersionPolicy
|
||||
public final DynamiteModule.VersionPolicy.SelectionResult selectModule(Context context, String str, DynamiteModule.VersionPolicy.IVersions iVersions) throws DynamiteModule.LoadingException {
|
||||
int iZzb;
|
||||
DynamiteModule.VersionPolicy.SelectionResult selectionResult = new DynamiteModule.VersionPolicy.SelectionResult();
|
||||
int iZza = iVersions.zza(context, str);
|
||||
selectionResult.localVersion = iZza;
|
||||
int i = 1;
|
||||
int i2 = 0;
|
||||
if (iZza != 0) {
|
||||
iZzb = iVersions.zzb(context, str, false);
|
||||
selectionResult.remoteVersion = iZzb;
|
||||
} else {
|
||||
iZzb = iVersions.zzb(context, str, true);
|
||||
selectionResult.remoteVersion = iZzb;
|
||||
}
|
||||
int i3 = selectionResult.localVersion;
|
||||
if (i3 == 0) {
|
||||
if (iZzb == 0) {
|
||||
i = 0;
|
||||
}
|
||||
selectionResult.selection = i;
|
||||
return selectionResult;
|
||||
}
|
||||
i2 = i3;
|
||||
if (i2 >= iZzb) {
|
||||
i = -1;
|
||||
}
|
||||
selectionResult.selection = i;
|
||||
return selectionResult;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
package com.google.android.gms.dynamite;
|
||||
|
||||
import com.google.android.gms.dynamite.DynamiteModule;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-basement@@18.3.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
final class zzk implements DynamiteModule.VersionPolicy {
|
||||
zzk() {
|
||||
}
|
||||
|
||||
/* JADX WARN: Removed duplicated region for block: B:7:0x001b A[PHI: r4
|
||||
0x001b: PHI (r4v2 int) = (r4v1 int), (r4v3 int) binds: [B:3:0x0014, B:5:0x0017] A[DONT_GENERATE, DONT_INLINE]] */
|
||||
@Override // com.google.android.gms.dynamite.DynamiteModule.VersionPolicy
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct code enable 'Show inconsistent code' option in preferences
|
||||
*/
|
||||
public final com.google.android.gms.dynamite.DynamiteModule.VersionPolicy.SelectionResult selectModule(android.content.Context r3, java.lang.String r4, com.google.android.gms.dynamite.DynamiteModule.VersionPolicy.IVersions r5) throws com.google.android.gms.dynamite.DynamiteModule.LoadingException {
|
||||
/*
|
||||
r2 = this;
|
||||
com.google.android.gms.dynamite.DynamiteModule$VersionPolicy$SelectionResult r0 = new com.google.android.gms.dynamite.DynamiteModule$VersionPolicy$SelectionResult
|
||||
r0.<init>()
|
||||
int r1 = r5.zza(r3, r4)
|
||||
r0.localVersion = r1
|
||||
r1 = 1
|
||||
int r3 = r5.zzb(r3, r4, r1)
|
||||
r0.remoteVersion = r3
|
||||
int r4 = r0.localVersion
|
||||
if (r4 != 0) goto L1b
|
||||
r4 = 0
|
||||
if (r3 != 0) goto L1b
|
||||
r1 = r4
|
||||
goto L1f
|
||||
L1b:
|
||||
if (r3 < r4) goto L1e
|
||||
goto L1f
|
||||
L1e:
|
||||
r1 = -1
|
||||
L1f:
|
||||
r0.selection = r1
|
||||
return r0
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.dynamite.zzk.selectModule(android.content.Context, java.lang.String, com.google.android.gms.dynamite.DynamiteModule$VersionPolicy$IVersions):com.google.android.gms.dynamite.DynamiteModule$VersionPolicy$SelectionResult");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
package com.google.android.gms.dynamite;
|
||||
|
||||
import android.content.Context;
|
||||
import com.google.android.gms.dynamite.DynamiteModule;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-basement@@18.3.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
final class zzl implements DynamiteModule.VersionPolicy {
|
||||
zzl() {
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.dynamite.DynamiteModule.VersionPolicy
|
||||
public final DynamiteModule.VersionPolicy.SelectionResult selectModule(Context context, String str, DynamiteModule.VersionPolicy.IVersions iVersions) throws DynamiteModule.LoadingException {
|
||||
int iZzb;
|
||||
DynamiteModule.VersionPolicy.SelectionResult selectionResult = new DynamiteModule.VersionPolicy.SelectionResult();
|
||||
int iZza = iVersions.zza(context, str);
|
||||
selectionResult.localVersion = iZza;
|
||||
int i = 1;
|
||||
int i2 = 0;
|
||||
if (iZza != 0) {
|
||||
iZzb = iVersions.zzb(context, str, false);
|
||||
selectionResult.remoteVersion = iZzb;
|
||||
} else {
|
||||
iZzb = iVersions.zzb(context, str, true);
|
||||
selectionResult.remoteVersion = iZzb;
|
||||
}
|
||||
int i3 = selectionResult.localVersion;
|
||||
if (i3 == 0) {
|
||||
if (iZzb == 0) {
|
||||
i = 0;
|
||||
}
|
||||
selectionResult.selection = i;
|
||||
return selectionResult;
|
||||
}
|
||||
i2 = i3;
|
||||
if (iZzb < i2) {
|
||||
i = -1;
|
||||
}
|
||||
selectionResult.selection = i;
|
||||
return selectionResult;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package com.google.android.gms.dynamite;
|
||||
|
||||
import android.database.Cursor;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-basement@@18.3.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
final class zzn {
|
||||
public Cursor zza;
|
||||
|
||||
private zzn() {
|
||||
}
|
||||
|
||||
/* synthetic */ zzn(zzm zzmVar) {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
package com.google.android.gms.dynamite;
|
||||
|
||||
import android.content.Context;
|
||||
import com.google.android.gms.dynamite.DynamiteModule;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-basement@@18.3.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
final class zzo implements DynamiteModule.VersionPolicy.IVersions {
|
||||
private final int zza;
|
||||
|
||||
public zzo(int i, int i2) {
|
||||
this.zza = i;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.dynamite.DynamiteModule.VersionPolicy.IVersions
|
||||
public final int zza(Context context, String str) {
|
||||
return this.zza;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.dynamite.DynamiteModule.VersionPolicy.IVersions
|
||||
public final int zzb(Context context, String str, boolean z) {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,90 @@
|
||||
package com.google.android.gms.dynamite;
|
||||
|
||||
import android.os.IBinder;
|
||||
import android.os.IInterface;
|
||||
import android.os.Parcel;
|
||||
import android.os.RemoteException;
|
||||
import com.google.android.gms.dynamic.IObjectWrapper;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-basement@@18.3.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
public final class zzq extends com.google.android.gms.internal.common.zza implements IInterface {
|
||||
zzq(IBinder iBinder) {
|
||||
super(iBinder, "com.google.android.gms.dynamite.IDynamiteLoader");
|
||||
}
|
||||
|
||||
public final int zze() throws RemoteException {
|
||||
Parcel parcelZzB = zzB(6, zza());
|
||||
int i = parcelZzB.readInt();
|
||||
parcelZzB.recycle();
|
||||
return i;
|
||||
}
|
||||
|
||||
public final int zzf(IObjectWrapper iObjectWrapper, String str, boolean z) throws RemoteException {
|
||||
Parcel parcelZza = zza();
|
||||
com.google.android.gms.internal.common.zzc.zze(parcelZza, iObjectWrapper);
|
||||
parcelZza.writeString(str);
|
||||
parcelZza.writeInt(z ? 1 : 0);
|
||||
Parcel parcelZzB = zzB(3, parcelZza);
|
||||
int i = parcelZzB.readInt();
|
||||
parcelZzB.recycle();
|
||||
return i;
|
||||
}
|
||||
|
||||
public final int zzg(IObjectWrapper iObjectWrapper, String str, boolean z) throws RemoteException {
|
||||
Parcel parcelZza = zza();
|
||||
com.google.android.gms.internal.common.zzc.zze(parcelZza, iObjectWrapper);
|
||||
parcelZza.writeString(str);
|
||||
parcelZza.writeInt(z ? 1 : 0);
|
||||
Parcel parcelZzB = zzB(5, parcelZza);
|
||||
int i = parcelZzB.readInt();
|
||||
parcelZzB.recycle();
|
||||
return i;
|
||||
}
|
||||
|
||||
public final IObjectWrapper zzh(IObjectWrapper iObjectWrapper, String str, int i) throws RemoteException {
|
||||
Parcel parcelZza = zza();
|
||||
com.google.android.gms.internal.common.zzc.zze(parcelZza, iObjectWrapper);
|
||||
parcelZza.writeString(str);
|
||||
parcelZza.writeInt(i);
|
||||
Parcel parcelZzB = zzB(2, parcelZza);
|
||||
IObjectWrapper iObjectWrapperAsInterface = IObjectWrapper.Stub.asInterface(parcelZzB.readStrongBinder());
|
||||
parcelZzB.recycle();
|
||||
return iObjectWrapperAsInterface;
|
||||
}
|
||||
|
||||
public final IObjectWrapper zzi(IObjectWrapper iObjectWrapper, String str, int i, IObjectWrapper iObjectWrapper2) throws RemoteException {
|
||||
Parcel parcelZza = zza();
|
||||
com.google.android.gms.internal.common.zzc.zze(parcelZza, iObjectWrapper);
|
||||
parcelZza.writeString(str);
|
||||
parcelZza.writeInt(i);
|
||||
com.google.android.gms.internal.common.zzc.zze(parcelZza, iObjectWrapper2);
|
||||
Parcel parcelZzB = zzB(8, parcelZza);
|
||||
IObjectWrapper iObjectWrapperAsInterface = IObjectWrapper.Stub.asInterface(parcelZzB.readStrongBinder());
|
||||
parcelZzB.recycle();
|
||||
return iObjectWrapperAsInterface;
|
||||
}
|
||||
|
||||
public final IObjectWrapper zzj(IObjectWrapper iObjectWrapper, String str, int i) throws RemoteException {
|
||||
Parcel parcelZza = zza();
|
||||
com.google.android.gms.internal.common.zzc.zze(parcelZza, iObjectWrapper);
|
||||
parcelZza.writeString(str);
|
||||
parcelZza.writeInt(i);
|
||||
Parcel parcelZzB = zzB(4, parcelZza);
|
||||
IObjectWrapper iObjectWrapperAsInterface = IObjectWrapper.Stub.asInterface(parcelZzB.readStrongBinder());
|
||||
parcelZzB.recycle();
|
||||
return iObjectWrapperAsInterface;
|
||||
}
|
||||
|
||||
public final IObjectWrapper zzk(IObjectWrapper iObjectWrapper, String str, boolean z, long j) throws RemoteException {
|
||||
Parcel parcelZza = zza();
|
||||
com.google.android.gms.internal.common.zzc.zze(parcelZza, iObjectWrapper);
|
||||
parcelZza.writeString(str);
|
||||
parcelZza.writeInt(z ? 1 : 0);
|
||||
parcelZza.writeLong(j);
|
||||
Parcel parcelZzB = zzB(7, parcelZza);
|
||||
IObjectWrapper iObjectWrapperAsInterface = IObjectWrapper.Stub.asInterface(parcelZzB.readStrongBinder());
|
||||
parcelZzB.recycle();
|
||||
return iObjectWrapperAsInterface;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
package com.google.android.gms.dynamite;
|
||||
|
||||
import android.os.IBinder;
|
||||
import android.os.IInterface;
|
||||
import android.os.Parcel;
|
||||
import android.os.RemoteException;
|
||||
import com.google.android.gms.dynamic.IObjectWrapper;
|
||||
|
||||
/* JADX INFO: compiled from: com.google.android.gms:play-services-basement@@18.3.0 */
|
||||
/* JADX INFO: loaded from: classes2.dex */
|
||||
public final class zzr extends com.google.android.gms.internal.common.zza implements IInterface {
|
||||
zzr(IBinder iBinder) {
|
||||
super(iBinder, "com.google.android.gms.dynamite.IDynamiteLoaderV2");
|
||||
}
|
||||
|
||||
public final IObjectWrapper zze(IObjectWrapper iObjectWrapper, String str, int i, IObjectWrapper iObjectWrapper2) throws RemoteException {
|
||||
Parcel parcelZza = zza();
|
||||
com.google.android.gms.internal.common.zzc.zze(parcelZza, iObjectWrapper);
|
||||
parcelZza.writeString(str);
|
||||
parcelZza.writeInt(i);
|
||||
com.google.android.gms.internal.common.zzc.zze(parcelZza, iObjectWrapper2);
|
||||
Parcel parcelZzB = zzB(2, parcelZza);
|
||||
IObjectWrapper iObjectWrapperAsInterface = IObjectWrapper.Stub.asInterface(parcelZzB.readStrongBinder());
|
||||
parcelZzB.recycle();
|
||||
return iObjectWrapperAsInterface;
|
||||
}
|
||||
|
||||
public final IObjectWrapper zzf(IObjectWrapper iObjectWrapper, String str, int i, IObjectWrapper iObjectWrapper2) throws RemoteException {
|
||||
Parcel parcelZza = zza();
|
||||
com.google.android.gms.internal.common.zzc.zze(parcelZza, iObjectWrapper);
|
||||
parcelZza.writeString(str);
|
||||
parcelZza.writeInt(i);
|
||||
com.google.android.gms.internal.common.zzc.zze(parcelZza, iObjectWrapper2);
|
||||
Parcel parcelZzB = zzB(3, parcelZza);
|
||||
IObjectWrapper iObjectWrapperAsInterface = IObjectWrapper.Stub.asInterface(parcelZzB.readStrongBinder());
|
||||
parcelZzB.recycle();
|
||||
return iObjectWrapperAsInterface;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user