- 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
561 lines
12 KiB
Smali
561 lines
12 KiB
Smali
.class public final Landroidx/core/os/BuildCompat;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Landroidx/core/os/BuildCompat$Api30Impl;,
|
|
Landroidx/core/os/BuildCompat$PrereleaseSdkCheck;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final AD_SERVICES_EXTENSION_INT:I
|
|
.annotation build Landroidx/annotation/ChecksSdkIntAtLeast;
|
|
extension = 0xf4240
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public static final INSTANCE:Landroidx/core/os/BuildCompat;
|
|
|
|
.field public static final R_EXTENSION_INT:I
|
|
.annotation build Landroidx/annotation/ChecksSdkIntAtLeast;
|
|
extension = 0x1e
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public static final S_EXTENSION_INT:I
|
|
.annotation build Landroidx/annotation/ChecksSdkIntAtLeast;
|
|
extension = 0x1f
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public static final T_EXTENSION_INT:I
|
|
.annotation build Landroidx/annotation/ChecksSdkIntAtLeast;
|
|
extension = 0x21
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 5
|
|
|
|
new-instance v0, Landroidx/core/os/BuildCompat;
|
|
|
|
invoke-direct {v0}, Landroidx/core/os/BuildCompat;-><init>()V
|
|
|
|
sput-object v0, Landroidx/core/os/BuildCompat;->INSTANCE:Landroidx/core/os/BuildCompat;
|
|
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/4 v1, 0x0
|
|
|
|
const/16 v2, 0x1e
|
|
|
|
if-lt v0, v2, :cond_0
|
|
|
|
.line 292
|
|
sget-object v3, Landroidx/core/os/BuildCompat$Api30Impl;->INSTANCE:Landroidx/core/os/BuildCompat$Api30Impl;
|
|
|
|
invoke-virtual {v3, v2}, Landroidx/core/os/BuildCompat$Api30Impl;->getExtensionVersion(I)I
|
|
|
|
move-result v3
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move v3, v1
|
|
|
|
:goto_0
|
|
sput v3, Landroidx/core/os/BuildCompat;->R_EXTENSION_INT:I
|
|
|
|
if-lt v0, v2, :cond_1
|
|
|
|
.line 308
|
|
sget-object v3, Landroidx/core/os/BuildCompat$Api30Impl;->INSTANCE:Landroidx/core/os/BuildCompat$Api30Impl;
|
|
|
|
const/16 v4, 0x1f
|
|
|
|
invoke-virtual {v3, v4}, Landroidx/core/os/BuildCompat$Api30Impl;->getExtensionVersion(I)I
|
|
|
|
move-result v3
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
move v3, v1
|
|
|
|
:goto_1
|
|
sput v3, Landroidx/core/os/BuildCompat;->S_EXTENSION_INT:I
|
|
|
|
if-lt v0, v2, :cond_2
|
|
|
|
.line 324
|
|
sget-object v3, Landroidx/core/os/BuildCompat$Api30Impl;->INSTANCE:Landroidx/core/os/BuildCompat$Api30Impl;
|
|
|
|
const/16 v4, 0x21
|
|
|
|
invoke-virtual {v3, v4}, Landroidx/core/os/BuildCompat$Api30Impl;->getExtensionVersion(I)I
|
|
|
|
move-result v3
|
|
|
|
goto :goto_2
|
|
|
|
:cond_2
|
|
move v3, v1
|
|
|
|
:goto_2
|
|
sput v3, Landroidx/core/os/BuildCompat;->T_EXTENSION_INT:I
|
|
|
|
if-lt v0, v2, :cond_3
|
|
|
|
.line 340
|
|
sget-object v0, Landroidx/core/os/BuildCompat$Api30Impl;->INSTANCE:Landroidx/core/os/BuildCompat$Api30Impl;
|
|
|
|
const v1, 0xf4240
|
|
|
|
invoke-virtual {v0, v1}, Landroidx/core/os/BuildCompat$Api30Impl;->getExtensionVersion(I)I
|
|
|
|
move-result v1
|
|
|
|
:cond_3
|
|
sput v1, Landroidx/core/os/BuildCompat;->AD_SERVICES_EXTENSION_INT:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private constructor <init>()V
|
|
.locals 0
|
|
|
|
.line 30
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final isAtLeastN()Z
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/ChecksSdkIntAtLeast;
|
|
api = 0x18
|
|
.end annotation
|
|
|
|
const/4 v0, 0x1
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public static final isAtLeastNMR1()Z
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/ChecksSdkIntAtLeast;
|
|
api = 0x19
|
|
.end annotation
|
|
|
|
const/4 v0, 0x1
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public static final isAtLeastO()Z
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/ChecksSdkIntAtLeast;
|
|
api = 0x1a
|
|
.end annotation
|
|
|
|
const/4 v0, 0x1
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public static final isAtLeastOMR1()Z
|
|
.locals 2
|
|
.annotation build Landroidx/annotation/ChecksSdkIntAtLeast;
|
|
api = 0x1b
|
|
.end annotation
|
|
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x1b
|
|
|
|
if-lt v0, v1, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
return v0
|
|
.end method
|
|
|
|
.method public static final isAtLeastP()Z
|
|
.locals 2
|
|
.annotation build Landroidx/annotation/ChecksSdkIntAtLeast;
|
|
api = 0x1c
|
|
.end annotation
|
|
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x1c
|
|
|
|
if-lt v0, v1, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
return v0
|
|
.end method
|
|
|
|
.method public static final isAtLeastPreReleaseCodename(Ljava/lang/String;Ljava/lang/String;)Z
|
|
.locals 3
|
|
.annotation build Landroidx/annotation/RestrictTo;
|
|
value = {
|
|
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY:Landroidx/annotation/RestrictTo$Scope;
|
|
}
|
|
.end annotation
|
|
|
|
.annotation build Landroidx/annotation/VisibleForTesting;
|
|
.end annotation
|
|
|
|
const-string v0, "codename"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "buildCodename"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "REL"
|
|
|
|
.line 44
|
|
invoke-static {v0, p1}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
return v1
|
|
|
|
.line 49
|
|
:cond_0
|
|
sget-object v0, Ljava/util/Locale;->ROOT:Ljava/util/Locale;
|
|
|
|
invoke-virtual {p1, v0}, Ljava/lang/String;->toUpperCase(Ljava/util/Locale;)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
const-string v2, "this as java.lang.String).toUpperCase(Locale.ROOT)"
|
|
|
|
invoke-static {p1, v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->toUpperCase(Ljava/util/Locale;)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-static {p0, v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p1, p0}, Ljava/lang/String;->compareTo(Ljava/lang/String;)I
|
|
|
|
move-result p0
|
|
|
|
if-ltz p0, :cond_1
|
|
|
|
const/4 v1, 0x1
|
|
|
|
:cond_1
|
|
return v1
|
|
.end method
|
|
|
|
.method public static final isAtLeastQ()Z
|
|
.locals 2
|
|
.annotation build Landroidx/annotation/ChecksSdkIntAtLeast;
|
|
api = 0x1d
|
|
.end annotation
|
|
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x1d
|
|
|
|
if-lt v0, v1, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
return v0
|
|
.end method
|
|
|
|
.method public static final isAtLeastR()Z
|
|
.locals 2
|
|
.annotation build Landroidx/annotation/ChecksSdkIntAtLeast;
|
|
api = 0x1e
|
|
.end annotation
|
|
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x1e
|
|
|
|
if-lt v0, v1, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
return v0
|
|
.end method
|
|
|
|
.method public static final isAtLeastS()Z
|
|
.locals 2
|
|
.annotation build Landroidx/annotation/ChecksSdkIntAtLeast;
|
|
api = 0x1f
|
|
codename = "S"
|
|
.end annotation
|
|
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x1f
|
|
|
|
if-ge v0, v1, :cond_1
|
|
|
|
const/16 v1, 0x1e
|
|
|
|
if-lt v0, v1, :cond_0
|
|
|
|
.line 182
|
|
sget-object v0, Landroid/os/Build$VERSION;->CODENAME:Ljava/lang/String;
|
|
|
|
const-string v1, "CODENAME"
|
|
|
|
invoke-static {v0, v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v1, "S"
|
|
|
|
invoke-static {v1, v0}, Landroidx/core/os/BuildCompat;->isAtLeastPreReleaseCodename(Ljava/lang/String;Ljava/lang/String;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
:goto_0
|
|
const/4 v0, 0x1
|
|
|
|
:goto_1
|
|
return v0
|
|
.end method
|
|
|
|
.method public static final isAtLeastSv2()Z
|
|
.locals 2
|
|
.annotation build Landroidx/annotation/ChecksSdkIntAtLeast;
|
|
api = 0x20
|
|
codename = "Sv2"
|
|
.end annotation
|
|
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x20
|
|
|
|
if-ge v0, v1, :cond_1
|
|
|
|
const/16 v1, 0x1f
|
|
|
|
if-lt v0, v1, :cond_0
|
|
|
|
.line 202
|
|
sget-object v0, Landroid/os/Build$VERSION;->CODENAME:Ljava/lang/String;
|
|
|
|
const-string v1, "CODENAME"
|
|
|
|
invoke-static {v0, v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v1, "Sv2"
|
|
|
|
invoke-static {v1, v0}, Landroidx/core/os/BuildCompat;->isAtLeastPreReleaseCodename(Ljava/lang/String;Ljava/lang/String;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
:goto_0
|
|
const/4 v0, 0x1
|
|
|
|
:goto_1
|
|
return v0
|
|
.end method
|
|
|
|
.method public static final isAtLeastT()Z
|
|
.locals 2
|
|
.annotation build Landroidx/annotation/ChecksSdkIntAtLeast;
|
|
api = 0x21
|
|
codename = "Tiramisu"
|
|
.end annotation
|
|
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x21
|
|
|
|
if-ge v0, v1, :cond_1
|
|
|
|
const/16 v1, 0x20
|
|
|
|
if-lt v0, v1, :cond_0
|
|
|
|
.line 225
|
|
sget-object v0, Landroid/os/Build$VERSION;->CODENAME:Ljava/lang/String;
|
|
|
|
const-string v1, "CODENAME"
|
|
|
|
invoke-static {v0, v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v1, "Tiramisu"
|
|
|
|
invoke-static {v1, v0}, Landroidx/core/os/BuildCompat;->isAtLeastPreReleaseCodename(Ljava/lang/String;Ljava/lang/String;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
:goto_0
|
|
const/4 v0, 0x1
|
|
|
|
:goto_1
|
|
return v0
|
|
.end method
|
|
|
|
.method public static final isAtLeastU()Z
|
|
.locals 2
|
|
.annotation build Landroidx/annotation/ChecksSdkIntAtLeast;
|
|
api = 0x22
|
|
codename = "UpsideDownCake"
|
|
.end annotation
|
|
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x22
|
|
|
|
if-ge v0, v1, :cond_1
|
|
|
|
const/16 v1, 0x21
|
|
|
|
if-lt v0, v1, :cond_0
|
|
|
|
.line 248
|
|
sget-object v0, Landroid/os/Build$VERSION;->CODENAME:Ljava/lang/String;
|
|
|
|
const-string v1, "CODENAME"
|
|
|
|
invoke-static {v0, v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v1, "UpsideDownCake"
|
|
|
|
invoke-static {v1, v0}, Landroidx/core/os/BuildCompat;->isAtLeastPreReleaseCodename(Ljava/lang/String;Ljava/lang/String;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
:goto_0
|
|
const/4 v0, 0x1
|
|
|
|
:goto_1
|
|
return v0
|
|
.end method
|
|
|
|
.method public static final isAtLeastV()Z
|
|
.locals 2
|
|
.annotation build Landroidx/annotation/ChecksSdkIntAtLeast;
|
|
api = 0x23
|
|
codename = "VanillaIceCream"
|
|
.end annotation
|
|
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x23
|
|
|
|
if-ge v0, v1, :cond_1
|
|
|
|
const/16 v1, 0x22
|
|
|
|
if-lt v0, v1, :cond_0
|
|
|
|
.line 264
|
|
sget-object v0, Landroid/os/Build$VERSION;->CODENAME:Ljava/lang/String;
|
|
|
|
const-string v1, "CODENAME"
|
|
|
|
invoke-static {v0, v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v1, "VanillaIceCream"
|
|
|
|
invoke-static {v1, v0}, Landroidx/core/os/BuildCompat;->isAtLeastPreReleaseCodename(Ljava/lang/String;Ljava/lang/String;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
:goto_0
|
|
const/4 v0, 0x1
|
|
|
|
:goto_1
|
|
return v0
|
|
.end method
|