- 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
945 lines
18 KiB
Smali
945 lines
18 KiB
Smali
.class public final Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
|
|
# static fields
|
|
.field public static final EMPTY_RULE:[Ljava/lang/String;
|
|
|
|
.field public static final PREVAILING_RULE:[Ljava/lang/String;
|
|
|
|
.field public static final WILDCARD_LABEL:[B
|
|
|
|
.field public static final instance:Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;
|
|
|
|
|
|
# instance fields
|
|
.field public final listRead:Ljava/util/concurrent/atomic/AtomicBoolean;
|
|
|
|
.field public publicSuffixExceptionListBytes:[B
|
|
|
|
.field public publicSuffixListBytes:[B
|
|
|
|
.field public final readCompleteLatch:Ljava/util/concurrent/CountDownLatch;
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 3
|
|
|
|
const/4 v0, 0x1
|
|
|
|
new-array v0, v0, [B
|
|
|
|
const/16 v1, 0x2a
|
|
|
|
const/4 v2, 0x0
|
|
|
|
aput-byte v1, v0, v2
|
|
|
|
sput-object v0, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->WILDCARD_LABEL:[B
|
|
|
|
new-array v0, v2, [Ljava/lang/String;
|
|
|
|
sput-object v0, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->EMPTY_RULE:[Ljava/lang/String;
|
|
|
|
const-string v0, "*"
|
|
|
|
filled-new-array {v0}, [Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
sput-object v0, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->PREVAILING_RULE:[Ljava/lang/String;
|
|
|
|
.line 44
|
|
new-instance v0, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;
|
|
|
|
invoke-direct {v0}, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;-><init>()V
|
|
|
|
sput-object v0, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->instance:Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>()V
|
|
.locals 2
|
|
|
|
.line 35
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 47
|
|
new-instance v0, Ljava/util/concurrent/atomic/AtomicBoolean;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-direct {v0, v1}, Ljava/util/concurrent/atomic/AtomicBoolean;-><init>(Z)V
|
|
|
|
iput-object v0, p0, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->listRead:Ljava/util/concurrent/atomic/AtomicBoolean;
|
|
|
|
.line 50
|
|
new-instance v0, Ljava/util/concurrent/CountDownLatch;
|
|
|
|
const/4 v1, 0x1
|
|
|
|
invoke-direct {v0, v1}, Ljava/util/concurrent/CountDownLatch;-><init>(I)V
|
|
|
|
iput-object v0, p0, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->readCompleteLatch:Ljava/util/concurrent/CountDownLatch;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static binarySearchBytes([B[[BI)Ljava/lang/String;
|
|
.locals 18
|
|
|
|
move-object/from16 v0, p0
|
|
|
|
move-object/from16 v1, p1
|
|
|
|
.line 198
|
|
array-length v2, v0
|
|
|
|
const/4 v4, 0x0
|
|
|
|
:goto_0
|
|
if-ge v4, v2, :cond_c
|
|
|
|
add-int v5, v4, v2
|
|
|
|
.line 201
|
|
div-int/lit8 v5, v5, 0x2
|
|
|
|
:goto_1
|
|
const/16 v6, 0xa
|
|
|
|
const/4 v7, -0x1
|
|
|
|
if-le v5, v7, :cond_0
|
|
|
|
.line 204
|
|
aget-byte v8, v0, v5
|
|
|
|
if-eq v8, v6, :cond_0
|
|
|
|
add-int/lit8 v5, v5, -0x1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
add-int/lit8 v8, v5, 0x1
|
|
|
|
const/4 v9, 0x1
|
|
|
|
move v10, v9
|
|
|
|
:goto_2
|
|
add-int v11, v8, v10
|
|
|
|
.line 211
|
|
aget-byte v12, v0, v11
|
|
|
|
if-eq v12, v6, :cond_1
|
|
|
|
add-int/lit8 v10, v10, 0x1
|
|
|
|
goto :goto_2
|
|
|
|
:cond_1
|
|
sub-int v6, v11, v8
|
|
|
|
move/from16 v12, p2
|
|
|
|
const/4 v10, 0x0
|
|
|
|
const/4 v13, 0x0
|
|
|
|
const/4 v14, 0x0
|
|
|
|
:goto_3
|
|
if-eqz v10, :cond_2
|
|
|
|
const/16 v10, 0x2e
|
|
|
|
const/4 v15, 0x0
|
|
|
|
goto :goto_4
|
|
|
|
.line 230
|
|
:cond_2
|
|
aget-object v15, v1, v12
|
|
|
|
aget-byte v15, v15, v13
|
|
|
|
and-int/lit16 v15, v15, 0xff
|
|
|
|
move/from16 v17, v15
|
|
|
|
move v15, v10
|
|
|
|
move/from16 v10, v17
|
|
|
|
:goto_4
|
|
add-int v16, v8, v14
|
|
|
|
.line 233
|
|
aget-byte v3, v0, v16
|
|
|
|
and-int/lit16 v3, v3, 0xff
|
|
|
|
sub-int/2addr v10, v3
|
|
|
|
if-eqz v10, :cond_3
|
|
|
|
goto :goto_5
|
|
|
|
:cond_3
|
|
add-int/lit8 v14, v14, 0x1
|
|
|
|
add-int/lit8 v13, v13, 0x1
|
|
|
|
if-ne v14, v6, :cond_4
|
|
|
|
goto :goto_5
|
|
|
|
.line 242
|
|
:cond_4
|
|
aget-object v3, v1, v12
|
|
|
|
array-length v3, v3
|
|
|
|
if-ne v3, v13, :cond_b
|
|
|
|
.line 245
|
|
array-length v3, v1
|
|
|
|
sub-int/2addr v3, v9
|
|
|
|
if-ne v12, v3, :cond_a
|
|
|
|
:goto_5
|
|
if-gez v10, :cond_5
|
|
|
|
:goto_6
|
|
move v2, v5
|
|
|
|
goto :goto_0
|
|
|
|
:cond_5
|
|
if-lez v10, :cond_6
|
|
|
|
:goto_7
|
|
add-int/lit8 v4, v11, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_6
|
|
sub-int v3, v6, v14
|
|
|
|
.line 262
|
|
aget-object v7, v1, v12
|
|
|
|
array-length v7, v7
|
|
|
|
sub-int/2addr v7, v13
|
|
|
|
:goto_8
|
|
add-int/lit8 v12, v12, 0x1
|
|
|
|
.line 263
|
|
array-length v9, v1
|
|
|
|
if-ge v12, v9, :cond_7
|
|
|
|
.line 264
|
|
aget-object v9, v1, v12
|
|
|
|
array-length v9, v9
|
|
|
|
add-int/2addr v7, v9
|
|
|
|
goto :goto_8
|
|
|
|
:cond_7
|
|
if-ge v7, v3, :cond_8
|
|
|
|
goto :goto_6
|
|
|
|
:cond_8
|
|
if-le v7, v3, :cond_9
|
|
|
|
goto :goto_7
|
|
|
|
.line 273
|
|
:cond_9
|
|
new-instance v1, Ljava/lang/String;
|
|
|
|
sget-object v2, Ljava/nio/charset/StandardCharsets;->UTF_8:Ljava/nio/charset/Charset;
|
|
|
|
invoke-direct {v1, v0, v8, v6, v2}, Ljava/lang/String;-><init>([BIILjava/nio/charset/Charset;)V
|
|
|
|
goto :goto_9
|
|
|
|
:cond_a
|
|
add-int/lit8 v12, v12, 0x1
|
|
|
|
move v13, v7
|
|
|
|
move v10, v9
|
|
|
|
goto :goto_3
|
|
|
|
:cond_b
|
|
move v10, v15
|
|
|
|
goto :goto_3
|
|
|
|
:cond_c
|
|
const/4 v1, 0x0
|
|
|
|
:goto_9
|
|
return-object v1
|
|
.end method
|
|
|
|
.method public static get()Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;
|
|
.locals 1
|
|
|
|
sget-object v0, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->instance:Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final findMatchingRule([Ljava/lang/String;)[Ljava/lang/String;
|
|
.locals 8
|
|
|
|
iget-object v0, p0, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->listRead:Ljava/util/concurrent/atomic/AtomicBoolean;
|
|
|
|
.line 110
|
|
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicBoolean;->get()Z
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
const/4 v2, 0x1
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
iget-object v0, p0, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->listRead:Ljava/util/concurrent/atomic/AtomicBoolean;
|
|
|
|
invoke-virtual {v0, v1, v2}, Ljava/util/concurrent/atomic/AtomicBoolean;->compareAndSet(ZZ)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 111
|
|
invoke-virtual {p0}, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->readTheListUninterruptibly()V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
:try_start_0
|
|
iget-object v0, p0, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->readCompleteLatch:Ljava/util/concurrent/CountDownLatch;
|
|
|
|
.line 114
|
|
invoke-virtual {v0}, Ljava/util/concurrent/CountDownLatch;->await()V
|
|
:try_end_0
|
|
.catch Ljava/lang/InterruptedException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
goto :goto_0
|
|
|
|
.line 116
|
|
:catch_0
|
|
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Thread;->interrupt()V
|
|
|
|
.line 120
|
|
:goto_0
|
|
monitor-enter p0
|
|
|
|
:try_start_1
|
|
iget-object v0, p0, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->publicSuffixListBytes:[B
|
|
|
|
if-eqz v0, :cond_d
|
|
|
|
.line 125
|
|
monitor-exit p0
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
.line 128
|
|
array-length v0, p1
|
|
|
|
new-array v3, v0, [[B
|
|
|
|
move v4, v1
|
|
|
|
.line 129
|
|
:goto_1
|
|
array-length v5, p1
|
|
|
|
if-ge v4, v5, :cond_1
|
|
|
|
.line 130
|
|
aget-object v5, p1, v4
|
|
|
|
sget-object v6, Ljava/nio/charset/StandardCharsets;->UTF_8:Ljava/nio/charset/Charset;
|
|
|
|
invoke-virtual {v5, v6}, Ljava/lang/String;->getBytes(Ljava/nio/charset/Charset;)[B
|
|
|
|
move-result-object v5
|
|
|
|
aput-object v5, v3, v4
|
|
|
|
add-int/lit8 v4, v4, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
move p1, v1
|
|
|
|
:goto_2
|
|
const/4 v4, 0x0
|
|
|
|
if-ge p1, v0, :cond_3
|
|
|
|
iget-object v5, p0, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->publicSuffixListBytes:[B
|
|
|
|
.line 137
|
|
invoke-static {v5, v3, p1}, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->binarySearchBytes([B[[BI)Ljava/lang/String;
|
|
|
|
move-result-object v5
|
|
|
|
if-eqz v5, :cond_2
|
|
|
|
goto :goto_3
|
|
|
|
:cond_2
|
|
add-int/lit8 p1, p1, 0x1
|
|
|
|
goto :goto_2
|
|
|
|
:cond_3
|
|
move-object v5, v4
|
|
|
|
:goto_3
|
|
if-le v0, v2, :cond_5
|
|
|
|
.line 151
|
|
invoke-virtual {v3}, [[B->clone()Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, [[B
|
|
|
|
move v6, v1
|
|
|
|
.line 152
|
|
:goto_4
|
|
array-length v7, p1
|
|
|
|
sub-int/2addr v7, v2
|
|
|
|
if-ge v6, v7, :cond_5
|
|
|
|
sget-object v7, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->WILDCARD_LABEL:[B
|
|
|
|
.line 153
|
|
aput-object v7, p1, v6
|
|
|
|
iget-object v7, p0, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->publicSuffixListBytes:[B
|
|
|
|
.line 154
|
|
invoke-static {v7, p1, v6}, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->binarySearchBytes([B[[BI)Ljava/lang/String;
|
|
|
|
move-result-object v7
|
|
|
|
if-eqz v7, :cond_4
|
|
|
|
goto :goto_5
|
|
|
|
:cond_4
|
|
add-int/lit8 v6, v6, 0x1
|
|
|
|
goto :goto_4
|
|
|
|
:cond_5
|
|
move-object v7, v4
|
|
|
|
:goto_5
|
|
if-eqz v7, :cond_7
|
|
|
|
:goto_6
|
|
add-int/lit8 p1, v0, -0x1
|
|
|
|
if-ge v1, p1, :cond_7
|
|
|
|
iget-object p1, p0, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->publicSuffixExceptionListBytes:[B
|
|
|
|
.line 166
|
|
invoke-static {p1, v3, v1}, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->binarySearchBytes([B[[BI)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
if-eqz p1, :cond_6
|
|
|
|
move-object v4, p1
|
|
|
|
goto :goto_7
|
|
|
|
:cond_6
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
goto :goto_6
|
|
|
|
:cond_7
|
|
:goto_7
|
|
if-eqz v4, :cond_8
|
|
|
|
.line 177
|
|
new-instance p1, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v0, "!"
|
|
|
|
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {p1, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
const-string v0, "\\."
|
|
|
|
.line 178
|
|
invoke-virtual {p1, v0}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
|
|
:cond_8
|
|
if-nez v5, :cond_9
|
|
|
|
if-nez v7, :cond_9
|
|
|
|
sget-object p1, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->PREVAILING_RULE:[Ljava/lang/String;
|
|
|
|
return-object p1
|
|
|
|
:cond_9
|
|
if-eqz v5, :cond_a
|
|
|
|
const-string p1, "\\."
|
|
|
|
.line 184
|
|
invoke-virtual {v5, p1}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
goto :goto_8
|
|
|
|
:cond_a
|
|
sget-object p1, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->EMPTY_RULE:[Ljava/lang/String;
|
|
|
|
:goto_8
|
|
if-eqz v7, :cond_b
|
|
|
|
const-string v0, "\\."
|
|
|
|
.line 188
|
|
invoke-virtual {v7, v0}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
goto :goto_9
|
|
|
|
:cond_b
|
|
sget-object v0, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->EMPTY_RULE:[Ljava/lang/String;
|
|
|
|
.line 191
|
|
:goto_9
|
|
array-length v1, p1
|
|
|
|
array-length v2, v0
|
|
|
|
if-le v1, v2, :cond_c
|
|
|
|
goto :goto_a
|
|
|
|
:cond_c
|
|
move-object p1, v0
|
|
|
|
:goto_a
|
|
return-object p1
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
goto :goto_b
|
|
|
|
.line 122
|
|
:cond_d
|
|
:try_start_2
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
const-string v0, "Unable to load publicsuffixes.gz resource from the classpath."
|
|
|
|
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
|
|
.line 125
|
|
:goto_b
|
|
monitor-exit p0
|
|
:try_end_2
|
|
.catchall {:try_start_2 .. :try_end_2} :catchall_0
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public getEffectiveTldPlusOne(Ljava/lang/String;)Ljava/lang/String;
|
|
.locals 7
|
|
|
|
if-eqz p1, :cond_3
|
|
|
|
.line 82
|
|
invoke-static {p1}, Ljava/net/IDN;->toUnicode(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "\\."
|
|
|
|
.line 83
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
.line 84
|
|
invoke-virtual {p0, v0}, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->findMatchingRule([Ljava/lang/String;)[Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
.line 85
|
|
array-length v3, v0
|
|
|
|
array-length v4, v2
|
|
|
|
const/16 v5, 0x21
|
|
|
|
const/4 v6, 0x0
|
|
|
|
if-ne v3, v4, :cond_0
|
|
|
|
aget-object v3, v2, v6
|
|
|
|
invoke-virtual {v3, v6}, Ljava/lang/String;->charAt(I)C
|
|
|
|
move-result v3
|
|
|
|
if-eq v3, v5, :cond_0
|
|
|
|
const/4 p1, 0x0
|
|
|
|
return-object p1
|
|
|
|
.line 91
|
|
:cond_0
|
|
aget-object v3, v2, v6
|
|
|
|
invoke-virtual {v3, v6}, Ljava/lang/String;->charAt(I)C
|
|
|
|
move-result v3
|
|
|
|
if-ne v3, v5, :cond_1
|
|
|
|
.line 93
|
|
array-length v0, v0
|
|
|
|
array-length v2, v2
|
|
|
|
:goto_0
|
|
sub-int/2addr v0, v2
|
|
|
|
goto :goto_1
|
|
|
|
.line 96
|
|
:cond_1
|
|
array-length v0, v0
|
|
|
|
array-length v2, v2
|
|
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
.line 99
|
|
:goto_1
|
|
new-instance v2, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
.line 100
|
|
invoke-virtual {p1, v1}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
.line 101
|
|
:goto_2
|
|
array-length v1, p1
|
|
|
|
if-ge v0, v1, :cond_2
|
|
|
|
.line 102
|
|
aget-object v1, p1, v0
|
|
|
|
invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
const/16 v1, 0x2e
|
|
|
|
invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
|
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
goto :goto_2
|
|
|
|
.line 104
|
|
:cond_2
|
|
invoke-virtual {v2}, Ljava/lang/StringBuilder;->length()I
|
|
|
|
move-result p1
|
|
|
|
add-int/lit8 p1, p1, -0x1
|
|
|
|
invoke-virtual {v2, p1}, Ljava/lang/StringBuilder;->deleteCharAt(I)Ljava/lang/StringBuilder;
|
|
|
|
.line 106
|
|
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
|
|
.line 79
|
|
:cond_3
|
|
new-instance p1, Ljava/lang/NullPointerException;
|
|
|
|
const-string v0, "domain == null"
|
|
|
|
invoke-direct {p1, v0}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public final readTheList()V
|
|
.locals 3
|
|
|
|
const-class v0, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;
|
|
|
|
const-string v1, "publicsuffixes.gz"
|
|
|
|
.line 312
|
|
invoke-virtual {v0, v1}, Ljava/lang/Class;->getResourceAsStream(Ljava/lang/String;)Ljava/io/InputStream;
|
|
|
|
move-result-object v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 315
|
|
:cond_0
|
|
new-instance v1, Lokio/GzipSource;
|
|
|
|
invoke-static {v0}, Lokio/Okio;->source(Ljava/io/InputStream;)Lokio/Source;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-direct {v1, v0}, Lokio/GzipSource;-><init>(Lokio/Source;)V
|
|
|
|
invoke-static {v1}, Lokio/Okio;->buffer(Lokio/Source;)Lokio/BufferedSource;
|
|
|
|
move-result-object v0
|
|
|
|
.line 316
|
|
:try_start_0
|
|
invoke-interface {v0}, Lokio/BufferedSource;->readInt()I
|
|
|
|
move-result v1
|
|
|
|
.line 317
|
|
new-array v1, v1, [B
|
|
|
|
.line 318
|
|
invoke-interface {v0, v1}, Lokio/BufferedSource;->readFully([B)V
|
|
|
|
.line 320
|
|
invoke-interface {v0}, Lokio/BufferedSource;->readInt()I
|
|
|
|
move-result v2
|
|
|
|
.line 321
|
|
new-array v2, v2, [B
|
|
|
|
.line 322
|
|
invoke-interface {v0, v2}, Lokio/BufferedSource;->readFully([B)V
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_1
|
|
|
|
.line 323
|
|
invoke-interface {v0}, Lokio/Source;->close()V
|
|
|
|
.line 325
|
|
monitor-enter p0
|
|
|
|
:try_start_1
|
|
iput-object v1, p0, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->publicSuffixListBytes:[B
|
|
|
|
iput-object v2, p0, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->publicSuffixExceptionListBytes:[B
|
|
|
|
.line 328
|
|
monitor-exit p0
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
iget-object v0, p0, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->readCompleteLatch:Ljava/util/concurrent/CountDownLatch;
|
|
|
|
.line 330
|
|
invoke-virtual {v0}, Ljava/util/concurrent/CountDownLatch;->countDown()V
|
|
|
|
return-void
|
|
|
|
:catchall_0
|
|
move-exception v0
|
|
|
|
.line 328
|
|
:try_start_2
|
|
monitor-exit p0
|
|
:try_end_2
|
|
.catchall {:try_start_2 .. :try_end_2} :catchall_0
|
|
|
|
throw v0
|
|
|
|
:catchall_1
|
|
move-exception v1
|
|
|
|
.line 315
|
|
:try_start_3
|
|
throw v1
|
|
:try_end_3
|
|
.catchall {:try_start_3 .. :try_end_3} :catchall_2
|
|
|
|
:catchall_2
|
|
move-exception v2
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 323
|
|
:try_start_4
|
|
invoke-interface {v0}, Lokio/Source;->close()V
|
|
:try_end_4
|
|
.catchall {:try_start_4 .. :try_end_4} :catchall_3
|
|
|
|
goto :goto_0
|
|
|
|
:catchall_3
|
|
move-exception v0
|
|
|
|
invoke-virtual {v1, v0}, Ljava/lang/Throwable;->addSuppressed(Ljava/lang/Throwable;)V
|
|
|
|
:cond_1
|
|
:goto_0
|
|
throw v2
|
|
.end method
|
|
|
|
.method public final readTheListUninterruptibly()V
|
|
.locals 5
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 291
|
|
:goto_0
|
|
:try_start_0
|
|
invoke-virtual {p0}, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->readTheList()V
|
|
:try_end_0
|
|
.catch Ljava/io/InterruptedIOException; {:try_start_0 .. :try_end_0} :catch_1
|
|
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 303
|
|
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Thread;->interrupt()V
|
|
|
|
:cond_0
|
|
return-void
|
|
|
|
:catchall_0
|
|
move-exception v1
|
|
|
|
goto :goto_1
|
|
|
|
:catch_0
|
|
move-exception v1
|
|
|
|
.line 297
|
|
:try_start_1
|
|
invoke-static {}, Lokhttp3/internal/platform/Platform;->get()Lokhttp3/internal/platform/Platform;
|
|
|
|
move-result-object v2
|
|
|
|
const-string v3, "Failed to read public suffix list"
|
|
|
|
const/4 v4, 0x5
|
|
|
|
invoke-virtual {v2, v4, v3, v1}, Lokhttp3/internal/platform/Platform;->log(ILjava/lang/String;Ljava/lang/Throwable;)V
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 303
|
|
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Thread;->interrupt()V
|
|
|
|
:cond_1
|
|
return-void
|
|
|
|
.line 294
|
|
:catch_1
|
|
:try_start_2
|
|
invoke-static {}, Ljava/lang/Thread;->interrupted()Z
|
|
:try_end_2
|
|
.catchall {:try_start_2 .. :try_end_2} :catchall_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:goto_1
|
|
if-eqz v0, :cond_2
|
|
|
|
.line 303
|
|
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Thread;->interrupt()V
|
|
|
|
:cond_2
|
|
throw v1
|
|
.end method
|