Files
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

375 lines
8.1 KiB
Smali

.class public Lcom/ironsource/un;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/ironsource/un$c;
}
.end annotation
# static fields
.field public static final a:Ljava/lang/String; = "com.google.market"
.field public static final b:Ljava/lang/String; = "com.android.vending"
.field public static final c:Ljava/lang/String; = "isInstalled"
.field private static final d:Ljava/lang/String; = "un"
.field private static final e:Ljava/util/ArrayList;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/ArrayList<",
"Ljava/lang/String;",
">;"
}
.end annotation
.end field
# direct methods
.method static constructor <clinit>()V
.locals 1
new-instance v0, Lcom/ironsource/un$a;
invoke-direct {v0}, Lcom/ironsource/un$a;-><init>()V
sput-object v0, Lcom/ironsource/un;->e:Ljava/util/ArrayList;
return-void
.end method
.method public constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method private static a(Landroid/content/Context;)Lorg/json/JSONObject;
.locals 1
.line 0
sget-object v0, Lcom/ironsource/un;->e:Ljava/util/ArrayList;
invoke-static {p0, v0}, Lcom/ironsource/un;->a(Landroid/content/Context;Ljava/util/ArrayList;)Lorg/json/JSONObject;
move-result-object p0
return-object p0
.end method
.method private static a(Landroid/content/Context;Ljava/util/ArrayList;)Lorg/json/JSONObject;
.locals 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/content/Context;",
"Ljava/util/ArrayList<",
"Ljava/lang/String;",
">;)",
"Lorg/json/JSONObject;"
}
.end annotation
.line 0
new-instance v0, Lorg/json/JSONObject;
invoke-direct {v0}, Lorg/json/JSONObject;-><init>()V
:try_start_0
invoke-static {p0}, Lcom/ironsource/un;->b(Landroid/content/Context;)Ljava/util/ArrayList;
move-result-object p0
invoke-virtual {p1}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;
move-result-object p1
:goto_0
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_0
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Ljava/lang/String;
invoke-virtual {v1}, Ljava/lang/String;->trim()Ljava/lang/String;
move-result-object v2
invoke-static {}, Ljava/util/Locale;->getDefault()Ljava/util/Locale;
move-result-object v3
invoke-virtual {v2, v3}, Ljava/lang/String;->toLowerCase(Ljava/util/Locale;)Ljava/lang/String;
move-result-object v2
invoke-virtual {p0, v2}, Ljava/util/ArrayList;->contains(Ljava/lang/Object;)Z
move-result v2
invoke-static {v2}, Lcom/ironsource/un;->a(Z)Lorg/json/JSONObject;
move-result-object v2
invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_0
:catch_0
move-exception p0
invoke-static {}, Lcom/ironsource/i9;->d()Lcom/ironsource/i9;
move-result-object p1
invoke-virtual {p1, p0}, Lcom/ironsource/i9;->a(Ljava/lang/Throwable;)V
:cond_0
return-object v0
.end method
.method private static a(Z)Lorg/json/JSONObject;
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Lorg/json/JSONException;
}
.end annotation
.line 0
new-instance v0, Lcom/ironsource/un$b;
invoke-direct {v0, p0}, Lcom/ironsource/un$b;-><init>(Z)V
return-object v0
.end method
.method private static b(Landroid/content/Context;)Ljava/util/ArrayList;
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/content/Context;",
")",
"Ljava/util/ArrayList<",
"Ljava/lang/String;",
">;"
}
.end annotation
invoke-static {}, Lcom/ironsource/el;->N()Lcom/ironsource/me;
move-result-object v0
invoke-interface {v0}, Lcom/ironsource/me;->f()Lcom/ironsource/ce;
move-result-object v0
invoke-interface {v0, p0}, Lcom/ironsource/ce;->o(Landroid/content/Context;)Ljava/util/List;
move-result-object p0
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
invoke-interface {p0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object p0
:goto_0
invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_1
invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Landroid/content/pm/ApplicationInfo;
if-nez v1, :cond_0
goto :goto_0
:cond_0
iget-object v1, v1, Landroid/content/pm/ApplicationInfo;->packageName:Ljava/lang/String;
invoke-static {}, Ljava/util/Locale;->getDefault()Ljava/util/Locale;
move-result-object v2
invoke-virtual {v1, v2}, Ljava/lang/String;->toLowerCase(Ljava/util/Locale;)Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
goto :goto_0
:cond_1
return-object v0
.end method
.method public static c(Landroid/content/Context;)Ljava/lang/Integer;
.locals 11
invoke-static {}, Lcom/ironsource/un$c;->a()Ljava/util/ArrayList;
move-result-object v0
invoke-static {p0, v0}, Lcom/ironsource/un;->a(Landroid/content/Context;Ljava/util/ArrayList;)Lorg/json/JSONObject;
move-result-object p0
invoke-static {}, Lcom/ironsource/un$c;->values()[Lcom/ironsource/un$c;
move-result-object v0
array-length v1, v0
const/4 v2, 0x0
move v3, v2
move v4, v3
:goto_0
if-ge v3, v1, :cond_2
aget-object v5, v0, v3
invoke-static {v5}, Lcom/ironsource/un$c;->a(Lcom/ironsource/un$c;)[Ljava/lang/String;
move-result-object v6
array-length v7, v6
move v8, v2
:goto_1
if-ge v8, v7, :cond_1
aget-object v9, v6, v8
invoke-virtual {p0, v9}, Lorg/json/JSONObject;->optJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;
move-result-object v9
if-eqz v9, :cond_0
const-string v10, "isInstalled"
invoke-virtual {v9, v10}, Lorg/json/JSONObject;->optBoolean(Ljava/lang/String;)Z
move-result v9
if-eqz v9, :cond_0
int-to-double v6, v4
invoke-static {v5}, Lcom/ironsource/un$c;->b(Lcom/ironsource/un$c;)I
move-result v4
add-int/lit8 v4, v4, -0x1
int-to-double v4, v4
const-wide/high16 v8, 0x4000000000000000L # 2.0
invoke-static {v8, v9, v4, v5}, Ljava/lang/Math;->pow(DD)D
move-result-wide v4
add-double/2addr v6, v4
double-to-int v4, v6
goto :goto_2
:cond_0
add-int/lit8 v8, v8, 0x1
goto :goto_1
:cond_1
:goto_2
add-int/lit8 v3, v3, 0x1
goto :goto_0
:cond_2
invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p0
return-object p0
.end method
.method public static d(Landroid/content/Context;)Z
.locals 3
invoke-static {p0}, Lcom/ironsource/un;->a(Landroid/content/Context;)Lorg/json/JSONObject;
move-result-object p0
invoke-virtual {p0}, Lorg/json/JSONObject;->keys()Ljava/util/Iterator;
move-result-object v0
:cond_0
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_1
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Ljava/lang/String;
invoke-virtual {p0, v1}, Lorg/json/JSONObject;->optJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;
move-result-object v1
if-eqz v1, :cond_0
const-string v2, "isInstalled"
invoke-virtual {v1, v2}, Lorg/json/JSONObject;->optBoolean(Ljava/lang/String;)Z
move-result v1
if-eqz v1, :cond_0
const/4 p0, 0x1
return p0
:cond_1
const/4 p0, 0x0
return p0
.end method