- 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
575 lines
11 KiB
Smali
575 lines
11 KiB
Smali
.class public final Lcom/google/android/exoplayer2/scheduler/Requirements;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
# interfaces
|
|
.implements Landroid/os/Parcelable;
|
|
|
|
|
|
# static fields
|
|
.field public static final CREATOR:Landroid/os/Parcelable$Creator;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Landroid/os/Parcelable$Creator<",
|
|
"Lcom/google/android/exoplayer2/scheduler/Requirements;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# instance fields
|
|
.field public final requirements:I
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 1
|
|
|
|
.line 254
|
|
new-instance v0, Lcom/google/android/exoplayer2/scheduler/Requirements$1;
|
|
|
|
invoke-direct {v0}, Lcom/google/android/exoplayer2/scheduler/Requirements$1;-><init>()V
|
|
|
|
sput-object v0, Lcom/google/android/exoplayer2/scheduler/Requirements;->CREATOR:Landroid/os/Parcelable$Creator;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(I)V
|
|
.locals 1
|
|
|
|
.line 68
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
and-int/lit8 v0, p1, 0x2
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
or-int/lit8 p1, p1, 0x1
|
|
|
|
:cond_0
|
|
iput p1, p0, Lcom/google/android/exoplayer2/scheduler/Requirements;->requirements:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static isInternetConnectivityValidated(Landroid/net/ConnectivityManager;)Z
|
|
.locals 3
|
|
|
|
.line 205
|
|
sget v0, Lcom/google/android/exoplayer2/util/Util;->SDK_INT:I
|
|
|
|
const/16 v1, 0x18
|
|
|
|
const/4 v2, 0x1
|
|
|
|
if-ge v0, v1, :cond_0
|
|
|
|
return v2
|
|
|
|
.line 209
|
|
:cond_0
|
|
invoke-virtual {p0}, Landroid/net/ConnectivityManager;->getActiveNetwork()Landroid/net/Network;
|
|
|
|
move-result-object v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
return v1
|
|
|
|
.line 217
|
|
:cond_1
|
|
:try_start_0
|
|
invoke-virtual {p0, v0}, Landroid/net/ConnectivityManager;->getNetworkCapabilities(Landroid/net/Network;)Landroid/net/NetworkCapabilities;
|
|
|
|
move-result-object p0
|
|
|
|
if-eqz p0, :cond_2
|
|
|
|
const/16 v0, 0x10
|
|
|
|
.line 219
|
|
invoke-virtual {p0, v0}, Landroid/net/NetworkCapabilities;->hasCapability(I)Z
|
|
|
|
move-result p0
|
|
:try_end_0
|
|
.catch Ljava/lang/SecurityException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
if-eqz p0, :cond_2
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
move v2, v1
|
|
|
|
:catch_0
|
|
:goto_0
|
|
return v2
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public describeContents()I
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public equals(Ljava/lang/Object;)Z
|
|
.locals 4
|
|
|
|
const/4 v0, 0x1
|
|
|
|
if-ne p0, p1, :cond_0
|
|
|
|
return v0
|
|
|
|
:cond_0
|
|
const/4 v1, 0x0
|
|
|
|
if-eqz p1, :cond_3
|
|
|
|
.line 231
|
|
invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
move-result-object v2
|
|
|
|
const-class v3, Lcom/google/android/exoplayer2/scheduler/Requirements;
|
|
|
|
if-eq v3, v2, :cond_1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
iget v2, p0, Lcom/google/android/exoplayer2/scheduler/Requirements;->requirements:I
|
|
|
|
.line 234
|
|
check-cast p1, Lcom/google/android/exoplayer2/scheduler/Requirements;
|
|
|
|
iget p1, p1, Lcom/google/android/exoplayer2/scheduler/Requirements;->requirements:I
|
|
|
|
if-ne v2, p1, :cond_2
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
move v0, v1
|
|
|
|
:goto_0
|
|
return v0
|
|
|
|
:cond_3
|
|
:goto_1
|
|
return v1
|
|
.end method
|
|
|
|
.method public final getNotMetNetworkRequirements(Landroid/content/Context;)I
|
|
.locals 2
|
|
|
|
.line 152
|
|
invoke-virtual {p0}, Lcom/google/android/exoplayer2/scheduler/Requirements;->isNetworkRequired()Z
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return v1
|
|
|
|
:cond_0
|
|
const-string v0, "connectivity"
|
|
|
|
.line 158
|
|
invoke-virtual {p1, v0}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {p1}, Lcom/google/android/exoplayer2/util/Assertions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Landroid/net/ConnectivityManager;
|
|
|
|
.line 159
|
|
invoke-virtual {p1}, Landroid/net/ConnectivityManager;->getActiveNetworkInfo()Landroid/net/NetworkInfo;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
.line 161
|
|
invoke-virtual {v0}, Landroid/net/NetworkInfo;->isConnected()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
.line 162
|
|
invoke-static {p1}, Lcom/google/android/exoplayer2/scheduler/Requirements;->isInternetConnectivityValidated(Landroid/net/ConnectivityManager;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
goto :goto_0
|
|
|
|
.line 166
|
|
:cond_1
|
|
invoke-virtual {p0}, Lcom/google/android/exoplayer2/scheduler/Requirements;->isUnmeteredNetworkRequired()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
invoke-virtual {p1}, Landroid/net/ConnectivityManager;->isActiveNetworkMetered()Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_2
|
|
|
|
const/4 p1, 0x2
|
|
|
|
return p1
|
|
|
|
:cond_2
|
|
return v1
|
|
|
|
:cond_3
|
|
:goto_0
|
|
iget p1, p0, Lcom/google/android/exoplayer2/scheduler/Requirements;->requirements:I
|
|
|
|
and-int/lit8 p1, p1, 0x3
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public getNotMetRequirements(Landroid/content/Context;)I
|
|
.locals 2
|
|
|
|
.line 137
|
|
invoke-virtual {p0, p1}, Lcom/google/android/exoplayer2/scheduler/Requirements;->getNotMetNetworkRequirements(Landroid/content/Context;)I
|
|
|
|
move-result v0
|
|
|
|
.line 138
|
|
invoke-virtual {p0}, Lcom/google/android/exoplayer2/scheduler/Requirements;->isChargingRequired()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
invoke-virtual {p0, p1}, Lcom/google/android/exoplayer2/scheduler/Requirements;->isDeviceCharging(Landroid/content/Context;)Z
|
|
|
|
move-result v1
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
or-int/lit8 v0, v0, 0x8
|
|
|
|
.line 141
|
|
:cond_0
|
|
invoke-virtual {p0}, Lcom/google/android/exoplayer2/scheduler/Requirements;->isIdleRequired()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
invoke-virtual {p0, p1}, Lcom/google/android/exoplayer2/scheduler/Requirements;->isDeviceIdle(Landroid/content/Context;)Z
|
|
|
|
move-result v1
|
|
|
|
if-nez v1, :cond_1
|
|
|
|
or-int/lit8 v0, v0, 0x4
|
|
|
|
.line 144
|
|
:cond_1
|
|
invoke-virtual {p0}, Lcom/google/android/exoplayer2/scheduler/Requirements;->isStorageNotLowRequired()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
invoke-virtual {p0, p1}, Lcom/google/android/exoplayer2/scheduler/Requirements;->isStorageNotLow(Landroid/content/Context;)Z
|
|
|
|
move-result p1
|
|
|
|
if-nez p1, :cond_2
|
|
|
|
or-int/lit8 v0, v0, 0x10
|
|
|
|
:cond_2
|
|
return v0
|
|
.end method
|
|
|
|
.method public hashCode()I
|
|
.locals 1
|
|
|
|
iget v0, p0, Lcom/google/android/exoplayer2/scheduler/Requirements;->requirements:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public isChargingRequired()Z
|
|
.locals 1
|
|
|
|
iget v0, p0, Lcom/google/android/exoplayer2/scheduler/Requirements;->requirements:I
|
|
|
|
and-int/lit8 v0, v0, 0x8
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
return v0
|
|
.end method
|
|
|
|
.method public final isDeviceCharging(Landroid/content/Context;)Z
|
|
.locals 3
|
|
|
|
.line 175
|
|
new-instance v0, Landroid/content/IntentFilter;
|
|
|
|
const-string v1, "android.intent.action.BATTERY_CHANGED"
|
|
|
|
invoke-direct {v0, v1}, Landroid/content/IntentFilter;-><init>(Ljava/lang/String;)V
|
|
|
|
const/4 v1, 0x0
|
|
|
|
.line 176
|
|
invoke-virtual {p1, v1, v0}, Landroid/content/Context;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)Landroid/content/Intent;
|
|
|
|
move-result-object p1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
return v0
|
|
|
|
:cond_0
|
|
const-string v1, "status"
|
|
|
|
const/4 v2, -0x1
|
|
|
|
.line 181
|
|
invoke-virtual {p1, v1, v2}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I
|
|
|
|
move-result p1
|
|
|
|
const/4 v1, 0x2
|
|
|
|
if-eq p1, v1, :cond_1
|
|
|
|
const/4 v1, 0x5
|
|
|
|
if-ne p1, v1, :cond_2
|
|
|
|
:cond_1
|
|
const/4 v0, 0x1
|
|
|
|
:cond_2
|
|
return v0
|
|
.end method
|
|
|
|
.method public final isDeviceIdle(Landroid/content/Context;)Z
|
|
.locals 4
|
|
|
|
const-string v0, "power"
|
|
|
|
.line 188
|
|
invoke-virtual {p1, v0}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {p1}, Lcom/google/android/exoplayer2/util/Assertions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Landroid/os/PowerManager;
|
|
|
|
.line 189
|
|
sget v0, Lcom/google/android/exoplayer2/util/Util;->SDK_INT:I
|
|
|
|
const/16 v1, 0x17
|
|
|
|
if-lt v0, v1, :cond_0
|
|
|
|
.line 190
|
|
invoke-virtual {p1}, Landroid/os/PowerManager;->isDeviceIdleMode()Z
|
|
|
|
move-result p1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
const/16 v1, 0x14
|
|
|
|
const/4 v2, 0x0
|
|
|
|
const/4 v3, 0x1
|
|
|
|
if-lt v0, v1, :cond_2
|
|
|
|
.line 191
|
|
invoke-virtual {p1}, Landroid/os/PowerManager;->isInteractive()Z
|
|
|
|
move-result p1
|
|
|
|
if-nez p1, :cond_1
|
|
|
|
:goto_0
|
|
move p1, v3
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
move p1, v2
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
invoke-virtual {p1}, Landroid/os/PowerManager;->isScreenOn()Z
|
|
|
|
move-result p1
|
|
|
|
if-nez p1, :cond_1
|
|
|
|
goto :goto_0
|
|
|
|
:goto_1
|
|
return p1
|
|
.end method
|
|
|
|
.method public isIdleRequired()Z
|
|
.locals 1
|
|
|
|
iget v0, p0, Lcom/google/android/exoplayer2/scheduler/Requirements;->requirements:I
|
|
|
|
and-int/lit8 v0, v0, 0x4
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
return v0
|
|
.end method
|
|
|
|
.method public isNetworkRequired()Z
|
|
.locals 2
|
|
|
|
iget v0, p0, Lcom/google/android/exoplayer2/scheduler/Requirements;->requirements:I
|
|
|
|
const/4 v1, 0x1
|
|
|
|
and-int/2addr v0, v1
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v1, 0x0
|
|
|
|
:goto_0
|
|
return v1
|
|
.end method
|
|
|
|
.method public final isStorageNotLow(Landroid/content/Context;)Z
|
|
.locals 2
|
|
|
|
.line 195
|
|
new-instance v0, Landroid/content/IntentFilter;
|
|
|
|
const-string v1, "android.intent.action.DEVICE_STORAGE_LOW"
|
|
|
|
invoke-direct {v0, v1}, Landroid/content/IntentFilter;-><init>(Ljava/lang/String;)V
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-virtual {p1, v1, v0}, Landroid/content/Context;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)Landroid/content/Intent;
|
|
|
|
move-result-object p1
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
const/4 p1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 p1, 0x0
|
|
|
|
:goto_0
|
|
return p1
|
|
.end method
|
|
|
|
.method public isStorageNotLowRequired()Z
|
|
.locals 1
|
|
|
|
iget v0, p0, Lcom/google/android/exoplayer2/scheduler/Requirements;->requirements:I
|
|
|
|
and-int/lit8 v0, v0, 0x10
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
return v0
|
|
.end method
|
|
|
|
.method public isUnmeteredNetworkRequired()Z
|
|
.locals 1
|
|
|
|
iget v0, p0, Lcom/google/android/exoplayer2/scheduler/Requirements;->requirements:I
|
|
|
|
and-int/lit8 v0, v0, 0x2
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
return v0
|
|
.end method
|
|
|
|
.method public writeToParcel(Landroid/os/Parcel;I)V
|
|
.locals 0
|
|
|
|
iget p2, p0, Lcom/google/android/exoplayer2/scheduler/Requirements;->requirements:I
|
|
|
|
.line 251
|
|
invoke-virtual {p1, p2}, Landroid/os/Parcel;->writeInt(I)V
|
|
|
|
return-void
|
|
.end method
|