Files
rr3-apk/smali_classes2/com/facebook/appevents/AppEventStore.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

245 lines
6.4 KiB
Smali

.class public final Lcom/facebook/appevents/AppEventStore;
.super Ljava/lang/Object;
.source "SourceFile"
# static fields
.field public static final INSTANCE:Lcom/facebook/appevents/AppEventStore;
.field private static final TAG:Ljava/lang/String;
# direct methods
.method static constructor <clinit>()V
.locals 1
new-instance v0, Lcom/facebook/appevents/AppEventStore;
invoke-direct {v0}, Lcom/facebook/appevents/AppEventStore;-><init>()V
sput-object v0, Lcom/facebook/appevents/AppEventStore;->INSTANCE:Lcom/facebook/appevents/AppEventStore;
const-class v0, Lcom/facebook/appevents/AppEventStore;
.line 18
invoke-virtual {v0}, Ljava/lang/Class;->getName()Ljava/lang/String;
move-result-object v0
sput-object v0, Lcom/facebook/appevents/AppEventStore;->TAG:Ljava/lang/String;
return-void
.end method
.method private constructor <init>()V
.locals 0
.line 16
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static final declared-synchronized persistEvents(Lcom/facebook/appevents/AccessTokenAppIdPair;Lcom/facebook/appevents/SessionEventsState;)V
.locals 2
const-class v0, Lcom/facebook/appevents/AppEventStore;
monitor-enter v0
:try_start_0
const-class v1, Lcom/facebook/appevents/AppEventStore;
invoke-static {v1}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->isObjectCrashing(Ljava/lang/Object;)Z
move-result v1
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_1
if-eqz v1, :cond_0
monitor-exit v0
return-void
:cond_0
:try_start_1
const-string v1, "accessTokenAppIdPair"
invoke-static {p0, v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v1, "appEvents"
invoke-static {p1, v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 23
invoke-static {}, Lcom/facebook/appevents/internal/AppEventUtility;->assertIsNotMainThread()V
.line 24
invoke-static {}, Lcom/facebook/appevents/AppEventDiskStore;->readAndClearStore()Lcom/facebook/appevents/PersistedEvents;
move-result-object v1
.line 25
invoke-virtual {p1}, Lcom/facebook/appevents/SessionEventsState;->getEventsToPersist()Ljava/util/List;
move-result-object p1
invoke-virtual {v1, p0, p1}, Lcom/facebook/appevents/PersistedEvents;->addEvents(Lcom/facebook/appevents/AccessTokenAppIdPair;Ljava/util/List;)V
.line 26
invoke-static {v1}, Lcom/facebook/appevents/AppEventDiskStore;->saveEventsToDisk$facebook_core_release(Lcom/facebook/appevents/PersistedEvents;)V
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
.line 27
monitor-exit v0
return-void
:catchall_0
move-exception p0
:try_start_2
const-class p1, Lcom/facebook/appevents/AppEventStore;
invoke-static {p0, p1}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->handleThrowable(Ljava/lang/Throwable;Ljava/lang/Object;)V
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_1
monitor-exit v0
return-void
:catchall_1
move-exception p0
monitor-exit v0
throw p0
.end method
.method public static final declared-synchronized persistEvents(Lcom/facebook/appevents/AppEventCollection;)V
.locals 5
const-class v0, Lcom/facebook/appevents/AppEventStore;
monitor-enter v0
:try_start_0
const-class v1, Lcom/facebook/appevents/AppEventStore;
invoke-static {v1}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->isObjectCrashing(Ljava/lang/Object;)Z
move-result v1
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_1
if-eqz v1, :cond_0
monitor-exit v0
return-void
:cond_0
:try_start_1
const-string v1, "eventsToPersist"
invoke-static {p0, v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 32
invoke-static {}, Lcom/facebook/appevents/internal/AppEventUtility;->assertIsNotMainThread()V
.line 33
invoke-static {}, Lcom/facebook/appevents/AppEventDiskStore;->readAndClearStore()Lcom/facebook/appevents/PersistedEvents;
move-result-object v1
.line 34
invoke-virtual {p0}, Lcom/facebook/appevents/AppEventCollection;->keySet()Ljava/util/Set;
move-result-object v2
invoke-interface {v2}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
move-result-object v2
:goto_0
invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z
move-result v3
if-eqz v3, :cond_2
invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v3
check-cast v3, Lcom/facebook/appevents/AccessTokenAppIdPair;
.line 35
invoke-virtual {p0, v3}, Lcom/facebook/appevents/AppEventCollection;->get(Lcom/facebook/appevents/AccessTokenAppIdPair;)Lcom/facebook/appevents/SessionEventsState;
move-result-object v4
if-eqz v4, :cond_1
.line 36
invoke-virtual {v4}, Lcom/facebook/appevents/SessionEventsState;->getEventsToPersist()Ljava/util/List;
move-result-object v4
invoke-virtual {v1, v3, v4}, Lcom/facebook/appevents/PersistedEvents;->addEvents(Lcom/facebook/appevents/AccessTokenAppIdPair;Ljava/util/List;)V
goto :goto_0
:catchall_0
move-exception p0
goto :goto_1
:cond_1
const-string p0, "Required value was null."
.line 35
new-instance v1, Ljava/lang/IllegalStateException;
invoke-virtual {p0}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p0
invoke-direct {v1, p0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v1
.line 38
:cond_2
invoke-static {v1}, Lcom/facebook/appevents/AppEventDiskStore;->saveEventsToDisk$facebook_core_release(Lcom/facebook/appevents/PersistedEvents;)V
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
.line 39
monitor-exit v0
return-void
:goto_1
:try_start_2
const-class v1, Lcom/facebook/appevents/AppEventStore;
invoke-static {p0, v1}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->handleThrowable(Ljava/lang/Throwable;Ljava/lang/Object;)V
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_1
monitor-exit v0
return-void
:catchall_1
move-exception p0
monitor-exit v0
throw p0
.end method