* Decompile and recreate Soul Browser v1.4.85 with APK CI builds Co-authored-by: KaKi87 <KaKi87@pm.me> * Fix CI build: include bundled google.jks and remove PR trigger The apktool build failed in CI because app/unknown/.../google.jks was excluded by the *.jks gitignore rule. Whitelist app-bundled JKS files and commit the missing resource. Also remove the redundant pull_request workflow trigger. Co-authored-by: KaKi87 <KaKi87@pm.me> * Change package ID to com.github.kaki87.soulbrowser Rename the application ID so the rebuilt APK can be installed alongside the original Soul Browser from Google Play. - Update AndroidManifest package, permissions, providers, and actions - Update R class references in smali (com/github/kaki87/soulbrowser/R) - Update shortcuts.xml targetPackage - Rename app label to "Soul Rebuild" for easy identification Co-authored-by: KaKi87 <KaKi87@pm.me> * Fix install compatibility: remove split APK metadata and bundle native libs The rebuilt APK still declared requiredSplitTypes and Play Store split metadata, causing Android to reject standalone installs as incompatible. - Remove requiredSplitTypes and split-related manifest meta-data - Merge native libs from all ABI splits with uncompressed storage - Page-align before signing for extractNativeLibs=false - Add .so to apktool doNotCompress list Co-authored-by: KaKi87 <KaKi87@pm.me> * Fix install failure: use apksigner v2/v3 and bundle arm64 native libs Target SDK 36 requires APK Signature Scheme v2+, but jarsigner only produces v1 signatures, causing Android to reject the install. - Sign with apksigner (v1+v2+v3) instead of jarsigner - Add arm64-v8a native libraries from universal Soul Browser 1.4.79 - Set extractNativeLibs=true for reliable sideload installs - Commit stable debug keystore for consistent signatures across builds Co-authored-by: KaKi87 <KaKi87@pm.me> * Add committed debug keystore for consistent APK signatures Co-authored-by: KaKi87 <KaKi87@pm.me> * Fix startup crash: use original classes2.dex desugar libraries Apktool recompiles smali_classes2 into a broken classes2.dex, causing ClassNotFoundException for j$.com.android.tools.r8.a at ML Kit init. Inject the original classes2.dex (Java 8+ desugar libs) after apktool build instead of using the recompiled version. Co-authored-by: KaKi87 <KaKi87@pm.me> * Fix missing drawable resources from density split APKs The base APK is an app bundle module; density-specific drawables like seek_thumb_nor_b live in config.xhdpi.apk and were missing after rebuild, causing Resources$NotFoundException at runtime. - Merge non-9-patch resources from split APKs before apktool build - Sync public.xml IDs from R smali only when backing files exist - Add 713 density-specific resource IDs to public.xml Co-authored-by: KaKi87 <KaKi87@pm.me> --------- Co-authored-by: Cursor Agent <cursoragent@cursor.com>
1107 lines
19 KiB
Smali
1107 lines
19 KiB
Smali
.class public final Lokio/GzipSource;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
# interfaces
|
|
.implements Lokio/Source;
|
|
|
|
|
|
# annotations
|
|
.annotation runtime Lkotlin/Metadata;
|
|
d1 = {
|
|
"\u0000\n\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\u0018\u00002\u00020\u0001\u00a8\u0006\u0002"
|
|
}
|
|
d2 = {
|
|
"Lokio/GzipSource;",
|
|
"Lokio/Source;",
|
|
"okio"
|
|
}
|
|
k = 0x1
|
|
mv = {
|
|
0x2,
|
|
0x2,
|
|
0x0
|
|
}
|
|
xi = 0x30
|
|
.end annotation
|
|
|
|
.annotation build Lkotlin/jvm/internal/SourceDebugExtension;
|
|
value = {
|
|
"SMAP\nGzipSource.kt\nKotlin\n*S Kotlin\n*F\n+ 1 GzipSource.kt\nokio/GzipSource\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n+ 3 RealBufferedSource.kt\nokio/RealBufferedSource\n+ 4 GzipSource.kt\nokio/-GzipSourceExtensions\n+ 5 Util.kt\nokio/-SegmentedByteString\n*L\n1#1,222:1\n1#2:223\n63#3:224\n63#3:226\n63#3:228\n63#3:229\n63#3:230\n63#3:232\n63#3:234\n204#4:225\n204#4:227\n204#4:231\n204#4:233\n88#5:235\n*S KotlinDebug\n*F\n+ 1 GzipSource.kt\nokio/GzipSource\n*L\n103#1:224\n105#1:226\n117#1:228\n118#1:229\n120#1:230\n131#1:232\n142#1:234\n104#1:225\n115#1:227\n128#1:231\n139#1:233\n185#1:235\n*E\n"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public c:B
|
|
|
|
.field public final f:Lokio/RealBufferedSource;
|
|
|
|
.field public final g:Ljava/util/zip/Inflater;
|
|
|
|
.field public final h:Lokio/InflaterSource;
|
|
|
|
.field public final i:Ljava/util/zip/CRC32;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lokio/BufferedSource;)V
|
|
.locals 2
|
|
|
|
.line 1
|
|
const-string v0, "source"
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 7
|
|
.line 8
|
|
.line 9
|
|
new-instance v0, Lokio/RealBufferedSource;
|
|
|
|
.line 10
|
|
.line 11
|
|
invoke-direct {v0, p1}, Lokio/RealBufferedSource;-><init>(Lokio/Source;)V
|
|
|
|
.line 12
|
|
.line 13
|
|
.line 14
|
|
iput-object v0, p0, Lokio/GzipSource;->f:Lokio/RealBufferedSource;
|
|
|
|
.line 15
|
|
.line 16
|
|
new-instance p1, Ljava/util/zip/Inflater;
|
|
|
|
.line 17
|
|
.line 18
|
|
const/4 v1, 0x1
|
|
|
|
.line 19
|
|
invoke-direct {p1, v1}, Ljava/util/zip/Inflater;-><init>(Z)V
|
|
|
|
.line 20
|
|
.line 21
|
|
.line 22
|
|
iput-object p1, p0, Lokio/GzipSource;->g:Ljava/util/zip/Inflater;
|
|
|
|
.line 23
|
|
.line 24
|
|
new-instance v1, Lokio/InflaterSource;
|
|
|
|
.line 25
|
|
.line 26
|
|
invoke-direct {v1, v0, p1}, Lokio/InflaterSource;-><init>(Lokio/RealBufferedSource;Ljava/util/zip/Inflater;)V
|
|
|
|
.line 27
|
|
.line 28
|
|
.line 29
|
|
iput-object v1, p0, Lokio/GzipSource;->h:Lokio/InflaterSource;
|
|
|
|
.line 30
|
|
.line 31
|
|
new-instance p1, Ljava/util/zip/CRC32;
|
|
|
|
.line 32
|
|
.line 33
|
|
invoke-direct {p1}, Ljava/util/zip/CRC32;-><init>()V
|
|
|
|
.line 34
|
|
.line 35
|
|
.line 36
|
|
iput-object p1, p0, Lokio/GzipSource;->i:Ljava/util/zip/CRC32;
|
|
|
|
.line 37
|
|
.line 38
|
|
return-void
|
|
.end method
|
|
|
|
.method public static a(IILjava/lang/String;)V
|
|
.locals 2
|
|
|
|
.line 1
|
|
if-ne p1, p0, :cond_0
|
|
|
|
.line 2
|
|
.line 3
|
|
return-void
|
|
|
|
.line 4
|
|
:cond_0
|
|
new-instance v0, Ljava/io/IOException;
|
|
|
|
.line 5
|
|
.line 6
|
|
const-string v1, ": actual 0x"
|
|
|
|
.line 7
|
|
.line 8
|
|
invoke-static {p2, v1}, Landroid/support/v4/media/a;->v(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
.line 9
|
|
.line 10
|
|
.line 11
|
|
move-result-object p2
|
|
|
|
.line 12
|
|
invoke-static {p1}, Lokio/-SegmentedByteString;->e(I)Ljava/lang/String;
|
|
|
|
.line 13
|
|
.line 14
|
|
.line 15
|
|
move-result-object p1
|
|
|
|
.line 16
|
|
const/16 v1, 0x8
|
|
|
|
.line 17
|
|
.line 18
|
|
invoke-static {v1, p1}, Lkotlin/text/StringsKt;->y(ILjava/lang/String;)Ljava/lang/String;
|
|
|
|
.line 19
|
|
.line 20
|
|
.line 21
|
|
move-result-object p1
|
|
|
|
.line 22
|
|
invoke-virtual {p2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
.line 23
|
|
.line 24
|
|
.line 25
|
|
const-string p1, " != expected 0x"
|
|
|
|
.line 26
|
|
.line 27
|
|
invoke-virtual {p2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
.line 28
|
|
.line 29
|
|
.line 30
|
|
invoke-static {p0}, Lokio/-SegmentedByteString;->e(I)Ljava/lang/String;
|
|
|
|
.line 31
|
|
.line 32
|
|
.line 33
|
|
move-result-object p0
|
|
|
|
.line 34
|
|
invoke-static {v1, p0}, Lkotlin/text/StringsKt;->y(ILjava/lang/String;)Ljava/lang/String;
|
|
|
|
.line 35
|
|
.line 36
|
|
.line 37
|
|
move-result-object p0
|
|
|
|
.line 38
|
|
invoke-virtual {p2, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
.line 39
|
|
.line 40
|
|
.line 41
|
|
invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
.line 42
|
|
.line 43
|
|
.line 44
|
|
move-result-object p0
|
|
|
|
.line 45
|
|
invoke-direct {v0, p0}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 46
|
|
.line 47
|
|
.line 48
|
|
throw v0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final b(Lokio/Buffer;JJ)V
|
|
.locals 4
|
|
|
|
.line 1
|
|
iget-object p1, p1, Lokio/Buffer;->c:Lokio/Segment;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-static {p1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
:goto_0
|
|
iget v0, p1, Lokio/Segment;->c:I
|
|
|
|
.line 7
|
|
.line 8
|
|
iget v1, p1, Lokio/Segment;->b:I
|
|
|
|
.line 9
|
|
.line 10
|
|
sub-int v2, v0, v1
|
|
|
|
.line 11
|
|
.line 12
|
|
int-to-long v2, v2
|
|
|
|
.line 13
|
|
cmp-long v2, p2, v2
|
|
|
|
.line 14
|
|
.line 15
|
|
if-ltz v2, :cond_0
|
|
|
|
.line 16
|
|
.line 17
|
|
sub-int/2addr v0, v1
|
|
|
|
.line 18
|
|
int-to-long v0, v0
|
|
|
|
.line 19
|
|
sub-long/2addr p2, v0
|
|
|
|
.line 20
|
|
iget-object p1, p1, Lokio/Segment;->f:Lokio/Segment;
|
|
|
|
.line 21
|
|
.line 22
|
|
invoke-static {p1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
|
|
|
|
.line 23
|
|
.line 24
|
|
.line 25
|
|
goto :goto_0
|
|
|
|
.line 26
|
|
:cond_0
|
|
:goto_1
|
|
const-wide/16 v0, 0x0
|
|
|
|
.line 27
|
|
.line 28
|
|
cmp-long v2, p4, v0
|
|
|
|
.line 29
|
|
.line 30
|
|
if-lez v2, :cond_1
|
|
|
|
.line 31
|
|
.line 32
|
|
iget v2, p1, Lokio/Segment;->b:I
|
|
|
|
.line 33
|
|
.line 34
|
|
int-to-long v2, v2
|
|
|
|
.line 35
|
|
add-long/2addr v2, p2
|
|
|
|
.line 36
|
|
long-to-int p2, v2
|
|
|
|
.line 37
|
|
iget p3, p1, Lokio/Segment;->c:I
|
|
|
|
.line 38
|
|
.line 39
|
|
sub-int/2addr p3, p2
|
|
|
|
.line 40
|
|
int-to-long v2, p3
|
|
|
|
.line 41
|
|
invoke-static {v2, v3, p4, p5}, Ljava/lang/Math;->min(JJ)J
|
|
|
|
.line 42
|
|
.line 43
|
|
.line 44
|
|
move-result-wide v2
|
|
|
|
.line 45
|
|
long-to-int p3, v2
|
|
|
|
.line 46
|
|
iget-object v2, p0, Lokio/GzipSource;->i:Ljava/util/zip/CRC32;
|
|
|
|
.line 47
|
|
.line 48
|
|
iget-object v3, p1, Lokio/Segment;->a:[B
|
|
|
|
.line 49
|
|
.line 50
|
|
invoke-virtual {v2, v3, p2, p3}, Ljava/util/zip/CRC32;->update([BII)V
|
|
|
|
.line 51
|
|
.line 52
|
|
.line 53
|
|
int-to-long p2, p3
|
|
|
|
.line 54
|
|
sub-long/2addr p4, p2
|
|
|
|
.line 55
|
|
iget-object p1, p1, Lokio/Segment;->f:Lokio/Segment;
|
|
|
|
.line 56
|
|
.line 57
|
|
invoke-static {p1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
|
|
|
|
.line 58
|
|
.line 59
|
|
.line 60
|
|
move-wide p2, v0
|
|
|
|
.line 61
|
|
goto :goto_1
|
|
|
|
.line 62
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public final close()V
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lokio/GzipSource;->h:Lokio/InflaterSource;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-virtual {v0}, Lokio/InflaterSource;->close()V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
return-void
|
|
.end method
|
|
|
|
.method public final p0(JLokio/Buffer;)J
|
|
.locals 23
|
|
|
|
.line 1
|
|
move-object/from16 v0, p0
|
|
|
|
.line 2
|
|
.line 3
|
|
move-wide/from16 v6, p1
|
|
|
|
.line 4
|
|
.line 5
|
|
move-object/from16 v8, p3
|
|
|
|
.line 6
|
|
.line 7
|
|
const-string v1, "sink"
|
|
|
|
.line 8
|
|
.line 9
|
|
invoke-static {v8, v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 10
|
|
.line 11
|
|
.line 12
|
|
const-wide/16 v1, 0x0
|
|
|
|
.line 13
|
|
.line 14
|
|
cmp-long v3, v6, v1
|
|
|
|
.line 15
|
|
.line 16
|
|
if-ltz v3, :cond_12
|
|
|
|
.line 17
|
|
.line 18
|
|
if-nez v3, :cond_0
|
|
|
|
.line 19
|
|
.line 20
|
|
return-wide v1
|
|
|
|
.line 21
|
|
:cond_0
|
|
iget-byte v1, v0, Lokio/GzipSource;->c:B
|
|
|
|
.line 22
|
|
.line 23
|
|
iget-object v9, v0, Lokio/GzipSource;->i:Ljava/util/zip/CRC32;
|
|
|
|
.line 24
|
|
.line 25
|
|
const/4 v10, 0x1
|
|
|
|
.line 26
|
|
iget-object v11, v0, Lokio/GzipSource;->f:Lokio/RealBufferedSource;
|
|
|
|
.line 27
|
|
.line 28
|
|
const-wide/16 v17, -0x1
|
|
|
|
.line 29
|
|
.line 30
|
|
if-nez v1, :cond_d
|
|
|
|
.line 31
|
|
.line 32
|
|
const-wide/16 v1, 0xa
|
|
|
|
.line 33
|
|
.line 34
|
|
invoke-virtual {v11, v1, v2}, Lokio/RealBufferedSource;->D0(J)V
|
|
|
|
.line 35
|
|
.line 36
|
|
.line 37
|
|
iget-object v1, v11, Lokio/RealBufferedSource;->f:Lokio/Buffer;
|
|
|
|
.line 38
|
|
.line 39
|
|
const-wide/16 v2, 0x3
|
|
|
|
.line 40
|
|
.line 41
|
|
invoke-virtual {v1, v2, v3}, Lokio/Buffer;->d(J)B
|
|
|
|
.line 42
|
|
.line 43
|
|
.line 44
|
|
move-result v19
|
|
|
|
.line 45
|
|
shr-int/lit8 v2, v19, 0x1
|
|
|
|
.line 46
|
|
.line 47
|
|
and-int/2addr v2, v10
|
|
|
|
.line 48
|
|
if-ne v2, v10, :cond_1
|
|
|
|
.line 49
|
|
.line 50
|
|
move/from16 v20, v10
|
|
|
|
.line 51
|
|
.line 52
|
|
goto :goto_0
|
|
|
|
.line 53
|
|
:cond_1
|
|
const/4 v2, 0x0
|
|
|
|
.line 54
|
|
move/from16 v20, v2
|
|
|
|
.line 55
|
|
.line 56
|
|
:goto_0
|
|
if-eqz v20, :cond_2
|
|
|
|
.line 57
|
|
.line 58
|
|
const-wide/16 v2, 0x0
|
|
|
|
.line 59
|
|
.line 60
|
|
const-wide/16 v4, 0xa
|
|
|
|
.line 61
|
|
.line 62
|
|
invoke-virtual/range {v0 .. v5}, Lokio/GzipSource;->b(Lokio/Buffer;JJ)V
|
|
|
|
.line 63
|
|
.line 64
|
|
.line 65
|
|
:cond_2
|
|
invoke-virtual {v11}, Lokio/RealBufferedSource;->readShort()S
|
|
|
|
.line 66
|
|
.line 67
|
|
.line 68
|
|
move-result v0
|
|
|
|
.line 69
|
|
const-string v2, "ID1ID2"
|
|
|
|
.line 70
|
|
.line 71
|
|
const/16 v3, 0x1f8b
|
|
|
|
.line 72
|
|
.line 73
|
|
invoke-static {v3, v0, v2}, Lokio/GzipSource;->a(IILjava/lang/String;)V
|
|
|
|
.line 74
|
|
.line 75
|
|
.line 76
|
|
const-wide/16 v2, 0x8
|
|
|
|
.line 77
|
|
.line 78
|
|
invoke-virtual {v11, v2, v3}, Lokio/RealBufferedSource;->skip(J)V
|
|
|
|
.line 79
|
|
.line 80
|
|
.line 81
|
|
shr-int/lit8 v0, v19, 0x2
|
|
|
|
.line 82
|
|
.line 83
|
|
and-int/2addr v0, v10
|
|
|
|
.line 84
|
|
if-ne v0, v10, :cond_5
|
|
|
|
.line 85
|
|
.line 86
|
|
const-wide/16 v2, 0x2
|
|
|
|
.line 87
|
|
.line 88
|
|
invoke-virtual {v11, v2, v3}, Lokio/RealBufferedSource;->D0(J)V
|
|
|
|
.line 89
|
|
.line 90
|
|
.line 91
|
|
if-eqz v20, :cond_3
|
|
|
|
.line 92
|
|
.line 93
|
|
const-wide/16 v2, 0x0
|
|
|
|
.line 94
|
|
.line 95
|
|
const-wide/16 v4, 0x2
|
|
|
|
.line 96
|
|
.line 97
|
|
move-object/from16 v0, p0
|
|
|
|
.line 98
|
|
.line 99
|
|
invoke-virtual/range {v0 .. v5}, Lokio/GzipSource;->b(Lokio/Buffer;JJ)V
|
|
|
|
.line 100
|
|
.line 101
|
|
.line 102
|
|
:cond_3
|
|
invoke-virtual {v1}, Lokio/Buffer;->t0()S
|
|
|
|
.line 103
|
|
.line 104
|
|
.line 105
|
|
move-result v0
|
|
|
|
.line 106
|
|
const v2, 0xffff
|
|
|
|
.line 107
|
|
.line 108
|
|
.line 109
|
|
and-int/2addr v0, v2
|
|
|
|
.line 110
|
|
int-to-long v4, v0
|
|
|
|
.line 111
|
|
invoke-virtual {v11, v4, v5}, Lokio/RealBufferedSource;->D0(J)V
|
|
|
|
.line 112
|
|
.line 113
|
|
.line 114
|
|
if-eqz v20, :cond_4
|
|
|
|
.line 115
|
|
.line 116
|
|
const-wide/16 v2, 0x0
|
|
|
|
.line 117
|
|
.line 118
|
|
move-object/from16 v0, p0
|
|
|
|
.line 119
|
|
.line 120
|
|
invoke-virtual/range {v0 .. v5}, Lokio/GzipSource;->b(Lokio/Buffer;JJ)V
|
|
|
|
.line 121
|
|
.line 122
|
|
.line 123
|
|
:cond_4
|
|
invoke-virtual {v11, v4, v5}, Lokio/RealBufferedSource;->skip(J)V
|
|
|
|
.line 124
|
|
.line 125
|
|
.line 126
|
|
:cond_5
|
|
shr-int/lit8 v0, v19, 0x3
|
|
|
|
.line 127
|
|
.line 128
|
|
and-int/2addr v0, v10
|
|
|
|
.line 129
|
|
const-wide/16 v21, 0x1
|
|
|
|
.line 130
|
|
.line 131
|
|
if-ne v0, v10, :cond_8
|
|
|
|
.line 132
|
|
.line 133
|
|
const-wide/16 v13, 0x0
|
|
|
|
.line 134
|
|
.line 135
|
|
const-wide v15, 0x7fffffffffffffffL
|
|
|
|
.line 136
|
|
.line 137
|
|
.line 138
|
|
.line 139
|
|
.line 140
|
|
const/4 v12, 0x0
|
|
|
|
.line 141
|
|
invoke-virtual/range {v11 .. v16}, Lokio/RealBufferedSource;->a(BJJ)J
|
|
|
|
.line 142
|
|
.line 143
|
|
.line 144
|
|
move-result-wide v12
|
|
|
|
.line 145
|
|
cmp-long v0, v12, v17
|
|
|
|
.line 146
|
|
.line 147
|
|
if-eqz v0, :cond_7
|
|
|
|
.line 148
|
|
.line 149
|
|
if-eqz v20, :cond_6
|
|
|
|
.line 150
|
|
.line 151
|
|
const-wide/16 v2, 0x0
|
|
|
|
.line 152
|
|
.line 153
|
|
add-long v4, v12, v21
|
|
|
|
.line 154
|
|
.line 155
|
|
move-object/from16 v0, p0
|
|
|
|
.line 156
|
|
.line 157
|
|
invoke-virtual/range {v0 .. v5}, Lokio/GzipSource;->b(Lokio/Buffer;JJ)V
|
|
|
|
.line 158
|
|
.line 159
|
|
.line 160
|
|
:cond_6
|
|
add-long v12, v12, v21
|
|
|
|
.line 161
|
|
.line 162
|
|
invoke-virtual {v11, v12, v13}, Lokio/RealBufferedSource;->skip(J)V
|
|
|
|
.line 163
|
|
.line 164
|
|
.line 165
|
|
goto :goto_1
|
|
|
|
.line 166
|
|
:cond_7
|
|
new-instance v0, Ljava/io/EOFException;
|
|
|
|
.line 167
|
|
.line 168
|
|
invoke-direct {v0}, Ljava/io/EOFException;-><init>()V
|
|
|
|
.line 169
|
|
.line 170
|
|
.line 171
|
|
throw v0
|
|
|
|
.line 172
|
|
:cond_8
|
|
:goto_1
|
|
shr-int/lit8 v0, v19, 0x4
|
|
|
|
.line 173
|
|
.line 174
|
|
and-int/2addr v0, v10
|
|
|
|
.line 175
|
|
if-ne v0, v10, :cond_b
|
|
|
|
.line 176
|
|
.line 177
|
|
const-wide/16 v13, 0x0
|
|
|
|
.line 178
|
|
.line 179
|
|
const-wide v15, 0x7fffffffffffffffL
|
|
|
|
.line 180
|
|
.line 181
|
|
.line 182
|
|
.line 183
|
|
.line 184
|
|
const/4 v12, 0x0
|
|
|
|
.line 185
|
|
invoke-virtual/range {v11 .. v16}, Lokio/RealBufferedSource;->a(BJJ)J
|
|
|
|
.line 186
|
|
.line 187
|
|
.line 188
|
|
move-result-wide v12
|
|
|
|
.line 189
|
|
cmp-long v0, v12, v17
|
|
|
|
.line 190
|
|
.line 191
|
|
if-eqz v0, :cond_a
|
|
|
|
.line 192
|
|
.line 193
|
|
if-eqz v20, :cond_9
|
|
|
|
.line 194
|
|
.line 195
|
|
const-wide/16 v2, 0x0
|
|
|
|
.line 196
|
|
.line 197
|
|
add-long v4, v12, v21
|
|
|
|
.line 198
|
|
.line 199
|
|
move-object/from16 v0, p0
|
|
|
|
.line 200
|
|
.line 201
|
|
invoke-virtual/range {v0 .. v5}, Lokio/GzipSource;->b(Lokio/Buffer;JJ)V
|
|
|
|
.line 202
|
|
.line 203
|
|
.line 204
|
|
goto :goto_2
|
|
|
|
.line 205
|
|
:cond_9
|
|
move-object/from16 v0, p0
|
|
|
|
.line 206
|
|
.line 207
|
|
:goto_2
|
|
add-long v12, v12, v21
|
|
|
|
.line 208
|
|
.line 209
|
|
invoke-virtual {v11, v12, v13}, Lokio/RealBufferedSource;->skip(J)V
|
|
|
|
.line 210
|
|
.line 211
|
|
.line 212
|
|
goto :goto_3
|
|
|
|
.line 213
|
|
:cond_a
|
|
move-object/from16 v0, p0
|
|
|
|
.line 214
|
|
.line 215
|
|
new-instance v1, Ljava/io/EOFException;
|
|
|
|
.line 216
|
|
.line 217
|
|
invoke-direct {v1}, Ljava/io/EOFException;-><init>()V
|
|
|
|
.line 218
|
|
.line 219
|
|
.line 220
|
|
throw v1
|
|
|
|
.line 221
|
|
:cond_b
|
|
move-object/from16 v0, p0
|
|
|
|
.line 222
|
|
.line 223
|
|
:goto_3
|
|
if-eqz v20, :cond_c
|
|
|
|
.line 224
|
|
.line 225
|
|
invoke-virtual {v11}, Lokio/RealBufferedSource;->t0()S
|
|
|
|
.line 226
|
|
.line 227
|
|
.line 228
|
|
move-result v1
|
|
|
|
.line 229
|
|
invoke-virtual {v9}, Ljava/util/zip/CRC32;->getValue()J
|
|
|
|
.line 230
|
|
.line 231
|
|
.line 232
|
|
move-result-wide v2
|
|
|
|
.line 233
|
|
long-to-int v2, v2
|
|
|
|
.line 234
|
|
int-to-short v2, v2
|
|
|
|
.line 235
|
|
const-string v3, "FHCRC"
|
|
|
|
.line 236
|
|
.line 237
|
|
invoke-static {v1, v2, v3}, Lokio/GzipSource;->a(IILjava/lang/String;)V
|
|
|
|
.line 238
|
|
.line 239
|
|
.line 240
|
|
invoke-virtual {v9}, Ljava/util/zip/CRC32;->reset()V
|
|
|
|
.line 241
|
|
.line 242
|
|
.line 243
|
|
:cond_c
|
|
iput-byte v10, v0, Lokio/GzipSource;->c:B
|
|
|
|
.line 244
|
|
.line 245
|
|
:cond_d
|
|
iget-byte v1, v0, Lokio/GzipSource;->c:B
|
|
|
|
.line 246
|
|
.line 247
|
|
const/4 v12, 0x2
|
|
|
|
.line 248
|
|
if-ne v1, v10, :cond_f
|
|
|
|
.line 249
|
|
.line 250
|
|
iget-wide v2, v8, Lokio/Buffer;->f:J
|
|
|
|
.line 251
|
|
.line 252
|
|
iget-object v1, v0, Lokio/GzipSource;->h:Lokio/InflaterSource;
|
|
|
|
.line 253
|
|
.line 254
|
|
invoke-virtual {v1, v6, v7, v8}, Lokio/InflaterSource;->p0(JLokio/Buffer;)J
|
|
|
|
.line 255
|
|
.line 256
|
|
.line 257
|
|
move-result-wide v4
|
|
|
|
.line 258
|
|
cmp-long v1, v4, v17
|
|
|
|
.line 259
|
|
.line 260
|
|
if-eqz v1, :cond_e
|
|
|
|
.line 261
|
|
.line 262
|
|
move-object v1, v8
|
|
|
|
.line 263
|
|
invoke-virtual/range {v0 .. v5}, Lokio/GzipSource;->b(Lokio/Buffer;JJ)V
|
|
|
|
.line 264
|
|
.line 265
|
|
.line 266
|
|
return-wide v4
|
|
|
|
.line 267
|
|
:cond_e
|
|
iput-byte v12, v0, Lokio/GzipSource;->c:B
|
|
|
|
.line 268
|
|
.line 269
|
|
:cond_f
|
|
iget-byte v1, v0, Lokio/GzipSource;->c:B
|
|
|
|
.line 270
|
|
.line 271
|
|
if-ne v1, v12, :cond_11
|
|
|
|
.line 272
|
|
.line 273
|
|
invoke-virtual {v11}, Lokio/RealBufferedSource;->l0()I
|
|
|
|
.line 274
|
|
.line 275
|
|
.line 276
|
|
move-result v1
|
|
|
|
.line 277
|
|
invoke-virtual {v9}, Ljava/util/zip/CRC32;->getValue()J
|
|
|
|
.line 278
|
|
.line 279
|
|
.line 280
|
|
move-result-wide v2
|
|
|
|
.line 281
|
|
long-to-int v2, v2
|
|
|
|
.line 282
|
|
const-string v3, "CRC"
|
|
|
|
.line 283
|
|
.line 284
|
|
invoke-static {v1, v2, v3}, Lokio/GzipSource;->a(IILjava/lang/String;)V
|
|
|
|
.line 285
|
|
.line 286
|
|
.line 287
|
|
invoke-virtual {v11}, Lokio/RealBufferedSource;->l0()I
|
|
|
|
.line 288
|
|
.line 289
|
|
.line 290
|
|
move-result v1
|
|
|
|
.line 291
|
|
iget-object v2, v0, Lokio/GzipSource;->g:Ljava/util/zip/Inflater;
|
|
|
|
.line 292
|
|
.line 293
|
|
invoke-virtual {v2}, Ljava/util/zip/Inflater;->getBytesWritten()J
|
|
|
|
.line 294
|
|
.line 295
|
|
.line 296
|
|
move-result-wide v2
|
|
|
|
.line 297
|
|
long-to-int v2, v2
|
|
|
|
.line 298
|
|
const-string v3, "ISIZE"
|
|
|
|
.line 299
|
|
.line 300
|
|
invoke-static {v1, v2, v3}, Lokio/GzipSource;->a(IILjava/lang/String;)V
|
|
|
|
.line 301
|
|
.line 302
|
|
.line 303
|
|
const/4 v1, 0x3
|
|
|
|
.line 304
|
|
iput-byte v1, v0, Lokio/GzipSource;->c:B
|
|
|
|
.line 305
|
|
.line 306
|
|
invoke-virtual {v11}, Lokio/RealBufferedSource;->D()Z
|
|
|
|
.line 307
|
|
.line 308
|
|
.line 309
|
|
move-result v1
|
|
|
|
.line 310
|
|
if-eqz v1, :cond_10
|
|
|
|
.line 311
|
|
.line 312
|
|
goto :goto_4
|
|
|
|
.line 313
|
|
:cond_10
|
|
new-instance v1, Ljava/io/IOException;
|
|
|
|
.line 314
|
|
.line 315
|
|
const-string v2, "gzip finished without exhausting source"
|
|
|
|
.line 316
|
|
.line 317
|
|
invoke-direct {v1, v2}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 318
|
|
.line 319
|
|
.line 320
|
|
throw v1
|
|
|
|
.line 321
|
|
:cond_11
|
|
:goto_4
|
|
return-wide v17
|
|
|
|
.line 322
|
|
:cond_12
|
|
const-string v1, "byteCount < 0: "
|
|
|
|
.line 323
|
|
.line 324
|
|
invoke-static {v6, v7, v1}, Landroid/support/v4/media/a;->h(JLjava/lang/String;)Ljava/lang/String;
|
|
|
|
.line 325
|
|
.line 326
|
|
.line 327
|
|
move-result-object v1
|
|
|
|
.line 328
|
|
new-instance v2, Ljava/lang/IllegalArgumentException;
|
|
|
|
.line 329
|
|
.line 330
|
|
invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
.line 331
|
|
.line 332
|
|
.line 333
|
|
move-result-object v1
|
|
|
|
.line 334
|
|
invoke-direct {v2, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 335
|
|
.line 336
|
|
.line 337
|
|
throw v2
|
|
.end method
|
|
|
|
.method public final timeout()Lokio/Timeout;
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lokio/GzipSource;->f:Lokio/RealBufferedSource;
|
|
|
|
.line 2
|
|
.line 3
|
|
iget-object v0, v0, Lokio/RealBufferedSource;->c:Lokio/Source;
|
|
|
|
.line 4
|
|
.line 5
|
|
invoke-interface {v0}, Lokio/Source;->timeout()Lokio/Timeout;
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
move-result-object v0
|
|
|
|
.line 9
|
|
return-object v0
|
|
.end method
|