- 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
123 lines
3.3 KiB
Smali
123 lines
3.3 KiB
Smali
.class public final Landroidx/core/net/ConnectivityManagerCompat;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Landroidx/core/net/ConnectivityManagerCompat$Api24Impl;,
|
|
Landroidx/core/net/ConnectivityManagerCompat$RestrictBackgroundStatus;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final RESTRICT_BACKGROUND_STATUS_DISABLED:I = 0x1
|
|
|
|
.field public static final RESTRICT_BACKGROUND_STATUS_ENABLED:I = 0x3
|
|
|
|
.field public static final RESTRICT_BACKGROUND_STATUS_WHITELISTED:I = 0x2
|
|
|
|
|
|
# direct methods
|
|
.method private constructor <init>()V
|
|
.locals 0
|
|
|
|
.line 136
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static getNetworkInfoFromBroadcast(Landroid/net/ConnectivityManager;Landroid/content/Intent;)Landroid/net/NetworkInfo;
|
|
.locals 1
|
|
.param p0 # Landroid/net/ConnectivityManager;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p1 # Landroid/content/Intent;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Landroid/annotation/SuppressLint;
|
|
value = {
|
|
"ReferencesDeprecated"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
.annotation build Landroidx/annotation/RequiresPermission;
|
|
value = "android.permission.ACCESS_NETWORK_STATE"
|
|
.end annotation
|
|
|
|
const-string v0, "networkInfo"
|
|
|
|
.line 111
|
|
invoke-virtual {p1, v0}, Landroid/content/Intent;->getParcelableExtra(Ljava/lang/String;)Landroid/os/Parcelable;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Landroid/net/NetworkInfo;
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 113
|
|
invoke-virtual {p1}, Landroid/net/NetworkInfo;->getType()I
|
|
|
|
move-result p1
|
|
|
|
invoke-virtual {p0, p1}, Landroid/net/ConnectivityManager;->getNetworkInfo(I)Landroid/net/NetworkInfo;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
|
|
:cond_0
|
|
const/4 p0, 0x0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static getRestrictBackgroundStatus(Landroid/net/ConnectivityManager;)I
|
|
.locals 0
|
|
.param p0 # Landroid/net/ConnectivityManager;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 130
|
|
invoke-static {p0}, Landroidx/core/net/ConnectivityManagerCompat$Api24Impl;->getRestrictBackgroundStatus(Landroid/net/ConnectivityManager;)I
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public static isActiveNetworkMetered(Landroid/net/ConnectivityManager;)Z
|
|
.locals 0
|
|
.param p0 # Landroid/net/ConnectivityManager;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation runtime Landroidx/annotation/ReplaceWith;
|
|
expression = "cm.isActiveNetworkMetered()"
|
|
.end annotation
|
|
|
|
.annotation build Landroidx/annotation/RequiresPermission;
|
|
value = "android.permission.ACCESS_NETWORK_STATE"
|
|
.end annotation
|
|
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
|
|
.line 95
|
|
invoke-virtual {p0}, Landroid/net/ConnectivityManager;->isActiveNetworkMetered()Z
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
.end method
|