Primer paso de la investigacion. Se aportan el .apk, las carpetas con el apk extraido y el apk descompilado. El archivo API_DOCUMENTATION.md es un archivo donde se anotaran los descubrimientos del funcionamiento de la API, y los .py son scripts para probar la funcionalidad de la API con los métodos que vayamos encontrando. Finalmente, los archivos .js son scripts de Frida para extraer informacion de la APP durante la ejecucion.

This commit is contained in:
2025-12-04 13:59:54 +01:00
parent f2fd1c3bf5
commit e0133d2ca2
10432 changed files with 1019085 additions and 1 deletions

View File

@@ -0,0 +1,93 @@
package com.google.android.gms.security;
import android.content.Context;
import android.content.Intent;
import android.os.SystemClock;
import android.util.Log;
import com.google.android.gms.common.GoogleApiAvailabilityLight;
import com.google.android.gms.common.GooglePlayServicesNotAvailableException;
import com.google.android.gms.common.GooglePlayServicesRepairableException;
import com.google.android.gms.common.GooglePlayServicesUtilLight;
import com.google.android.gms.common.internal.Preconditions;
import com.google.android.gms.dynamite.DynamiteModule;
import java.lang.reflect.Method;
/* loaded from: classes3.dex */
public class ProviderInstaller {
public static final String PROVIDER_NAME = "GmsCore_OpenSSL";
private static final GoogleApiAvailabilityLight zza = GoogleApiAvailabilityLight.getInstance();
private static final Object zzb = new Object();
private static Method zzc = null;
private static Method zzd = null;
/* loaded from: classes3.dex */
public interface ProviderInstallListener {
void onProviderInstallFailed(int i, Intent intent);
void onProviderInstalled();
}
public static void installIfNeeded(Context context) throws GooglePlayServicesRepairableException, GooglePlayServicesNotAvailableException {
Context context2;
Preconditions.checkNotNull(context, "Context must not be null");
zza.verifyGooglePlayServicesIsAvailable(context, 11925000);
synchronized (zzb) {
long elapsedRealtime = SystemClock.elapsedRealtime();
try {
context2 = DynamiteModule.load(context, DynamiteModule.PREFER_HIGHEST_OR_LOCAL_VERSION_NO_FORCE_STAGING, "com.google.android.gms.providerinstaller.dynamite").getModuleContext();
} catch (DynamiteModule.LoadingException e4) {
Log.w("ProviderInstaller", "Failed to load providerinstaller module: ".concat(String.valueOf(e4.getMessage())));
context2 = null;
}
if (context2 != null) {
zzc(context2, context, "com.google.android.gms.providerinstaller.ProviderInstallerImpl");
return;
}
long elapsedRealtime2 = SystemClock.elapsedRealtime();
Context remoteContext = GooglePlayServicesUtilLight.getRemoteContext(context);
if (remoteContext != null) {
try {
if (zzd == null) {
Class cls = Long.TYPE;
zzd = zzb(remoteContext, "com.google.android.gms.common.security.ProviderInstallerImpl", "reportRequestStats", new Class[]{Context.class, cls, cls});
}
zzd.invoke(null, context, Long.valueOf(elapsedRealtime), Long.valueOf(elapsedRealtime2));
} catch (Exception e5) {
Log.w("ProviderInstaller", "Failed to report request stats: ".concat(String.valueOf(e5.getMessage())));
}
}
if (remoteContext != null) {
zzc(remoteContext, context, "com.google.android.gms.common.security.ProviderInstallerImpl");
} else {
Log.e("ProviderInstaller", "Failed to get remote context");
throw new GooglePlayServicesNotAvailableException(8);
}
}
}
public static void installIfNeededAsync(Context context, ProviderInstallListener providerInstallListener) {
Preconditions.checkNotNull(context, "Context must not be null");
Preconditions.checkNotNull(providerInstallListener, "Listener must not be null");
Preconditions.checkMainThread("Must be called on the UI thread");
new zza(context, providerInstallListener).execute(new Void[0]);
}
private static Method zzb(Context context, String str, String str2, Class[] clsArr) throws ClassNotFoundException, NoSuchMethodException {
return context.getClassLoader().loadClass(str).getMethod(str2, clsArr);
}
private static void zzc(Context context, Context context2, String str) throws GooglePlayServicesNotAvailableException {
try {
if (zzc == null) {
zzc = zzb(context, str, "insertProvider", new Class[]{Context.class});
}
zzc.invoke(null, context);
} catch (Exception e4) {
Throwable cause = e4.getCause();
if (Log.isLoggable("ProviderInstaller", 6)) {
Log.e("ProviderInstaller", "Failed to install provider: ".concat(String.valueOf(cause == null ? e4.getMessage() : cause.getMessage())));
}
throw new GooglePlayServicesNotAvailableException(8);
}
}
}

View File

@@ -0,0 +1,43 @@
package com.google.android.gms.security;
import android.content.Context;
import android.os.AsyncTask;
import com.google.android.gms.common.GoogleApiAvailabilityLight;
import com.google.android.gms.common.GooglePlayServicesNotAvailableException;
import com.google.android.gms.common.GooglePlayServicesRepairableException;
import com.google.android.gms.security.ProviderInstaller;
/* loaded from: classes3.dex */
final class zza extends AsyncTask {
final /* synthetic */ Context zza;
final /* synthetic */ ProviderInstaller.ProviderInstallListener zzb;
public zza(Context context, ProviderInstaller.ProviderInstallListener providerInstallListener) {
this.zza = context;
this.zzb = providerInstallListener;
}
@Override // android.os.AsyncTask
public final /* bridge */ /* synthetic */ Object doInBackground(Object[] objArr) {
try {
ProviderInstaller.installIfNeeded(this.zza);
return 0;
} catch (GooglePlayServicesNotAvailableException e4) {
return Integer.valueOf(e4.errorCode);
} catch (GooglePlayServicesRepairableException e5) {
return Integer.valueOf(e5.getConnectionStatusCode());
}
}
@Override // android.os.AsyncTask
public final /* bridge */ /* synthetic */ void onPostExecute(Object obj) {
GoogleApiAvailabilityLight googleApiAvailabilityLight;
Integer num = (Integer) obj;
if (num.intValue() == 0) {
this.zzb.onProviderInstalled();
return;
}
googleApiAvailabilityLight = ProviderInstaller.zza;
this.zzb.onProviderInstallFailed(num.intValue(), googleApiAvailabilityLight.getErrorResolutionIntent(this.zza, num.intValue(), "pi"));
}
}