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

255 lines
7.6 KiB
Smali

.class final Lcom/facebook/gamingservices/TournamentJoinDialog$FacebookAppHandler;
.super Lcom/facebook/internal/FacebookDialogBase$ModeHandler;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/facebook/gamingservices/TournamentJoinDialog;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x11
name = "FacebookAppHandler"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/facebook/internal/FacebookDialogBase<",
"Ljava/lang/String;",
"Lcom/facebook/gamingservices/TournamentJoinDialog$Result;",
">.ModeHandler;"
}
.end annotation
# instance fields
.field final synthetic this$0:Lcom/facebook/gamingservices/TournamentJoinDialog;
# direct methods
.method public constructor <init>(Lcom/facebook/gamingservices/TournamentJoinDialog;)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/TournamentJoinDialog$FacebookAppHandler;->this$0:Lcom/facebook/gamingservices/TournamentJoinDialog;
.line 150
invoke-direct {p0, p1}, Lcom/facebook/internal/FacebookDialogBase$ModeHandler;-><init>(Lcom/facebook/internal/FacebookDialogBase;)V
return-void
.end method
# virtual methods
.method public bridge synthetic canShow(Ljava/lang/Object;Z)Z
.locals 0
.line 150
check-cast p1, Ljava/lang/String;
invoke-virtual {p0, p1, p2}, Lcom/facebook/gamingservices/TournamentJoinDialog$FacebookAppHandler;->canShow(Ljava/lang/String;Z)Z
move-result p1
return p1
.end method
.method public canShow(Ljava/lang/String;Z)Z
.locals 1
.line 152
invoke-static {}, Lcom/facebook/FacebookSdk;->getApplicationContext()Landroid/content/Context;
move-result-object p1
invoke-virtual {p1}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
move-result-object p1
const-string p2, "FacebookSdk.getApplicationContext().packageManager"
invoke-static {p1, p2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
.line 153
new-instance p2, Landroid/content/Intent;
const-string v0, "com.facebook.games.gaming_services.DEEPLINK"
invoke-direct {p2, v0}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V
const-string v0, "text/plain"
.line 154
invoke-virtual {p2, v0}, Landroid/content/Intent;->setType(Ljava/lang/String;)Landroid/content/Intent;
.line 155
invoke-virtual {p2, p1}, Landroid/content/Intent;->resolveActivity(Landroid/content/pm/PackageManager;)Landroid/content/ComponentName;
move-result-object p1
if-eqz p1, :cond_0
const/4 p1, 0x1
goto :goto_0
:cond_0
const/4 p1, 0x0
:goto_0
return p1
.end method
.method public bridge synthetic createAppCall(Ljava/lang/Object;)Lcom/facebook/internal/AppCall;
.locals 0
.line 150
check-cast p1, Ljava/lang/String;
invoke-virtual {p0, p1}, Lcom/facebook/gamingservices/TournamentJoinDialog$FacebookAppHandler;->createAppCall(Ljava/lang/String;)Lcom/facebook/internal/AppCall;
move-result-object p1
return-object p1
.end method
.method public createAppCall(Ljava/lang/String;)Lcom/facebook/internal/AppCall;
.locals 5
.line 159
sget-object p1, Lcom/facebook/AccessToken;->Companion:Lcom/facebook/AccessToken$Companion;
invoke-virtual {p1}, Lcom/facebook/AccessToken$Companion;->getCurrentAccessToken()Lcom/facebook/AccessToken;
move-result-object p1
iget-object v0, p0, Lcom/facebook/gamingservices/TournamentJoinDialog$FacebookAppHandler;->this$0:Lcom/facebook/gamingservices/TournamentJoinDialog;
.line 160
invoke-virtual {v0}, Lcom/facebook/gamingservices/TournamentJoinDialog;->createBaseAppCall()Lcom/facebook/internal/AppCall;
move-result-object v0
.line 161
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 162
invoke-virtual {v1, v2}, Landroid/content/Intent;->setType(Ljava/lang/String;)Landroid/content/Intent;
if-eqz p1, :cond_2
.line 164
invoke-virtual {p1}, Lcom/facebook/AccessToken;->isExpired()Z
move-result v2
if-nez v2, :cond_2
.line 167
invoke-virtual {p1}, Lcom/facebook/AccessToken;->getGraphDomain()Ljava/lang/String;
move-result-object v2
if-eqz v2, :cond_1
const-string v2, "gaming"
.line 168
invoke-virtual {p1}, Lcom/facebook/AccessToken;->getGraphDomain()Ljava/lang/String;
move-result-object v3
invoke-static {v2, v3}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v2
if-eqz v2, :cond_0
goto :goto_0
.line 169
:cond_0
new-instance p1, Lcom/facebook/FacebookException;
const-string v0, "Attempted to present TournamentJoinDialog while user is not gaming logged in"
invoke-direct {p1, v0}, Lcom/facebook/FacebookException;-><init>(Ljava/lang/String;)V
throw p1
.line 171
:cond_1
:goto_0
invoke-virtual {p1}, Lcom/facebook/AccessToken;->getApplicationId()Ljava/lang/String;
move-result-object p1
.line 172
sget-object v2, Lcom/facebook/gamingservices/internal/TournamentJoinDialogURIBuilder;->INSTANCE:Lcom/facebook/gamingservices/internal/TournamentJoinDialogURIBuilder;
iget-object v3, p0, Lcom/facebook/gamingservices/TournamentJoinDialog$FacebookAppHandler;->this$0:Lcom/facebook/gamingservices/TournamentJoinDialog;
invoke-static {v3}, Lcom/facebook/gamingservices/TournamentJoinDialog;->access$getTournamentID$p(Lcom/facebook/gamingservices/TournamentJoinDialog;)Ljava/lang/String;
move-result-object v3
iget-object v4, p0, Lcom/facebook/gamingservices/TournamentJoinDialog$FacebookAppHandler;->this$0:Lcom/facebook/gamingservices/TournamentJoinDialog;
invoke-static {v4}, Lcom/facebook/gamingservices/TournamentJoinDialog;->access$getPayload$p(Lcom/facebook/gamingservices/TournamentJoinDialog;)Ljava/lang/String;
move-result-object v4
invoke-virtual {v2, p1, v3, v4}, Lcom/facebook/gamingservices/internal/TournamentJoinDialogURIBuilder;->bundle$facebook_gamingservices_release(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Landroid/os/Bundle;
move-result-object p1
.line 174
sget-object v2, Lcom/facebook/internal/NativeProtocol;->INSTANCE:Lcom/facebook/internal/NativeProtocol;
.line 176
invoke-virtual {v0}, Lcom/facebook/internal/AppCall;->getCallId()Ljava/util/UUID;
move-result-object v2
invoke-virtual {v2}, Ljava/util/UUID;->toString()Ljava/lang/String;
move-result-object v2
const-string v3, ""
const v4, 0x13464da
.line 174
invoke-static {v1, v2, v3, v4, p1}, Lcom/facebook/internal/NativeProtocol;->setupProtocolRequestIntent(Landroid/content/Intent;Ljava/lang/String;Ljava/lang/String;ILandroid/os/Bundle;)V
.line 181
invoke-virtual {v0, v1}, Lcom/facebook/internal/AppCall;->setRequestIntent(Landroid/content/Intent;)V
return-object v0
.line 165
:cond_2
new-instance p1, Lcom/facebook/FacebookException;
const-string v0, "Attempted to present TournamentJoinDialog with an invalid access token"
invoke-direct {p1, v0}, Lcom/facebook/FacebookException;-><init>(Ljava/lang/String;)V
throw p1
.end method