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

112 lines
3.6 KiB
Smali

.class public Lcom/facebook/gamingservices/GamingVideoUploader;
.super Ljava/lang/Object;
.source "SourceFile"
# instance fields
.field private context:Landroid/content/Context;
# direct methods
.method public constructor <init>(Landroid/content/Context;)V
.locals 0
.line 28
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/facebook/gamingservices/GamingVideoUploader;->context:Landroid/content/Context;
return-void
.end method
# virtual methods
.method public uploadToMediaLibrary(Ljava/lang/String;Landroid/net/Uri;)V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/FileNotFoundException;
}
.end annotation
const/4 v0, 0x0
.line 48
invoke-virtual {p0, p1, p2, v0}, Lcom/facebook/gamingservices/GamingVideoUploader;->uploadToMediaLibrary(Ljava/lang/String;Landroid/net/Uri;Lcom/facebook/GraphRequest$OnProgressCallback;)V
return-void
.end method
.method public uploadToMediaLibrary(Ljava/lang/String;Landroid/net/Uri;Lcom/facebook/GraphRequest$OnProgressCallback;)V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/FileNotFoundException;
}
.end annotation
const/4 v0, 0x0
.line 68
invoke-virtual {p0, p1, p2, v0, p3}, Lcom/facebook/gamingservices/GamingVideoUploader;->uploadToMediaLibrary(Ljava/lang/String;Landroid/net/Uri;ZLcom/facebook/GraphRequest$OnProgressCallback;)V
return-void
.end method
.method public uploadToMediaLibrary(Ljava/lang/String;Landroid/net/Uri;ZLcom/facebook/GraphRequest$OnProgressCallback;)V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/FileNotFoundException;
}
.end annotation
.line 92
new-instance v0, Lcom/facebook/share/model/ShareVideo$Builder;
invoke-direct {v0}, Lcom/facebook/share/model/ShareVideo$Builder;-><init>()V
invoke-virtual {v0, p2}, Lcom/facebook/share/model/ShareVideo$Builder;->setLocalUrl(Landroid/net/Uri;)Lcom/facebook/share/model/ShareVideo$Builder;
move-result-object p2
invoke-virtual {p2}, Lcom/facebook/share/model/ShareVideo$Builder;->build()Lcom/facebook/share/model/ShareVideo;
move-result-object p2
.line 93
new-instance v0, Lcom/facebook/share/model/ShareVideoContent$Builder;
invoke-direct {v0}, Lcom/facebook/share/model/ShareVideoContent$Builder;-><init>()V
.line 94
invoke-virtual {v0, p2}, Lcom/facebook/share/model/ShareVideoContent$Builder;->setVideo(Lcom/facebook/share/model/ShareVideo;)Lcom/facebook/share/model/ShareVideoContent$Builder;
move-result-object p2
invoke-virtual {p2, p1}, Lcom/facebook/share/model/ShareVideoContent$Builder;->setContentDescription(Ljava/lang/String;)Lcom/facebook/share/model/ShareVideoContent$Builder;
move-result-object p1
invoke-virtual {p1}, Lcom/facebook/share/model/ShareVideoContent$Builder;->build()Lcom/facebook/share/model/ShareVideoContent;
move-result-object p1
if-eqz p3, :cond_0
.line 98
new-instance p2, Lcom/facebook/gamingservices/OpenGamingMediaDialog;
iget-object p3, p0, Lcom/facebook/gamingservices/GamingVideoUploader;->context:Landroid/content/Context;
invoke-direct {p2, p3, p4}, Lcom/facebook/gamingservices/OpenGamingMediaDialog;-><init>(Landroid/content/Context;Lcom/facebook/GraphRequest$Callback;)V
move-object p4, p2
.line 101
:cond_0
invoke-static {p1, p4}, Lcom/facebook/share/internal/VideoUploader;->uploadAsyncWithProgressCallback(Lcom/facebook/share/model/ShareVideoContent;Lcom/facebook/GraphRequest$OnProgressCallback;)V
return-void
.end method