Files
rr3-apk/smali_classes3/com/google/firebase/messaging/ProxyNotificationPreferences.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

189 lines
5.6 KiB
Smali

.class public abstract Lcom/google/firebase/messaging/ProxyNotificationPreferences;
.super Ljava/lang/Object;
.source "SourceFile"
# direct methods
.method public static synthetic $r8$lambda$JrcvqFqYASHbEPPDlZRpyYavfLE(Landroid/content/Context;ZLjava/lang/Void;)V
.locals 0
.line 0
invoke-static {p0, p1, p2}, Lcom/google/firebase/messaging/ProxyNotificationPreferences;->lambda$setProxyRetention$0(Landroid/content/Context;ZLjava/lang/Void;)V
return-void
.end method
.method public static getPreference(Landroid/content/Context;)Landroid/content/SharedPreferences;
.locals 2
.line 39
invoke-virtual {p0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
move-result-object v0
if-nez v0, :cond_0
goto :goto_0
:cond_0
move-object p0, v0
:goto_0
const-string v0, "com.google.firebase.messaging"
const/4 v1, 0x0
.line 44
invoke-virtual {p0, v0, v1}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;
move-result-object p0
return-object p0
.end method
.method public static isProxyNotificationInitialized(Landroid/content/Context;)Z
.locals 2
.line 71
invoke-static {p0}, Lcom/google/firebase/messaging/ProxyNotificationPreferences;->getPreference(Landroid/content/Context;)Landroid/content/SharedPreferences;
move-result-object p0
const-string v0, "proxy_notification_initialized"
const/4 v1, 0x0
invoke-interface {p0, v0, v1}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z
move-result p0
return p0
.end method
.method public static isProxyNotificationRetentionSet(Landroid/content/SharedPreferences;Z)Z
.locals 3
const-string v0, "proxy_retention"
.line 76
invoke-interface {p0, v0}, Landroid/content/SharedPreferences;->contains(Ljava/lang/String;)Z
move-result v1
const/4 v2, 0x0
if-eqz v1, :cond_0
.line 77
invoke-interface {p0, v0, v2}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z
move-result p0
if-ne p0, p1, :cond_0
const/4 v2, 0x1
:cond_0
return v2
.end method
.method public static synthetic lambda$setProxyRetention$0(Landroid/content/Context;ZLjava/lang/Void;)V
.locals 0
.line 65
invoke-static {p0, p1}, Lcom/google/firebase/messaging/ProxyNotificationPreferences;->setProxyRetentionPreferences(Landroid/content/Context;Z)V
return-void
.end method
.method public static setProxyNotificationsInitialized(Landroid/content/Context;Z)V
.locals 1
.line 49
invoke-static {p0}, Lcom/google/firebase/messaging/ProxyNotificationPreferences;->getPreference(Landroid/content/Context;)Landroid/content/SharedPreferences;
move-result-object p0
invoke-interface {p0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;
move-result-object p0
const-string v0, "proxy_notification_initialized"
.line 50
invoke-interface {p0, v0, p1}, Landroid/content/SharedPreferences$Editor;->putBoolean(Ljava/lang/String;Z)Landroid/content/SharedPreferences$Editor;
.line 51
invoke-interface {p0}, Landroid/content/SharedPreferences$Editor;->apply()V
return-void
.end method
.method public static setProxyRetention(Landroid/content/Context;Lcom/google/firebase/messaging/GmsRpc;Z)V
.locals 2
.line 56
invoke-static {}, Lcom/google/android/gms/common/util/PlatformVersion;->isAtLeastQ()Z
move-result v0
if-nez v0, :cond_0
return-void
.line 60
:cond_0
invoke-static {p0}, Lcom/google/firebase/messaging/ProxyNotificationPreferences;->getPreference(Landroid/content/Context;)Landroid/content/SharedPreferences;
move-result-object v0
.line 61
invoke-static {v0, p2}, Lcom/google/firebase/messaging/ProxyNotificationPreferences;->isProxyNotificationRetentionSet(Landroid/content/SharedPreferences;Z)Z
move-result v0
if-nez v0, :cond_1
.line 63
invoke-virtual {p1, p2}, Lcom/google/firebase/messaging/GmsRpc;->setRetainProxiedNotifications(Z)Lcom/google/android/gms/tasks/Task;
move-result-object p1
new-instance v0, Landroidx/credentials/CredentialManager$$ExternalSyntheticLambda0;
invoke-direct {v0}, Landroidx/credentials/CredentialManager$$ExternalSyntheticLambda0;-><init>()V
new-instance v1, Lcom/google/firebase/messaging/ProxyNotificationPreferences$$ExternalSyntheticLambda0;
invoke-direct {v1, p0, p2}, Lcom/google/firebase/messaging/ProxyNotificationPreferences$$ExternalSyntheticLambda0;-><init>(Landroid/content/Context;Z)V
.line 64
invoke-virtual {p1, v0, v1}, Lcom/google/android/gms/tasks/Task;->addOnSuccessListener(Ljava/util/concurrent/Executor;Lcom/google/android/gms/tasks/OnSuccessListener;)Lcom/google/android/gms/tasks/Task;
:cond_1
return-void
.end method
.method public static setProxyRetentionPreferences(Landroid/content/Context;Z)V
.locals 1
.line 82
invoke-static {p0}, Lcom/google/firebase/messaging/ProxyNotificationPreferences;->getPreference(Landroid/content/Context;)Landroid/content/SharedPreferences;
move-result-object p0
invoke-interface {p0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;
move-result-object p0
const-string v0, "proxy_retention"
.line 83
invoke-interface {p0, v0, p1}, Landroid/content/SharedPreferences$Editor;->putBoolean(Ljava/lang/String;Z)Landroid/content/SharedPreferences$Editor;
.line 84
invoke-interface {p0}, Landroid/content/SharedPreferences$Editor;->apply()V
return-void
.end method