- 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
125 lines
2.9 KiB
Smali
125 lines
2.9 KiB
Smali
.class public Lcom/facebook/ads/internal/util/common/FbValidationUtils;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
|
|
# static fields
|
|
.field public static final DEBUG_FB_PACKAGE:Ljava/lang/String; = "com.facebook.wakizashi"
|
|
|
|
.field public static final FB4A_SHA256_HASH:Ljava/lang/String; = "4/nh4M+Z0OVqBVumXiQbM5n3zqUkMmsM3W7BMn7Q/cE="
|
|
|
|
.field public static final FB_PACKAGE:Ljava/lang/String; = "com.facebook.katana"
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
.line 12
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private static calculateSHA256Fingerprint([B)Ljava/lang/String;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/security/NoSuchAlgorithmException;
|
|
}
|
|
.end annotation
|
|
|
|
const-string v0, "SHA256"
|
|
|
|
.line 40
|
|
invoke-static {v0}, Ljava/security/MessageDigest;->getInstance(Ljava/lang/String;)Ljava/security/MessageDigest;
|
|
|
|
move-result-object v0
|
|
|
|
.line 41
|
|
invoke-virtual {v0, p0}, Ljava/security/MessageDigest;->digest([B)[B
|
|
|
|
move-result-object p0
|
|
|
|
const/4 v0, 0x2
|
|
|
|
.line 42
|
|
invoke-static {p0, v0}, Landroid/util/Base64;->encodeToString([BI)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static getSigningCertificate(Landroid/content/pm/PackageInfo;)Ljava/lang/String;
|
|
.locals 2
|
|
.param p0 # Landroid/content/pm/PackageInfo;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
const-string v0, ""
|
|
|
|
if-nez p0, :cond_0
|
|
|
|
return-object v0
|
|
|
|
.line 23
|
|
:cond_0
|
|
:try_start_0
|
|
iget-object p0, p0, Landroid/content/pm/PackageInfo;->signatures:[Landroid/content/pm/Signature;
|
|
|
|
.line 25
|
|
array-length v1, p0
|
|
|
|
if-nez v1, :cond_1
|
|
|
|
return-object v0
|
|
|
|
:cond_1
|
|
const/4 v1, 0x0
|
|
|
|
.line 30
|
|
aget-object p0, p0, v1
|
|
|
|
invoke-virtual {p0}, Landroid/content/pm/Signature;->toByteArray()[B
|
|
|
|
move-result-object p0
|
|
|
|
.line 31
|
|
invoke-static {p0}, Lcom/facebook/ads/internal/util/common/FbValidationUtils;->calculateSHA256Fingerprint([B)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
:try_end_0
|
|
.catch Ljava/security/NoSuchAlgorithmException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
return-object p0
|
|
|
|
:catch_0
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static isFbSigningCertificateValid(Ljava/lang/String;)Z
|
|
.locals 1
|
|
|
|
const-string v0, "4/nh4M+Z0OVqBVumXiQbM5n3zqUkMmsM3W7BMn7Q/cE="
|
|
|
|
.line 46
|
|
invoke-static {p0, v0}, Lcom/facebook/ads/internal/util/common/FbValidationUtils;->isFbSigningCertificateValid(Ljava/lang/String;Ljava/lang/String;)Z
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public static isFbSigningCertificateValid(Ljava/lang/String;Ljava/lang/String;)Z
|
|
.locals 0
|
|
|
|
.line 50
|
|
invoke-virtual {p1, p0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
.end method
|