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

213 lines
4.5 KiB
Smali

.class public Lcom/applovin/impl/bg;
.super Landroid/content/BroadcastReceiver;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/applovin/impl/bg$a;
}
.end annotation
# instance fields
.field private final a:Ljava/util/List;
# direct methods
.method public constructor <init>(Landroid/content/Context;)V
.locals 2
.line 42
invoke-direct {p0}, Landroid/content/BroadcastReceiver;-><init>()V
.line 43
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
invoke-static {v0}, Ljava/util/Collections;->synchronizedList(Ljava/util/List;)Ljava/util/List;
move-result-object v0
iput-object v0, p0, Lcom/applovin/impl/bg;->a:Ljava/util/List;
.line 49
invoke-virtual {p1}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
move-result-object p1
new-instance v0, Landroid/content/IntentFilter;
const-string v1, "android.net.conn.CONNECTIVITY_CHANGE"
invoke-direct {v0, v1}, Landroid/content/IntentFilter;-><init>(Ljava/lang/String;)V
invoke-virtual {p1, p0, v0}, Landroid/content/Context;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)Landroid/content/Intent;
return-void
.end method
.method private static a(Landroid/content/Intent;)Z
.locals 1
.line 94
invoke-virtual {p0}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;
move-result-object p0
if-eqz p0, :cond_0
const-string v0, "networkInfo"
.line 99
invoke-virtual {p0, v0}, Landroid/os/BaseBundle;->get(Ljava/lang/String;)Ljava/lang/Object;
move-result-object p0
.line 101
instance-of v0, p0, Landroid/net/NetworkInfo;
if-eqz v0, :cond_0
.line 103
check-cast p0, Landroid/net/NetworkInfo;
invoke-virtual {p0}, Landroid/net/NetworkInfo;->isConnected()Z
move-result p0
return p0
:cond_0
const/4 p0, 0x0
return p0
.end method
# virtual methods
.method public a(Lcom/applovin/impl/bg$a;)V
.locals 1
iget-object v0, p0, Lcom/applovin/impl/bg;->a:Ljava/util/List;
.line 153
invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
return-void
.end method
.method public b(Lcom/applovin/impl/bg$a;)V
.locals 1
iget-object v0, p0, Lcom/applovin/impl/bg;->a:Ljava/util/List;
.line 55
invoke-interface {v0, p1}, Ljava/util/List;->remove(Ljava/lang/Object;)Z
return-void
.end method
.method public onReceive(Landroid/content/Context;Landroid/content/Intent;)V
.locals 1
.line 62
invoke-virtual {p2}, Landroid/content/Intent;->getAction()Ljava/lang/String;
move-result-object p1
if-eqz p1, :cond_3
invoke-virtual {p2}, Landroid/content/Intent;->getAction()Ljava/lang/String;
move-result-object p1
const-string v0, "android.net.conn.CONNECTIVITY_CHANGE"
invoke-virtual {p1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result p1
if-nez p1, :cond_0
goto :goto_2
.line 65
:cond_0
invoke-virtual {p0}, Landroid/content/BroadcastReceiver;->isInitialStickyBroadcast()Z
move-result p1
if-eqz p1, :cond_1
return-void
.line 67
:cond_1
new-instance p1, Ljava/util/ArrayList;
iget-object v0, p0, Lcom/applovin/impl/bg;->a:Ljava/util/List;
invoke-direct {p1, v0}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V
.line 68
invoke-static {p2}, Lcom/applovin/impl/bg;->a(Landroid/content/Intent;)Z
move-result p2
if-eqz p2, :cond_2
.line 72
invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object p1
:goto_0
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
move-result p2
if-eqz p2, :cond_3
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object p2
check-cast p2, Lcom/applovin/impl/bg$a;
.line 74
invoke-interface {p2}, Lcom/applovin/impl/bg$a;->a()V
goto :goto_0
.line 79
:cond_2
invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object p1
:goto_1
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
move-result p2
if-eqz p2, :cond_3
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object p2
check-cast p2, Lcom/applovin/impl/bg$a;
.line 81
invoke-interface {p2}, Lcom/applovin/impl/bg$a;->b()V
goto :goto_1
:cond_3
:goto_2
return-void
.end method