* 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>
510 lines
11 KiB
Smali
510 lines
11 KiB
Smali
.class public Landroidx/appcompat/view/ContextThemeWrapper;
|
|
.super Landroid/content/ContextWrapper;
|
|
.source "SourceFile"
|
|
|
|
|
|
# static fields
|
|
.field public static f:Landroid/content/res/Configuration;
|
|
|
|
|
|
# instance fields
|
|
.field public a:I
|
|
|
|
.field public b:Landroid/content/res/Resources$Theme;
|
|
|
|
.field public c:Landroid/view/LayoutInflater;
|
|
|
|
.field public d:Landroid/content/res/Configuration;
|
|
|
|
.field public e:Landroid/content/res/Resources;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroid/content/Context;I)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-direct {p0, p1}, Landroid/content/ContextWrapper;-><init>(Landroid/content/Context;)V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
iput p2, p0, Landroidx/appcompat/view/ContextThemeWrapper;->a:I
|
|
|
|
.line 5
|
|
.line 6
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final a(Landroid/content/res/Configuration;)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Landroidx/appcompat/view/ContextThemeWrapper;->e:Landroid/content/res/Resources;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-nez v0, :cond_1
|
|
|
|
.line 4
|
|
.line 5
|
|
iget-object v0, p0, Landroidx/appcompat/view/ContextThemeWrapper;->d:Landroid/content/res/Configuration;
|
|
|
|
.line 6
|
|
.line 7
|
|
if-nez v0, :cond_0
|
|
|
|
.line 8
|
|
.line 9
|
|
new-instance v0, Landroid/content/res/Configuration;
|
|
|
|
.line 10
|
|
.line 11
|
|
invoke-direct {v0, p1}, Landroid/content/res/Configuration;-><init>(Landroid/content/res/Configuration;)V
|
|
|
|
.line 12
|
|
.line 13
|
|
.line 14
|
|
iput-object v0, p0, Landroidx/appcompat/view/ContextThemeWrapper;->d:Landroid/content/res/Configuration;
|
|
|
|
.line 15
|
|
.line 16
|
|
return-void
|
|
|
|
.line 17
|
|
:cond_0
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
.line 18
|
|
.line 19
|
|
const-string v0, "Override configuration has already been set"
|
|
|
|
.line 20
|
|
.line 21
|
|
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 22
|
|
.line 23
|
|
.line 24
|
|
throw p1
|
|
|
|
.line 25
|
|
:cond_1
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
.line 26
|
|
.line 27
|
|
const-string v0, "getResources() or getAssets() has already been called"
|
|
|
|
.line 28
|
|
.line 29
|
|
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 30
|
|
.line 31
|
|
.line 32
|
|
throw p1
|
|
.end method
|
|
|
|
.method public final attachBaseContext(Landroid/content/Context;)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-super {p0, p1}, Landroid/content/ContextWrapper;->attachBaseContext(Landroid/content/Context;)V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
return-void
|
|
.end method
|
|
|
|
.method public final b()V
|
|
.locals 3
|
|
|
|
.line 1
|
|
iget-object v0, p0, Landroidx/appcompat/view/ContextThemeWrapper;->b:Landroid/content/res/Resources$Theme;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-nez v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
invoke-virtual {p0}, Landroidx/appcompat/view/ContextThemeWrapper;->getResources()Landroid/content/res/Resources;
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
move-result-object v0
|
|
|
|
.line 9
|
|
invoke-virtual {v0}, Landroid/content/res/Resources;->newTheme()Landroid/content/res/Resources$Theme;
|
|
|
|
.line 10
|
|
.line 11
|
|
.line 12
|
|
move-result-object v0
|
|
|
|
.line 13
|
|
iput-object v0, p0, Landroidx/appcompat/view/ContextThemeWrapper;->b:Landroid/content/res/Resources$Theme;
|
|
|
|
.line 14
|
|
.line 15
|
|
invoke-virtual {p0}, Landroid/content/ContextWrapper;->getBaseContext()Landroid/content/Context;
|
|
|
|
.line 16
|
|
.line 17
|
|
.line 18
|
|
move-result-object v0
|
|
|
|
.line 19
|
|
invoke-virtual {v0}, Landroid/content/Context;->getTheme()Landroid/content/res/Resources$Theme;
|
|
|
|
.line 20
|
|
.line 21
|
|
.line 22
|
|
move-result-object v0
|
|
|
|
.line 23
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 24
|
|
.line 25
|
|
iget-object v1, p0, Landroidx/appcompat/view/ContextThemeWrapper;->b:Landroid/content/res/Resources$Theme;
|
|
|
|
.line 26
|
|
.line 27
|
|
invoke-virtual {v1, v0}, Landroid/content/res/Resources$Theme;->setTo(Landroid/content/res/Resources$Theme;)V
|
|
|
|
.line 28
|
|
.line 29
|
|
.line 30
|
|
:cond_0
|
|
iget-object v0, p0, Landroidx/appcompat/view/ContextThemeWrapper;->b:Landroid/content/res/Resources$Theme;
|
|
|
|
.line 31
|
|
.line 32
|
|
iget v1, p0, Landroidx/appcompat/view/ContextThemeWrapper;->a:I
|
|
|
|
.line 33
|
|
.line 34
|
|
const/4 v2, 0x1
|
|
|
|
.line 35
|
|
invoke-virtual {v0, v1, v2}, Landroid/content/res/Resources$Theme;->applyStyle(IZ)V
|
|
|
|
.line 36
|
|
.line 37
|
|
.line 38
|
|
return-void
|
|
.end method
|
|
|
|
.method public final getAssets()Landroid/content/res/AssetManager;
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Landroidx/appcompat/view/ContextThemeWrapper;->getResources()Landroid/content/res/Resources;
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result-object v0
|
|
|
|
.line 5
|
|
invoke-virtual {v0}, Landroid/content/res/Resources;->getAssets()Landroid/content/res/AssetManager;
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
move-result-object v0
|
|
|
|
.line 9
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final getResources()Landroid/content/res/Resources;
|
|
.locals 3
|
|
|
|
.line 1
|
|
iget-object v0, p0, Landroidx/appcompat/view/ContextThemeWrapper;->e:Landroid/content/res/Resources;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-nez v0, :cond_3
|
|
|
|
.line 4
|
|
.line 5
|
|
iget-object v0, p0, Landroidx/appcompat/view/ContextThemeWrapper;->d:Landroid/content/res/Configuration;
|
|
|
|
.line 6
|
|
.line 7
|
|
if-eqz v0, :cond_2
|
|
|
|
.line 8
|
|
.line 9
|
|
sget v1, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
.line 10
|
|
.line 11
|
|
const/16 v2, 0x1a
|
|
|
|
.line 12
|
|
.line 13
|
|
if-lt v1, v2, :cond_1
|
|
|
|
.line 14
|
|
.line 15
|
|
sget-object v1, Landroidx/appcompat/view/ContextThemeWrapper;->f:Landroid/content/res/Configuration;
|
|
|
|
.line 16
|
|
.line 17
|
|
if-nez v1, :cond_0
|
|
|
|
.line 18
|
|
.line 19
|
|
new-instance v1, Landroid/content/res/Configuration;
|
|
|
|
.line 20
|
|
.line 21
|
|
invoke-direct {v1}, Landroid/content/res/Configuration;-><init>()V
|
|
|
|
.line 22
|
|
.line 23
|
|
.line 24
|
|
const/4 v2, 0x0
|
|
|
|
.line 25
|
|
iput v2, v1, Landroid/content/res/Configuration;->fontScale:F
|
|
|
|
.line 26
|
|
.line 27
|
|
sput-object v1, Landroidx/appcompat/view/ContextThemeWrapper;->f:Landroid/content/res/Configuration;
|
|
|
|
.line 28
|
|
.line 29
|
|
:cond_0
|
|
sget-object v1, Landroidx/appcompat/view/ContextThemeWrapper;->f:Landroid/content/res/Configuration;
|
|
|
|
.line 30
|
|
.line 31
|
|
invoke-virtual {v0, v1}, Landroid/content/res/Configuration;->equals(Landroid/content/res/Configuration;)Z
|
|
|
|
.line 32
|
|
.line 33
|
|
.line 34
|
|
move-result v0
|
|
|
|
.line 35
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 36
|
|
.line 37
|
|
goto :goto_0
|
|
|
|
.line 38
|
|
:cond_1
|
|
iget-object v0, p0, Landroidx/appcompat/view/ContextThemeWrapper;->d:Landroid/content/res/Configuration;
|
|
|
|
.line 39
|
|
.line 40
|
|
invoke-virtual {p0, v0}, Landroid/content/Context;->createConfigurationContext(Landroid/content/res/Configuration;)Landroid/content/Context;
|
|
|
|
.line 41
|
|
.line 42
|
|
.line 43
|
|
move-result-object v0
|
|
|
|
.line 44
|
|
invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
|
|
|
|
.line 45
|
|
.line 46
|
|
.line 47
|
|
move-result-object v0
|
|
|
|
.line 48
|
|
iput-object v0, p0, Landroidx/appcompat/view/ContextThemeWrapper;->e:Landroid/content/res/Resources;
|
|
|
|
.line 49
|
|
.line 50
|
|
goto :goto_1
|
|
|
|
.line 51
|
|
:cond_2
|
|
:goto_0
|
|
invoke-super {p0}, Landroid/content/ContextWrapper;->getResources()Landroid/content/res/Resources;
|
|
|
|
.line 52
|
|
.line 53
|
|
.line 54
|
|
move-result-object v0
|
|
|
|
.line 55
|
|
iput-object v0, p0, Landroidx/appcompat/view/ContextThemeWrapper;->e:Landroid/content/res/Resources;
|
|
|
|
.line 56
|
|
.line 57
|
|
:cond_3
|
|
:goto_1
|
|
iget-object v0, p0, Landroidx/appcompat/view/ContextThemeWrapper;->e:Landroid/content/res/Resources;
|
|
|
|
.line 58
|
|
.line 59
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final getSystemService(Ljava/lang/String;)Ljava/lang/Object;
|
|
.locals 1
|
|
|
|
.line 1
|
|
const-string v0, "layout_inflater"
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-virtual {v0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
move-result v0
|
|
|
|
.line 7
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 8
|
|
.line 9
|
|
iget-object p1, p0, Landroidx/appcompat/view/ContextThemeWrapper;->c:Landroid/view/LayoutInflater;
|
|
|
|
.line 10
|
|
.line 11
|
|
if-nez p1, :cond_0
|
|
|
|
.line 12
|
|
.line 13
|
|
invoke-virtual {p0}, Landroid/content/ContextWrapper;->getBaseContext()Landroid/content/Context;
|
|
|
|
.line 14
|
|
.line 15
|
|
.line 16
|
|
move-result-object p1
|
|
|
|
.line 17
|
|
invoke-static {p1}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;
|
|
|
|
.line 18
|
|
.line 19
|
|
.line 20
|
|
move-result-object p1
|
|
|
|
.line 21
|
|
invoke-virtual {p1, p0}, Landroid/view/LayoutInflater;->cloneInContext(Landroid/content/Context;)Landroid/view/LayoutInflater;
|
|
|
|
.line 22
|
|
.line 23
|
|
.line 24
|
|
move-result-object p1
|
|
|
|
.line 25
|
|
iput-object p1, p0, Landroidx/appcompat/view/ContextThemeWrapper;->c:Landroid/view/LayoutInflater;
|
|
|
|
.line 26
|
|
.line 27
|
|
:cond_0
|
|
iget-object p1, p0, Landroidx/appcompat/view/ContextThemeWrapper;->c:Landroid/view/LayoutInflater;
|
|
|
|
.line 28
|
|
.line 29
|
|
return-object p1
|
|
|
|
.line 30
|
|
:cond_1
|
|
invoke-virtual {p0}, Landroid/content/ContextWrapper;->getBaseContext()Landroid/content/Context;
|
|
|
|
.line 31
|
|
.line 32
|
|
.line 33
|
|
move-result-object v0
|
|
|
|
.line 34
|
|
invoke-virtual {v0, p1}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
.line 35
|
|
.line 36
|
|
.line 37
|
|
move-result-object p1
|
|
|
|
.line 38
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final getTheme()Landroid/content/res/Resources$Theme;
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Landroidx/appcompat/view/ContextThemeWrapper;->b:Landroid/content/res/Resources$Theme;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
return-object v0
|
|
|
|
.line 6
|
|
:cond_0
|
|
iget v0, p0, Landroidx/appcompat/view/ContextThemeWrapper;->a:I
|
|
|
|
.line 7
|
|
.line 8
|
|
if-nez v0, :cond_1
|
|
|
|
.line 9
|
|
.line 10
|
|
sget v0, Landroidx/appcompat/R$style;->Theme_AppCompat_Light:I
|
|
|
|
.line 11
|
|
.line 12
|
|
iput v0, p0, Landroidx/appcompat/view/ContextThemeWrapper;->a:I
|
|
|
|
.line 13
|
|
.line 14
|
|
:cond_1
|
|
invoke-virtual {p0}, Landroidx/appcompat/view/ContextThemeWrapper;->b()V
|
|
|
|
.line 15
|
|
.line 16
|
|
.line 17
|
|
iget-object v0, p0, Landroidx/appcompat/view/ContextThemeWrapper;->b:Landroid/content/res/Resources$Theme;
|
|
|
|
.line 18
|
|
.line 19
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final setTheme(I)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget v0, p0, Landroidx/appcompat/view/ContextThemeWrapper;->a:I
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eq v0, p1, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
iput p1, p0, Landroidx/appcompat/view/ContextThemeWrapper;->a:I
|
|
|
|
.line 6
|
|
.line 7
|
|
invoke-virtual {p0}, Landroidx/appcompat/view/ContextThemeWrapper;->b()V
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
:cond_0
|
|
return-void
|
|
.end method
|