* 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>
270 lines
5.3 KiB
Smali
270 lines
5.3 KiB
Smali
.class public final synthetic Lkotlin/time/a;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
# interfaces
|
|
.implements Lkotlin/jvm/functions/Function0;
|
|
|
|
|
|
# instance fields
|
|
.field public final synthetic c:I
|
|
|
|
.field public final synthetic f:Ljava/lang/Object;
|
|
|
|
|
|
# direct methods
|
|
.method public synthetic constructor <init>(ILjava/lang/Object;)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
iput p1, p0, Lkotlin/time/a;->c:I
|
|
|
|
iput-object p2, p0, Lkotlin/time/a;->f:Ljava/lang/Object;
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final invoke()Ljava/lang/Object;
|
|
.locals 4
|
|
|
|
.line 1
|
|
iget v0, p0, Lkotlin/time/a;->c:I
|
|
|
|
.line 2
|
|
.line 3
|
|
iget-object v1, p0, Lkotlin/time/a;->f:Ljava/lang/Object;
|
|
|
|
.line 4
|
|
.line 5
|
|
packed-switch v0, :pswitch_data_0
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
check-cast v1, Lokhttp3/internal/http2/Http2Connection;
|
|
|
|
.line 9
|
|
.line 10
|
|
sget-object v0, Lokhttp3/internal/http2/Http2Connection;->D:Lokhttp3/internal/http2/Settings;
|
|
|
|
.line 11
|
|
.line 12
|
|
invoke-virtual {v1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
.line 13
|
|
.line 14
|
|
.line 15
|
|
:try_start_0
|
|
iget-object v0, v1, Lokhttp3/internal/http2/Http2Connection;->A:Lokhttp3/internal/http2/Http2Writer;
|
|
|
|
.line 16
|
|
.line 17
|
|
const/4 v2, 0x0
|
|
|
|
.line 18
|
|
const/4 v3, 0x2
|
|
|
|
.line 19
|
|
invoke-virtual {v0, v3, v2, v2}, Lokhttp3/internal/http2/Http2Writer;->i(IIZ)V
|
|
:try_end_0
|
|
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
.line 20
|
|
.line 21
|
|
.line 22
|
|
goto :goto_0
|
|
|
|
.line 23
|
|
:catch_0
|
|
move-exception v0
|
|
|
|
.line 24
|
|
sget-object v2, Lokhttp3/internal/http2/ErrorCode;->h:Lokhttp3/internal/http2/ErrorCode;
|
|
|
|
.line 25
|
|
.line 26
|
|
invoke-virtual {v1, v2, v2, v0}, Lokhttp3/internal/http2/Http2Connection;->a(Lokhttp3/internal/http2/ErrorCode;Lokhttp3/internal/http2/ErrorCode;Ljava/io/IOException;)V
|
|
|
|
.line 27
|
|
.line 28
|
|
.line 29
|
|
:goto_0
|
|
sget-object v0, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
|
|
|
|
.line 30
|
|
.line 31
|
|
return-object v0
|
|
|
|
.line 32
|
|
:pswitch_0
|
|
check-cast v1, Lokhttp3/Handshake;
|
|
|
|
.line 33
|
|
.line 34
|
|
invoke-virtual {v1}, Lokhttp3/Handshake;->a()Ljava/util/List;
|
|
|
|
.line 35
|
|
.line 36
|
|
.line 37
|
|
move-result-object v0
|
|
|
|
.line 38
|
|
new-instance v1, Ljava/util/ArrayList;
|
|
|
|
.line 39
|
|
.line 40
|
|
const/16 v2, 0xa
|
|
|
|
.line 41
|
|
.line 42
|
|
invoke-static {v0, v2}, Lkotlin/collections/CollectionsKt;->collectionSizeOrDefault(Ljava/lang/Iterable;I)I
|
|
|
|
.line 43
|
|
.line 44
|
|
.line 45
|
|
move-result v2
|
|
|
|
.line 46
|
|
invoke-direct {v1, v2}, Ljava/util/ArrayList;-><init>(I)V
|
|
|
|
.line 47
|
|
.line 48
|
|
.line 49
|
|
invoke-interface {v0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
|
|
|
.line 50
|
|
.line 51
|
|
.line 52
|
|
move-result-object v0
|
|
|
|
.line 53
|
|
:goto_1
|
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
.line 54
|
|
.line 55
|
|
.line 56
|
|
move-result v2
|
|
|
|
.line 57
|
|
if-eqz v2, :cond_0
|
|
|
|
.line 58
|
|
.line 59
|
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
.line 60
|
|
.line 61
|
|
.line 62
|
|
move-result-object v2
|
|
|
|
.line 63
|
|
check-cast v2, Ljava/security/cert/Certificate;
|
|
|
|
.line 64
|
|
.line 65
|
|
const-string v3, "null cannot be cast to non-null type java.security.cert.X509Certificate"
|
|
|
|
.line 66
|
|
.line 67
|
|
invoke-static {v2, v3}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 68
|
|
.line 69
|
|
.line 70
|
|
check-cast v2, Ljava/security/cert/X509Certificate;
|
|
|
|
.line 71
|
|
.line 72
|
|
invoke-virtual {v1, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
.line 73
|
|
.line 74
|
|
.line 75
|
|
goto :goto_1
|
|
|
|
.line 76
|
|
:cond_0
|
|
return-object v1
|
|
|
|
.line 77
|
|
:pswitch_1
|
|
check-cast v1, Ljava/util/List;
|
|
|
|
.line 78
|
|
.line 79
|
|
return-object v1
|
|
|
|
.line 80
|
|
:pswitch_2
|
|
check-cast v1, Lkotlin/jvm/functions/Function0;
|
|
|
|
.line 81
|
|
.line 82
|
|
:try_start_1
|
|
invoke-interface {v1}, Lkotlin/jvm/functions/Function0;->invoke()Ljava/lang/Object;
|
|
|
|
.line 83
|
|
.line 84
|
|
.line 85
|
|
move-result-object v0
|
|
|
|
.line 86
|
|
check-cast v0, Ljava/util/List;
|
|
:try_end_1
|
|
.catch Ljavax/net/ssl/SSLPeerUnverifiedException; {:try_start_1 .. :try_end_1} :catch_1
|
|
|
|
.line 87
|
|
.line 88
|
|
goto :goto_2
|
|
|
|
.line 89
|
|
:catch_1
|
|
invoke-static {}, Lkotlin/collections/CollectionsKt;->emptyList()Ljava/util/List;
|
|
|
|
.line 90
|
|
.line 91
|
|
.line 92
|
|
move-result-object v0
|
|
|
|
.line 93
|
|
:goto_2
|
|
return-object v0
|
|
|
|
.line 94
|
|
:pswitch_3
|
|
check-cast v1, Lkotlin/time/AbstractLongTimeSource;
|
|
|
|
.line 95
|
|
.line 96
|
|
invoke-static {v1}, Lkotlin/time/AbstractLongTimeSource;->a(Lkotlin/time/AbstractLongTimeSource;)J
|
|
|
|
.line 97
|
|
.line 98
|
|
.line 99
|
|
move-result-wide v0
|
|
|
|
.line 100
|
|
invoke-static {v0, v1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
.line 101
|
|
.line 102
|
|
.line 103
|
|
move-result-object v0
|
|
|
|
.line 104
|
|
return-object v0
|
|
|
|
.line 105
|
|
:pswitch_data_0
|
|
.packed-switch 0x0
|
|
:pswitch_3
|
|
:pswitch_2
|
|
:pswitch_1
|
|
:pswitch_0
|
|
.end packed-switch
|
|
.end method
|