soul-browser/app/smali_classes4/org/apache/commons/lang3/AnnotationUtils$1.smali
KaKi87 550ddb0413
Decompile and recreate Soul Browser v1.4.85 with APK CI builds (#1)
* 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>
2026-08-10 16:07:14 +02:00

283 lines
6 KiB
Smali

.class Lorg/apache/commons/lang3/AnnotationUtils$1;
.super Lorg/apache/commons/lang3/builder/ToStringStyle;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lorg/apache/commons/lang3/AnnotationUtils;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# static fields
.field public static final synthetic w:I
# virtual methods
.method public final B(Ljava/lang/Class;)Ljava/lang/String;
.locals 2
.line 1
sget-object v0, Lorg/apache/commons/lang3/ClassUtils;->a:Ljava/util/HashMap;
.line 2
.line 3
new-instance v0, Ljava/util/LinkedHashSet;
.line 4
.line 5
invoke-direct {v0}, Ljava/util/LinkedHashSet;-><init>()V
.line 6
.line 7
.line 8
invoke-static {p1, v0}, Lorg/apache/commons/lang3/ClassUtils;->a(Ljava/lang/Class;Ljava/util/LinkedHashSet;)V
.line 9
.line 10
.line 11
new-instance p1, Ljava/util/ArrayList;
.line 12
.line 13
invoke-direct {p1, v0}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V
.line 14
.line 15
.line 16
invoke-static {p1}, Lj$/util/Collection$-EL;->stream(Ljava/util/Collection;)Lj$/util/stream/Stream;
.line 17
.line 18
.line 19
move-result-object p1
.line 20
new-instance v0, Lorg/apache/commons/lang3/a;
.line 21
.line 22
const/4 v1, 0x0
.line 23
invoke-direct {v0, v1}, Lorg/apache/commons/lang3/a;-><init>(I)V
.line 24
.line 25
.line 26
invoke-interface {p1, v0}, Lj$/util/stream/Stream;->filter(Ljava/util/function/Predicate;)Lj$/util/stream/Stream;
.line 27
.line 28
.line 29
move-result-object p1
.line 30
invoke-interface {p1}, Lj$/util/stream/Stream;->findFirst()Lj$/util/Optional;
.line 31
.line 32
.line 33
move-result-object p1
.line 34
new-instance v0, Lorg/apache/commons/lang3/b;
.line 35
.line 36
invoke-direct {v0, v1}, Lorg/apache/commons/lang3/b;-><init>(I)V
.line 37
.line 38
.line 39
invoke-virtual {p1, v0}, Lj$/util/Optional;->map(Ljava/util/function/Function;)Lj$/util/Optional;
.line 40
.line 41
.line 42
move-result-object p1
.line 43
const-string v0, ""
.line 44
.line 45
invoke-virtual {p1, v0}, Lj$/util/Optional;->orElse(Ljava/lang/Object;)Ljava/lang/Object;
.line 46
.line 47
.line 48
move-result-object p1
.line 49
check-cast p1, Ljava/lang/String;
.line 50
.line 51
return-object p1
.end method
.method public final e(Ljava/lang/StringBuffer;Ljava/lang/String;Ljava/lang/Object;)V
.locals 8
.line 1
instance-of p2, p3, Ljava/lang/annotation/Annotation;
.line 2
.line 3
if-eqz p2, :cond_2
.line 4
.line 5
check-cast p3, Ljava/lang/annotation/Annotation;
.line 6
.line 7
sget-object p2, Lorg/apache/commons/lang3/AnnotationUtils;->a:Lorg/apache/commons/lang3/builder/ToStringStyle;
.line 8
.line 9
new-instance p2, Lorg/apache/commons/lang3/builder/ToStringBuilder;
.line 10
.line 11
sget-object v0, Lorg/apache/commons/lang3/AnnotationUtils;->a:Lorg/apache/commons/lang3/builder/ToStringStyle;
.line 12
.line 13
const/4 v1, 0x0
.line 14
invoke-direct {p2, p3, v0, v1}, Lorg/apache/commons/lang3/builder/ToStringBuilder;-><init>(Ljava/lang/Object;Lorg/apache/commons/lang3/builder/ToStringStyle;I)V
.line 15
.line 16
.line 17
invoke-interface {p3}, Ljava/lang/annotation/Annotation;->annotationType()Ljava/lang/Class;
.line 18
.line 19
.line 20
move-result-object v0
.line 21
invoke-virtual {v0}, Ljava/lang/Class;->getDeclaredMethods()[Ljava/lang/reflect/Method;
.line 22
.line 23
.line 24
move-result-object v0
.line 25
array-length v2, v0
.line 26
:goto_0
if-ge v1, v2, :cond_1
.line 27
.line 28
aget-object v3, v0, v1
.line 29
.line 30
invoke-virtual {v3}, Ljava/lang/reflect/Method;->getParameterTypes()[Ljava/lang/Class;
.line 31
.line 32
.line 33
move-result-object v4
.line 34
array-length v4, v4
.line 35
if-lez v4, :cond_0
.line 36
.line 37
goto :goto_1
.line 38
:cond_0
:try_start_0
invoke-virtual {v3}, Ljava/lang/reflect/Method;->getName()Ljava/lang/String;
.line 39
.line 40
.line 41
move-result-object v4
.line 42
const/4 v5, 0x0
.line 43
invoke-virtual {v3, p3, v5}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
.line 44
.line 45
.line 46
move-result-object v3
.line 47
iget-object v6, p2, Lorg/apache/commons/lang3/builder/ToStringBuilder;->g:Lorg/apache/commons/lang3/builder/ToStringStyle;
.line 48
.line 49
iget-object v7, p2, Lorg/apache/commons/lang3/builder/ToStringBuilder;->c:Ljava/lang/StringBuffer;
.line 50
.line 51
invoke-virtual {v6, v7, v4, v3, v5}, Lorg/apache/commons/lang3/builder/ToStringStyle;->a(Ljava/lang/StringBuffer;Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Boolean;)V
:try_end_0
.catch Ljava/lang/ReflectiveOperationException; {:try_start_0 .. :try_end_0} :catch_0
.line 52
.line 53
.line 54
:goto_1
add-int/lit8 v1, v1, 0x1
.line 55
.line 56
goto :goto_0
.line 57
:catch_0
move-exception p1
.line 58
new-instance p2, Lorg/apache/commons/lang3/exception/UncheckedException;
.line 59
.line 60
invoke-direct {p2, p1}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/Throwable;)V
.line 61
.line 62
.line 63
throw p2
.line 64
:cond_1
invoke-virtual {p2}, Lorg/apache/commons/lang3/builder/ToStringBuilder;->toString()Ljava/lang/String;
.line 65
.line 66
.line 67
move-result-object p3
.line 68
:cond_2
invoke-virtual {p1, p3}, Ljava/lang/StringBuffer;->append(Ljava/lang/Object;)Ljava/lang/StringBuffer;
.line 69
.line 70
.line 71
return-void
.end method