- 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
556 lines
14 KiB
Smali
556 lines
14 KiB
Smali
.class public final Lcom/fyber/inneractive/sdk/mraid/o;
|
|
.super Lcom/fyber/inneractive/sdk/mraid/b;
|
|
.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/b;-><init>(Ljava/util/Map;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 11
|
|
|
|
const-string v0, "Couldn\'t find content in the view tree"
|
|
|
|
const-string v1, "Ad can be resized only if it\'s state is default or resized."
|
|
|
|
const-string v2, "w"
|
|
|
|
.line 1
|
|
invoke-virtual {p0, v2}, Lcom/fyber/inneractive/sdk/mraid/b;->a(Ljava/lang/String;)I
|
|
|
|
move-result v2
|
|
|
|
const-string v3, "h"
|
|
|
|
.line 2
|
|
invoke-virtual {p0, v3}, Lcom/fyber/inneractive/sdk/mraid/b;->a(Ljava/lang/String;)I
|
|
|
|
move-result v3
|
|
|
|
const-string v4, "offsetX"
|
|
|
|
.line 3
|
|
invoke-virtual {p0, v4}, Lcom/fyber/inneractive/sdk/mraid/b;->a(Ljava/lang/String;)I
|
|
|
|
move-result v4
|
|
|
|
const-string v5, "offsetY"
|
|
|
|
.line 4
|
|
invoke-virtual {p0, v5}, Lcom/fyber/inneractive/sdk/mraid/b;->a(Ljava/lang/String;)I
|
|
|
|
move-result v5
|
|
|
|
const-string v6, "allowOffscreen"
|
|
|
|
iget-object v7, p0, Lcom/fyber/inneractive/sdk/mraid/b;->b:Ljava/util/Map;
|
|
|
|
.line 6
|
|
invoke-interface {v7, v6}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v6
|
|
|
|
const-string v7, "true"
|
|
|
|
invoke-virtual {v7, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v6
|
|
|
|
const-string v7, "customClosePosition"
|
|
|
|
.line 7
|
|
invoke-virtual {p0, v7}, Lcom/fyber/inneractive/sdk/mraid/b;->b(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
if-gtz v2, :cond_0
|
|
|
|
iget-object v2, p0, Lcom/fyber/inneractive/sdk/mraid/b;->c:Lcom/fyber/inneractive/sdk/web/j;
|
|
|
|
.line 9
|
|
iget v2, v2, Lcom/fyber/inneractive/sdk/web/j;->a0:I
|
|
|
|
:cond_0
|
|
if-gtz v3, :cond_1
|
|
|
|
iget-object v3, p0, Lcom/fyber/inneractive/sdk/mraid/b;->c:Lcom/fyber/inneractive/sdk/web/j;
|
|
|
|
.line 10
|
|
iget v3, v3, Lcom/fyber/inneractive/sdk/web/j;->b0:I
|
|
|
|
:cond_1
|
|
iget-object v7, p0, Lcom/fyber/inneractive/sdk/mraid/b;->c:Lcom/fyber/inneractive/sdk/web/j;
|
|
|
|
.line 13
|
|
iget-object v8, v7, Lcom/fyber/inneractive/sdk/web/f;->b:Lcom/fyber/inneractive/sdk/web/h;
|
|
|
|
if-nez v8, :cond_2
|
|
|
|
goto/16 :goto_6
|
|
|
|
:cond_2
|
|
const/4 v9, 0x0
|
|
|
|
.line 18
|
|
:try_start_0
|
|
invoke-virtual {v8}, Landroid/view/View;->getRootView()Landroid/view/View;
|
|
|
|
move-result-object v8
|
|
|
|
const v10, 0x1020002
|
|
|
|
invoke-virtual {v8, v10}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object v8
|
|
|
|
check-cast v8, Landroid/view/ViewGroup;
|
|
|
|
iput-object v8, v7, Lcom/fyber/inneractive/sdk/web/j;->S:Landroid/view/ViewGroup;
|
|
|
|
if-nez v8, :cond_3
|
|
|
|
new-array v2, v9, [Ljava/lang/Object;
|
|
|
|
.line 20
|
|
invoke-static {v0, v2}, Lcom/fyber/inneractive/sdk/util/IAlog;->f(Ljava/lang/String;[Ljava/lang/Object;)V
|
|
|
|
.line 21
|
|
sget-object v2, Lcom/fyber/inneractive/sdk/mraid/g;->RESIZE:Lcom/fyber/inneractive/sdk/mraid/g;
|
|
|
|
invoke-virtual {v7, v2, v1}, Lcom/fyber/inneractive/sdk/web/j;->a(Lcom/fyber/inneractive/sdk/mraid/g;Ljava/lang/String;)V
|
|
:try_end_0
|
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
goto/16 :goto_6
|
|
|
|
.line 31
|
|
:cond_3
|
|
iget-object v0, v7, Lcom/fyber/inneractive/sdk/web/j;->P:Lcom/fyber/inneractive/sdk/web/j$d;
|
|
|
|
sget-object v8, Lcom/fyber/inneractive/sdk/web/j$d;->DISABLED:Lcom/fyber/inneractive/sdk/web/j$d;
|
|
|
|
if-ne v0, v8, :cond_4
|
|
|
|
goto/16 :goto_6
|
|
|
|
.line 32
|
|
:cond_4
|
|
iget-object v0, v7, Lcom/fyber/inneractive/sdk/web/j;->O:Lcom/fyber/inneractive/sdk/mraid/b0;
|
|
|
|
sget-object v8, Lcom/fyber/inneractive/sdk/mraid/b0;->DEFAULT:Lcom/fyber/inneractive/sdk/mraid/b0;
|
|
|
|
if-eq v0, v8, :cond_5
|
|
|
|
sget-object v8, Lcom/fyber/inneractive/sdk/mraid/b0;->RESIZED:Lcom/fyber/inneractive/sdk/mraid/b0;
|
|
|
|
if-eq v0, v8, :cond_5
|
|
|
|
.line 33
|
|
sget-object v0, Lcom/fyber/inneractive/sdk/mraid/g;->RESIZE:Lcom/fyber/inneractive/sdk/mraid/g;
|
|
|
|
invoke-virtual {v7, v0, v1}, Lcom/fyber/inneractive/sdk/web/j;->a(Lcom/fyber/inneractive/sdk/mraid/g;Ljava/lang/String;)V
|
|
|
|
goto/16 :goto_6
|
|
|
|
:cond_5
|
|
if-gez v2, :cond_6
|
|
|
|
if-gez v3, :cond_6
|
|
|
|
.line 38
|
|
sget-object v0, Lcom/fyber/inneractive/sdk/mraid/g;->RESIZE:Lcom/fyber/inneractive/sdk/mraid/g;
|
|
|
|
const-string v1, "Creative size passed to resize() was invalid."
|
|
|
|
invoke-virtual {v7, v0, v1}, Lcom/fyber/inneractive/sdk/web/j;->a(Lcom/fyber/inneractive/sdk/mraid/g;Ljava/lang/String;)V
|
|
|
|
goto/16 :goto_6
|
|
|
|
.line 39
|
|
:cond_6
|
|
iput-boolean v9, v7, Lcom/fyber/inneractive/sdk/web/j;->Y:Z
|
|
|
|
.line 40
|
|
iget-object v0, v7, Lcom/fyber/inneractive/sdk/web/f;->g:Lcom/fyber/inneractive/sdk/web/h0;
|
|
|
|
if-eqz v0, :cond_7
|
|
|
|
.line 41
|
|
check-cast v0, Lcom/fyber/inneractive/sdk/web/j$f;
|
|
|
|
invoke-interface {v0, v9}, Lcom/fyber/inneractive/sdk/web/j$f;->b(Z)V
|
|
|
|
.line 42
|
|
:cond_7
|
|
iget-object v0, v7, Lcom/fyber/inneractive/sdk/web/j;->Q:Lcom/fyber/inneractive/sdk/web/j$h;
|
|
|
|
sget-object v1, Lcom/fyber/inneractive/sdk/web/j$h;->ALWAYS_VISIBLE:Lcom/fyber/inneractive/sdk/web/j$h;
|
|
|
|
if-eq v0, v1, :cond_8
|
|
|
|
iget-boolean v1, v7, Lcom/fyber/inneractive/sdk/web/j;->Y:Z
|
|
|
|
if-nez v1, :cond_9
|
|
|
|
sget-object v1, Lcom/fyber/inneractive/sdk/web/j$h;->ALWAYS_HIDDEN:Lcom/fyber/inneractive/sdk/web/j$h;
|
|
|
|
if-eq v0, v1, :cond_9
|
|
|
|
:cond_8
|
|
const/4 v0, 0x1
|
|
|
|
.line 45
|
|
invoke-virtual {v7, v0}, Lcom/fyber/inneractive/sdk/web/j;->c(Z)V
|
|
|
|
.line 48
|
|
:cond_9
|
|
invoke-virtual {v7, v9}, Lcom/fyber/inneractive/sdk/web/j;->d(Z)V
|
|
|
|
.line 51
|
|
invoke-static {v3}, Lcom/fyber/inneractive/sdk/util/o;->a(I)I
|
|
|
|
move-result v0
|
|
|
|
iput v0, v7, Lcom/fyber/inneractive/sdk/web/j;->f0:I
|
|
|
|
.line 52
|
|
invoke-static {v2}, Lcom/fyber/inneractive/sdk/util/o;->a(I)I
|
|
|
|
move-result v0
|
|
|
|
iput v0, v7, Lcom/fyber/inneractive/sdk/web/j;->e0:I
|
|
|
|
if-nez v6, :cond_d
|
|
|
|
add-int v0, v4, v2
|
|
|
|
.line 59
|
|
iget v1, v7, Lcom/fyber/inneractive/sdk/web/j;->a0:I
|
|
|
|
sub-int/2addr v0, v1
|
|
|
|
if-lez v0, :cond_a
|
|
|
|
sub-int/2addr v4, v0
|
|
|
|
:cond_a
|
|
if-gez v4, :cond_b
|
|
|
|
move v4, v9
|
|
|
|
:cond_b
|
|
add-int v0, v5, v3
|
|
|
|
.line 73
|
|
iget v1, v7, Lcom/fyber/inneractive/sdk/web/j;->b0:I
|
|
|
|
sub-int/2addr v0, v1
|
|
|
|
if-lez v0, :cond_c
|
|
|
|
sub-int/2addr v5, v0
|
|
|
|
:cond_c
|
|
if-gez v5, :cond_d
|
|
|
|
move v5, v9
|
|
|
|
.line 74
|
|
:cond_d
|
|
iget-object v0, v7, Lcom/fyber/inneractive/sdk/web/f;->b:Lcom/fyber/inneractive/sdk/web/h;
|
|
|
|
invoke-virtual {v0}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v0
|
|
|
|
.line 75
|
|
instance-of v1, v0, Landroid/widget/RelativeLayout$LayoutParams;
|
|
|
|
const/4 v6, 0x0
|
|
|
|
if-eqz v1, :cond_f
|
|
|
|
if-nez v4, :cond_e
|
|
|
|
if-nez v5, :cond_e
|
|
|
|
const/16 v0, 0xd
|
|
|
|
filled-new-array {v0}, [I
|
|
|
|
move-result-object v0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_e
|
|
move-object v0, v6
|
|
|
|
.line 82
|
|
:goto_0
|
|
invoke-static {v2}, Lcom/fyber/inneractive/sdk/util/o;->a(I)I
|
|
|
|
move-result v1
|
|
|
|
.line 83
|
|
invoke-static {v3}, Lcom/fyber/inneractive/sdk/util/o;->a(I)I
|
|
|
|
move-result v2
|
|
|
|
.line 84
|
|
invoke-static {v1, v2, v0}, Lcom/fyber/inneractive/sdk/util/t;->a(II[I)Landroid/widget/RelativeLayout$LayoutParams;
|
|
|
|
move-result-object v0
|
|
|
|
.line 85
|
|
iput v4, v0, Landroid/widget/RelativeLayout$LayoutParams;->leftMargin:I
|
|
|
|
.line 86
|
|
iput v5, v0, Landroid/widget/RelativeLayout$LayoutParams;->topMargin:I
|
|
|
|
.line 89
|
|
iget-object v1, v7, Lcom/fyber/inneractive/sdk/web/f;->b:Lcom/fyber/inneractive/sdk/web/h;
|
|
|
|
invoke-virtual {v1, v0}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V
|
|
|
|
goto :goto_1
|
|
|
|
.line 90
|
|
:cond_f
|
|
instance-of v0, v0, Landroid/widget/FrameLayout$LayoutParams;
|
|
|
|
if-eqz v0, :cond_10
|
|
|
|
.line 92
|
|
invoke-static {v2}, Lcom/fyber/inneractive/sdk/util/o;->a(I)I
|
|
|
|
move-result v0
|
|
|
|
.line 93
|
|
invoke-static {v3}, Lcom/fyber/inneractive/sdk/util/o;->a(I)I
|
|
|
|
move-result v1
|
|
|
|
.line 94
|
|
new-instance v2, Landroid/widget/FrameLayout$LayoutParams;
|
|
|
|
const/16 v3, 0x11
|
|
|
|
invoke-direct {v2, v0, v1, v3}, Landroid/widget/FrameLayout$LayoutParams;-><init>(III)V
|
|
|
|
.line 95
|
|
iget-object v0, v7, Lcom/fyber/inneractive/sdk/web/f;->b:Lcom/fyber/inneractive/sdk/web/h;
|
|
|
|
invoke-virtual {v0, v2}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V
|
|
|
|
.line 96
|
|
:cond_10
|
|
:goto_1
|
|
iget-object v0, v7, Lcom/fyber/inneractive/sdk/web/j;->O:Lcom/fyber/inneractive/sdk/mraid/b0;
|
|
|
|
sget-object v1, Lcom/fyber/inneractive/sdk/mraid/b0;->RESIZED:Lcom/fyber/inneractive/sdk/mraid/b0;
|
|
|
|
if-eq v0, v1, :cond_11
|
|
|
|
.line 97
|
|
iput-object v1, v7, Lcom/fyber/inneractive/sdk/web/j;->O:Lcom/fyber/inneractive/sdk/mraid/b0;
|
|
|
|
.line 98
|
|
new-instance v0, Lcom/fyber/inneractive/sdk/mraid/z;
|
|
|
|
invoke-direct {v0, v1}, Lcom/fyber/inneractive/sdk/mraid/z;-><init>(Lcom/fyber/inneractive/sdk/mraid/b0;)V
|
|
|
|
.line 99
|
|
invoke-virtual {v7, v0}, Lcom/fyber/inneractive/sdk/web/g0;->a(Lcom/fyber/inneractive/sdk/mraid/u;)V
|
|
|
|
.line 100
|
|
iget v0, v7, Lcom/fyber/inneractive/sdk/web/j;->e0:I
|
|
|
|
const/4 v1, -0x1
|
|
|
|
if-eq v0, v1, :cond_11
|
|
|
|
iget v2, v7, Lcom/fyber/inneractive/sdk/web/j;->f0:I
|
|
|
|
if-eq v2, v1, :cond_11
|
|
|
|
invoke-static {v0}, Lcom/fyber/inneractive/sdk/util/o;->b(I)I
|
|
|
|
move-result v0
|
|
|
|
iget v1, v7, Lcom/fyber/inneractive/sdk/web/j;->f0:I
|
|
|
|
invoke-static {v1}, Lcom/fyber/inneractive/sdk/util/o;->b(I)I
|
|
|
|
move-result v1
|
|
|
|
.line 101
|
|
new-instance v2, Lcom/fyber/inneractive/sdk/mraid/t;
|
|
|
|
invoke-direct {v2, v0, v1}, Lcom/fyber/inneractive/sdk/mraid/t;-><init>(II)V
|
|
|
|
.line 102
|
|
invoke-virtual {v7, v2}, Lcom/fyber/inneractive/sdk/web/g0;->a(Lcom/fyber/inneractive/sdk/mraid/u;)V
|
|
|
|
.line 105
|
|
:cond_11
|
|
sget-object v0, Lcom/fyber/inneractive/sdk/mraid/g;->RESIZE:Lcom/fyber/inneractive/sdk/mraid/g;
|
|
|
|
.line 106
|
|
new-instance v1, Lcom/fyber/inneractive/sdk/network/s$a;
|
|
|
|
sget-object v2, Lcom/fyber/inneractive/sdk/network/r;->BANNER_RESIZE_EXPAND:Lcom/fyber/inneractive/sdk/network/r;
|
|
|
|
iget-object v3, v7, Lcom/fyber/inneractive/sdk/web/f;->r:Lcom/fyber/inneractive/sdk/external/InneractiveAdRequest;
|
|
|
|
.line 108
|
|
iget-object v4, v7, Lcom/fyber/inneractive/sdk/web/f;->s:Lcom/fyber/inneractive/sdk/flow/q;
|
|
|
|
if-eqz v4, :cond_12
|
|
|
|
invoke-virtual {v4}, Lcom/fyber/inneractive/sdk/flow/q;->d()Lcom/fyber/inneractive/sdk/response/e;
|
|
|
|
move-result-object v4
|
|
|
|
goto :goto_2
|
|
|
|
:cond_12
|
|
move-object v4, v6
|
|
|
|
.line 109
|
|
:goto_2
|
|
iget-object v5, v7, Lcom/fyber/inneractive/sdk/web/f;->s:Lcom/fyber/inneractive/sdk/flow/q;
|
|
|
|
if-eqz v5, :cond_13
|
|
|
|
.line 110
|
|
iget-object v5, v5, Lcom/fyber/inneractive/sdk/flow/q;->c:Lcom/fyber/inneractive/sdk/config/global/s;
|
|
|
|
if-eqz v5, :cond_13
|
|
|
|
.line 111
|
|
invoke-virtual {v5}, Lcom/fyber/inneractive/sdk/config/global/s;->c()Lorg/json/JSONArray;
|
|
|
|
move-result-object v5
|
|
|
|
goto :goto_3
|
|
|
|
:cond_13
|
|
move-object v5, v6
|
|
|
|
:goto_3
|
|
invoke-direct {v1, v2, v3, v4, v5}, Lcom/fyber/inneractive/sdk/network/s$a;-><init>(Lcom/fyber/inneractive/sdk/network/r;Lcom/fyber/inneractive/sdk/external/InneractiveAdRequest;Lcom/fyber/inneractive/sdk/response/e;Lorg/json/JSONArray;)V
|
|
|
|
const-string v2, "action"
|
|
|
|
.line 112
|
|
invoke-virtual {v0}, Lcom/fyber/inneractive/sdk/mraid/g;->e()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
filled-new-array {v2, v0}, [Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v1, v0}, Lcom/fyber/inneractive/sdk/network/s$a;->a([Ljava/lang/Object;)Lcom/fyber/inneractive/sdk/network/s$a;
|
|
|
|
move-result-object v0
|
|
|
|
.line 113
|
|
invoke-virtual {v0, v6}, Lcom/fyber/inneractive/sdk/network/s$a;->a(Ljava/lang/String;)V
|
|
|
|
.line 114
|
|
iget-object v0, v7, Lcom/fyber/inneractive/sdk/web/f;->b:Lcom/fyber/inneractive/sdk/web/h;
|
|
|
|
invoke-virtual {v0}, Landroid/view/View;->getParent()Landroid/view/ViewParent;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroid/view/ViewGroup;
|
|
|
|
if-nez v0, :cond_14
|
|
|
|
goto :goto_4
|
|
|
|
:cond_14
|
|
sget v1, Lcom/fyber/inneractive/sdk/R$id;->ia_identifier_overlay:I
|
|
|
|
.line 115
|
|
invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroid/view/ViewGroup;
|
|
|
|
.line 116
|
|
instance-of v1, v0, Landroid/widget/RelativeLayout;
|
|
|
|
if-eqz v1, :cond_15
|
|
|
|
.line 117
|
|
move-object v6, v0
|
|
|
|
check-cast v6, Landroid/widget/RelativeLayout;
|
|
|
|
.line 118
|
|
:cond_15
|
|
:goto_4
|
|
iget-object v0, v7, Lcom/fyber/inneractive/sdk/web/f;->b:Lcom/fyber/inneractive/sdk/web/h;
|
|
|
|
if-eqz v0, :cond_17
|
|
|
|
if-nez v6, :cond_16
|
|
|
|
goto :goto_5
|
|
|
|
.line 122
|
|
:cond_16
|
|
invoke-virtual {v0}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v6, v0}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V
|
|
|
|
.line 123
|
|
:cond_17
|
|
:goto_5
|
|
iget-object v0, v7, Lcom/fyber/inneractive/sdk/web/f;->g:Lcom/fyber/inneractive/sdk/web/h0;
|
|
|
|
if-eqz v0, :cond_18
|
|
|
|
check-cast v0, Lcom/fyber/inneractive/sdk/web/j$f;
|
|
|
|
invoke-interface {v0}, Lcom/fyber/inneractive/sdk/web/j$f;->c()V
|
|
|
|
goto :goto_6
|
|
|
|
:catch_0
|
|
new-array v2, v9, [Ljava/lang/Object;
|
|
|
|
.line 124
|
|
invoke-static {v0, v2}, Lcom/fyber/inneractive/sdk/util/IAlog;->f(Ljava/lang/String;[Ljava/lang/Object;)V
|
|
|
|
.line 125
|
|
sget-object v0, Lcom/fyber/inneractive/sdk/mraid/g;->RESIZE:Lcom/fyber/inneractive/sdk/mraid/g;
|
|
|
|
invoke-virtual {v7, v0, v1}, Lcom/fyber/inneractive/sdk/web/j;->a(Lcom/fyber/inneractive/sdk/mraid/g;Ljava/lang/String;)V
|
|
|
|
:cond_18
|
|
:goto_6
|
|
return-void
|
|
.end method
|
|
|
|
.method public final b()Z
|
|
.locals 1
|
|
|
|
const/4 v0, 0x1
|
|
|
|
return v0
|
|
.end method
|