* 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>
325 lines
7.3 KiB
Smali
325 lines
7.3 KiB
Smali
.class public Landroidx/credentials/playservices/IdentityCredentialApiHiddenActivity;
|
|
.super Landroid/app/Activity;
|
|
.source "SourceFile"
|
|
|
|
|
|
# annotations
|
|
.annotation build Landroidx/annotation/RestrictTo;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Landroidx/credentials/playservices/IdentityCredentialApiHiddenActivity$Companion;
|
|
}
|
|
.end annotation
|
|
|
|
.annotation runtime Lkotlin/Metadata;
|
|
d1 = {
|
|
"\u0000\u000c\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0004\u0008\u0017\u0018\u00002\u00020\u0001:\u0001\u0004B\u0007\u00a2\u0006\u0004\u0008\u0002\u0010\u0003\u00a8\u0006\u0005"
|
|
}
|
|
d2 = {
|
|
"Landroidx/credentials/playservices/IdentityCredentialApiHiddenActivity;",
|
|
"Landroid/app/Activity;",
|
|
"<init>",
|
|
"()V",
|
|
"Companion",
|
|
"credentials-play-services-auth_release"
|
|
}
|
|
k = 0x1
|
|
mv = {
|
|
0x1,
|
|
0x9,
|
|
0x0
|
|
}
|
|
xi = 0x30
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public c:Landroid/os/ResultReceiver;
|
|
|
|
.field public f:Z
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Landroid/app/Activity;-><init>()V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final onActivityResult(IILandroid/content/Intent;)V
|
|
.locals 2
|
|
|
|
.line 1
|
|
invoke-super {p0, p1, p2, p3}, Landroid/app/Activity;->onActivityResult(IILandroid/content/Intent;)V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
iget-object v0, p0, Landroidx/credentials/playservices/IdentityCredentialApiHiddenActivity;->c:Landroid/os/ResultReceiver;
|
|
|
|
.line 5
|
|
.line 6
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 7
|
|
.line 8
|
|
sget-object v1, Landroidx/credentials/playservices/controllers/CredentialProviderBaseController;->a:Landroidx/credentials/playservices/controllers/CredentialProviderBaseController$Companion;
|
|
|
|
.line 9
|
|
.line 10
|
|
invoke-static {v0, p1, p2, p3}, Landroidx/credentials/playservices/controllers/CredentialProviderBaseController$Companion;->d(Landroid/os/ResultReceiver;IILandroid/content/Intent;)V
|
|
|
|
.line 11
|
|
.line 12
|
|
.line 13
|
|
:cond_0
|
|
const/4 p1, 0x0
|
|
|
|
.line 14
|
|
iput-boolean p1, p0, Landroidx/credentials/playservices/IdentityCredentialApiHiddenActivity;->f:Z
|
|
|
|
.line 15
|
|
.line 16
|
|
invoke-virtual {p0}, Landroid/app/Activity;->finish()V
|
|
|
|
.line 17
|
|
.line 18
|
|
.line 19
|
|
return-void
|
|
.end method
|
|
|
|
.method public final onCreate(Landroid/os/Bundle;)V
|
|
.locals 8
|
|
|
|
.line 1
|
|
invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
const/4 v0, 0x0
|
|
|
|
.line 5
|
|
invoke-virtual {p0, v0, v0}, Landroid/app/Activity;->overridePendingTransition(II)V
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
invoke-virtual {p0}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;
|
|
|
|
.line 9
|
|
.line 10
|
|
.line 11
|
|
move-result-object v1
|
|
|
|
.line 12
|
|
const-string v2, "RESULT_RECEIVER"
|
|
|
|
.line 13
|
|
.line 14
|
|
invoke-virtual {v1, v2}, Landroid/content/Intent;->getParcelableExtra(Ljava/lang/String;)Landroid/os/Parcelable;
|
|
|
|
.line 15
|
|
.line 16
|
|
.line 17
|
|
move-result-object v1
|
|
|
|
.line 18
|
|
check-cast v1, Landroid/os/ResultReceiver;
|
|
|
|
.line 19
|
|
.line 20
|
|
iput-object v1, p0, Landroidx/credentials/playservices/IdentityCredentialApiHiddenActivity;->c:Landroid/os/ResultReceiver;
|
|
|
|
.line 21
|
|
.line 22
|
|
if-nez v1, :cond_0
|
|
|
|
.line 23
|
|
.line 24
|
|
invoke-virtual {p0}, Landroid/app/Activity;->finish()V
|
|
|
|
.line 25
|
|
.line 26
|
|
.line 27
|
|
:cond_0
|
|
if-eqz p1, :cond_1
|
|
|
|
.line 28
|
|
.line 29
|
|
const-string v1, "androidx.credentials.playservices.AWAITING_RESULT"
|
|
|
|
.line 30
|
|
.line 31
|
|
invoke-virtual {p1, v1, v0}, Landroid/os/BaseBundle;->getBoolean(Ljava/lang/String;Z)Z
|
|
|
|
.line 32
|
|
.line 33
|
|
.line 34
|
|
move-result p1
|
|
|
|
.line 35
|
|
iput-boolean p1, p0, Landroidx/credentials/playservices/IdentityCredentialApiHiddenActivity;->f:Z
|
|
|
|
.line 36
|
|
.line 37
|
|
:cond_1
|
|
iget-boolean p1, p0, Landroidx/credentials/playservices/IdentityCredentialApiHiddenActivity;->f:Z
|
|
|
|
.line 38
|
|
.line 39
|
|
if-eqz p1, :cond_2
|
|
|
|
.line 40
|
|
.line 41
|
|
return-void
|
|
|
|
.line 42
|
|
:cond_2
|
|
invoke-virtual {p0}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;
|
|
|
|
.line 43
|
|
.line 44
|
|
.line 45
|
|
move-result-object p1
|
|
|
|
.line 46
|
|
const-string v0, "EXTRA_GET_CREDENTIAL_INTENT"
|
|
|
|
.line 47
|
|
.line 48
|
|
invoke-virtual {p1, v0}, Landroid/content/Intent;->getParcelableExtra(Ljava/lang/String;)Landroid/os/Parcelable;
|
|
|
|
.line 49
|
|
.line 50
|
|
.line 51
|
|
move-result-object p1
|
|
|
|
.line 52
|
|
check-cast p1, Landroid/app/PendingIntent;
|
|
|
|
.line 53
|
|
.line 54
|
|
if-eqz p1, :cond_3
|
|
|
|
.line 55
|
|
.line 56
|
|
invoke-virtual {p1}, Landroid/app/PendingIntent;->getIntentSender()Landroid/content/IntentSender;
|
|
|
|
.line 57
|
|
.line 58
|
|
.line 59
|
|
move-result-object v1
|
|
|
|
.line 60
|
|
sget v2, Landroidx/credentials/playservices/controllers/CredentialProviderBaseController;->c:I
|
|
|
|
.line 61
|
|
.line 62
|
|
const/4 v6, 0x0
|
|
|
|
.line 63
|
|
const/4 v7, 0x0
|
|
|
|
.line 64
|
|
const/4 v3, 0x0
|
|
|
|
.line 65
|
|
const/4 v4, 0x0
|
|
|
|
.line 66
|
|
const/4 v5, 0x0
|
|
|
|
.line 67
|
|
move-object v0, p0
|
|
|
|
.line 68
|
|
invoke-virtual/range {v0 .. v7}, Landroid/app/Activity;->startIntentSenderForResult(Landroid/content/IntentSender;ILandroid/content/Intent;IIILandroid/os/Bundle;)V
|
|
|
|
.line 69
|
|
.line 70
|
|
.line 71
|
|
return-void
|
|
|
|
.line 72
|
|
:cond_3
|
|
move-object v0, p0
|
|
|
|
.line 73
|
|
iget-object p1, v0, Landroidx/credentials/playservices/IdentityCredentialApiHiddenActivity;->c:Landroid/os/ResultReceiver;
|
|
|
|
.line 74
|
|
.line 75
|
|
if-eqz p1, :cond_4
|
|
|
|
.line 76
|
|
.line 77
|
|
sget-object v1, Landroidx/credentials/playservices/controllers/CredentialProviderBaseController;->a:Landroidx/credentials/playservices/controllers/CredentialProviderBaseController$Companion;
|
|
|
|
.line 78
|
|
.line 79
|
|
const-string v1, "GET_UNKNOWN"
|
|
|
|
.line 80
|
|
.line 81
|
|
const-string v2, "Internal error"
|
|
|
|
.line 82
|
|
.line 83
|
|
invoke-static {p1, v1, v2}, Landroidx/credentials/playservices/controllers/CredentialProviderBaseController$Companion;->c(Landroid/os/ResultReceiver;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
.line 84
|
|
.line 85
|
|
.line 86
|
|
:cond_4
|
|
invoke-virtual {p0}, Landroid/app/Activity;->finish()V
|
|
|
|
.line 87
|
|
.line 88
|
|
.line 89
|
|
return-void
|
|
.end method
|
|
|
|
.method public final onSaveInstanceState(Landroid/os/Bundle;)V
|
|
.locals 2
|
|
|
|
.line 1
|
|
const-string v0, "outState"
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
const-string v0, "androidx.credentials.playservices.AWAITING_RESULT"
|
|
|
|
.line 7
|
|
.line 8
|
|
iget-boolean v1, p0, Landroidx/credentials/playservices/IdentityCredentialApiHiddenActivity;->f:Z
|
|
|
|
.line 9
|
|
.line 10
|
|
invoke-virtual {p1, v0, v1}, Landroid/os/BaseBundle;->putBoolean(Ljava/lang/String;Z)V
|
|
|
|
.line 11
|
|
.line 12
|
|
.line 13
|
|
invoke-super {p0, p1}, Landroid/app/Activity;->onSaveInstanceState(Landroid/os/Bundle;)V
|
|
|
|
.line 14
|
|
.line 15
|
|
.line 16
|
|
return-void
|
|
.end method
|