- 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
527 lines
11 KiB
Smali
527 lines
11 KiB
Smali
.class public final Lcom/facebook/appevents/codeless/internal/SensitiveUserDataUtils;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
|
|
# static fields
|
|
.field public static final INSTANCE:Lcom/facebook/appevents/codeless/internal/SensitiveUserDataUtils;
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 1
|
|
|
|
new-instance v0, Lcom/facebook/appevents/codeless/internal/SensitiveUserDataUtils;
|
|
|
|
invoke-direct {v0}, Lcom/facebook/appevents/codeless/internal/SensitiveUserDataUtils;-><init>()V
|
|
|
|
sput-object v0, Lcom/facebook/appevents/codeless/internal/SensitiveUserDataUtils;->INSTANCE:Lcom/facebook/appevents/codeless/internal/SensitiveUserDataUtils;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private constructor <init>()V
|
|
.locals 0
|
|
|
|
.line 18
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private final isCreditCard(Landroid/widget/TextView;)Z
|
|
.locals 7
|
|
|
|
invoke-static {p0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->isObjectCrashing(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
return v1
|
|
|
|
.line 69
|
|
:cond_0
|
|
:try_start_0
|
|
invoke-static {p1}, Lcom/facebook/appevents/codeless/internal/ViewHierarchy;->getTextOfView(Landroid/view/View;)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
const-string v0, "\\s"
|
|
|
|
new-instance v2, Lkotlin/text/Regex;
|
|
|
|
invoke-direct {v2, v0}, Lkotlin/text/Regex;-><init>(Ljava/lang/String;)V
|
|
|
|
const-string v0, ""
|
|
|
|
invoke-virtual {v2, p1, v0}, Lkotlin/text/Regex;->replace(Ljava/lang/CharSequence;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
.line 70
|
|
invoke-virtual {p1}, Ljava/lang/String;->length()I
|
|
|
|
move-result v0
|
|
|
|
const/16 v2, 0xc
|
|
|
|
if-lt v0, v2, :cond_6
|
|
|
|
const/16 v2, 0x13
|
|
|
|
if-le v0, v2, :cond_1
|
|
|
|
goto :goto_3
|
|
|
|
:cond_1
|
|
const/4 v2, 0x1
|
|
|
|
sub-int/2addr v0, v2
|
|
|
|
if-ltz v0, :cond_5
|
|
|
|
move v3, v1
|
|
|
|
move v4, v3
|
|
|
|
:goto_0
|
|
add-int/lit8 v5, v0, -0x1
|
|
|
|
.line 77
|
|
invoke-virtual {p1, v0}, Ljava/lang/String;->charAt(I)C
|
|
|
|
move-result v0
|
|
|
|
.line 78
|
|
invoke-static {v0}, Ljava/lang/Character;->isDigit(C)Z
|
|
|
|
move-result v6
|
|
|
|
if-nez v6, :cond_2
|
|
|
|
return v1
|
|
|
|
.line 81
|
|
:cond_2
|
|
invoke-static {v0}, Lkotlin/text/CharsKt;->digitToInt(C)I
|
|
|
|
move-result v0
|
|
|
|
if-eqz v3, :cond_3
|
|
|
|
mul-int/lit8 v0, v0, 0x2
|
|
|
|
const/16 v6, 0x9
|
|
|
|
if-le v0, v6, :cond_3
|
|
|
|
.line 85
|
|
rem-int/lit8 v0, v0, 0xa
|
|
|
|
add-int/2addr v0, v2
|
|
|
|
goto :goto_1
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
goto :goto_4
|
|
|
|
:cond_3
|
|
:goto_1
|
|
add-int/2addr v4, v0
|
|
|
|
xor-int/lit8 v3, v3, 0x1
|
|
|
|
if-gez v5, :cond_4
|
|
|
|
goto :goto_2
|
|
|
|
:cond_4
|
|
move v0, v5
|
|
|
|
goto :goto_0
|
|
|
|
:cond_5
|
|
move v4, v1
|
|
|
|
.line 91
|
|
:goto_2
|
|
rem-int/lit8 v4, v4, 0xa
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
if-nez v4, :cond_6
|
|
|
|
move v1, v2
|
|
|
|
:cond_6
|
|
:goto_3
|
|
return v1
|
|
|
|
:goto_4
|
|
invoke-static {p1, p0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->handleThrowable(Ljava/lang/Throwable;Ljava/lang/Object;)V
|
|
|
|
return v1
|
|
.end method
|
|
|
|
.method private final isEmail(Landroid/widget/TextView;)Z
|
|
.locals 3
|
|
|
|
invoke-static {p0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->isObjectCrashing(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
return v1
|
|
|
|
.line 43
|
|
:cond_0
|
|
:try_start_0
|
|
invoke-virtual {p1}, Landroid/widget/TextView;->getInputType()I
|
|
|
|
move-result v0
|
|
|
|
const/16 v2, 0x20
|
|
|
|
if-ne v0, v2, :cond_1
|
|
|
|
const/4 p1, 0x1
|
|
|
|
return p1
|
|
|
|
.line 47
|
|
:cond_1
|
|
invoke-static {p1}, Lcom/facebook/appevents/codeless/internal/ViewHierarchy;->getTextOfView(Landroid/view/View;)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
if-eqz p1, :cond_3
|
|
|
|
.line 48
|
|
invoke-interface {p1}, Ljava/lang/CharSequence;->length()I
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_2
|
|
|
|
goto :goto_0
|
|
|
|
.line 50
|
|
:cond_2
|
|
sget-object v0, Landroid/util/Patterns;->EMAIL_ADDRESS:Ljava/util/regex/Pattern;
|
|
|
|
invoke-virtual {v0, p1}, Ljava/util/regex/Pattern;->matcher(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Ljava/util/regex/Matcher;->matches()Z
|
|
|
|
move-result v1
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
goto :goto_0
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_3
|
|
:goto_0
|
|
return v1
|
|
|
|
.line 48
|
|
:goto_1
|
|
invoke-static {p1, p0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->handleThrowable(Ljava/lang/Throwable;Ljava/lang/Object;)V
|
|
|
|
return v1
|
|
.end method
|
|
|
|
.method private final isPassword(Landroid/widget/TextView;)Z
|
|
.locals 3
|
|
|
|
invoke-static {p0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->isObjectCrashing(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
return v1
|
|
|
|
.line 34
|
|
:cond_0
|
|
:try_start_0
|
|
invoke-virtual {p1}, Landroid/widget/TextView;->getInputType()I
|
|
|
|
move-result v0
|
|
|
|
const/16 v2, 0x80
|
|
|
|
if-ne v0, v2, :cond_1
|
|
|
|
const/4 p1, 0x1
|
|
|
|
return p1
|
|
|
|
.line 38
|
|
:cond_1
|
|
invoke-virtual {p1}, Landroid/widget/TextView;->getTransformationMethod()Landroid/text/method/TransformationMethod;
|
|
|
|
move-result-object p1
|
|
|
|
.line 39
|
|
instance-of p1, p1, Landroid/text/method/PasswordTransformationMethod;
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
return p1
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
invoke-static {p1, p0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->handleThrowable(Ljava/lang/Throwable;Ljava/lang/Object;)V
|
|
|
|
return v1
|
|
.end method
|
|
|
|
.method private final isPersonName(Landroid/widget/TextView;)Z
|
|
.locals 2
|
|
|
|
invoke-static {p0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->isObjectCrashing(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
return v1
|
|
|
|
.line 54
|
|
:cond_0
|
|
:try_start_0
|
|
invoke-virtual {p1}, Landroid/widget/TextView;->getInputType()I
|
|
|
|
move-result p1
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
const/16 v0, 0x60
|
|
|
|
if-ne p1, v0, :cond_1
|
|
|
|
const/4 v1, 0x1
|
|
|
|
:cond_1
|
|
return v1
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
.line 55
|
|
invoke-static {p1, p0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->handleThrowable(Ljava/lang/Throwable;Ljava/lang/Object;)V
|
|
|
|
return v1
|
|
.end method
|
|
|
|
.method private final isPhoneNumber(Landroid/widget/TextView;)Z
|
|
.locals 2
|
|
|
|
invoke-static {p0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->isObjectCrashing(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
return v1
|
|
|
|
.line 64
|
|
:cond_0
|
|
:try_start_0
|
|
invoke-virtual {p1}, Landroid/widget/TextView;->getInputType()I
|
|
|
|
move-result p1
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
const/4 v0, 0x3
|
|
|
|
if-ne p1, v0, :cond_1
|
|
|
|
const/4 v1, 0x1
|
|
|
|
:cond_1
|
|
return v1
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
.line 65
|
|
invoke-static {p1, p0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->handleThrowable(Ljava/lang/Throwable;Ljava/lang/Object;)V
|
|
|
|
return v1
|
|
.end method
|
|
|
|
.method private final isPostalAddress(Landroid/widget/TextView;)Z
|
|
.locals 2
|
|
|
|
invoke-static {p0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->isObjectCrashing(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
return v1
|
|
|
|
.line 59
|
|
:cond_0
|
|
:try_start_0
|
|
invoke-virtual {p1}, Landroid/widget/TextView;->getInputType()I
|
|
|
|
move-result p1
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
const/16 v0, 0x70
|
|
|
|
if-ne p1, v0, :cond_1
|
|
|
|
const/4 v1, 0x1
|
|
|
|
:cond_1
|
|
return v1
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
.line 60
|
|
invoke-static {p1, p0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->handleThrowable(Ljava/lang/Throwable;Ljava/lang/Object;)V
|
|
|
|
return v1
|
|
.end method
|
|
|
|
.method public static final isSensitiveUserData(Landroid/view/View;)Z
|
|
.locals 4
|
|
|
|
const-class v0, Lcom/facebook/appevents/codeless/internal/SensitiveUserDataUtils;
|
|
|
|
invoke-static {v0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->isObjectCrashing(Ljava/lang/Object;)Z
|
|
|
|
move-result v1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
return v2
|
|
|
|
.line 22
|
|
:cond_0
|
|
:try_start_0
|
|
instance-of v1, p0, Landroid/widget/TextView;
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
sget-object v1, Lcom/facebook/appevents/codeless/internal/SensitiveUserDataUtils;->INSTANCE:Lcom/facebook/appevents/codeless/internal/SensitiveUserDataUtils;
|
|
|
|
.line 23
|
|
move-object v3, p0
|
|
|
|
check-cast v3, Landroid/widget/TextView;
|
|
|
|
invoke-direct {v1, v3}, Lcom/facebook/appevents/codeless/internal/SensitiveUserDataUtils;->isPassword(Landroid/widget/TextView;)Z
|
|
|
|
move-result v3
|
|
|
|
if-nez v3, :cond_1
|
|
|
|
.line 24
|
|
move-object v3, p0
|
|
|
|
check-cast v3, Landroid/widget/TextView;
|
|
|
|
invoke-direct {v1, v3}, Lcom/facebook/appevents/codeless/internal/SensitiveUserDataUtils;->isCreditCard(Landroid/widget/TextView;)Z
|
|
|
|
move-result v3
|
|
|
|
if-nez v3, :cond_1
|
|
|
|
.line 25
|
|
move-object v3, p0
|
|
|
|
check-cast v3, Landroid/widget/TextView;
|
|
|
|
invoke-direct {v1, v3}, Lcom/facebook/appevents/codeless/internal/SensitiveUserDataUtils;->isPersonName(Landroid/widget/TextView;)Z
|
|
|
|
move-result v3
|
|
|
|
if-nez v3, :cond_1
|
|
|
|
.line 26
|
|
move-object v3, p0
|
|
|
|
check-cast v3, Landroid/widget/TextView;
|
|
|
|
invoke-direct {v1, v3}, Lcom/facebook/appevents/codeless/internal/SensitiveUserDataUtils;->isPostalAddress(Landroid/widget/TextView;)Z
|
|
|
|
move-result v3
|
|
|
|
if-nez v3, :cond_1
|
|
|
|
.line 27
|
|
move-object v3, p0
|
|
|
|
check-cast v3, Landroid/widget/TextView;
|
|
|
|
invoke-direct {v1, v3}, Lcom/facebook/appevents/codeless/internal/SensitiveUserDataUtils;->isPhoneNumber(Landroid/widget/TextView;)Z
|
|
|
|
move-result v3
|
|
|
|
if-nez v3, :cond_1
|
|
|
|
.line 28
|
|
check-cast p0, Landroid/widget/TextView;
|
|
|
|
invoke-direct {v1, p0}, Lcom/facebook/appevents/codeless/internal/SensitiveUserDataUtils;->isEmail(Landroid/widget/TextView;)Z
|
|
|
|
move-result p0
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
if-eqz p0, :cond_2
|
|
|
|
goto :goto_0
|
|
|
|
:catchall_0
|
|
move-exception p0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
:goto_0
|
|
const/4 v2, 0x1
|
|
|
|
:cond_2
|
|
return v2
|
|
|
|
.line 30
|
|
:goto_1
|
|
invoke-static {p0, v0}, Lcom/facebook/internal/instrument/crashshield/CrashShieldHandler;->handleThrowable(Ljava/lang/Throwable;Ljava/lang/Object;)V
|
|
|
|
return v2
|
|
.end method
|