- 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
446 lines
11 KiB
Smali
446 lines
11 KiB
Smali
.class public final Lcom/fyber/inneractive/sdk/click/j;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
# interfaces
|
|
.implements Lcom/fyber/inneractive/sdk/click/a;
|
|
|
|
|
|
# static fields
|
|
.field public static final a:Lcom/fyber/inneractive/sdk/click/j$a;
|
|
|
|
|
|
# direct methods
|
|
.method public static constructor <clinit>()V
|
|
.locals 1
|
|
|
|
.line 1
|
|
new-instance v0, Lcom/fyber/inneractive/sdk/click/j$a;
|
|
|
|
invoke-direct {v0}, Lcom/fyber/inneractive/sdk/click/j$a;-><init>()V
|
|
|
|
sput-object v0, Lcom/fyber/inneractive/sdk/click/j;->a:Lcom/fyber/inneractive/sdk/click/j$a;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static a(Landroid/content/Context;Landroid/content/Intent;Landroid/net/Uri;Ljava/util/ArrayList;)Lcom/fyber/inneractive/sdk/click/b;
|
|
.locals 5
|
|
|
|
const-string v0, "Resolver"
|
|
|
|
const/4 v1, 0x0
|
|
|
|
.line 32
|
|
:try_start_0
|
|
invoke-virtual {p0, p1}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V
|
|
|
|
if-eqz p3, :cond_0
|
|
|
|
.line 34
|
|
new-instance p0, Lcom/fyber/inneractive/sdk/click/i;
|
|
|
|
invoke-virtual {p2}, Landroid/net/Uri;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-static {p1}, Lcom/fyber/inneractive/sdk/click/j;->a(Landroid/content/Intent;)Lcom/fyber/inneractive/sdk/click/l$d;
|
|
|
|
move-result-object v3
|
|
|
|
const/4 v4, 0x1
|
|
|
|
.line 35
|
|
invoke-direct {p0, v2, v4, v3, v1}, Lcom/fyber/inneractive/sdk/click/i;-><init>(Ljava/lang/String;ZLcom/fyber/inneractive/sdk/click/l$d;Ljava/lang/String;)V
|
|
|
|
.line 36
|
|
invoke-virtual {p3, p0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
goto :goto_0
|
|
|
|
:catch_0
|
|
move-exception p0
|
|
|
|
goto :goto_1
|
|
|
|
.line 39
|
|
:cond_0
|
|
:goto_0
|
|
invoke-static {p1}, Lcom/fyber/inneractive/sdk/click/j;->a(Landroid/content/Intent;)Lcom/fyber/inneractive/sdk/click/l$d;
|
|
|
|
move-result-object p0
|
|
|
|
.line 40
|
|
invoke-virtual {p2}, Landroid/net/Uri;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {p1, p0, v0}, Lcom/fyber/inneractive/sdk/click/l;->a(Ljava/lang/String;Lcom/fyber/inneractive/sdk/click/l$d;Ljava/lang/String;)Lcom/fyber/inneractive/sdk/click/b;
|
|
|
|
move-result-object p0
|
|
:try_end_0
|
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
return-object p0
|
|
|
|
.line 41
|
|
:goto_1
|
|
invoke-virtual {p0}, Ljava/lang/Throwable;->getLocalizedMessage()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
filled-new-array {p1}, [Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
const-string v2, "failed starting activity with error: %s"
|
|
|
|
invoke-static {v2, p1}, Lcom/fyber/inneractive/sdk/util/IAlog;->a(Ljava/lang/String;[Ljava/lang/Object;)V
|
|
|
|
if-eqz p3, :cond_1
|
|
|
|
.line 43
|
|
new-instance p1, Lcom/fyber/inneractive/sdk/click/i;
|
|
|
|
invoke-virtual {p2}, Landroid/net/Uri;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
sget-object v3, Lcom/fyber/inneractive/sdk/click/l$d;->OPEN_IN_EXTERNAL_APPLICATION:Lcom/fyber/inneractive/sdk/click/l$d;
|
|
|
|
const/4 v4, 0x0
|
|
|
|
.line 44
|
|
invoke-direct {p1, v2, v4, v3, v1}, Lcom/fyber/inneractive/sdk/click/i;-><init>(Ljava/lang/String;ZLcom/fyber/inneractive/sdk/click/l$d;Ljava/lang/String;)V
|
|
|
|
.line 45
|
|
invoke-virtual {p3, p1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
.line 48
|
|
:cond_1
|
|
new-instance p1, Ljava/lang/StringBuilder;
|
|
|
|
const-string p3, "failed starting resolved activity - "
|
|
|
|
invoke-direct {p1, p3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p0}, Ljava/lang/Throwable;->getMessage()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {p1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
.line 49
|
|
invoke-virtual {p2}, Landroid/net/Uri;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {p1, v0, p0}, Lcom/fyber/inneractive/sdk/click/l;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lcom/fyber/inneractive/sdk/click/b;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static a(Landroid/content/Intent;)Lcom/fyber/inneractive/sdk/click/l$d;
|
|
.locals 3
|
|
|
|
.line 50
|
|
invoke-virtual {p0}, Landroid/content/Intent;->getData()Landroid/net/Uri;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
.line 51
|
|
invoke-virtual {p0}, Landroid/content/Intent;->getData()Landroid/net/Uri;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {p0}, Landroid/net/Uri;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
.line 52
|
|
invoke-static {p0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_3
|
|
|
|
.line 53
|
|
invoke-static {p0}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;
|
|
|
|
move-result-object v0
|
|
|
|
.line 54
|
|
invoke-virtual {v0}, Landroid/net/Uri;->getHost()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
.line 55
|
|
invoke-virtual {v0}, Landroid/net/Uri;->getScheme()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v2, "http:"
|
|
|
|
.line 57
|
|
invoke-virtual {p0, v2}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
|
|
|
|
move-result v2
|
|
|
|
if-nez v2, :cond_0
|
|
|
|
const-string v2, "https:"
|
|
|
|
invoke-virtual {p0, v2}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_1
|
|
|
|
:cond_0
|
|
const-string p0, "play.google.com"
|
|
|
|
invoke-virtual {p0, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
|
|
|
|
move-result p0
|
|
|
|
if-nez p0, :cond_2
|
|
|
|
const-string p0, "market.android.com"
|
|
|
|
invoke-virtual {p0, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
|
|
|
|
move-result p0
|
|
|
|
if-nez p0, :cond_2
|
|
|
|
:cond_1
|
|
const-string p0, "market"
|
|
|
|
.line 58
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_3
|
|
|
|
.line 59
|
|
:cond_2
|
|
sget-object p0, Lcom/fyber/inneractive/sdk/click/l$d;->OPEN_GOOGLE_STORE:Lcom/fyber/inneractive/sdk/click/l$d;
|
|
|
|
goto :goto_0
|
|
|
|
:cond_3
|
|
sget-object p0, Lcom/fyber/inneractive/sdk/click/l$d;->OPEN_IN_EXTERNAL_APPLICATION:Lcom/fyber/inneractive/sdk/click/l$d;
|
|
|
|
:goto_0
|
|
return-object p0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final a(Landroid/content/Context;Landroid/net/Uri;Ljava/util/ArrayList;)Lcom/fyber/inneractive/sdk/click/b;
|
|
.locals 8
|
|
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x1d
|
|
|
|
const/high16 v2, 0x10000000
|
|
|
|
const-string v3, "android.intent.action.VIEW"
|
|
|
|
if-le v0, v1, :cond_2
|
|
|
|
.line 2
|
|
invoke-virtual {p2}, Landroid/net/Uri;->getScheme()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "http"
|
|
|
|
.line 3
|
|
invoke-virtual {v1, v0}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
|
|
|
|
move-result v1
|
|
|
|
if-nez v1, :cond_2
|
|
|
|
const-string v1, "https"
|
|
|
|
invoke-virtual {v1, v0}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
.line 24
|
|
:cond_0
|
|
new-instance v0, Landroid/content/Intent;
|
|
|
|
invoke-direct {v0, v3, p2}, Landroid/content/Intent;-><init>(Ljava/lang/String;Landroid/net/Uri;)V
|
|
|
|
.line 27
|
|
instance-of v1, p1, Landroid/app/Activity;
|
|
|
|
if-nez v1, :cond_1
|
|
|
|
.line 28
|
|
invoke-virtual {v0, v2}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;
|
|
|
|
.line 31
|
|
:cond_1
|
|
invoke-static {p1, v0, p2, p3}, Lcom/fyber/inneractive/sdk/click/j;->a(Landroid/content/Context;Landroid/content/Intent;Landroid/net/Uri;Ljava/util/ArrayList;)Lcom/fyber/inneractive/sdk/click/b;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
|
|
.line 4
|
|
:cond_2
|
|
:goto_0
|
|
invoke-virtual {p1}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
|
|
|
|
move-result-object v0
|
|
|
|
.line 5
|
|
new-instance v1, Landroid/content/Intent;
|
|
|
|
invoke-direct {v1, v3, p2}, Landroid/content/Intent;-><init>(Ljava/lang/String;Landroid/net/Uri;)V
|
|
|
|
const/16 v4, 0x20
|
|
|
|
.line 6
|
|
invoke-virtual {v0, v1, v4}, Landroid/content/pm/PackageManager;->queryIntentActivities(Landroid/content/Intent;I)Ljava/util/List;
|
|
|
|
move-result-object v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-eqz v0, :cond_5
|
|
|
|
.line 7
|
|
invoke-interface {v0}, Ljava/util/List;->size()I
|
|
|
|
move-result v5
|
|
|
|
if-lez v5, :cond_5
|
|
|
|
.line 8
|
|
invoke-virtual {p1}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
|
|
|
|
move-result-object v5
|
|
|
|
.line 9
|
|
new-instance v6, Landroid/content/Intent;
|
|
|
|
const-string v7, "http://www.fyber.com"
|
|
|
|
invoke-static {v7}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;
|
|
|
|
move-result-object v7
|
|
|
|
invoke-direct {v6, v3, v7}, Landroid/content/Intent;-><init>(Ljava/lang/String;Landroid/net/Uri;)V
|
|
|
|
.line 10
|
|
invoke-virtual {v5, v6, v4}, Landroid/content/pm/PackageManager;->queryIntentActivities(Landroid/content/Intent;I)Ljava/util/List;
|
|
|
|
move-result-object v4
|
|
|
|
.line 11
|
|
new-instance v5, Ljava/util/TreeSet;
|
|
|
|
sget-object v6, Lcom/fyber/inneractive/sdk/click/j;->a:Lcom/fyber/inneractive/sdk/click/j$a;
|
|
|
|
invoke-direct {v5, v6}, Ljava/util/TreeSet;-><init>(Ljava/util/Comparator;)V
|
|
|
|
.line 12
|
|
invoke-virtual {v5, v4}, Ljava/util/TreeSet;->addAll(Ljava/util/Collection;)Z
|
|
|
|
.line 13
|
|
invoke-interface {v0, v5}, Ljava/util/List;->removeAll(Ljava/util/Collection;)Z
|
|
|
|
.line 14
|
|
invoke-interface {v0}, Ljava/util/List;->size()I
|
|
|
|
move-result v4
|
|
|
|
if-lez v4, :cond_3
|
|
|
|
const/4 v4, 0x0
|
|
|
|
.line 15
|
|
invoke-interface {v0, v4}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroid/content/pm/ResolveInfo;
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
.line 17
|
|
new-instance v4, Landroid/content/Intent;
|
|
|
|
invoke-direct {v4, v3, p2}, Landroid/content/Intent;-><init>(Ljava/lang/String;Landroid/net/Uri;)V
|
|
|
|
.line 18
|
|
iget-object v0, v0, Landroid/content/pm/ResolveInfo;->activityInfo:Landroid/content/pm/ActivityInfo;
|
|
|
|
iget-object v3, v0, Landroid/content/pm/ActivityInfo;->packageName:Ljava/lang/String;
|
|
|
|
iget-object v0, v0, Landroid/content/pm/ActivityInfo;->name:Ljava/lang/String;
|
|
|
|
invoke-virtual {v4, v3, v0}, Landroid/content/Intent;->setClassName(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
|
|
|
|
.line 21
|
|
instance-of v0, p1, Landroid/app/Activity;
|
|
|
|
if-nez v0, :cond_4
|
|
|
|
.line 22
|
|
invoke-virtual {v4, v2}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;
|
|
|
|
goto :goto_1
|
|
|
|
:cond_3
|
|
move-object v4, v1
|
|
|
|
:cond_4
|
|
:goto_1
|
|
if-eqz v4, :cond_5
|
|
|
|
.line 23
|
|
invoke-static {p1, v4, p2, p3}, Lcom/fyber/inneractive/sdk/click/j;->a(Landroid/content/Context;Landroid/content/Intent;Landroid/net/Uri;Ljava/util/ArrayList;)Lcom/fyber/inneractive/sdk/click/b;
|
|
|
|
move-result-object v1
|
|
|
|
:cond_5
|
|
return-object v1
|
|
.end method
|
|
|
|
.method public final a(Landroid/net/Uri;Lcom/fyber/inneractive/sdk/click/l;)Z
|
|
.locals 0
|
|
|
|
.line 0
|
|
const/4 p1, 0x1
|
|
|
|
return p1
|
|
.end method
|