- 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
242 lines
7.1 KiB
Smali
242 lines
7.1 KiB
Smali
.class public final Lcom/fyber/inneractive/sdk/mraid/r;
|
|
.super Lcom/fyber/inneractive/sdk/mraid/a;
|
|
.source "SourceFile"
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Ljava/util/LinkedHashMap;Lcom/fyber/inneractive/sdk/web/j;Lcom/fyber/inneractive/sdk/util/p0;)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-direct {p0, p1, p2, p3}, Lcom/fyber/inneractive/sdk/mraid/a;-><init>(Ljava/util/LinkedHashMap;Lcom/fyber/inneractive/sdk/web/j;Lcom/fyber/inneractive/sdk/util/p0;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final a()V
|
|
.locals 6
|
|
|
|
const-string v0, "uri"
|
|
|
|
.line 1
|
|
invoke-virtual {p0, v0}, Lcom/fyber/inneractive/sdk/mraid/b;->b(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
const-string v2, ""
|
|
|
|
.line 3
|
|
invoke-virtual {v2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v3
|
|
|
|
if-nez v3, :cond_3
|
|
|
|
iget-object v3, p0, Lcom/fyber/inneractive/sdk/mraid/b;->c:Lcom/fyber/inneractive/sdk/web/j;
|
|
|
|
.line 5
|
|
invoke-virtual {v3}, Lcom/fyber/inneractive/sdk/web/j;->l()Landroid/content/Context;
|
|
|
|
move-result-object v4
|
|
|
|
.line 8
|
|
:try_start_0
|
|
invoke-static {}, Landroid/os/Environment;->getExternalStorageState()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
:catchall_0
|
|
const-string v5, "mounted"
|
|
|
|
.line 9
|
|
invoke-virtual {v5, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_2
|
|
|
|
sget-object v2, Lcom/fyber/inneractive/sdk/util/o;->a:Landroid/app/Application;
|
|
|
|
const-string v5, "android.permission.WRITE_EXTERNAL_STORAGE"
|
|
|
|
.line 11
|
|
invoke-virtual {v2, v5}, Landroid/content/Context;->checkCallingOrSelfPermission(Ljava/lang/String;)I
|
|
|
|
move-result v2
|
|
|
|
if-nez v2, :cond_2
|
|
|
|
.line 17
|
|
instance-of v1, v4, Landroid/app/Activity;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 18
|
|
new-instance v1, Landroid/app/AlertDialog$Builder;
|
|
|
|
invoke-virtual {v3}, Lcom/fyber/inneractive/sdk/web/j;->l()Landroid/content/Context;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-direct {v1, v4}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V
|
|
|
|
const-string v4, "Save Image"
|
|
|
|
.line 20
|
|
invoke-virtual {v1, v4}, Landroid/app/AlertDialog$Builder;->setTitle(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;
|
|
|
|
move-result-object v1
|
|
|
|
const-string v4, "Download image to Picture gallery?"
|
|
|
|
.line 21
|
|
invoke-virtual {v1, v4}, Landroid/app/AlertDialog$Builder;->setMessage(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;
|
|
|
|
move-result-object v1
|
|
|
|
const-string v4, "Cancel"
|
|
|
|
.line 22
|
|
invoke-virtual {v1, v4, v2}, Landroid/app/AlertDialog$Builder;->setNegativeButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;
|
|
|
|
move-result-object v1
|
|
|
|
new-instance v2, Lcom/fyber/inneractive/sdk/web/r;
|
|
|
|
invoke-direct {v2, v3, v0}, Lcom/fyber/inneractive/sdk/web/r;-><init>(Lcom/fyber/inneractive/sdk/web/j;Ljava/lang/String;)V
|
|
|
|
const-string v0, "Okay"
|
|
|
|
.line 23
|
|
invoke-virtual {v1, v0, v2}, Landroid/app/AlertDialog$Builder;->setPositiveButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;
|
|
|
|
move-result-object v0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
.line 29
|
|
invoke-virtual {v0, v1}, Landroid/app/AlertDialog$Builder;->setCancelable(Z)Landroid/app/AlertDialog$Builder;
|
|
|
|
move-result-object v0
|
|
|
|
.line 30
|
|
invoke-virtual {v0}, Landroid/app/AlertDialog$Builder;->show()Landroid/app/AlertDialog;
|
|
|
|
goto :goto_0
|
|
|
|
.line 32
|
|
:cond_0
|
|
sget-object v1, Lcom/fyber/inneractive/sdk/util/p;->b:Landroid/os/Handler;
|
|
|
|
.line 33
|
|
new-instance v4, Lcom/fyber/inneractive/sdk/web/o;
|
|
|
|
const-string v5, "Downloading image to Picture gallery..."
|
|
|
|
invoke-direct {v4, v5}, Lcom/fyber/inneractive/sdk/web/o;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v1, v4}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z
|
|
|
|
.line 34
|
|
new-instance v1, Ljava/io/File;
|
|
|
|
invoke-static {}, Landroid/os/Environment;->getExternalStorageDirectory()Ljava/io/File;
|
|
|
|
move-result-object v4
|
|
|
|
const-string v5, "Pictures"
|
|
|
|
invoke-direct {v1, v4, v5}, Ljava/io/File;-><init>(Ljava/io/File;Ljava/lang/String;)V
|
|
|
|
.line 35
|
|
invoke-virtual {v1}, Ljava/io/File;->mkdirs()Z
|
|
|
|
.line 37
|
|
iget-object v1, v3, Lcom/fyber/inneractive/sdk/web/f;->s:Lcom/fyber/inneractive/sdk/flow/q;
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
.line 38
|
|
iget-object v2, v1, Lcom/fyber/inneractive/sdk/flow/q;->c:Lcom/fyber/inneractive/sdk/config/global/s;
|
|
|
|
.line 39
|
|
:cond_1
|
|
new-instance v1, Lcom/fyber/inneractive/sdk/network/l0;
|
|
|
|
new-instance v4, Lcom/fyber/inneractive/sdk/web/q;
|
|
|
|
invoke-direct {v4, v3}, Lcom/fyber/inneractive/sdk/web/q;-><init>(Lcom/fyber/inneractive/sdk/web/j;)V
|
|
|
|
invoke-direct {v1, v4, v0, v2}, Lcom/fyber/inneractive/sdk/network/l0;-><init>(Lcom/fyber/inneractive/sdk/web/q;Ljava/lang/String;Lcom/fyber/inneractive/sdk/config/global/s;)V
|
|
|
|
.line 40
|
|
sget-object v0, Lcom/fyber/inneractive/sdk/config/IAConfigManager;->L:Lcom/fyber/inneractive/sdk/config/IAConfigManager;
|
|
|
|
iget-object v0, v0, Lcom/fyber/inneractive/sdk/config/IAConfigManager;->r:Lcom/fyber/inneractive/sdk/network/y;
|
|
|
|
.line 41
|
|
invoke-virtual {v0, v1}, Lcom/fyber/inneractive/sdk/network/y;->a(Lcom/fyber/inneractive/sdk/network/c0;)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 12
|
|
:cond_2
|
|
sget-object v0, Lcom/fyber/inneractive/sdk/mraid/g;->STORE_PICTURE:Lcom/fyber/inneractive/sdk/mraid/g;
|
|
|
|
const-string v2, "Error downloading file - the device does not have an SD card mounted, or the Android permission is not granted."
|
|
|
|
invoke-virtual {v3, v0, v2}, Lcom/fyber/inneractive/sdk/web/j;->a(Lcom/fyber/inneractive/sdk/mraid/g;Ljava/lang/String;)V
|
|
|
|
new-array v0, v1, [Ljava/lang/Object;
|
|
|
|
const-string v1, "Error downloading file. Please check if the Android permission is not granted, or maybe the device does not have an SD card mounted? "
|
|
|
|
.line 13
|
|
invoke-static {v1, v0}, Lcom/fyber/inneractive/sdk/util/IAlog;->a(Ljava/lang/String;[Ljava/lang/Object;)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_3
|
|
iget-object v0, p0, Lcom/fyber/inneractive/sdk/mraid/b;->c:Lcom/fyber/inneractive/sdk/web/j;
|
|
|
|
.line 42
|
|
sget-object v2, Lcom/fyber/inneractive/sdk/mraid/g;->STORE_PICTURE:Lcom/fyber/inneractive/sdk/mraid/g;
|
|
|
|
const-string v3, "Image can\'t be stored with null or empty URL"
|
|
|
|
invoke-virtual {v0, v2, v3}, Lcom/fyber/inneractive/sdk/web/j;->a(Lcom/fyber/inneractive/sdk/mraid/g;Ljava/lang/String;)V
|
|
|
|
new-array v0, v1, [Ljava/lang/Object;
|
|
|
|
const-string v1, "Mraid Store Picture -Invalid URI "
|
|
|
|
.line 43
|
|
invoke-static {v1, v0}, Lcom/fyber/inneractive/sdk/util/IAlog;->a(Ljava/lang/String;[Ljava/lang/Object;)V
|
|
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public final c()Ljava/lang/String;
|
|
.locals 1
|
|
|
|
const-string v0, "uri"
|
|
|
|
.line 1
|
|
invoke-virtual {p0, v0}, Lcom/fyber/inneractive/sdk/mraid/b;->b(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|