Files
rr3-apk/smali_classes2/com/facebook/gamingservices/ContextChooseDialog$FacebookAppHandler.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

359 lines
9.7 KiB
Smali

.class final Lcom/facebook/gamingservices/ContextChooseDialog$FacebookAppHandler;
.super Lcom/facebook/internal/FacebookDialogBase$ModeHandler;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/facebook/gamingservices/ContextChooseDialog;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x11
name = "FacebookAppHandler"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/facebook/internal/FacebookDialogBase<",
"Lcom/facebook/gamingservices/model/ContextChooseContent;",
"Lcom/facebook/gamingservices/ContextChooseDialog$Result;",
">.ModeHandler;"
}
.end annotation
# instance fields
.field final synthetic this$0:Lcom/facebook/gamingservices/ContextChooseDialog;
# direct methods
.method public constructor <init>(Lcom/facebook/gamingservices/ContextChooseDialog;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
const-string v0, "this$0"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
iput-object p1, p0, Lcom/facebook/gamingservices/ContextChooseDialog$FacebookAppHandler;->this$0:Lcom/facebook/gamingservices/ContextChooseDialog;
.line 169
invoke-direct {p0, p1}, Lcom/facebook/internal/FacebookDialogBase$ModeHandler;-><init>(Lcom/facebook/internal/FacebookDialogBase;)V
return-void
.end method
# virtual methods
.method public canShow(Lcom/facebook/gamingservices/model/ContextChooseContent;Z)Z
.locals 3
const-string p2, "content"
invoke-static {p1, p2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
iget-object p1, p0, Lcom/facebook/gamingservices/ContextChooseDialog$FacebookAppHandler;->this$0:Lcom/facebook/gamingservices/ContextChooseDialog;
.line 171
invoke-static {p1}, Lcom/facebook/gamingservices/ContextChooseDialog;->access$getActivityContext(Lcom/facebook/gamingservices/ContextChooseDialog;)Landroid/app/Activity;
move-result-object p1
const/4 p2, 0x0
if-nez p1, :cond_0
move-object p1, p2
goto :goto_0
:cond_0
invoke-virtual {p1}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
move-result-object p1
.line 172
:goto_0
new-instance v0, Landroid/content/Intent;
const-string v1, "com.facebook.games.gaming_services.DEEPLINK"
invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V
const-string v1, "text/plain"
.line 173
invoke-virtual {v0, v1}, Landroid/content/Intent;->setType(Ljava/lang/String;)Landroid/content/Intent;
if-nez p1, :cond_1
move-object p1, p2
goto :goto_1
.line 174
:cond_1
invoke-virtual {v0, p1}, Landroid/content/Intent;->resolveActivity(Landroid/content/pm/PackageManager;)Landroid/content/ComponentName;
move-result-object p1
:goto_1
const/4 v0, 0x0
const/4 v1, 0x1
if-eqz p1, :cond_2
move p1, v1
goto :goto_2
:cond_2
move p1, v0
.line 175
:goto_2
sget-object v2, Lcom/facebook/AccessToken;->Companion:Lcom/facebook/AccessToken$Companion;
invoke-virtual {v2}, Lcom/facebook/AccessToken$Companion;->getCurrentAccessToken()Lcom/facebook/AccessToken;
move-result-object v2
if-nez v2, :cond_3
goto :goto_3
.line 177
:cond_3
invoke-virtual {v2}, Lcom/facebook/AccessToken;->getGraphDomain()Ljava/lang/String;
move-result-object p2
:goto_3
if-eqz p2, :cond_4
const-string p2, "gaming"
invoke-virtual {v2}, Lcom/facebook/AccessToken;->getGraphDomain()Ljava/lang/String;
move-result-object v2
invoke-static {p2, v2}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result p2
if-eqz p2, :cond_4
move p2, v1
goto :goto_4
:cond_4
move p2, v0
:goto_4
if-eqz p1, :cond_5
if-eqz p2, :cond_5
move v0, v1
:cond_5
return v0
.end method
.method public bridge synthetic canShow(Ljava/lang/Object;Z)Z
.locals 0
.line 169
check-cast p1, Lcom/facebook/gamingservices/model/ContextChooseContent;
invoke-virtual {p0, p1, p2}, Lcom/facebook/gamingservices/ContextChooseDialog$FacebookAppHandler;->canShow(Lcom/facebook/gamingservices/model/ContextChooseContent;Z)Z
move-result p1
return p1
.end method
.method public createAppCall(Lcom/facebook/gamingservices/model/ContextChooseContent;)Lcom/facebook/internal/AppCall;
.locals 6
const-string v0, "content"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
iget-object v0, p0, Lcom/facebook/gamingservices/ContextChooseDialog$FacebookAppHandler;->this$0:Lcom/facebook/gamingservices/ContextChooseDialog;
.line 182
invoke-virtual {v0}, Lcom/facebook/gamingservices/ContextChooseDialog;->createBaseAppCall()Lcom/facebook/internal/AppCall;
move-result-object v0
.line 183
new-instance v1, Landroid/content/Intent;
const-string v2, "com.facebook.games.gaming_services.DEEPLINK"
invoke-direct {v1, v2}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V
const-string v2, "text/plain"
.line 184
invoke-virtual {v1, v2}, Landroid/content/Intent;->setType(Ljava/lang/String;)Landroid/content/Intent;
.line 185
sget-object v2, Lcom/facebook/AccessToken;->Companion:Lcom/facebook/AccessToken$Companion;
invoke-virtual {v2}, Lcom/facebook/AccessToken$Companion;->getCurrentAccessToken()Lcom/facebook/AccessToken;
move-result-object v2
.line 186
new-instance v3, Landroid/os/Bundle;
invoke-direct {v3}, Landroid/os/Bundle;-><init>()V
const-string v4, "deeplink"
const-string v5, "CONTEXT_CHOOSE"
.line 187
invoke-virtual {v3, v4, v5}, Landroid/os/BaseBundle;->putString(Ljava/lang/String;Ljava/lang/String;)V
const-string v4, "game_id"
if-eqz v2, :cond_0
.line 189
invoke-virtual {v2}, Lcom/facebook/AccessToken;->getApplicationId()Ljava/lang/String;
move-result-object v2
invoke-virtual {v3, v4, v2}, Landroid/os/BaseBundle;->putString(Ljava/lang/String;Ljava/lang/String;)V
goto :goto_0
.line 191
:cond_0
invoke-static {}, Lcom/facebook/FacebookSdk;->getApplicationId()Ljava/lang/String;
move-result-object v2
invoke-virtual {v3, v4, v2}, Landroid/os/BaseBundle;->putString(Ljava/lang/String;Ljava/lang/String;)V
.line 195
:goto_0
invoke-virtual {p1}, Lcom/facebook/gamingservices/model/ContextChooseContent;->getMinSize()Ljava/lang/Integer;
move-result-object v2
if-eqz v2, :cond_1
.line 196
invoke-virtual {p1}, Lcom/facebook/gamingservices/model/ContextChooseContent;->getMinSize()Ljava/lang/Integer;
move-result-object v2
invoke-virtual {v2}, Ljava/lang/Integer;->toString()Ljava/lang/String;
move-result-object v2
const-string v4, "min_thread_size"
invoke-virtual {v3, v4, v2}, Landroid/os/BaseBundle;->putString(Ljava/lang/String;Ljava/lang/String;)V
.line 198
:cond_1
invoke-virtual {p1}, Lcom/facebook/gamingservices/model/ContextChooseContent;->getMaxSize()Ljava/lang/Integer;
move-result-object v2
if-eqz v2, :cond_2
.line 199
invoke-virtual {p1}, Lcom/facebook/gamingservices/model/ContextChooseContent;->getMaxSize()Ljava/lang/Integer;
move-result-object v2
invoke-virtual {v2}, Ljava/lang/Integer;->toString()Ljava/lang/String;
move-result-object v2
const-string v4, "max_thread_size"
invoke-virtual {v3, v4, v2}, Landroid/os/BaseBundle;->putString(Ljava/lang/String;Ljava/lang/String;)V
.line 201
:cond_2
invoke-virtual {p1}, Lcom/facebook/gamingservices/model/ContextChooseContent;->getFilters()Ljava/util/List;
move-result-object v2
if-eqz v2, :cond_3
.line 202
new-instance v2, Lorg/json/JSONArray;
invoke-virtual {p1}, Lcom/facebook/gamingservices/model/ContextChooseContent;->getFilters()Ljava/util/List;
move-result-object p1
check-cast p1, Ljava/util/Collection;
invoke-direct {v2, p1}, Lorg/json/JSONArray;-><init>(Ljava/util/Collection;)V
const-string p1, "filters"
.line 203
invoke-virtual {v2}, Lorg/json/JSONArray;->toString()Ljava/lang/String;
move-result-object v2
invoke-virtual {v3, p1, v2}, Landroid/os/BaseBundle;->putString(Ljava/lang/String;Ljava/lang/String;)V
.line 205
:cond_3
sget-object p1, Lcom/facebook/internal/NativeProtocol;->INSTANCE:Lcom/facebook/internal/NativeProtocol;
.line 206
invoke-virtual {v0}, Lcom/facebook/internal/AppCall;->getCallId()Ljava/util/UUID;
move-result-object p1
invoke-virtual {p1}, Ljava/util/UUID;->toString()Ljava/lang/String;
move-result-object p1
const-string v2, ""
invoke-static {}, Lcom/facebook/internal/NativeProtocol;->getLatestKnownVersion()I
move-result v4
.line 205
invoke-static {v1, p1, v2, v4, v3}, Lcom/facebook/internal/NativeProtocol;->setupProtocolRequestIntent(Landroid/content/Intent;Ljava/lang/String;Ljava/lang/String;ILandroid/os/Bundle;)V
.line 207
invoke-virtual {v0, v1}, Lcom/facebook/internal/AppCall;->setRequestIntent(Landroid/content/Intent;)V
return-object v0
.end method
.method public bridge synthetic createAppCall(Ljava/lang/Object;)Lcom/facebook/internal/AppCall;
.locals 0
.line 169
check-cast p1, Lcom/facebook/gamingservices/model/ContextChooseContent;
invoke-virtual {p0, p1}, Lcom/facebook/gamingservices/ContextChooseDialog$FacebookAppHandler;->createAppCall(Lcom/facebook/gamingservices/model/ContextChooseContent;)Lcom/facebook/internal/AppCall;
move-result-object p1
return-object p1
.end method