- 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
148 lines
3.5 KiB
Smali
148 lines
3.5 KiB
Smali
.class public final Landroidx/work/impl/constraints/controllers/NetworkUnmeteredController;
|
|
.super Landroidx/work/impl/constraints/controllers/BaseConstraintController;
|
|
.source "SourceFile"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Landroidx/work/impl/constraints/controllers/BaseConstraintController<",
|
|
"Landroidx/work/impl/constraints/NetworkState;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field private final reason:I
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroidx/work/impl/constraints/trackers/ConstraintTracker;)V
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroidx/work/impl/constraints/trackers/ConstraintTracker<",
|
|
"Landroidx/work/impl/constraints/NetworkState;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
const-string v0, "tracker"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 93
|
|
invoke-direct {p0, p1}, Landroidx/work/impl/constraints/controllers/BaseConstraintController;-><init>(Landroidx/work/impl/constraints/trackers/ConstraintTracker;)V
|
|
|
|
const/4 p1, 0x7
|
|
|
|
iput p1, p0, Landroidx/work/impl/constraints/controllers/NetworkUnmeteredController;->reason:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public getReason()I
|
|
.locals 1
|
|
|
|
iget v0, p0, Landroidx/work/impl/constraints/controllers/NetworkUnmeteredController;->reason:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public hasConstraint(Landroidx/work/impl/model/WorkSpec;)Z
|
|
.locals 2
|
|
|
|
const-string v0, "workSpec"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 97
|
|
iget-object p1, p1, Landroidx/work/impl/model/WorkSpec;->constraints:Landroidx/work/Constraints;
|
|
|
|
invoke-virtual {p1}, Landroidx/work/Constraints;->getRequiredNetworkType()Landroidx/work/NetworkType;
|
|
|
|
move-result-object p1
|
|
|
|
.line 98
|
|
sget-object v0, Landroidx/work/NetworkType;->UNMETERED:Landroidx/work/NetworkType;
|
|
|
|
if-eq p1, v0, :cond_1
|
|
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x1e
|
|
|
|
if-lt v0, v1, :cond_0
|
|
|
|
.line 99
|
|
sget-object v0, Landroidx/work/NetworkType;->TEMPORARILY_UNMETERED:Landroidx/work/NetworkType;
|
|
|
|
if-ne p1, v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 p1, 0x0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
:goto_0
|
|
const/4 p1, 0x1
|
|
|
|
:goto_1
|
|
return p1
|
|
.end method
|
|
|
|
.method public isConstrained(Landroidx/work/impl/constraints/NetworkState;)Z
|
|
.locals 1
|
|
|
|
const-string v0, "value"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 102
|
|
invoke-virtual {p1}, Landroidx/work/impl/constraints/NetworkState;->isConnected()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
invoke-virtual {p1}, Landroidx/work/impl/constraints/NetworkState;->isMetered()Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 p1, 0x0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
:goto_0
|
|
const/4 p1, 0x1
|
|
|
|
:goto_1
|
|
return p1
|
|
.end method
|
|
|
|
.method public bridge synthetic isConstrained(Ljava/lang/Object;)Z
|
|
.locals 0
|
|
|
|
.line 92
|
|
check-cast p1, Landroidx/work/impl/constraints/NetworkState;
|
|
|
|
invoke-virtual {p0, p1}, Landroidx/work/impl/constraints/controllers/NetworkUnmeteredController;->isConstrained(Landroidx/work/impl/constraints/NetworkState;)Z
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|