Files
rr3-apk/smali_classes3/com/google/firebase/messaging/FcmLifecycleCallbacks.smali
Daniel Elliott f3960ee359 Add Discord APKTool decompilation (Smali source for modding)
- Imported from https://github.com/supermegamestre/Project-Real-Resurrection-3
- APKTool decompilation (Smali bytecode) for modding and rebuilding APK
- Supports both 32-bit (armeabi-v7a) and 64-bit (arm64-v8a) architectures
- Includes full Smali source, resources, and native libraries
- Ready to rebuild APK after modifications with apktool b command
- Added comprehensive README-apktool.md with modding guide

This branch complements the JADX branches:
- Use JADX (main/discord-community) to UNDERSTAND code (readable Java)
- Use APKTool (this branch) to MODIFY and REBUILD APK (editable Smali)

Total: 44,417 files, 538.51 MB Smali source code
2026-02-18 16:13:44 -08:00

169 lines
3.7 KiB
Smali

.class public Lcom/google/firebase/messaging/FcmLifecycleCallbacks;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Landroid/app/Application$ActivityLifecycleCallbacks;
# instance fields
.field public final seenIntents:Ljava/util/Set;
# direct methods
.method public constructor <init>()V
.locals 1
.line 32
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 35
new-instance v0, Ljava/util/WeakHashMap;
invoke-direct {v0}, Ljava/util/WeakHashMap;-><init>()V
.line 36
invoke-static {v0}, Ljava/util/Collections;->newSetFromMap(Ljava/util/Map;)Ljava/util/Set;
move-result-object v0
iput-object v0, p0, Lcom/google/firebase/messaging/FcmLifecycleCallbacks;->seenIntents:Ljava/util/Set;
return-void
.end method
# virtual methods
.method public final logNotificationOpen(Landroid/content/Intent;)V
.locals 3
const/4 v0, 0x0
.line 85
:try_start_0
invoke-virtual {p1}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;
move-result-object p1
if-eqz p1, :cond_0
const-string v1, "gcm.n.analytics_data"
.line 87
invoke-virtual {p1, v1}, Landroid/os/Bundle;->getBundle(Ljava/lang/String;)Landroid/os/Bundle;
move-result-object v0
:try_end_0
.catch Ljava/lang/RuntimeException; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_0
:catch_0
move-exception p1
const-string v1, "FirebaseMessaging"
const-string v2, "Failed trying to get analytics data from Intent extras."
.line 92
invoke-static {v1, v2, p1}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
.line 94
:cond_0
:goto_0
invoke-static {v0}, Lcom/google/firebase/messaging/MessagingAnalytics;->shouldUploadScionMetrics(Landroid/os/Bundle;)Z
move-result p1
if-eqz p1, :cond_1
.line 95
invoke-static {v0}, Lcom/google/firebase/messaging/MessagingAnalytics;->logNotificationOpen(Landroid/os/Bundle;)V
:cond_1
return-void
.end method
.method public onActivityCreated(Landroid/app/Activity;Landroid/os/Bundle;)V
.locals 0
.line 42
invoke-virtual {p1}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;
move-result-object p1
if-eqz p1, :cond_1
iget-object p2, p0, Lcom/google/firebase/messaging/FcmLifecycleCallbacks;->seenIntents:Ljava/util/Set;
.line 43
invoke-interface {p2, p1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z
move-result p2
if-nez p2, :cond_0
goto :goto_0
.line 55
:cond_0
invoke-virtual {p0, p1}, Lcom/google/firebase/messaging/FcmLifecycleCallbacks;->logNotificationOpen(Landroid/content/Intent;)V
:cond_1
:goto_0
return-void
.end method
.method public onActivityDestroyed(Landroid/app/Activity;)V
.locals 0
return-void
.end method
.method public onActivityPaused(Landroid/app/Activity;)V
.locals 1
.line 61
invoke-virtual {p1}, Landroid/app/Activity;->isFinishing()Z
move-result v0
if-eqz v0, :cond_0
iget-object v0, p0, Lcom/google/firebase/messaging/FcmLifecycleCallbacks;->seenIntents:Ljava/util/Set;
.line 63
invoke-virtual {p1}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;
move-result-object p1
invoke-interface {v0, p1}, Ljava/util/Set;->remove(Ljava/lang/Object;)Z
:cond_0
return-void
.end method
.method public onActivityResumed(Landroid/app/Activity;)V
.locals 0
return-void
.end method
.method public onActivitySaveInstanceState(Landroid/app/Activity;Landroid/os/Bundle;)V
.locals 0
return-void
.end method
.method public onActivityStarted(Landroid/app/Activity;)V
.locals 0
return-void
.end method
.method public onActivityStopped(Landroid/app/Activity;)V
.locals 0
return-void
.end method