- 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
306 lines
8.3 KiB
Smali
306 lines
8.3 KiB
Smali
.class final Lcom/facebook/gamingservices/ContextSwitchDialog$FacebookAppHandler;
|
|
.super Lcom/facebook/internal/FacebookDialogBase$ModeHandler;
|
|
.source "SourceFile"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lcom/facebook/gamingservices/ContextSwitchDialog;
|
|
.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/ContextSwitchContent;",
|
|
"Lcom/facebook/gamingservices/ContextSwitchDialog$Result;",
|
|
">.ModeHandler;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field final synthetic this$0:Lcom/facebook/gamingservices/ContextSwitchDialog;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lcom/facebook/gamingservices/ContextSwitchDialog;)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/ContextSwitchDialog$FacebookAppHandler;->this$0:Lcom/facebook/gamingservices/ContextSwitchDialog;
|
|
|
|
.line 180
|
|
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/ContextSwitchContent;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/ContextSwitchDialog$FacebookAppHandler;->this$0:Lcom/facebook/gamingservices/ContextSwitchDialog;
|
|
|
|
.line 182
|
|
invoke-static {p1}, Lcom/facebook/gamingservices/ContextSwitchDialog;->access$getActivityContext(Lcom/facebook/gamingservices/ContextSwitchDialog;)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 183
|
|
: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 184
|
|
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 185
|
|
: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 186
|
|
: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 188
|
|
: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 180
|
|
check-cast p1, Lcom/facebook/gamingservices/model/ContextSwitchContent;
|
|
|
|
invoke-virtual {p0, p1, p2}, Lcom/facebook/gamingservices/ContextSwitchDialog$FacebookAppHandler;->canShow(Lcom/facebook/gamingservices/model/ContextSwitchContent;Z)Z
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public createAppCall(Lcom/facebook/gamingservices/model/ContextSwitchContent;)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/ContextSwitchDialog$FacebookAppHandler;->this$0:Lcom/facebook/gamingservices/ContextSwitchDialog;
|
|
|
|
.line 193
|
|
invoke-virtual {v0}, Lcom/facebook/gamingservices/ContextSwitchDialog;->createBaseAppCall()Lcom/facebook/internal/AppCall;
|
|
|
|
move-result-object v0
|
|
|
|
.line 194
|
|
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 195
|
|
invoke-virtual {v1, v2}, Landroid/content/Intent;->setType(Ljava/lang/String;)Landroid/content/Intent;
|
|
|
|
.line 196
|
|
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 197
|
|
new-instance v3, Landroid/os/Bundle;
|
|
|
|
invoke-direct {v3}, Landroid/os/Bundle;-><init>()V
|
|
|
|
const-string v4, "deeplink"
|
|
|
|
const-string v5, "CONTEXT_SWITCH"
|
|
|
|
.line 198
|
|
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 200
|
|
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 202
|
|
: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 204
|
|
:goto_0
|
|
invoke-virtual {p1}, Lcom/facebook/gamingservices/model/ContextSwitchContent;->getContextID()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
const-string v2, "context_token_id"
|
|
|
|
.line 205
|
|
invoke-virtual {p1}, Lcom/facebook/gamingservices/model/ContextSwitchContent;->getContextID()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {v3, v2, p1}, Landroid/os/BaseBundle;->putString(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
.line 207
|
|
:cond_1
|
|
sget-object p1, Lcom/facebook/internal/NativeProtocol;->INSTANCE:Lcom/facebook/internal/NativeProtocol;
|
|
|
|
.line 208
|
|
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 207
|
|
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 209
|
|
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 180
|
|
check-cast p1, Lcom/facebook/gamingservices/model/ContextSwitchContent;
|
|
|
|
invoke-virtual {p0, p1}, Lcom/facebook/gamingservices/ContextSwitchDialog$FacebookAppHandler;->createAppCall(Lcom/facebook/gamingservices/model/ContextSwitchContent;)Lcom/facebook/internal/AppCall;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|