Add decompiled APK source code (JADX)

- 28,932 files
- Full Java source code
- Smali files
- Resources

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
2026-02-18 14:52:23 -08:00
parent cc210a65ea
commit f9d20bb3fc
26991 changed files with 2541449 additions and 0 deletions

View File

@@ -0,0 +1,110 @@
package com.google.vr.dynamite.client;
import android.content.Context;
import android.os.RemoteException;
import android.util.ArrayMap;
import android.util.Log;
import dalvik.system.DexClassLoader;
@UsedByNative
/* loaded from: classes3.dex */
public final class DynamiteClient {
public static final ArrayMap a = new ArrayMap();
private DynamiteClient() {
}
@UsedByNative
public static synchronized int checkVersion(Context context, String str, String str2, String str3) {
synchronized (DynamiteClient.class) {
g gVar = new g(str, str2);
e remoteLibraryLoaderFromInfo = getRemoteLibraryLoaderFromInfo(gVar);
try {
INativeLibraryLoader newNativeLibraryLoader = remoteLibraryLoaderFromInfo.b(context).newNativeLibraryLoader(ObjectWrapper.b(remoteLibraryLoaderFromInfo.a(context)), ObjectWrapper.b(context));
if (newNativeLibraryLoader != null) {
return newNativeLibraryLoader.checkVersion(str3);
}
Log.e("DynamiteClient", "Failed to load native library " + gVar.toString() + " from remote package: no loader available.");
return -1;
} catch (RemoteException | d | IllegalArgumentException | IllegalStateException | SecurityException | UnsatisfiedLinkError e) {
Log.e("DynamiteClient", "Failed to load native library " + gVar.toString() + " from remote package:\n ", e);
return -1;
}
}
}
@UsedByNative
public static synchronized ClassLoader getRemoteClassLoader(Context context, String str, String str2) {
synchronized (DynamiteClient.class) {
Context remoteContext = getRemoteContext(context, str, str2);
if (remoteContext == null) {
return null;
}
return remoteContext.getClassLoader();
}
}
@UsedByNative
public static synchronized Context getRemoteContext(Context context, String str, String str2) {
Context a2;
synchronized (DynamiteClient.class) {
g gVar = new g(str, str2);
try {
a2 = getRemoteLibraryLoaderFromInfo(gVar).a(context);
} catch (d e) {
Log.e("DynamiteClient", "Failed to get remote Context" + gVar.toString() + " from remote package:\n ", e);
return null;
}
}
return a2;
}
@UsedByNative
public static synchronized ClassLoader getRemoteDexClassLoader(Context context, String str) {
synchronized (DynamiteClient.class) {
Context remoteContext = getRemoteContext(context, str, null);
if (remoteContext == null) {
return null;
}
try {
return new DexClassLoader(remoteContext.getPackageCodePath(), context.getCodeCacheDir().getAbsolutePath(), remoteContext.getApplicationInfo().nativeLibraryDir, context.getClassLoader());
} catch (RuntimeException e) {
Log.e("DynamiteClient", "Failed to create class loader for remote package\n ", e);
return null;
}
}
}
@UsedByNative
private static synchronized e getRemoteLibraryLoaderFromInfo(g gVar) {
synchronized (DynamiteClient.class) {
ArrayMap arrayMap = a;
e eVar = (e) arrayMap.get(gVar);
if (eVar != null) {
return eVar;
}
e eVar2 = new e(gVar);
arrayMap.put(gVar, eVar2);
return eVar2;
}
}
@UsedByNative
public static synchronized long loadNativeRemoteLibrary(Context context, String str, String str2) {
synchronized (DynamiteClient.class) {
g gVar = new g(str, str2);
e remoteLibraryLoaderFromInfo = getRemoteLibraryLoaderFromInfo(gVar);
try {
INativeLibraryLoader newNativeLibraryLoader = remoteLibraryLoaderFromInfo.b(context).newNativeLibraryLoader(ObjectWrapper.b(remoteLibraryLoaderFromInfo.a(context)), ObjectWrapper.b(context));
if (newNativeLibraryLoader != null) {
return newNativeLibraryLoader.initializeAndLoadNativeLibrary(str2);
}
Log.e("DynamiteClient", "Failed to load native library " + gVar.toString() + " from remote package: no loader available.");
return 0L;
} catch (RemoteException | d | IllegalArgumentException | IllegalStateException | SecurityException | UnsatisfiedLinkError e) {
Log.e("DynamiteClient", "Failed to load native library " + gVar.toString() + " from remote package:\n ", e);
return 0L;
}
}
}
}

View File

@@ -0,0 +1,9 @@
package com.google.vr.dynamite.client;
import android.os.IInterface;
import android.os.RemoteException;
/* loaded from: classes3.dex */
public interface ILoadedInstanceCreator extends IInterface {
INativeLibraryLoader newNativeLibraryLoader(IObjectWrapper iObjectWrapper, IObjectWrapper iObjectWrapper2) throws RemoteException;
}

View File

@@ -0,0 +1,11 @@
package com.google.vr.dynamite.client;
import android.os.IInterface;
import android.os.RemoteException;
/* loaded from: classes3.dex */
public interface INativeLibraryLoader extends IInterface {
int checkVersion(String str) throws RemoteException;
long initializeAndLoadNativeLibrary(String str) throws RemoteException;
}

View File

@@ -0,0 +1,7 @@
package com.google.vr.dynamite.client;
import android.os.IInterface;
/* loaded from: classes3.dex */
public interface IObjectWrapper extends IInterface {
}

View File

@@ -0,0 +1,73 @@
package com.google.vr.dynamite.client;
import android.os.IBinder;
import java.lang.reflect.Field;
@UsedByReflection
/* loaded from: classes3.dex */
public final class ObjectWrapper<T> extends c {
@UsedByReflection
private final T wrappedObject;
/* JADX WARN: Multi-variable type inference failed */
public ObjectWrapper(Object obj) {
this.wrappedObject = obj;
}
public static IObjectWrapper b(Object obj) {
return new ObjectWrapper(obj);
}
@UsedByReflection
public static <T> T unwrap(IObjectWrapper iObjectWrapper, Class<T> cls) {
if (iObjectWrapper == null) {
return null;
}
if (iObjectWrapper instanceof ObjectWrapper) {
return ((ObjectWrapper) iObjectWrapper).wrappedObject;
}
IBinder asBinder = iObjectWrapper.asBinder();
Field[] declaredFields = asBinder.getClass().getDeclaredFields();
int length = declaredFields.length;
int i = 0;
Field field = null;
while (true) {
if (i >= length) {
break;
}
Field field2 = declaredFields[i];
if (!field2.isSynthetic()) {
if (field != null) {
field = null;
break;
}
field = field2;
}
i++;
}
if (field == null) {
throw new IllegalArgumentException("The concrete class implementing IObjectWrapper must have exactly *one* declared private field for the wrapped object. Preferably, this is an instance of the ObjectWrapper<T> class.");
}
if (field.isAccessible()) {
throw new IllegalArgumentException("The concrete class implementing IObjectWrapper must have exactly one declared *private* field for the wrapped object. Preferably, this is an instance of the ObjectWrapper<T> class.");
}
field.setAccessible(true);
try {
Object obj = field.get(asBinder);
if (obj == null) {
return null;
}
if (cls.isInstance(obj)) {
return cls.cast(obj);
}
throw new IllegalArgumentException("remoteBinder is the wrong class.");
} catch (IllegalAccessException e) {
throw new IllegalArgumentException("Could not access the field in remoteBinder.", e);
} catch (IllegalArgumentException e2) {
throw new IllegalArgumentException("remoteBinder is the wrong class.", e2);
} catch (NullPointerException e3) {
throw new IllegalArgumentException("Binder object is null.", e3);
}
}
}

View File

@@ -0,0 +1,9 @@
package com.google.vr.dynamite.client;
import java.lang.annotation.ElementType;
import java.lang.annotation.Target;
@Target({ElementType.METHOD, ElementType.FIELD, ElementType.TYPE, ElementType.CONSTRUCTOR})
/* loaded from: classes3.dex */
public @interface UsedByNative {
}

View File

@@ -0,0 +1,9 @@
package com.google.vr.dynamite.client;
import java.lang.annotation.ElementType;
import java.lang.annotation.Target;
@Target({ElementType.METHOD, ElementType.FIELD, ElementType.TYPE, ElementType.CONSTRUCTOR})
/* loaded from: classes3.dex */
public @interface UsedByReflection {
}

View File

@@ -0,0 +1,30 @@
package com.google.vr.dynamite.client;
import android.os.IBinder;
import android.os.IInterface;
import android.os.Parcel;
/* loaded from: classes3.dex */
public final class a extends com.google.ar.core.dependencies.c implements ILoadedInstanceCreator {
public a(IBinder iBinder) {
super(iBinder, "com.google.vr.dynamite.client.ILoadedInstanceCreator");
}
@Override // com.google.vr.dynamite.client.ILoadedInstanceCreator
public final INativeLibraryLoader newNativeLibraryLoader(IObjectWrapper iObjectWrapper, IObjectWrapper iObjectWrapper2) {
INativeLibraryLoader bVar;
Parcel a = a();
com.google.ar.core.dependencies.e.d(a, iObjectWrapper);
com.google.ar.core.dependencies.e.d(a, iObjectWrapper2);
Parcel b = b(1, a);
IBinder readStrongBinder = b.readStrongBinder();
if (readStrongBinder == null) {
bVar = null;
} else {
IInterface queryLocalInterface = readStrongBinder.queryLocalInterface("com.google.vr.dynamite.client.INativeLibraryLoader");
bVar = queryLocalInterface instanceof INativeLibraryLoader ? (INativeLibraryLoader) queryLocalInterface : new b(readStrongBinder);
}
b.recycle();
return bVar;
}
}

View File

@@ -0,0 +1,31 @@
package com.google.vr.dynamite.client;
import android.os.IBinder;
import android.os.Parcel;
/* loaded from: classes3.dex */
public final class b extends com.google.ar.core.dependencies.c implements INativeLibraryLoader {
public b(IBinder iBinder) {
super(iBinder, "com.google.vr.dynamite.client.INativeLibraryLoader");
}
@Override // com.google.vr.dynamite.client.INativeLibraryLoader
public final int checkVersion(String str) {
Parcel a = a();
a.writeString(str);
Parcel b = b(2, a);
int readInt = b.readInt();
b.recycle();
return readInt;
}
@Override // com.google.vr.dynamite.client.INativeLibraryLoader
public final long initializeAndLoadNativeLibrary(String str) {
Parcel a = a();
a.writeString(str);
Parcel b = b(1, a);
long readLong = b.readLong();
b.recycle();
return readLong;
}
}

View File

@@ -0,0 +1,8 @@
package com.google.vr.dynamite.client;
/* loaded from: classes3.dex */
public abstract class c extends com.google.ar.core.dependencies.d implements IObjectWrapper {
public c() {
super("com.google.vr.dynamite.client.IObjectWrapper");
}
}

View File

@@ -0,0 +1,11 @@
package com.google.vr.dynamite.client;
/* loaded from: classes3.dex */
public final class d extends Exception {
public final int a = 1;
@Override // java.lang.Throwable
public final String getMessage() {
return "LoaderException{" + (this.a != 1 ? "Unknown error" : "Package not available") + "}";
}
}

View File

@@ -0,0 +1,64 @@
package com.google.vr.dynamite.client;
import android.content.Context;
import android.content.pm.PackageManager;
import android.os.IBinder;
import android.os.IInterface;
import java.lang.reflect.InvocationTargetException;
/* loaded from: classes3.dex */
public final class e {
public Context a;
public ILoadedInstanceCreator b;
public final g c;
public e(g gVar) {
this.c = gVar;
}
public static IBinder c(ClassLoader classLoader) {
try {
return (IBinder) classLoader.loadClass("com.google.vr.dynamite.LoadedInstanceCreator").getDeclaredConstructor(new Class[0]).newInstance(new Object[0]);
} catch (ClassNotFoundException e) {
throw new IllegalStateException("Unable to find dynamic class ".concat("com.google.vr.dynamite.LoadedInstanceCreator"), e);
} catch (IllegalAccessException e2) {
throw new IllegalStateException("Unable to call the default constructor of ".concat("com.google.vr.dynamite.LoadedInstanceCreator"), e2);
} catch (InstantiationException e3) {
throw new IllegalStateException("Unable to instantiate the remote class ".concat("com.google.vr.dynamite.LoadedInstanceCreator"), e3);
} catch (NoSuchMethodException e4) {
throw new IllegalStateException("No constructor for dynamic class ".concat("com.google.vr.dynamite.LoadedInstanceCreator"), e4);
} catch (InvocationTargetException e5) {
throw new IllegalStateException("Unable to invoke constructor of dynamic class ".concat("com.google.vr.dynamite.LoadedInstanceCreator"), e5);
}
}
public final synchronized Context a(Context context) {
if (this.a == null) {
try {
this.a = context.createPackageContext(this.c.a(), 3);
} catch (PackageManager.NameNotFoundException unused) {
throw new d();
}
}
return this.a;
}
public final synchronized ILoadedInstanceCreator b(Context context) {
ILoadedInstanceCreator aVar;
try {
if (this.b == null) {
IBinder c = c(a(context).getClassLoader());
if (c == null) {
aVar = null;
} else {
IInterface queryLocalInterface = c.queryLocalInterface("com.google.vr.dynamite.client.ILoadedInstanceCreator");
aVar = queryLocalInterface instanceof ILoadedInstanceCreator ? (ILoadedInstanceCreator) queryLocalInterface : new a(c);
}
this.b = aVar;
}
} catch (Throwable th) {
throw th;
}
return this.b;
}
}

View File

@@ -0,0 +1,18 @@
package com.google.vr.dynamite.client;
/* loaded from: classes3.dex */
public abstract /* synthetic */ class f {
public static /* synthetic */ int a(Object obj) {
if (obj == null) {
return 0;
}
return obj.hashCode();
}
public static /* synthetic */ boolean b(Object obj, Object obj2) {
if (obj != obj2) {
return obj != null && obj.equals(obj2);
}
return true;
}
}

View File

@@ -0,0 +1,39 @@
package com.google.vr.dynamite.client;
import com.ironsource.v8;
/* loaded from: classes3.dex */
public final class g {
public final String a;
public final String b;
public g(String str, String str2) {
this.a = str;
this.b = str2;
}
public final String a() {
return this.a;
}
public final boolean equals(Object obj) {
if (obj == this) {
return true;
}
if (obj instanceof g) {
g gVar = (g) obj;
if (f.b(this.a, gVar.a) && f.b(this.b, gVar.b)) {
return true;
}
}
return false;
}
public final int hashCode() {
return (f.a(this.a) * 37) + f.a(this.b);
}
public final String toString() {
return "[packageName=" + this.a + ",libraryName=" + this.b + v8.i.e;
}
}