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:
@@ -0,0 +1,40 @@
|
||||
package com.google.firebase.iid;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.os.Bundle;
|
||||
import android.util.Log;
|
||||
import com.google.android.gms.cloudmessaging.CloudMessage;
|
||||
import com.google.android.gms.cloudmessaging.CloudMessagingReceiver;
|
||||
import com.google.android.gms.tasks.Tasks;
|
||||
import com.google.firebase.messaging.FcmBroadcastProcessor;
|
||||
import com.google.firebase.messaging.MessagingAnalytics;
|
||||
import com.google.firebase.messaging.ServiceStarter;
|
||||
import java.util.concurrent.ExecutionException;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class FirebaseInstanceIdReceiver extends CloudMessagingReceiver {
|
||||
private static final String TAG = "FirebaseMessaging";
|
||||
|
||||
private static Intent createServiceIntent(Context context, String str, Bundle bundle) {
|
||||
return new Intent(str).putExtras(bundle);
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.cloudmessaging.CloudMessagingReceiver
|
||||
public int onMessageReceive(Context context, CloudMessage cloudMessage) {
|
||||
try {
|
||||
return ((Integer) Tasks.await(new FcmBroadcastProcessor(context).process(cloudMessage.getIntent()))).intValue();
|
||||
} catch (InterruptedException | ExecutionException e4) {
|
||||
Log.e("FirebaseMessaging", "Failed to send message to service.", e4);
|
||||
return ServiceStarter.ERROR_UNKNOWN;
|
||||
}
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.cloudmessaging.CloudMessagingReceiver
|
||||
public void onNotificationDismissed(Context context, Bundle bundle) {
|
||||
Intent createServiceIntent = createServiceIntent(context, CloudMessagingReceiver.IntentActionKeys.NOTIFICATION_DISMISS, bundle);
|
||||
if (MessagingAnalytics.shouldUploadScionMetrics(createServiceIntent)) {
|
||||
MessagingAnalytics.logNotificationDismiss(createServiceIntent);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
package com.google.firebase.iid.internal;
|
||||
|
||||
import com.google.android.gms.common.annotation.KeepForSdk;
|
||||
import com.google.android.gms.tasks.Task;
|
||||
import java.io.IOException;
|
||||
|
||||
@KeepForSdk
|
||||
/* loaded from: classes3.dex */
|
||||
public interface FirebaseInstanceIdInternal {
|
||||
|
||||
@KeepForSdk
|
||||
/* loaded from: classes3.dex */
|
||||
public interface NewTokenListener {
|
||||
@KeepForSdk
|
||||
void onNewToken(String str);
|
||||
}
|
||||
|
||||
@KeepForSdk
|
||||
void addNewTokenListener(NewTokenListener newTokenListener);
|
||||
|
||||
@KeepForSdk
|
||||
void deleteToken(String str, String str2) throws IOException;
|
||||
|
||||
@KeepForSdk
|
||||
String getId();
|
||||
|
||||
@KeepForSdk
|
||||
String getToken();
|
||||
|
||||
@KeepForSdk
|
||||
Task<String> getTokenTask();
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package com.google.firebase.iid.internal;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class R {
|
||||
private R() {
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user