- 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
234 lines
7.0 KiB
Smali
234 lines
7.0 KiB
Smali
.class public final Lcom/facebook/share/internal/LegacyNativeDialogParameters;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
|
|
# static fields
|
|
.field public static final INSTANCE:Lcom/facebook/share/internal/LegacyNativeDialogParameters;
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 1
|
|
|
|
new-instance v0, Lcom/facebook/share/internal/LegacyNativeDialogParameters;
|
|
|
|
invoke-direct {v0}, Lcom/facebook/share/internal/LegacyNativeDialogParameters;-><init>()V
|
|
|
|
sput-object v0, Lcom/facebook/share/internal/LegacyNativeDialogParameters;->INSTANCE:Lcom/facebook/share/internal/LegacyNativeDialogParameters;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private constructor <init>()V
|
|
.locals 0
|
|
|
|
.line 24
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private final create(Lcom/facebook/share/model/ShareLinkContent;Z)Landroid/os/Bundle;
|
|
.locals 0
|
|
|
|
.line 49
|
|
invoke-direct {p0, p1, p2}, Lcom/facebook/share/internal/LegacyNativeDialogParameters;->createBaseParameters(Lcom/facebook/share/model/ShareContent;Z)Landroid/os/Bundle;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method private final create(Lcom/facebook/share/model/SharePhotoContent;Ljava/util/List;Z)Landroid/os/Bundle;
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lcom/facebook/share/model/SharePhotoContent;",
|
|
"Ljava/util/List<",
|
|
"Ljava/lang/String;",
|
|
">;Z)",
|
|
"Landroid/os/Bundle;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 57
|
|
invoke-direct {p0, p1, p3}, Lcom/facebook/share/internal/LegacyNativeDialogParameters;->createBaseParameters(Lcom/facebook/share/model/ShareContent;Z)Landroid/os/Bundle;
|
|
|
|
move-result-object p1
|
|
|
|
.line 58
|
|
new-instance p3, Ljava/util/ArrayList;
|
|
|
|
check-cast p2, Ljava/util/Collection;
|
|
|
|
invoke-direct {p3, p2}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V
|
|
|
|
const-string p2, "com.facebook.platform.extra.PHOTOS"
|
|
|
|
invoke-virtual {p1, p2, p3}, Landroid/os/Bundle;->putStringArrayList(Ljava/lang/String;Ljava/util/ArrayList;)V
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public static final create(Ljava/util/UUID;Lcom/facebook/share/model/ShareContent;Z)Landroid/os/Bundle;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/UUID;",
|
|
"Lcom/facebook/share/model/ShareContent<",
|
|
"**>;Z)",
|
|
"Landroid/os/Bundle;"
|
|
}
|
|
.end annotation
|
|
|
|
const-string v0, "callId"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "shareContent"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 33
|
|
instance-of v0, p1, Lcom/facebook/share/model/ShareLinkContent;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
sget-object p0, Lcom/facebook/share/internal/LegacyNativeDialogParameters;->INSTANCE:Lcom/facebook/share/internal/LegacyNativeDialogParameters;
|
|
|
|
.line 34
|
|
check-cast p1, Lcom/facebook/share/model/ShareLinkContent;
|
|
|
|
invoke-direct {p0, p1, p2}, Lcom/facebook/share/internal/LegacyNativeDialogParameters;->create(Lcom/facebook/share/model/ShareLinkContent;Z)Landroid/os/Bundle;
|
|
|
|
move-result-object p0
|
|
|
|
goto :goto_0
|
|
|
|
.line 36
|
|
:cond_0
|
|
instance-of v0, p1, Lcom/facebook/share/model/SharePhotoContent;
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
.line 37
|
|
sget-object v0, Lcom/facebook/share/internal/ShareInternalUtility;->INSTANCE:Lcom/facebook/share/internal/ShareInternalUtility;
|
|
|
|
check-cast p1, Lcom/facebook/share/model/SharePhotoContent;
|
|
|
|
invoke-static {p1, p0}, Lcom/facebook/share/internal/ShareInternalUtility;->getPhotoUrls(Lcom/facebook/share/model/SharePhotoContent;Ljava/util/UUID;)Ljava/util/List;
|
|
|
|
move-result-object p0
|
|
|
|
if-nez p0, :cond_1
|
|
|
|
invoke-static {}, Lkotlin/collections/CollectionsKt;->emptyList()Ljava/util/List;
|
|
|
|
move-result-object p0
|
|
|
|
:cond_1
|
|
sget-object v0, Lcom/facebook/share/internal/LegacyNativeDialogParameters;->INSTANCE:Lcom/facebook/share/internal/LegacyNativeDialogParameters;
|
|
|
|
.line 38
|
|
invoke-direct {v0, p1, p0, p2}, Lcom/facebook/share/internal/LegacyNativeDialogParameters;->create(Lcom/facebook/share/model/SharePhotoContent;Ljava/util/List;Z)Landroid/os/Bundle;
|
|
|
|
move-result-object p0
|
|
|
|
goto :goto_0
|
|
|
|
.line 40
|
|
:cond_2
|
|
instance-of p0, p1, Lcom/facebook/share/model/ShareVideoContent;
|
|
|
|
const/4 p0, 0x0
|
|
|
|
:goto_0
|
|
return-object p0
|
|
.end method
|
|
|
|
.method private final createBaseParameters(Lcom/facebook/share/model/ShareContent;Z)Landroid/os/Bundle;
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lcom/facebook/share/model/ShareContent<",
|
|
"**>;Z)",
|
|
"Landroid/os/Bundle;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 63
|
|
new-instance v0, Landroid/os/Bundle;
|
|
|
|
invoke-direct {v0}, Landroid/os/Bundle;-><init>()V
|
|
|
|
.line 64
|
|
sget-object v1, Lcom/facebook/internal/Utility;->INSTANCE:Lcom/facebook/internal/Utility;
|
|
|
|
invoke-virtual {p1}, Lcom/facebook/share/model/ShareContent;->getContentUrl()Landroid/net/Uri;
|
|
|
|
move-result-object v1
|
|
|
|
const-string v2, "com.facebook.platform.extra.LINK"
|
|
|
|
invoke-static {v0, v2, v1}, Lcom/facebook/internal/Utility;->putUri(Landroid/os/Bundle;Ljava/lang/String;Landroid/net/Uri;)V
|
|
|
|
const-string v1, "com.facebook.platform.extra.PLACE"
|
|
|
|
.line 65
|
|
invoke-virtual {p1}, Lcom/facebook/share/model/ShareContent;->getPlaceId()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-static {v0, v1, v2}, Lcom/facebook/internal/Utility;->putNonEmptyString(Landroid/os/Bundle;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
const-string v1, "com.facebook.platform.extra.REF"
|
|
|
|
.line 66
|
|
invoke-virtual {p1}, Lcom/facebook/share/model/ShareContent;->getRef()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-static {v0, v1, v2}, Lcom/facebook/internal/Utility;->putNonEmptyString(Landroid/os/Bundle;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
const-string v1, "com.facebook.platform.extra.DATA_FAILURES_FATAL"
|
|
|
|
.line 67
|
|
invoke-virtual {v0, v1, p2}, Landroid/os/BaseBundle;->putBoolean(Ljava/lang/String;Z)V
|
|
|
|
.line 68
|
|
invoke-virtual {p1}, Lcom/facebook/share/model/ShareContent;->getPeopleIds()Ljava/util/List;
|
|
|
|
move-result-object p1
|
|
|
|
.line 69
|
|
check-cast p1, Ljava/util/Collection;
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
invoke-interface {p1}, Ljava/util/Collection;->isEmpty()Z
|
|
|
|
move-result p2
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
.line 70
|
|
:cond_0
|
|
new-instance p2, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {p2, p1}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V
|
|
|
|
const-string p1, "com.facebook.platform.extra.FRIENDS"
|
|
|
|
invoke-virtual {v0, p1, p2}, Landroid/os/Bundle;->putStringArrayList(Ljava/lang/String;Ljava/util/ArrayList;)V
|
|
|
|
:cond_1
|
|
:goto_0
|
|
return-object v0
|
|
.end method
|