- 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
277 lines
5.5 KiB
Smali
277 lines
5.5 KiB
Smali
.class public final Lcom/tapjoy/internal/f;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
|
|
# instance fields
|
|
.field public final a:Ljava/lang/String;
|
|
|
|
.field public final b:I
|
|
|
|
.field public final c:I
|
|
|
|
.field public final d:Ljava/lang/String;
|
|
|
|
.field public final e:Ljava/lang/String;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Ljava/lang/String;)V
|
|
.locals 10
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 4
|
|
invoke-virtual {p1}, Ljava/lang/String;->length()I
|
|
|
|
move-result v0
|
|
|
|
const-string v1, "[A-Za-z0-9\\-_]*"
|
|
|
|
.line 5
|
|
invoke-virtual {p1, v1}, Ljava/lang/String;->matches(Ljava/lang/String;)Z
|
|
|
|
move-result v1
|
|
|
|
const-string v2, "The given API key was malformed."
|
|
|
|
if-eqz v1, :cond_6
|
|
|
|
const/16 v1, 0x3c
|
|
|
|
if-lt v0, v1, :cond_6
|
|
|
|
and-int/lit8 v0, v0, 0x3
|
|
|
|
if-nez v0, :cond_6
|
|
|
|
const/16 v0, 0x8
|
|
|
|
.line 13
|
|
:try_start_0
|
|
invoke-static {p1, v0}, Landroid/util/Base64;->decode(Ljava/lang/String;I)[B
|
|
|
|
move-result-object v1
|
|
:try_end_0
|
|
.catch Ljava/lang/IllegalArgumentException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
.line 17
|
|
array-length v2, v1
|
|
|
|
.line 18
|
|
invoke-static {v1}, Ljava/nio/ByteBuffer;->wrap([B)Ljava/nio/ByteBuffer;
|
|
|
|
move-result-object v3
|
|
|
|
.line 19
|
|
sget-object v4, Ljava/nio/ByteOrder;->BIG_ENDIAN:Ljava/nio/ByteOrder;
|
|
|
|
invoke-virtual {v3, v4}, Ljava/nio/ByteBuffer;->order(Ljava/nio/ByteOrder;)Ljava/nio/ByteBuffer;
|
|
|
|
.line 22
|
|
array-length v4, v1
|
|
|
|
add-int/lit8 v4, v4, -0x4
|
|
|
|
.line 23
|
|
invoke-virtual {v3, v4}, Ljava/nio/ByteBuffer;->getInt(I)I
|
|
|
|
move-result v5
|
|
|
|
.line 24
|
|
new-instance v6, Ljava/util/zip/CRC32;
|
|
|
|
invoke-direct {v6}, Ljava/util/zip/CRC32;-><init>()V
|
|
|
|
const/4 v7, 0x0
|
|
|
|
.line 25
|
|
invoke-virtual {v6, v1, v7, v4}, Ljava/util/zip/CRC32;->update([BII)V
|
|
|
|
.line 26
|
|
invoke-virtual {v6}, Ljava/util/zip/CRC32;->getValue()J
|
|
|
|
move-result-wide v8
|
|
|
|
long-to-int v1, v8
|
|
|
|
const-string v4, "The given API key was invalid."
|
|
|
|
if-ne v5, v1, :cond_5
|
|
|
|
iput-object p1, p0, Lcom/tapjoy/internal/f;->a:Ljava/lang/String;
|
|
|
|
.line 33
|
|
new-instance v1, Ljava/util/UUID;
|
|
|
|
invoke-virtual {v3, v7}, Ljava/nio/ByteBuffer;->getLong(I)J
|
|
|
|
move-result-wide v5
|
|
|
|
.line 34
|
|
invoke-virtual {v3, v0}, Ljava/nio/ByteBuffer;->getLong(I)J
|
|
|
|
move-result-wide v8
|
|
|
|
invoke-direct {v1, v5, v6, v8, v9}, Ljava/util/UUID;-><init>(JJ)V
|
|
|
|
invoke-virtual {v1}, Ljava/util/UUID;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lcom/tapjoy/internal/f;->d:Ljava/lang/String;
|
|
|
|
const/16 v0, 0x10
|
|
|
|
.line 35
|
|
invoke-virtual {v3, v0}, Ljava/nio/ByteBuffer;->get(I)B
|
|
|
|
move-result v0
|
|
|
|
iput v0, p0, Lcom/tapjoy/internal/f;->b:I
|
|
|
|
const/16 v1, 0x11
|
|
|
|
.line 36
|
|
invoke-virtual {v3, v1}, Ljava/nio/ByteBuffer;->get(I)B
|
|
|
|
move-result v1
|
|
|
|
const/4 v3, 0x1
|
|
|
|
new-array v5, v3, [I
|
|
|
|
.line 37
|
|
sget-object v6, Lcom/tapjoy/internal/h0;->a:[I
|
|
|
|
invoke-static {v6, v7, v5, v7, v3}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
|
|
|
|
aget v5, v5, v7
|
|
|
|
if-eqz v5, :cond_4
|
|
|
|
const/4 v6, 0x2
|
|
|
|
if-ne v6, v1, :cond_0
|
|
|
|
move v7, v5
|
|
|
|
:cond_0
|
|
iput v7, p0, Lcom/tapjoy/internal/f;->c:I
|
|
|
|
const/16 v1, 0x18
|
|
|
|
const/16 v5, 0x2c
|
|
|
|
.line 41
|
|
invoke-virtual {p1, v1, v5}, Ljava/lang/String;->substring(II)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
iput-object p1, p0, Lcom/tapjoy/internal/f;->e:Ljava/lang/String;
|
|
|
|
if-ne v0, v6, :cond_2
|
|
|
|
if-ne v7, v3, :cond_2
|
|
|
|
const/16 p1, 0x39
|
|
|
|
if-lt v2, p1, :cond_1
|
|
|
|
goto :goto_0
|
|
|
|
.line 46
|
|
:cond_1
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
invoke-direct {p1, v4}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
|
|
:cond_2
|
|
if-ne v0, v3, :cond_3
|
|
|
|
:goto_0
|
|
return-void
|
|
|
|
.line 49
|
|
:cond_3
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
const-string v0, "The given API key was not supported."
|
|
|
|
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
|
|
:cond_4
|
|
const/4 p1, 0x0
|
|
|
|
.line 39
|
|
throw p1
|
|
|
|
.line 50
|
|
:cond_5
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
invoke-direct {p1, v4}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
|
|
:catch_0
|
|
move-exception p1
|
|
|
|
.line 51
|
|
new-instance v0, Ljava/lang/IllegalArgumentException;
|
|
|
|
invoke-direct {v0, v2, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
throw v0
|
|
|
|
.line 52
|
|
:cond_6
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
invoke-direct {p1, v2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final equals(Ljava/lang/Object;)Z
|
|
.locals 1
|
|
|
|
.line 1
|
|
instance-of v0, p1, Lcom/tapjoy/internal/f;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iget-object v0, p0, Lcom/tapjoy/internal/f;->a:Ljava/lang/String;
|
|
|
|
.line 2
|
|
check-cast p1, Lcom/tapjoy/internal/f;
|
|
|
|
iget-object p1, p1, Lcom/tapjoy/internal/f;->a:Ljava/lang/String;
|
|
|
|
invoke-virtual {v0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
|
|
:cond_0
|
|
const/4 p1, 0x0
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public final toString()Ljava/lang/String;
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/tapjoy/internal/f;->a:Ljava/lang/String;
|
|
|
|
return-object v0
|
|
.end method
|