- 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
301 lines
6.1 KiB
Smali
301 lines
6.1 KiB
Smali
.class Landroidx/biometric/DeviceUtils;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
|
|
# direct methods
|
|
.method private constructor <init>()V
|
|
.locals 0
|
|
|
|
.line 29
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static canAssumeStrongBiometrics(Landroid/content/Context;Ljava/lang/String;)Z
|
|
.locals 2
|
|
.param p0 # Landroid/content/Context;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x1e
|
|
|
|
if-lt v0, v1, :cond_0
|
|
|
|
const/4 p0, 0x0
|
|
|
|
return p0
|
|
|
|
:cond_0
|
|
sget v0, Landroidx/biometric/R$array;->assume_strong_biometrics_models:I
|
|
|
|
.line 99
|
|
invoke-static {p0, p1, v0}, Landroidx/biometric/DeviceUtils;->isModelInList(Landroid/content/Context;Ljava/lang/String;I)Z
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method private static isModelInList(Landroid/content/Context;Ljava/lang/String;I)Z
|
|
.locals 3
|
|
.param p0 # Landroid/content/Context;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
return v0
|
|
|
|
.line 160
|
|
:cond_0
|
|
invoke-virtual {p0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {p0, p2}, Landroid/content/res/Resources;->getStringArray(I)[Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
.line 161
|
|
array-length p2, p0
|
|
|
|
move v1, v0
|
|
|
|
:goto_0
|
|
if-ge v1, p2, :cond_2
|
|
|
|
aget-object v2, p0, v1
|
|
|
|
.line 162
|
|
invoke-virtual {p1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
const/4 p0, 0x1
|
|
|
|
return p0
|
|
|
|
:cond_1
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
return v0
|
|
.end method
|
|
|
|
.method private static isModelInPrefixList(Landroid/content/Context;Ljava/lang/String;I)Z
|
|
.locals 3
|
|
.param p0 # Landroid/content/Context;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
return v0
|
|
|
|
.line 138
|
|
:cond_0
|
|
invoke-virtual {p0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {p0, p2}, Landroid/content/res/Resources;->getStringArray(I)[Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
.line 139
|
|
array-length p2, p0
|
|
|
|
move v1, v0
|
|
|
|
:goto_0
|
|
if-ge v1, p2, :cond_2
|
|
|
|
aget-object v2, p0, v1
|
|
|
|
.line 140
|
|
invoke-virtual {p1, v2}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
const/4 p0, 0x1
|
|
|
|
return p0
|
|
|
|
:cond_1
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
return v0
|
|
.end method
|
|
|
|
.method private static isVendorInList(Landroid/content/Context;Ljava/lang/String;I)Z
|
|
.locals 3
|
|
.param p0 # Landroid/content/Context;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
return v0
|
|
|
|
.line 116
|
|
:cond_0
|
|
invoke-virtual {p0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {p0, p2}, Landroid/content/res/Resources;->getStringArray(I)[Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
.line 117
|
|
array-length p2, p0
|
|
|
|
move v1, v0
|
|
|
|
:goto_0
|
|
if-ge v1, p2, :cond_2
|
|
|
|
aget-object v2, p0, v1
|
|
|
|
.line 118
|
|
invoke-virtual {p1, v2}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
const/4 p0, 0x1
|
|
|
|
return p0
|
|
|
|
:cond_1
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
return v0
|
|
.end method
|
|
|
|
.method public static shouldDelayShowingPrompt(Landroid/content/Context;Ljava/lang/String;)Z
|
|
.locals 2
|
|
.param p0 # Landroid/content/Context;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x1d
|
|
|
|
if-eq v0, v1, :cond_0
|
|
|
|
const/4 p0, 0x0
|
|
|
|
return p0
|
|
|
|
:cond_0
|
|
sget v0, Landroidx/biometric/R$array;->delay_showing_prompt_models:I
|
|
|
|
.line 83
|
|
invoke-static {p0, p1, v0}, Landroidx/biometric/DeviceUtils;->isModelInList(Landroid/content/Context;Ljava/lang/String;I)Z
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public static shouldHideFingerprintDialog(Landroid/content/Context;Ljava/lang/String;)Z
|
|
.locals 2
|
|
.param p0 # Landroid/content/Context;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x1c
|
|
|
|
if-eq v0, v1, :cond_0
|
|
|
|
const/4 p0, 0x0
|
|
|
|
return p0
|
|
|
|
:cond_0
|
|
sget v0, Landroidx/biometric/R$array;->hide_fingerprint_instantly_prefixes:I
|
|
|
|
.line 67
|
|
invoke-static {p0, p1, v0}, Landroidx/biometric/DeviceUtils;->isModelInPrefixList(Landroid/content/Context;Ljava/lang/String;I)Z
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public static shouldUseFingerprintForCrypto(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)Z
|
|
.locals 3
|
|
.param p0 # Landroid/content/Context;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x1c
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-eq v0, v1, :cond_0
|
|
|
|
return v2
|
|
|
|
:cond_0
|
|
sget v0, Landroidx/biometric/R$array;->crypto_fingerprint_fallback_vendors:I
|
|
|
|
.line 49
|
|
invoke-static {p0, p1, v0}, Landroidx/biometric/DeviceUtils;->isVendorInList(Landroid/content/Context;Ljava/lang/String;I)Z
|
|
|
|
move-result p1
|
|
|
|
if-nez p1, :cond_1
|
|
|
|
sget p1, Landroidx/biometric/R$array;->crypto_fingerprint_fallback_prefixes:I
|
|
|
|
.line 50
|
|
invoke-static {p0, p2, p1}, Landroidx/biometric/DeviceUtils;->isModelInPrefixList(Landroid/content/Context;Ljava/lang/String;I)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_2
|
|
|
|
:cond_1
|
|
const/4 v2, 0x1
|
|
|
|
:cond_2
|
|
return v2
|
|
.end method
|