* 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>
266 lines
6.7 KiB
Smali
266 lines
6.7 KiB
Smali
.class Landroidx/work/impl/background/systemalarm/ConstraintProxyUpdateReceiver$1;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
# interfaces
|
|
.implements Ljava/lang/Runnable;
|
|
|
|
|
|
# instance fields
|
|
.field public final synthetic c:Landroid/content/Intent;
|
|
|
|
.field public final synthetic f:Landroid/content/Context;
|
|
|
|
.field public final synthetic g:Landroid/content/BroadcastReceiver$PendingResult;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroid/content/BroadcastReceiver$PendingResult;Landroid/content/Context;Landroid/content/Intent;)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
iput-object p3, p0, Landroidx/work/impl/background/systemalarm/ConstraintProxyUpdateReceiver$1;->c:Landroid/content/Intent;
|
|
|
|
.line 5
|
|
.line 6
|
|
iput-object p2, p0, Landroidx/work/impl/background/systemalarm/ConstraintProxyUpdateReceiver$1;->f:Landroid/content/Context;
|
|
|
|
.line 7
|
|
.line 8
|
|
iput-object p1, p0, Landroidx/work/impl/background/systemalarm/ConstraintProxyUpdateReceiver$1;->g:Landroid/content/BroadcastReceiver$PendingResult;
|
|
|
|
.line 9
|
|
.line 10
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final run()V
|
|
.locals 11
|
|
|
|
.line 1
|
|
iget-object v0, p0, Landroidx/work/impl/background/systemalarm/ConstraintProxyUpdateReceiver$1;->g:Landroid/content/BroadcastReceiver$PendingResult;
|
|
|
|
.line 2
|
|
.line 3
|
|
iget-object v1, p0, Landroidx/work/impl/background/systemalarm/ConstraintProxyUpdateReceiver$1;->f:Landroid/content/Context;
|
|
|
|
.line 4
|
|
.line 5
|
|
iget-object v2, p0, Landroidx/work/impl/background/systemalarm/ConstraintProxyUpdateReceiver$1;->c:Landroid/content/Intent;
|
|
|
|
.line 6
|
|
.line 7
|
|
const-string v3, "Updating proxies: BatteryNotLowProxy enabled ("
|
|
|
|
.line 8
|
|
.line 9
|
|
:try_start_0
|
|
const-string v4, "KEY_BATTERY_NOT_LOW_PROXY_ENABLED"
|
|
|
|
.line 10
|
|
.line 11
|
|
const/4 v5, 0x0
|
|
|
|
.line 12
|
|
invoke-virtual {v2, v4, v5}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z
|
|
|
|
.line 13
|
|
.line 14
|
|
.line 15
|
|
move-result v4
|
|
|
|
.line 16
|
|
const-string v6, "KEY_BATTERY_CHARGING_PROXY_ENABLED"
|
|
|
|
.line 17
|
|
.line 18
|
|
invoke-virtual {v2, v6, v5}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z
|
|
|
|
.line 19
|
|
.line 20
|
|
.line 21
|
|
move-result v6
|
|
|
|
.line 22
|
|
const-string v7, "KEY_STORAGE_NOT_LOW_PROXY_ENABLED"
|
|
|
|
.line 23
|
|
.line 24
|
|
invoke-virtual {v2, v7, v5}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z
|
|
|
|
.line 25
|
|
.line 26
|
|
.line 27
|
|
move-result v7
|
|
|
|
.line 28
|
|
const-string v8, "KEY_NETWORK_STATE_PROXY_ENABLED"
|
|
|
|
.line 29
|
|
.line 30
|
|
invoke-virtual {v2, v8, v5}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z
|
|
|
|
.line 31
|
|
.line 32
|
|
.line 33
|
|
move-result v2
|
|
|
|
.line 34
|
|
invoke-static {}, Landroidx/work/Logger;->c()Landroidx/work/Logger;
|
|
|
|
.line 35
|
|
.line 36
|
|
.line 37
|
|
move-result-object v8
|
|
|
|
.line 38
|
|
sget-object v9, Landroidx/work/impl/background/systemalarm/ConstraintProxyUpdateReceiver;->a:Ljava/lang/String;
|
|
|
|
.line 39
|
|
.line 40
|
|
new-instance v10, Ljava/lang/StringBuilder;
|
|
|
|
.line 41
|
|
.line 42
|
|
invoke-direct {v10, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 43
|
|
.line 44
|
|
.line 45
|
|
invoke-virtual {v10, v4}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;
|
|
|
|
.line 46
|
|
.line 47
|
|
.line 48
|
|
const-string v3, "), BatteryChargingProxy enabled ("
|
|
|
|
.line 49
|
|
.line 50
|
|
invoke-virtual {v10, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
.line 51
|
|
.line 52
|
|
.line 53
|
|
invoke-virtual {v10, v6}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;
|
|
|
|
.line 54
|
|
.line 55
|
|
.line 56
|
|
const-string v3, "), StorageNotLowProxy ("
|
|
|
|
.line 57
|
|
.line 58
|
|
invoke-virtual {v10, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
.line 59
|
|
.line 60
|
|
.line 61
|
|
invoke-virtual {v10, v7}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;
|
|
|
|
.line 62
|
|
.line 63
|
|
.line 64
|
|
const-string v3, "), NetworkStateProxy enabled ("
|
|
|
|
.line 65
|
|
.line 66
|
|
invoke-virtual {v10, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
.line 67
|
|
.line 68
|
|
.line 69
|
|
invoke-virtual {v10, v2}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;
|
|
|
|
.line 70
|
|
.line 71
|
|
.line 72
|
|
const-string v3, ")"
|
|
|
|
.line 73
|
|
.line 74
|
|
invoke-virtual {v10, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
.line 75
|
|
.line 76
|
|
.line 77
|
|
invoke-virtual {v10}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
.line 78
|
|
.line 79
|
|
.line 80
|
|
move-result-object v3
|
|
|
|
.line 81
|
|
new-array v5, v5, [Ljava/lang/Throwable;
|
|
|
|
.line 82
|
|
.line 83
|
|
invoke-virtual {v8, v9, v3, v5}, Landroidx/work/Logger;->a(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Throwable;)V
|
|
|
|
.line 84
|
|
.line 85
|
|
.line 86
|
|
const-class v3, Landroidx/work/impl/background/systemalarm/ConstraintProxy$BatteryNotLowProxy;
|
|
|
|
.line 87
|
|
.line 88
|
|
invoke-static {v1, v3, v4}, Landroidx/work/impl/utils/PackageManagerHelper;->a(Landroid/content/Context;Ljava/lang/Class;Z)V
|
|
|
|
.line 89
|
|
.line 90
|
|
.line 91
|
|
const-class v3, Landroidx/work/impl/background/systemalarm/ConstraintProxy$BatteryChargingProxy;
|
|
|
|
.line 92
|
|
.line 93
|
|
invoke-static {v1, v3, v6}, Landroidx/work/impl/utils/PackageManagerHelper;->a(Landroid/content/Context;Ljava/lang/Class;Z)V
|
|
|
|
.line 94
|
|
.line 95
|
|
.line 96
|
|
const-class v3, Landroidx/work/impl/background/systemalarm/ConstraintProxy$StorageNotLowProxy;
|
|
|
|
.line 97
|
|
.line 98
|
|
invoke-static {v1, v3, v7}, Landroidx/work/impl/utils/PackageManagerHelper;->a(Landroid/content/Context;Ljava/lang/Class;Z)V
|
|
|
|
.line 99
|
|
.line 100
|
|
.line 101
|
|
const-class v3, Landroidx/work/impl/background/systemalarm/ConstraintProxy$NetworkStateProxy;
|
|
|
|
.line 102
|
|
.line 103
|
|
invoke-static {v1, v3, v2}, Landroidx/work/impl/utils/PackageManagerHelper;->a(Landroid/content/Context;Ljava/lang/Class;Z)V
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
.line 104
|
|
.line 105
|
|
.line 106
|
|
invoke-virtual {v0}, Landroid/content/BroadcastReceiver$PendingResult;->finish()V
|
|
|
|
.line 107
|
|
.line 108
|
|
.line 109
|
|
return-void
|
|
|
|
.line 110
|
|
:catchall_0
|
|
move-exception v1
|
|
|
|
.line 111
|
|
invoke-virtual {v0}, Landroid/content/BroadcastReceiver$PendingResult;->finish()V
|
|
|
|
.line 112
|
|
.line 113
|
|
.line 114
|
|
throw v1
|
|
.end method
|