soul-browser/app/smali/androidx/credentials/provider/utils/BeginGetCredentialUtil$Companion$convertToJetpackResponse$4.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

335 lines
7 KiB
Smali

.class final Landroidx/credentials/provider/utils/BeginGetCredentialUtil$Companion$convertToJetpackResponse$4;
.super Lkotlin/jvm/internal/Lambda;
.source "SourceFile"
# interfaces
.implements Lkotlin/jvm/functions/Function1;
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"Lkotlin/jvm/internal/Lambda;",
"Lkotlin/jvm/functions/Function1<",
"Landroid/service/credentials/Action;",
"Landroidx/credentials/provider/Action;",
">;"
}
.end annotation
.annotation runtime Lkotlin/Metadata;
d1 = {
"\u0000\u0010\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0002\u0010\u0000\u001a\u0004\u0018\u00010\u00012\u000e\u0010\u0002\u001a\n \u0004*\u0004\u0018\u00010\u00030\u0003H\n\u00a2\u0006\u0002\u0008\u0005"
}
d2 = {
"<anonymous>",
"Landroidx/credentials/provider/Action;",
"entry",
"Landroid/service/credentials/Action;",
"kotlin.jvm.PlatformType",
"invoke"
}
k = 0x3
mv = {
0x1,
0x8,
0x0
}
xi = 0x30
.end annotation
# direct methods
.method static constructor <clinit>()V
.locals 2
.line 1
new-instance v0, Landroidx/credentials/provider/utils/BeginGetCredentialUtil$Companion$convertToJetpackResponse$4;
.line 2
.line 3
const/4 v1, 0x1
.line 4
invoke-direct {v0, v1}, Lkotlin/jvm/internal/Lambda;-><init>(I)V
.line 5
.line 6
.line 7
return-void
.end method
# virtual methods
.method public final invoke(Ljava/lang/Object;)Ljava/lang/Object;
.locals 6
.line 1
invoke-static {p1}, Landroidx/core/view/accessibility/a;->f(Ljava/lang/Object;)Landroid/service/credentials/Action;
.line 2
.line 3
.line 4
move-result-object p1
.line 5
invoke-virtual {p1}, Landroid/service/credentials/Action;->getSlice()Landroid/app/slice/Slice;
.line 6
.line 7
.line 8
move-result-object p1
.line 9
const-string v0, "entry.slice"
.line 10
.line 11
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
.line 12
.line 13
.line 14
const-string v0, "slice"
.line 15
.line 16
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 17
.line 18
.line 19
invoke-virtual {p1}, Landroid/app/slice/Slice;->getItems()Ljava/util/List;
.line 20
.line 21
.line 22
move-result-object p1
.line 23
const-string v0, "slice.items"
.line 24
.line 25
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
.line 26
.line 27
.line 28
invoke-interface {p1}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
.line 29
.line 30
.line 31
move-result-object p1
.line 32
const-string v0, ""
.line 33
.line 34
const/4 v1, 0x0
.line 35
move-object v2, v1
.line 36
move-object v3, v2
.line 37
:cond_0
:goto_0
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
.line 38
.line 39
.line 40
move-result v4
.line 41
if-eqz v4, :cond_3
.line 42
.line 43
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
.line 44
.line 45
.line 46
move-result-object v4
.line 47
invoke-static {v4}, Landroidx/core/view/accessibility/a;->b(Ljava/lang/Object;)Landroid/app/slice/SliceItem;
.line 48
.line 49
.line 50
move-result-object v4
.line 51
const-string v5, "androidx.credentials.provider.action.HINT_ACTION_TITLE"
.line 52
.line 53
invoke-virtual {v4, v5}, Landroid/app/slice/SliceItem;->hasHint(Ljava/lang/String;)Z
.line 54
.line 55
.line 56
move-result v5
.line 57
if-eqz v5, :cond_1
.line 58
.line 59
invoke-virtual {v4}, Landroid/app/slice/SliceItem;->getText()Ljava/lang/CharSequence;
.line 60
.line 61
.line 62
move-result-object v0
.line 63
const-string v4, "it.text"
.line 64
.line 65
invoke-static {v0, v4}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
.line 66
.line 67
.line 68
goto :goto_0
.line 69
:cond_1
const-string v5, "androidx.credentials.provider.action.HINT_ACTION_SUBTEXT"
.line 70
.line 71
invoke-virtual {v4, v5}, Landroid/app/slice/SliceItem;->hasHint(Ljava/lang/String;)Z
.line 72
.line 73
.line 74
move-result v5
.line 75
if-eqz v5, :cond_2
.line 76
.line 77
invoke-virtual {v4}, Landroid/app/slice/SliceItem;->getText()Ljava/lang/CharSequence;
.line 78
.line 79
.line 80
move-result-object v3
.line 81
goto :goto_0
.line 82
:cond_2
const-string v5, "androidx.credentials.provider.action.SLICE_HINT_PENDING_INTENT"
.line 83
.line 84
invoke-virtual {v4, v5}, Landroid/app/slice/SliceItem;->hasHint(Ljava/lang/String;)Z
.line 85
.line 86
.line 87
move-result v5
.line 88
if-eqz v5, :cond_0
.line 89
.line 90
invoke-virtual {v4}, Landroid/app/slice/SliceItem;->getAction()Landroid/app/PendingIntent;
.line 91
.line 92
.line 93
move-result-object v2
.line 94
goto :goto_0
.line 95
:cond_3
:try_start_0
new-instance p1, Landroidx/credentials/provider/Action;
.line 96
.line 97
check-cast v0, Ljava/lang/CharSequence;
.line 98
.line 99
invoke-static {v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
.line 100
.line 101
.line 102
invoke-direct {p1, v0, v2, v3}, Landroidx/credentials/provider/Action;-><init>(Ljava/lang/CharSequence;Landroid/app/PendingIntent;Ljava/lang/CharSequence;)V
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
.line 103
.line 104
.line 105
return-object p1
.line 106
:catch_0
move-exception p1
.line 107
new-instance v0, Ljava/lang/StringBuilder;
.line 108
.line 109
const-string v2, "fromSlice failed with: "
.line 110
.line 111
invoke-direct {v0, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
.line 112
.line 113
.line 114
invoke-virtual {p1}, Ljava/lang/Throwable;->getMessage()Ljava/lang/String;
.line 115
.line 116
.line 117
move-result-object p1
.line 118
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
.line 119
.line 120
.line 121
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
.line 122
.line 123
.line 124
move-result-object p1
.line 125
const-string v0, "Action"
.line 126
.line 127
invoke-static {v0, p1}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I
.line 128
.line 129
.line 130
return-object v1
.end method