* 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>
247 lines
5.6 KiB
Smali
247 lines
5.6 KiB
Smali
.class public final synthetic Lcom/google/android/material/datepicker/b;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
# interfaces
|
|
.implements Ljava/lang/Runnable;
|
|
|
|
|
|
# instance fields
|
|
.field public final synthetic c:Lcom/google/android/material/datepicker/DateFormatTextWatcher;
|
|
|
|
.field public final synthetic f:Ljava/lang/String;
|
|
|
|
|
|
# direct methods
|
|
.method public synthetic constructor <init>(Lcom/google/android/material/datepicker/DateFormatTextWatcher;Ljava/lang/String;)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
iput-object p1, p0, Lcom/google/android/material/datepicker/b;->c:Lcom/google/android/material/datepicker/DateFormatTextWatcher;
|
|
|
|
iput-object p2, p0, Lcom/google/android/material/datepicker/b;->f:Ljava/lang/String;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final run()V
|
|
.locals 14
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/datepicker/b;->c:Lcom/google/android/material/datepicker/DateFormatTextWatcher;
|
|
|
|
.line 2
|
|
.line 3
|
|
iget-object v1, v0, Lcom/google/android/material/datepicker/DateFormatTextWatcher;->c:Lcom/google/android/material/textfield/TextInputLayout;
|
|
|
|
.line 4
|
|
.line 5
|
|
iget-object v2, v0, Lcom/google/android/material/datepicker/DateFormatTextWatcher;->g:Ljava/text/SimpleDateFormat;
|
|
|
|
.line 6
|
|
.line 7
|
|
invoke-virtual {v1}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
move-result-object v3
|
|
|
|
.line 11
|
|
sget v4, Lcom/google/android/material/R$string;->mtrl_picker_invalid_format:I
|
|
|
|
.line 12
|
|
.line 13
|
|
invoke-virtual {v3, v4}, Landroid/content/Context;->getString(I)Ljava/lang/String;
|
|
|
|
.line 14
|
|
.line 15
|
|
.line 16
|
|
move-result-object v4
|
|
|
|
.line 17
|
|
sget v5, Lcom/google/android/material/R$string;->mtrl_picker_invalid_format_use:I
|
|
|
|
.line 18
|
|
.line 19
|
|
invoke-virtual {v3, v5}, Landroid/content/Context;->getString(I)Ljava/lang/String;
|
|
|
|
.line 20
|
|
.line 21
|
|
.line 22
|
|
move-result-object v5
|
|
|
|
.line 23
|
|
iget-object v6, p0, Lcom/google/android/material/datepicker/b;->f:Ljava/lang/String;
|
|
|
|
.line 24
|
|
.line 25
|
|
const/16 v7, 0x20
|
|
|
|
.line 26
|
|
.line 27
|
|
const/16 v8, 0xa0
|
|
|
|
.line 28
|
|
.line 29
|
|
invoke-virtual {v6, v7, v8}, Ljava/lang/String;->replace(CC)Ljava/lang/String;
|
|
|
|
.line 30
|
|
.line 31
|
|
.line 32
|
|
move-result-object v6
|
|
|
|
.line 33
|
|
const/4 v9, 0x1
|
|
|
|
.line 34
|
|
new-array v10, v9, [Ljava/lang/Object;
|
|
|
|
.line 35
|
|
.line 36
|
|
const/4 v11, 0x0
|
|
|
|
.line 37
|
|
aput-object v6, v10, v11
|
|
|
|
.line 38
|
|
.line 39
|
|
invoke-static {v5, v10}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
.line 40
|
|
.line 41
|
|
.line 42
|
|
move-result-object v5
|
|
|
|
.line 43
|
|
sget v6, Lcom/google/android/material/R$string;->mtrl_picker_invalid_format_example:I
|
|
|
|
.line 44
|
|
.line 45
|
|
invoke-virtual {v3, v6}, Landroid/content/Context;->getString(I)Ljava/lang/String;
|
|
|
|
.line 46
|
|
.line 47
|
|
.line 48
|
|
move-result-object v3
|
|
|
|
.line 49
|
|
new-instance v6, Ljava/util/Date;
|
|
|
|
.line 50
|
|
.line 51
|
|
invoke-static {}, Lcom/google/android/material/datepicker/UtcDates;->h()Ljava/util/Calendar;
|
|
|
|
.line 52
|
|
.line 53
|
|
.line 54
|
|
move-result-object v10
|
|
|
|
.line 55
|
|
invoke-virtual {v10}, Ljava/util/Calendar;->getTimeInMillis()J
|
|
|
|
.line 56
|
|
.line 57
|
|
.line 58
|
|
move-result-wide v12
|
|
|
|
.line 59
|
|
invoke-direct {v6, v12, v13}, Ljava/util/Date;-><init>(J)V
|
|
|
|
.line 60
|
|
.line 61
|
|
.line 62
|
|
invoke-virtual {v2, v6}, Ljava/text/DateFormat;->format(Ljava/util/Date;)Ljava/lang/String;
|
|
|
|
.line 63
|
|
.line 64
|
|
.line 65
|
|
move-result-object v2
|
|
|
|
.line 66
|
|
invoke-virtual {v2, v7, v8}, Ljava/lang/String;->replace(CC)Ljava/lang/String;
|
|
|
|
.line 67
|
|
.line 68
|
|
.line 69
|
|
move-result-object v2
|
|
|
|
.line 70
|
|
new-array v6, v9, [Ljava/lang/Object;
|
|
|
|
.line 71
|
|
.line 72
|
|
aput-object v2, v6, v11
|
|
|
|
.line 73
|
|
.line 74
|
|
invoke-static {v3, v6}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
.line 75
|
|
.line 76
|
|
.line 77
|
|
move-result-object v2
|
|
|
|
.line 78
|
|
new-instance v3, Ljava/lang/StringBuilder;
|
|
|
|
.line 79
|
|
.line 80
|
|
invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
.line 81
|
|
.line 82
|
|
.line 83
|
|
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
.line 84
|
|
.line 85
|
|
.line 86
|
|
const-string v4, "\n"
|
|
|
|
.line 87
|
|
.line 88
|
|
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
.line 89
|
|
.line 90
|
|
.line 91
|
|
invoke-virtual {v3, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
.line 92
|
|
.line 93
|
|
.line 94
|
|
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
.line 95
|
|
.line 96
|
|
.line 97
|
|
invoke-virtual {v3, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
.line 98
|
|
.line 99
|
|
.line 100
|
|
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
.line 101
|
|
.line 102
|
|
.line 103
|
|
move-result-object v2
|
|
|
|
.line 104
|
|
invoke-virtual {v1, v2}, Lcom/google/android/material/textfield/TextInputLayout;->setError(Ljava/lang/CharSequence;)V
|
|
|
|
.line 105
|
|
.line 106
|
|
.line 107
|
|
invoke-virtual {v0}, Lcom/google/android/material/datepicker/DateFormatTextWatcher;->a()V
|
|
|
|
.line 108
|
|
.line 109
|
|
.line 110
|
|
return-void
|
|
.end method
|