Files
rr3-apk/smali_classes3/com/google/firebase/remoteconfig/internal/ConfigStorageClient.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

332 lines
7.8 KiB
Smali

.class public Lcom/google/firebase/remoteconfig/internal/ConfigStorageClient;
.super Ljava/lang/Object;
.source "SourceFile"
# static fields
.field public static final clientInstances:Ljava/util/Map;
# instance fields
.field public final context:Landroid/content/Context;
.field public final fileName:Ljava/lang/String;
# direct methods
.method static constructor <clinit>()V
.locals 1
.line 47
new-instance v0, Ljava/util/HashMap;
invoke-direct {v0}, Ljava/util/HashMap;-><init>()V
sput-object v0, Lcom/google/firebase/remoteconfig/internal/ConfigStorageClient;->clientInstances:Ljava/util/Map;
return-void
.end method
.method public constructor <init>(Landroid/content/Context;Ljava/lang/String;)V
.locals 0
.line 55
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/google/firebase/remoteconfig/internal/ConfigStorageClient;->context:Landroid/content/Context;
iput-object p2, p0, Lcom/google/firebase/remoteconfig/internal/ConfigStorageClient;->fileName:Ljava/lang/String;
return-void
.end method
.method public static declared-synchronized getInstance(Landroid/content/Context;Ljava/lang/String;)Lcom/google/firebase/remoteconfig/internal/ConfigStorageClient;
.locals 3
const-class v0, Lcom/google/firebase/remoteconfig/internal/ConfigStorageClient;
monitor-enter v0
:try_start_0
sget-object v1, Lcom/google/firebase/remoteconfig/internal/ConfigStorageClient;->clientInstances:Ljava/util/Map;
.line 130
invoke-interface {v1, p1}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z
move-result v2
if-nez v2, :cond_0
.line 131
new-instance v2, Lcom/google/firebase/remoteconfig/internal/ConfigStorageClient;
invoke-direct {v2, p0, p1}, Lcom/google/firebase/remoteconfig/internal/ConfigStorageClient;-><init>(Landroid/content/Context;Ljava/lang/String;)V
invoke-interface {v1, p1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
goto :goto_0
:catchall_0
move-exception p0
goto :goto_1
.line 133
:cond_0
:goto_0
invoke-interface {v1, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p0
check-cast p0, Lcom/google/firebase/remoteconfig/internal/ConfigStorageClient;
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
monitor-exit v0
return-object p0
:goto_1
monitor-exit v0
throw p0
.end method
# virtual methods
.method public declared-synchronized clear()Ljava/lang/Void;
.locals 2
monitor-enter p0
:try_start_0
iget-object v0, p0, Lcom/google/firebase/remoteconfig/internal/ConfigStorageClient;->context:Landroid/content/Context;
iget-object v1, p0, Lcom/google/firebase/remoteconfig/internal/ConfigStorageClient;->fileName:Ljava/lang/String;
.line 121
invoke-virtual {v0, v1}, Landroid/content/Context;->deleteFile(Ljava/lang/String;)Z
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
.line 122
monitor-exit p0
const/4 v0, 0x0
return-object v0
:catchall_0
move-exception v0
monitor-exit p0
throw v0
.end method
.method public getFileName()Ljava/lang/String;
.locals 1
iget-object v0, p0, Lcom/google/firebase/remoteconfig/internal/ConfigStorageClient;->fileName:Ljava/lang/String;
return-object v0
.end method
.method public declared-synchronized read()Lcom/google/firebase/remoteconfig/internal/ConfigContainer;
.locals 6
monitor-enter p0
const/4 v0, 0x0
:try_start_0
iget-object v1, p0, Lcom/google/firebase/remoteconfig/internal/ConfigStorageClient;->context:Landroid/content/Context;
iget-object v2, p0, Lcom/google/firebase/remoteconfig/internal/ConfigStorageClient;->fileName:Ljava/lang/String;
.line 99
invoke-virtual {v1, v2}, Landroid/content/Context;->openFileInput(Ljava/lang/String;)Ljava/io/FileInputStream;
move-result-object v1
:try_end_0
.catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0
.catch Ljava/io/FileNotFoundException; {:try_start_0 .. :try_end_0} :catch_0
.catchall {:try_start_0 .. :try_end_0} :catchall_2
.line 100
:try_start_1
invoke-virtual {v1}, Ljava/io/FileInputStream;->available()I
move-result v2
new-array v3, v2, [B
const/4 v4, 0x0
.line 101
invoke-virtual {v1, v3, v4, v2}, Ljava/io/FileInputStream;->read([BII)I
.line 102
new-instance v2, Ljava/lang/String;
const-string v4, "UTF-8"
invoke-direct {v2, v3, v4}, Ljava/lang/String;-><init>([BLjava/lang/String;)V
.line 104
new-instance v3, Lorg/json/JSONObject;
invoke-direct {v3, v2}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V
.line 105
invoke-static {v3}, Lcom/google/firebase/remoteconfig/internal/ConfigContainer;->copyOf(Lorg/json/JSONObject;)Lcom/google/firebase/remoteconfig/internal/ConfigContainer;
move-result-object v0
:try_end_1
.catch Lorg/json/JSONException; {:try_start_1 .. :try_end_1} :catch_1
.catch Ljava/io/FileNotFoundException; {:try_start_1 .. :try_end_1} :catch_1
.catchall {:try_start_1 .. :try_end_1} :catchall_1
.line 110
:try_start_2
invoke-virtual {v1}, Ljava/io/FileInputStream;->close()V
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_0
.line 105
monitor-exit p0
return-object v0
:catchall_0
move-exception v0
goto :goto_2
:catchall_1
move-exception v0
goto :goto_0
:catchall_2
move-exception v1
move-object v5, v1
move-object v1, v0
move-object v0, v5
goto :goto_0
:catch_0
move-object v1, v0
goto :goto_1
:goto_0
if-eqz v1, :cond_0
.line 110
:try_start_3
invoke-virtual {v1}, Ljava/io/FileInputStream;->close()V
.line 111
:cond_0
throw v0
:catch_1
:goto_1
if-eqz v1, :cond_1
.line 110
invoke-virtual {v1}, Ljava/io/FileInputStream;->close()V
:try_end_3
.catchall {:try_start_3 .. :try_end_3} :catchall_0
goto :goto_3
:goto_2
monitor-exit p0
throw v0
.line 108
:cond_1
:goto_3
monitor-exit p0
return-object v0
.end method
.method public declared-synchronized write(Lcom/google/firebase/remoteconfig/internal/ConfigContainer;)Ljava/lang/Void;
.locals 3
monitor-enter p0
:try_start_0
iget-object v0, p0, Lcom/google/firebase/remoteconfig/internal/ConfigStorageClient;->context:Landroid/content/Context;
iget-object v1, p0, Lcom/google/firebase/remoteconfig/internal/ConfigStorageClient;->fileName:Ljava/lang/String;
const/4 v2, 0x0
.line 79
invoke-virtual {v0, v1, v2}, Landroid/content/Context;->openFileOutput(Ljava/lang/String;I)Ljava/io/FileOutputStream;
move-result-object v0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
.line 81
:try_start_1
invoke-virtual {p1}, Lcom/google/firebase/remoteconfig/internal/ConfigContainer;->toString()Ljava/lang/String;
move-result-object p1
const-string v1, "UTF-8"
invoke-virtual {p1, v1}, Ljava/lang/String;->getBytes(Ljava/lang/String;)[B
move-result-object p1
invoke-virtual {v0, p1}, Ljava/io/FileOutputStream;->write([B)V
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_1
.line 83
:try_start_2
invoke-virtual {v0}, Ljava/io/FileOutputStream;->close()V
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_0
.line 85
monitor-exit p0
const/4 p1, 0x0
return-object p1
:catchall_0
move-exception p1
goto :goto_0
:catchall_1
move-exception p1
.line 83
:try_start_3
invoke-virtual {v0}, Ljava/io/FileOutputStream;->close()V
.line 84
throw p1
:try_end_3
.catchall {:try_start_3 .. :try_end_3} :catchall_0
:goto_0
monitor-exit p0
throw p1
.end method