- 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
307 lines
5.9 KiB
Smali
307 lines
5.9 KiB
Smali
.class public final Lcom/google/zxing/oned/ITFWriter;
|
|
.super Lcom/google/zxing/oned/OneDimensionalCodeWriter;
|
|
.source "SourceFile"
|
|
|
|
|
|
# static fields
|
|
.field public static final END_PATTERN:[I
|
|
|
|
.field public static final PATTERNS:[[I
|
|
|
|
.field public static final START_PATTERN:[I
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 5
|
|
|
|
const/4 v0, 0x1
|
|
|
|
filled-new-array {v0, v0, v0, v0}, [I
|
|
|
|
move-result-object v1
|
|
|
|
sput-object v1, Lcom/google/zxing/oned/ITFWriter;->START_PATTERN:[I
|
|
|
|
const/4 v1, 0x3
|
|
|
|
filled-new-array {v1, v0, v0}, [I
|
|
|
|
move-result-object v2
|
|
|
|
sput-object v2, Lcom/google/zxing/oned/ITFWriter;->END_PATTERN:[I
|
|
|
|
const/16 v2, 0xa
|
|
|
|
new-array v2, v2, [[I
|
|
|
|
const/4 v3, 0x0
|
|
|
|
filled-new-array {v0, v0, v1, v1, v0}, [I
|
|
|
|
move-result-object v4
|
|
|
|
aput-object v4, v2, v3
|
|
|
|
filled-new-array {v1, v0, v0, v0, v1}, [I
|
|
|
|
move-result-object v3
|
|
|
|
aput-object v3, v2, v0
|
|
|
|
const/4 v3, 0x2
|
|
|
|
filled-new-array {v0, v1, v0, v0, v1}, [I
|
|
|
|
move-result-object v4
|
|
|
|
aput-object v4, v2, v3
|
|
|
|
filled-new-array {v1, v1, v0, v0, v0}, [I
|
|
|
|
move-result-object v3
|
|
|
|
aput-object v3, v2, v1
|
|
|
|
const/4 v3, 0x4
|
|
|
|
filled-new-array {v0, v0, v1, v0, v1}, [I
|
|
|
|
move-result-object v4
|
|
|
|
aput-object v4, v2, v3
|
|
|
|
const/4 v3, 0x5
|
|
|
|
filled-new-array {v1, v0, v1, v0, v0}, [I
|
|
|
|
move-result-object v4
|
|
|
|
aput-object v4, v2, v3
|
|
|
|
const/4 v3, 0x6
|
|
|
|
filled-new-array {v0, v1, v1, v0, v0}, [I
|
|
|
|
move-result-object v4
|
|
|
|
aput-object v4, v2, v3
|
|
|
|
const/4 v3, 0x7
|
|
|
|
filled-new-array {v0, v0, v0, v1, v1}, [I
|
|
|
|
move-result-object v4
|
|
|
|
aput-object v4, v2, v3
|
|
|
|
const/16 v3, 0x8
|
|
|
|
filled-new-array {v1, v0, v0, v1, v0}, [I
|
|
|
|
move-result-object v4
|
|
|
|
aput-object v4, v2, v3
|
|
|
|
const/16 v3, 0x9
|
|
|
|
filled-new-array {v0, v1, v0, v1, v0}, [I
|
|
|
|
move-result-object v0
|
|
|
|
aput-object v0, v2, v3
|
|
|
|
sput-object v2, Lcom/google/zxing/oned/ITFWriter;->PATTERNS:[[I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
.line 31
|
|
invoke-direct {p0}, Lcom/google/zxing/oned/OneDimensionalCodeWriter;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public encode(Ljava/lang/String;Lcom/google/zxing/BarcodeFormat;IILjava/util/Map;)Lcom/google/zxing/common/BitMatrix;
|
|
.locals 1
|
|
|
|
.line 60
|
|
sget-object v0, Lcom/google/zxing/BarcodeFormat;->ITF:Lcom/google/zxing/BarcodeFormat;
|
|
|
|
if-ne p2, v0, :cond_0
|
|
|
|
.line 64
|
|
invoke-super/range {p0 .. p5}, Lcom/google/zxing/oned/OneDimensionalCodeWriter;->encode(Ljava/lang/String;Lcom/google/zxing/BarcodeFormat;IILjava/util/Map;)Lcom/google/zxing/common/BitMatrix;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
|
|
.line 61
|
|
:cond_0
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
invoke-static {p2}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object p2
|
|
|
|
const-string p3, "Can only encode ITF, but got "
|
|
|
|
invoke-virtual {p3, p2}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public encode(Ljava/lang/String;)[Z
|
|
.locals 13
|
|
|
|
.line 69
|
|
invoke-virtual {p1}, Ljava/lang/String;->length()I
|
|
|
|
move-result v0
|
|
|
|
.line 70
|
|
rem-int/lit8 v1, v0, 0x2
|
|
|
|
if-nez v1, :cond_3
|
|
|
|
const/16 v1, 0x50
|
|
|
|
if-gt v0, v1, :cond_2
|
|
|
|
mul-int/lit8 v1, v0, 0x9
|
|
|
|
add-int/lit8 v1, v1, 0x9
|
|
|
|
.line 77
|
|
new-array v1, v1, [Z
|
|
|
|
sget-object v2, Lcom/google/zxing/oned/ITFWriter;->START_PATTERN:[I
|
|
|
|
const/4 v3, 0x0
|
|
|
|
const/4 v4, 0x1
|
|
|
|
.line 78
|
|
invoke-static {v1, v3, v2, v4}, Lcom/google/zxing/oned/OneDimensionalCodeWriter;->appendPattern([ZI[IZ)I
|
|
|
|
move-result v2
|
|
|
|
move v5, v3
|
|
|
|
:goto_0
|
|
if-ge v5, v0, :cond_1
|
|
|
|
.line 80
|
|
invoke-virtual {p1, v5}, Ljava/lang/String;->charAt(I)C
|
|
|
|
move-result v6
|
|
|
|
const/16 v7, 0xa
|
|
|
|
invoke-static {v6, v7}, Ljava/lang/Character;->digit(CI)I
|
|
|
|
move-result v6
|
|
|
|
add-int/lit8 v8, v5, 0x1
|
|
|
|
.line 81
|
|
invoke-virtual {p1, v8}, Ljava/lang/String;->charAt(I)C
|
|
|
|
move-result v8
|
|
|
|
invoke-static {v8, v7}, Ljava/lang/Character;->digit(CI)I
|
|
|
|
move-result v8
|
|
|
|
new-array v7, v7, [I
|
|
|
|
move v9, v3
|
|
|
|
:goto_1
|
|
const/4 v10, 0x5
|
|
|
|
if-ge v9, v10, :cond_0
|
|
|
|
mul-int/lit8 v10, v9, 0x2
|
|
|
|
sget-object v11, Lcom/google/zxing/oned/ITFWriter;->PATTERNS:[[I
|
|
|
|
.line 84
|
|
aget-object v12, v11, v6
|
|
|
|
aget v12, v12, v9
|
|
|
|
aput v12, v7, v10
|
|
|
|
add-int/2addr v10, v4
|
|
|
|
.line 85
|
|
aget-object v11, v11, v8
|
|
|
|
aget v11, v11, v9
|
|
|
|
aput v11, v7, v10
|
|
|
|
add-int/lit8 v9, v9, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
.line 87
|
|
:cond_0
|
|
invoke-static {v1, v2, v7, v4}, Lcom/google/zxing/oned/OneDimensionalCodeWriter;->appendPattern([ZI[IZ)I
|
|
|
|
move-result v6
|
|
|
|
add-int/2addr v2, v6
|
|
|
|
add-int/lit8 v5, v5, 0x2
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
sget-object p1, Lcom/google/zxing/oned/ITFWriter;->END_PATTERN:[I
|
|
|
|
.line 89
|
|
invoke-static {v1, v2, p1, v4}, Lcom/google/zxing/oned/OneDimensionalCodeWriter;->appendPattern([ZI[IZ)I
|
|
|
|
return-object v1
|
|
|
|
.line 74
|
|
:cond_2
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
const-string v1, "Requested contents should be less than 80 digits long, but got "
|
|
|
|
invoke-static {v0}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v1, v0}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
|
|
.line 71
|
|
:cond_3
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
const-string v0, "The length of the input should be even"
|
|
|
|
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
.end method
|