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

469 lines
13 KiB
Smali

.class public final Lcom/facebook/appevents/ondeviceprocessing/OnDeviceProcessingManager;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation build Landroidx/annotation/RestrictTo;
value = {
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP:Landroidx/annotation/RestrictTo$Scope;
}
.end annotation
# static fields
.field private static final ALLOWED_IMPLICIT_EVENTS:Ljava/util/Set;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Set<",
"Ljava/lang/String;",
">;"
}
.end annotation
.end field
.field public static final INSTANCE:Lcom/facebook/appevents/ondeviceprocessing/OnDeviceProcessingManager;
# direct methods
.method public static synthetic $r8$lambda$d8sdo1bZioMOY_6pCJvaqUX3yug(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V
.locals 0
.line 0
invoke-static {p0, p1, p2}, Lcom/facebook/appevents/ondeviceprocessing/OnDeviceProcessingManager;->sendInstallEventAsync$lambda-0(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V
return-void
.end method
.method public static synthetic $r8$lambda$ggX978V9ObX1cu2l9m0LL5no1hE(Ljava/lang/String;Lcom/facebook/appevents/AppEvent;)V
.locals 0
.line 0
invoke-static {p0, p1}, Lcom/facebook/appevents/ondeviceprocessing/OnDeviceProcessingManager;->sendCustomEventAsync$lambda-1(Ljava/lang/String;Lcom/facebook/appevents/AppEvent;)V
return-void
.end method
.method static constructor <clinit>()V
.locals 3
new-instance v0, Lcom/facebook/appevents/ondeviceprocessing/OnDeviceProcessingManager;
invoke-direct {v0}, Lcom/facebook/appevents/ondeviceprocessing/OnDeviceProcessingManager;-><init>()V
sput-object v0, Lcom/facebook/appevents/ondeviceprocessing/OnDeviceProcessingManager;->INSTANCE:Lcom/facebook/appevents/ondeviceprocessing/OnDeviceProcessingManager;
const-string v0, "StartTrial"
const-string v1, "Subscribe"
const-string v2, "fb_mobile_purchase"
filled-new-array {v2, v0, v1}, [Ljava/lang/String;
move-result-object v0
.line 26
invoke-static {v0}, Lkotlin/collections/SetsKt;->setOf([Ljava/lang/Object;)Ljava/util/Set;
move-result-object v0
sput-object v0, Lcom/facebook/appevents/ondeviceprocessing/OnDeviceProcessingManager;->ALLOWED_IMPLICIT_EVENTS:Ljava/util/Set;
return-void
.end method
.method private constructor <init>()V
.locals 0
.line 22
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method private final isEventEligibleForOnDeviceProcessing(Lcom/facebook/appevents/AppEvent;)Z
.locals 4
invoke-static {p0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->isObjectCrashing(Ljava/lang/Object;)Z
move-result v0
const/4 v1, 0x0
if-eqz v0, :cond_0
return v1
.line 71
:cond_0
:try_start_0
invoke-virtual {p1}, Lcom/facebook/appevents/AppEvent;->isImplicit()Z
move-result v0
const/4 v2, 0x1
if-eqz v0, :cond_1
sget-object v0, Lcom/facebook/appevents/ondeviceprocessing/OnDeviceProcessingManager;->ALLOWED_IMPLICIT_EVENTS:Ljava/util/Set;
invoke-virtual {p1}, Lcom/facebook/appevents/AppEvent;->getName()Ljava/lang/String;
move-result-object v3
invoke-interface {v0, v3}, Ljava/util/Set;->contains(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
move v0, v2
goto :goto_0
:catchall_0
move-exception p1
goto :goto_1
:cond_1
move v0, v1
.line 72
:goto_0
invoke-virtual {p1}, Lcom/facebook/appevents/AppEvent;->isImplicit()Z
move-result p1
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
xor-int/2addr p1, v2
if-nez p1, :cond_2
if-eqz v0, :cond_3
:cond_2
move v1, v2
:cond_3
return v1
.line 73
:goto_1
invoke-static {p1, p0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->handleThrowable(Ljava/lang/Throwable;Ljava/lang/Object;)V
return v1
.end method
.method public static final isOnDeviceProcessingEnabled()Z
.locals 3
const-class v0, Lcom/facebook/appevents/ondeviceprocessing/OnDeviceProcessingManager;
invoke-static {v0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->isObjectCrashing(Ljava/lang/Object;)Z
move-result v1
const/4 v2, 0x0
if-eqz v1, :cond_0
return v2
.line 33
:cond_0
:try_start_0
invoke-static {}, Lcom/facebook/FacebookSdk;->getApplicationContext()Landroid/content/Context;
move-result-object v1
.line 35
invoke-static {v1}, Lcom/facebook/FacebookSdk;->getLimitEventAndDataUsage(Landroid/content/Context;)Z
move-result v1
if-nez v1, :cond_1
invoke-static {}, Lcom/facebook/internal/Utility;->isDataProcessingRestricted()Z
move-result v1
if-nez v1, :cond_1
.line 36
invoke-static {}, Lcom/facebook/appevents/ondeviceprocessing/RemoteServiceWrapper;->isServiceAvailable()Z
move-result v0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
if-eqz v0, :cond_1
const/4 v2, 0x1
goto :goto_0
:catchall_0
move-exception v1
goto :goto_1
:cond_1
:goto_0
return v2
:goto_1
invoke-static {v1, v0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->handleThrowable(Ljava/lang/Throwable;Ljava/lang/Object;)V
return v2
.end method
.method public static final sendCustomEventAsync(Ljava/lang/String;Lcom/facebook/appevents/AppEvent;)V
.locals 3
const-class v0, Lcom/facebook/appevents/ondeviceprocessing/OnDeviceProcessingManager;
invoke-static {v0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->isObjectCrashing(Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_0
return-void
:cond_0
:try_start_0
const-string v1, "applicationId"
invoke-static {p0, v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v1, "event"
invoke-static {p1, v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
sget-object v1, Lcom/facebook/appevents/ondeviceprocessing/OnDeviceProcessingManager;->INSTANCE:Lcom/facebook/appevents/ondeviceprocessing/OnDeviceProcessingManager;
.line 65
invoke-direct {v1, p1}, Lcom/facebook/appevents/ondeviceprocessing/OnDeviceProcessingManager;->isEventEligibleForOnDeviceProcessing(Lcom/facebook/appevents/AppEvent;)Z
move-result v1
if-eqz v1, :cond_1
.line 66
invoke-static {}, Lcom/facebook/FacebookSdk;->getExecutor()Ljava/util/concurrent/Executor;
move-result-object v1
new-instance v2, Lcom/facebook/appevents/ondeviceprocessing/OnDeviceProcessingManager$$ExternalSyntheticLambda1;
invoke-direct {v2, p0, p1}, Lcom/facebook/appevents/ondeviceprocessing/OnDeviceProcessingManager$$ExternalSyntheticLambda1;-><init>(Ljava/lang/String;Lcom/facebook/appevents/AppEvent;)V
invoke-interface {v1, v2}, Ljava/util/concurrent/Executor;->execute(Ljava/lang/Runnable;)V
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
goto :goto_0
:catchall_0
move-exception p0
goto :goto_1
:cond_1
:goto_0
return-void
.line 68
:goto_1
invoke-static {p0, v0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->handleThrowable(Ljava/lang/Throwable;Ljava/lang/Object;)V
return-void
.end method
.method private static final sendCustomEventAsync$lambda-1(Ljava/lang/String;Lcom/facebook/appevents/AppEvent;)V
.locals 2
const-class v0, Lcom/facebook/appevents/ondeviceprocessing/OnDeviceProcessingManager;
invoke-static {v0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->isObjectCrashing(Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_0
return-void
:cond_0
:try_start_0
const-string v1, "$applicationId"
invoke-static {p0, v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v1, "$event"
invoke-static {p1, v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 66
sget-object v1, Lcom/facebook/appevents/ondeviceprocessing/RemoteServiceWrapper;->INSTANCE:Lcom/facebook/appevents/ondeviceprocessing/RemoteServiceWrapper;
invoke-static {p1}, Lkotlin/collections/CollectionsKt;->listOf(Ljava/lang/Object;)Ljava/util/List;
move-result-object p1
invoke-static {p0, p1}, Lcom/facebook/appevents/ondeviceprocessing/RemoteServiceWrapper;->sendCustomEvents(Ljava/lang/String;Ljava/util/List;)Lcom/facebook/appevents/ondeviceprocessing/RemoteServiceWrapper$ServiceResult;
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
return-void
:catchall_0
move-exception p0
invoke-static {p0, v0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->handleThrowable(Ljava/lang/Throwable;Ljava/lang/Object;)V
return-void
.end method
.method public static final sendInstallEventAsync(Ljava/lang/String;Ljava/lang/String;)V
.locals 4
const-class v0, Lcom/facebook/appevents/ondeviceprocessing/OnDeviceProcessingManager;
invoke-static {v0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->isObjectCrashing(Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_0
return-void
.line 41
:cond_0
:try_start_0
invoke-static {}, Lcom/facebook/FacebookSdk;->getApplicationContext()Landroid/content/Context;
move-result-object v1
if-eqz v1, :cond_1
if-eqz p0, :cond_1
if-eqz p1, :cond_1
.line 43
invoke-static {}, Lcom/facebook/FacebookSdk;->getExecutor()Ljava/util/concurrent/Executor;
move-result-object v2
new-instance v3, Lcom/facebook/appevents/ondeviceprocessing/OnDeviceProcessingManager$$ExternalSyntheticLambda0;
invoke-direct {v3, v1, p1, p0}, Lcom/facebook/appevents/ondeviceprocessing/OnDeviceProcessingManager$$ExternalSyntheticLambda0;-><init>(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V
invoke-interface {v2, v3}, Ljava/util/concurrent/Executor;->execute(Ljava/lang/Runnable;)V
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
goto :goto_0
:catchall_0
move-exception p0
goto :goto_1
:cond_1
:goto_0
return-void
.line 61
:goto_1
invoke-static {p0, v0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->handleThrowable(Ljava/lang/Throwable;Ljava/lang/Object;)V
return-void
.end method
.method private static final sendInstallEventAsync$lambda-0(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V
.locals 5
const-class v0, Lcom/facebook/appevents/ondeviceprocessing/OnDeviceProcessingManager;
invoke-static {v0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->isObjectCrashing(Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_0
return-void
:cond_0
:try_start_0
const-string v1, "$context"
invoke-static {p0, v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const/4 v1, 0x0
.line 44
invoke-virtual {p0, p1, v1}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;
move-result-object p0
const-string p1, "pingForOnDevice"
.line 45
invoke-static {p2, p1}, Lkotlin/jvm/internal/Intrinsics;->stringPlus(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/String;
move-result-object p1
const-wide/16 v1, 0x0
.line 46
invoke-interface {p0, p1, v1, v2}, Landroid/content/SharedPreferences;->getLong(Ljava/lang/String;J)J
move-result-wide v3
cmp-long v1, v3, v1
if-nez v1, :cond_1
.line 50
invoke-static {p2}, Lcom/facebook/appevents/ondeviceprocessing/RemoteServiceWrapper;->sendInstallEvent(Ljava/lang/String;)Lcom/facebook/appevents/ondeviceprocessing/RemoteServiceWrapper$ServiceResult;
.line 54
invoke-interface {p0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;
move-result-object p0
.line 55
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v1
.line 56
invoke-interface {p0, p1, v1, v2}, Landroid/content/SharedPreferences$Editor;->putLong(Ljava/lang/String;J)Landroid/content/SharedPreferences$Editor;
.line 57
invoke-interface {p0}, Landroid/content/SharedPreferences$Editor;->apply()V
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
goto :goto_0
:catchall_0
move-exception p0
goto :goto_1
:cond_1
:goto_0
return-void
.line 59
:goto_1
invoke-static {p0, v0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->handleThrowable(Ljava/lang/Throwable;Ljava/lang/Object;)V
return-void
.end method