* 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>
362 lines
9.1 KiB
Smali
362 lines
9.1 KiB
Smali
.class public abstract Landroidx/credentials/playservices/controllers/CredentialProviderController;
|
|
.super Landroidx/credentials/playservices/controllers/CredentialProviderBaseController;
|
|
.source "SourceFile"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Landroidx/credentials/playservices/controllers/CredentialProviderController$Companion;
|
|
}
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T1:",
|
|
"Ljava/lang/Object;",
|
|
"T2:",
|
|
"Ljava/lang/Object;",
|
|
"R2:",
|
|
"Ljava/lang/Object;",
|
|
"R1:",
|
|
"Ljava/lang/Object;",
|
|
"E1:",
|
|
"Ljava/lang/Object;",
|
|
">",
|
|
"Landroidx/credentials/playservices/controllers/CredentialProviderBaseController;"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation runtime Lkotlin/Metadata;
|
|
d1 = {
|
|
"\u0000\u0014\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0008\u0005\n\u0002\u0018\u0002\n\u0002\u0008\u0002\u0008 \u0018\u0000*\u0008\u0008\u0000\u0010\u0002*\u00020\u0001*\u0008\u0008\u0001\u0010\u0003*\u00020\u0001*\u0008\u0008\u0002\u0010\u0004*\u00020\u0001*\u0008\u0008\u0003\u0010\u0005*\u00020\u0001*\u0008\u0008\u0004\u0010\u0006*\u00020\u00012\u00020\u0007:\u0001\u0008\u00a8\u0006\t"
|
|
}
|
|
d2 = {
|
|
"Landroidx/credentials/playservices/controllers/CredentialProviderController;",
|
|
"",
|
|
"T1",
|
|
"T2",
|
|
"R2",
|
|
"R1",
|
|
"E1",
|
|
"Landroidx/credentials/playservices/controllers/CredentialProviderBaseController;",
|
|
"Companion",
|
|
"credentials-play-services-auth_release"
|
|
}
|
|
k = 0x1
|
|
mv = {
|
|
0x1,
|
|
0x9,
|
|
0x0
|
|
}
|
|
xi = 0x30
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final synthetic d:I
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroid/content/Context;)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
const-string v0, "context"
|
|
|
|
.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
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 7
|
|
.line 8
|
|
.line 9
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 10
|
|
.line 11
|
|
.line 12
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final b(Landroid/os/CancellationSignal;Lkotlin/jvm/functions/Function0;)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
const-string v0, "onResultOrException"
|
|
|
|
.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
|
|
sget-object v0, Landroidx/credentials/playservices/CredentialProviderPlayServicesImpl;->Companion:Landroidx/credentials/playservices/CredentialProviderPlayServicesImpl$Companion;
|
|
|
|
.line 7
|
|
.line 8
|
|
invoke-virtual {v0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
.line 9
|
|
.line 10
|
|
.line 11
|
|
invoke-static {p0}, Landroidx/credentials/playservices/CredentialProviderPlayServicesImpl$Companion;->a(Landroid/os/CancellationSignal;)Z
|
|
|
|
.line 12
|
|
.line 13
|
|
.line 14
|
|
move-result p0
|
|
|
|
.line 15
|
|
if-eqz p0, :cond_0
|
|
|
|
.line 16
|
|
.line 17
|
|
return-void
|
|
|
|
.line 18
|
|
:cond_0
|
|
invoke-interface {p1}, Lkotlin/jvm/functions/Function0;->invoke()Ljava/lang/Object;
|
|
|
|
.line 19
|
|
.line 20
|
|
.line 21
|
|
return-void
|
|
.end method
|
|
|
|
.method public static c(Landroid/os/Bundle;Lkotlin/jvm/functions/Function2;Ljava/util/concurrent/Executor;Landroidx/credentials/CredentialManagerCallback;Landroid/os/CancellationSignal;)Z
|
|
.locals 2
|
|
|
|
.line 1
|
|
const-string v0, "resultData"
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
const-string v0, "conversionFn"
|
|
|
|
.line 7
|
|
.line 8
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 9
|
|
.line 10
|
|
.line 11
|
|
const-string v0, "executor"
|
|
|
|
.line 12
|
|
.line 13
|
|
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 14
|
|
.line 15
|
|
.line 16
|
|
const-string v0, "callback"
|
|
|
|
.line 17
|
|
.line 18
|
|
invoke-static {p3, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 19
|
|
.line 20
|
|
.line 21
|
|
const-string v0, "FAILURE_RESPONSE"
|
|
|
|
.line 22
|
|
.line 23
|
|
invoke-virtual {p0, v0}, Landroid/os/BaseBundle;->getBoolean(Ljava/lang/String;)Z
|
|
|
|
.line 24
|
|
.line 25
|
|
.line 26
|
|
move-result v0
|
|
|
|
.line 27
|
|
if-nez v0, :cond_0
|
|
|
|
.line 28
|
|
.line 29
|
|
const/4 p0, 0x0
|
|
|
|
.line 30
|
|
return p0
|
|
|
|
.line 31
|
|
:cond_0
|
|
const-string v0, "EXCEPTION_TYPE"
|
|
|
|
.line 32
|
|
.line 33
|
|
invoke-virtual {p0, v0}, Landroid/os/BaseBundle;->getString(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
.line 34
|
|
.line 35
|
|
.line 36
|
|
move-result-object v0
|
|
|
|
.line 37
|
|
const-string v1, "EXCEPTION_MESSAGE"
|
|
|
|
.line 38
|
|
.line 39
|
|
invoke-virtual {p0, v1}, Landroid/os/BaseBundle;->getString(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
.line 40
|
|
.line 41
|
|
.line 42
|
|
move-result-object p0
|
|
|
|
.line 43
|
|
invoke-interface {p1, v0, p0}, Lkotlin/jvm/functions/Function2;->invoke(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.line 44
|
|
.line 45
|
|
.line 46
|
|
move-result-object p0
|
|
|
|
.line 47
|
|
new-instance p1, Landroidx/credentials/playservices/controllers/CredentialProviderController$maybeReportErrorFromResultReceiver$1;
|
|
|
|
.line 48
|
|
.line 49
|
|
invoke-direct {p1, p2, p3, p0}, Landroidx/credentials/playservices/controllers/CredentialProviderController$maybeReportErrorFromResultReceiver$1;-><init>(Ljava/util/concurrent/Executor;Landroidx/credentials/CredentialManagerCallback;Ljava/lang/Object;)V
|
|
|
|
.line 50
|
|
.line 51
|
|
.line 52
|
|
invoke-static {p4, p1}, Landroidx/credentials/playservices/controllers/CredentialProviderController;->b(Landroid/os/CancellationSignal;Lkotlin/jvm/functions/Function0;)V
|
|
|
|
.line 53
|
|
.line 54
|
|
.line 55
|
|
const/4 p0, 0x1
|
|
|
|
.line 56
|
|
return p0
|
|
.end method
|
|
|
|
.method public static final d(ILkotlin/jvm/functions/Function2;Lkotlin/jvm/functions/Function1;Landroid/os/CancellationSignal;)Z
|
|
.locals 4
|
|
|
|
.line 1
|
|
const-string v0, "cancelOnError"
|
|
|
|
.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, "onError"
|
|
|
|
.line 7
|
|
.line 8
|
|
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 9
|
|
.line 10
|
|
.line 11
|
|
const/4 v0, -0x1
|
|
|
|
.line 12
|
|
if-eq p0, v0, :cond_1
|
|
|
|
.line 13
|
|
.line 14
|
|
new-instance v0, Lkotlin/jvm/internal/Ref$ObjectRef;
|
|
|
|
.line 15
|
|
.line 16
|
|
invoke-direct {v0}, Lkotlin/jvm/internal/Ref$ObjectRef;-><init>()V
|
|
|
|
.line 17
|
|
.line 18
|
|
.line 19
|
|
new-instance v1, Landroidx/credentials/exceptions/CreateCredentialUnknownException;
|
|
|
|
.line 20
|
|
.line 21
|
|
const-string v2, "activity with result code: "
|
|
|
|
.line 22
|
|
.line 23
|
|
const-string v3, " indicating not RESULT_OK"
|
|
|
|
.line 24
|
|
.line 25
|
|
invoke-static {p0, v2, v3}, Landroid/support/v4/media/a;->f(ILjava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
.line 26
|
|
.line 27
|
|
.line 28
|
|
move-result-object v2
|
|
|
|
.line 29
|
|
invoke-direct {v1, v2}, Landroidx/credentials/exceptions/CreateCredentialUnknownException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 30
|
|
.line 31
|
|
.line 32
|
|
iput-object v1, v0, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
|
|
|
|
.line 33
|
|
.line 34
|
|
if-nez p0, :cond_0
|
|
|
|
.line 35
|
|
.line 36
|
|
new-instance p0, Landroidx/credentials/exceptions/CreateCredentialCancellationException;
|
|
|
|
.line 37
|
|
.line 38
|
|
const-string v1, "activity is cancelled by the user."
|
|
|
|
.line 39
|
|
.line 40
|
|
invoke-direct {p0, v1}, Landroidx/credentials/exceptions/CreateCredentialCancellationException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 41
|
|
.line 42
|
|
.line 43
|
|
iput-object p0, v0, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;
|
|
|
|
.line 44
|
|
.line 45
|
|
:cond_0
|
|
new-instance p0, Landroidx/credentials/playservices/controllers/CredentialProviderController$Companion$maybeReportErrorResultCodeCreate$1;
|
|
|
|
.line 46
|
|
.line 47
|
|
invoke-direct {p0, p2, v0}, Landroidx/credentials/playservices/controllers/CredentialProviderController$Companion$maybeReportErrorResultCodeCreate$1;-><init>(Lkotlin/jvm/functions/Function1;Lkotlin/jvm/internal/Ref$ObjectRef;)V
|
|
|
|
.line 48
|
|
.line 49
|
|
.line 50
|
|
invoke-interface {p1, p3, p0}, Lkotlin/jvm/functions/Function2;->invoke(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.line 51
|
|
.line 52
|
|
.line 53
|
|
const/4 p0, 0x1
|
|
|
|
.line 54
|
|
return p0
|
|
|
|
.line 55
|
|
:cond_1
|
|
const/4 p0, 0x0
|
|
|
|
.line 56
|
|
return p0
|
|
.end method
|