* 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>
364 lines
6.2 KiB
Smali
364 lines
6.2 KiB
Smali
.class public final Lcom/bumptech/glide/load/data/ExifOrientationStream;
|
|
.super Ljava/io/FilterInputStream;
|
|
.source "SourceFile"
|
|
|
|
|
|
# static fields
|
|
.field public static final g:[B
|
|
|
|
.field public static final h:I
|
|
|
|
|
|
# instance fields
|
|
.field public final c:B
|
|
|
|
.field public f:I
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 1
|
|
|
|
.line 1
|
|
const/16 v0, 0x1d
|
|
|
|
.line 2
|
|
.line 3
|
|
new-array v0, v0, [B
|
|
|
|
.line 4
|
|
.line 5
|
|
fill-array-data v0, :array_0
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
sput-object v0, Lcom/bumptech/glide/load/data/ExifOrientationStream;->g:[B
|
|
|
|
.line 9
|
|
.line 10
|
|
const/16 v0, 0x1f
|
|
|
|
.line 11
|
|
.line 12
|
|
sput v0, Lcom/bumptech/glide/load/data/ExifOrientationStream;->h:I
|
|
|
|
.line 13
|
|
.line 14
|
|
return-void
|
|
|
|
.line 15
|
|
:array_0
|
|
.array-data 1
|
|
-0x1t
|
|
-0x1ft
|
|
0x0t
|
|
0x1ct
|
|
0x45t
|
|
0x78t
|
|
0x69t
|
|
0x66t
|
|
0x0t
|
|
0x0t
|
|
0x4dt
|
|
0x4dt
|
|
0x0t
|
|
0x0t
|
|
0x0t
|
|
0x0t
|
|
0x0t
|
|
0x8t
|
|
0x0t
|
|
0x1t
|
|
0x1t
|
|
0x12t
|
|
0x0t
|
|
0x2t
|
|
0x0t
|
|
0x0t
|
|
0x0t
|
|
0x1t
|
|
0x0t
|
|
.end array-data
|
|
.end method
|
|
|
|
.method public constructor <init>(Ljava/io/InputStream;I)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-direct {p0, p1}, Ljava/io/FilterInputStream;-><init>(Ljava/io/InputStream;)V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
const/4 p1, -0x1
|
|
|
|
.line 5
|
|
if-lt p2, p1, :cond_0
|
|
|
|
.line 6
|
|
.line 7
|
|
const/16 p1, 0x8
|
|
|
|
.line 8
|
|
.line 9
|
|
if-gt p2, p1, :cond_0
|
|
|
|
.line 10
|
|
.line 11
|
|
int-to-byte p1, p2
|
|
|
|
.line 12
|
|
iput-byte p1, p0, Lcom/bumptech/glide/load/data/ExifOrientationStream;->c:B
|
|
|
|
.line 13
|
|
.line 14
|
|
return-void
|
|
|
|
.line 15
|
|
:cond_0
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
.line 16
|
|
.line 17
|
|
const-string v0, "Cannot add invalid orientation: "
|
|
|
|
.line 18
|
|
.line 19
|
|
invoke-static {p2, v0}, Landroid/support/v4/media/a;->e(ILjava/lang/String;)Ljava/lang/String;
|
|
|
|
.line 20
|
|
.line 21
|
|
.line 22
|
|
move-result-object p2
|
|
|
|
.line 23
|
|
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 24
|
|
.line 25
|
|
.line 26
|
|
throw p1
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final mark(I)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
new-instance p1, Ljava/lang/UnsupportedOperationException;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-direct {p1}, Ljava/lang/UnsupportedOperationException;-><init>()V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
throw p1
|
|
.end method
|
|
|
|
.method public final markSupported()Z
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final read()I
|
|
.locals 3
|
|
|
|
.line 1
|
|
iget v0, p0, Lcom/bumptech/glide/load/data/ExifOrientationStream;->f:I
|
|
|
|
const/4 v1, 0x2
|
|
|
|
if-lt v0, v1, :cond_2
|
|
|
|
sget v2, Lcom/bumptech/glide/load/data/ExifOrientationStream;->h:I
|
|
|
|
if-le v0, v2, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
if-ne v0, v2, :cond_1
|
|
|
|
.line 2
|
|
iget-byte v0, p0, Lcom/bumptech/glide/load/data/ExifOrientationStream;->c:B
|
|
|
|
goto :goto_1
|
|
|
|
.line 3
|
|
:cond_1
|
|
sget-object v2, Lcom/bumptech/glide/load/data/ExifOrientationStream;->g:[B
|
|
|
|
sub-int/2addr v0, v1
|
|
|
|
aget-byte v0, v2, v0
|
|
|
|
and-int/lit16 v0, v0, 0xff
|
|
|
|
goto :goto_1
|
|
|
|
.line 4
|
|
:cond_2
|
|
:goto_0
|
|
invoke-super {p0}, Ljava/io/FilterInputStream;->read()I
|
|
|
|
move-result v0
|
|
|
|
:goto_1
|
|
const/4 v1, -0x1
|
|
|
|
if-eq v0, v1, :cond_3
|
|
|
|
.line 5
|
|
iget v1, p0, Lcom/bumptech/glide/load/data/ExifOrientationStream;->f:I
|
|
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
iput v1, p0, Lcom/bumptech/glide/load/data/ExifOrientationStream;->f:I
|
|
|
|
:cond_3
|
|
return v0
|
|
.end method
|
|
|
|
.method public final read([BII)I
|
|
.locals 3
|
|
|
|
.line 6
|
|
iget v0, p0, Lcom/bumptech/glide/load/data/ExifOrientationStream;->f:I
|
|
|
|
sget v1, Lcom/bumptech/glide/load/data/ExifOrientationStream;->h:I
|
|
|
|
if-le v0, v1, :cond_0
|
|
|
|
.line 7
|
|
invoke-super {p0, p1, p2, p3}, Ljava/io/FilterInputStream;->read([BII)I
|
|
|
|
move-result p1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
if-ne v0, v1, :cond_1
|
|
|
|
.line 8
|
|
iget-byte p3, p0, Lcom/bumptech/glide/load/data/ExifOrientationStream;->c:B
|
|
|
|
aput-byte p3, p1, p2
|
|
|
|
const/4 p1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const/4 v2, 0x2
|
|
|
|
if-ge v0, v2, :cond_2
|
|
|
|
sub-int/2addr v2, v0
|
|
|
|
.line 9
|
|
invoke-super {p0, p1, p2, v2}, Ljava/io/FilterInputStream;->read([BII)I
|
|
|
|
move-result p1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
sub-int/2addr v1, v0
|
|
|
|
.line 10
|
|
invoke-static {v1, p3}, Ljava/lang/Math;->min(II)I
|
|
|
|
move-result p3
|
|
|
|
.line 11
|
|
iget v0, p0, Lcom/bumptech/glide/load/data/ExifOrientationStream;->f:I
|
|
|
|
sub-int/2addr v0, v2
|
|
|
|
sget-object v1, Lcom/bumptech/glide/load/data/ExifOrientationStream;->g:[B
|
|
|
|
invoke-static {v1, v0, p1, p2, p3}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
|
|
|
|
move p1, p3
|
|
|
|
:goto_0
|
|
if-lez p1, :cond_3
|
|
|
|
.line 12
|
|
iget p2, p0, Lcom/bumptech/glide/load/data/ExifOrientationStream;->f:I
|
|
|
|
add-int/2addr p2, p1
|
|
|
|
iput p2, p0, Lcom/bumptech/glide/load/data/ExifOrientationStream;->f:I
|
|
|
|
:cond_3
|
|
return p1
|
|
.end method
|
|
|
|
.method public final reset()V
|
|
.locals 1
|
|
|
|
.line 1
|
|
new-instance v0, Ljava/lang/UnsupportedOperationException;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-direct {v0}, Ljava/lang/UnsupportedOperationException;-><init>()V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
throw v0
|
|
.end method
|
|
|
|
.method public final skip(J)J
|
|
.locals 2
|
|
|
|
.line 1
|
|
invoke-super {p0, p1, p2}, Ljava/io/FilterInputStream;->skip(J)J
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result-wide p1
|
|
|
|
.line 5
|
|
const-wide/16 v0, 0x0
|
|
|
|
.line 6
|
|
.line 7
|
|
cmp-long v0, p1, v0
|
|
|
|
.line 8
|
|
.line 9
|
|
if-lez v0, :cond_0
|
|
|
|
.line 10
|
|
.line 11
|
|
iget v0, p0, Lcom/bumptech/glide/load/data/ExifOrientationStream;->f:I
|
|
|
|
.line 12
|
|
.line 13
|
|
int-to-long v0, v0
|
|
|
|
.line 14
|
|
add-long/2addr v0, p1
|
|
|
|
.line 15
|
|
long-to-int v0, v0
|
|
|
|
.line 16
|
|
iput v0, p0, Lcom/bumptech/glide/load/data/ExifOrientationStream;->f:I
|
|
|
|
.line 17
|
|
.line 18
|
|
:cond_0
|
|
return-wide p1
|
|
.end method
|