* 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>
339 lines
8.3 KiB
Smali
339 lines
8.3 KiB
Smali
.class public Landroidx/webkit/WebViewClientCompat;
|
|
.super Landroid/webkit/WebViewClient;
|
|
.source "SourceFile"
|
|
|
|
# interfaces
|
|
.implements Lorg/chromium/support_lib_boundary/WebViewClientBoundaryInterface;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Landroidx/webkit/WebViewClientCompat$SafeBrowsingThreat;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final c:[Ljava/lang/String;
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 5
|
|
|
|
.line 1
|
|
const-string v0, "SHOULD_OVERRIDE_WITH_REDIRECTS"
|
|
|
|
.line 2
|
|
.line 3
|
|
const-string v1, "SAFE_BROWSING_HIT"
|
|
|
|
.line 4
|
|
.line 5
|
|
const-string v2, "VISUAL_STATE_CALLBACK"
|
|
|
|
.line 6
|
|
.line 7
|
|
const-string v3, "RECEIVE_WEB_RESOURCE_ERROR"
|
|
|
|
.line 8
|
|
.line 9
|
|
const-string v4, "RECEIVE_HTTP_ERROR"
|
|
|
|
.line 10
|
|
.line 11
|
|
filled-new-array {v2, v3, v4, v0, v1}, [Ljava/lang/String;
|
|
|
|
.line 12
|
|
.line 13
|
|
.line 14
|
|
move-result-object v0
|
|
|
|
.line 15
|
|
sput-object v0, Landroidx/webkit/WebViewClientCompat;->c:[Ljava/lang/String;
|
|
|
|
.line 16
|
|
.line 17
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final a(Landroid/webkit/WebView;Landroid/webkit/WebResourceRequest;Landroidx/webkit/internal/WebResourceErrorImpl;)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
const-string v0, "WEB_RESOURCE_ERROR_GET_CODE"
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-static {v0}, Landroidx/webkit/WebViewFeature;->a(Ljava/lang/String;)Z
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
move-result v0
|
|
|
|
.line 7
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 8
|
|
.line 9
|
|
const-string v0, "WEB_RESOURCE_ERROR_GET_DESCRIPTION"
|
|
|
|
.line 10
|
|
.line 11
|
|
invoke-static {v0}, Landroidx/webkit/WebViewFeature;->a(Ljava/lang/String;)Z
|
|
|
|
.line 12
|
|
.line 13
|
|
.line 14
|
|
move-result v0
|
|
|
|
.line 15
|
|
if-nez v0, :cond_0
|
|
|
|
.line 16
|
|
.line 17
|
|
goto :goto_0
|
|
|
|
.line 18
|
|
:cond_0
|
|
invoke-interface {p2}, Landroid/webkit/WebResourceRequest;->isForMainFrame()Z
|
|
|
|
.line 19
|
|
.line 20
|
|
.line 21
|
|
move-result v0
|
|
|
|
.line 22
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 23
|
|
.line 24
|
|
invoke-virtual {p3}, Landroidx/webkit/internal/WebResourceErrorImpl;->b()I
|
|
|
|
.line 25
|
|
.line 26
|
|
.line 27
|
|
move-result v0
|
|
|
|
.line 28
|
|
invoke-virtual {p3}, Landroidx/webkit/internal/WebResourceErrorImpl;->a()Ljava/lang/CharSequence;
|
|
|
|
.line 29
|
|
.line 30
|
|
.line 31
|
|
move-result-object p3
|
|
|
|
.line 32
|
|
invoke-interface {p3}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;
|
|
|
|
.line 33
|
|
.line 34
|
|
.line 35
|
|
move-result-object p3
|
|
|
|
.line 36
|
|
invoke-interface {p2}, Landroid/webkit/WebResourceRequest;->getUrl()Landroid/net/Uri;
|
|
|
|
.line 37
|
|
.line 38
|
|
.line 39
|
|
move-result-object p2
|
|
|
|
.line 40
|
|
invoke-virtual {p2}, Landroid/net/Uri;->toString()Ljava/lang/String;
|
|
|
|
.line 41
|
|
.line 42
|
|
.line 43
|
|
move-result-object p2
|
|
|
|
.line 44
|
|
invoke-virtual {p0, p1, v0, p3, p2}, Landroid/webkit/WebViewClient;->onReceivedError(Landroid/webkit/WebView;ILjava/lang/String;Ljava/lang/String;)V
|
|
|
|
.line 45
|
|
.line 46
|
|
.line 47
|
|
:cond_1
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public final getSupportedFeatures()[Ljava/lang/String;
|
|
.locals 1
|
|
|
|
.line 1
|
|
sget-object v0, Landroidx/webkit/WebViewClientCompat;->c:[Ljava/lang/String;
|
|
|
|
.line 2
|
|
.line 3
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final onPageCommitVisible(Landroid/webkit/WebView;Ljava/lang/String;)V
|
|
.locals 0
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final onReceivedError(Landroid/webkit/WebView;Landroid/webkit/WebResourceRequest;Landroid/webkit/WebResourceError;)V
|
|
.locals 1
|
|
|
|
.line 5
|
|
new-instance v0, Landroidx/webkit/internal/WebResourceErrorImpl;
|
|
|
|
.line 6
|
|
invoke-direct {v0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 7
|
|
iput-object p3, v0, Landroidx/webkit/internal/WebResourceErrorImpl;->a:Landroid/webkit/WebResourceError;
|
|
|
|
.line 8
|
|
invoke-virtual {p0, p1, p2, v0}, Landroidx/webkit/WebViewClientCompat;->a(Landroid/webkit/WebView;Landroid/webkit/WebResourceRequest;Landroidx/webkit/internal/WebResourceErrorImpl;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final onReceivedError(Landroid/webkit/WebView;Landroid/webkit/WebResourceRequest;Ljava/lang/reflect/InvocationHandler;)V
|
|
.locals 2
|
|
|
|
.line 1
|
|
new-instance v0, Landroidx/webkit/internal/WebResourceErrorImpl;
|
|
|
|
.line 2
|
|
invoke-direct {v0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 3
|
|
const-class v1, Lorg/chromium/support_lib_boundary/WebResourceErrorBoundaryInterface;
|
|
|
|
invoke-static {v1, p3}, Lorg/chromium/support_lib_boundary/util/BoundaryInterfaceReflectionUtil;->a(Ljava/lang/Class;Ljava/lang/reflect/InvocationHandler;)Ljava/lang/Object;
|
|
|
|
move-result-object p3
|
|
|
|
check-cast p3, Lorg/chromium/support_lib_boundary/WebResourceErrorBoundaryInterface;
|
|
|
|
iput-object p3, v0, Landroidx/webkit/internal/WebResourceErrorImpl;->b:Lorg/chromium/support_lib_boundary/WebResourceErrorBoundaryInterface;
|
|
|
|
.line 4
|
|
invoke-virtual {p0, p1, p2, v0}, Landroidx/webkit/WebViewClientCompat;->a(Landroid/webkit/WebView;Landroid/webkit/WebResourceRequest;Landroidx/webkit/internal/WebResourceErrorImpl;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final onReceivedHttpError(Landroid/webkit/WebView;Landroid/webkit/WebResourceRequest;Landroid/webkit/WebResourceResponse;)V
|
|
.locals 0
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final onSafeBrowsingHit(Landroid/webkit/WebView;Landroid/webkit/WebResourceRequest;ILandroid/webkit/SafeBrowsingResponse;)V
|
|
.locals 0
|
|
|
|
.line 7
|
|
new-instance p1, Landroidx/webkit/internal/SafeBrowsingResponseImpl;
|
|
|
|
.line 8
|
|
invoke-direct {p1}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 9
|
|
iput-object p4, p1, Landroidx/webkit/internal/SafeBrowsingResponseImpl;->a:Landroid/webkit/SafeBrowsingResponse;
|
|
|
|
.line 10
|
|
const-string p2, "SAFE_BROWSING_RESPONSE_SHOW_INTERSTITIAL"
|
|
|
|
invoke-static {p2}, Landroidx/webkit/WebViewFeature;->a(Ljava/lang/String;)Z
|
|
|
|
move-result p2
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
.line 11
|
|
invoke-virtual {p1}, Landroidx/webkit/internal/SafeBrowsingResponseImpl;->a()V
|
|
|
|
return-void
|
|
|
|
.line 12
|
|
:cond_0
|
|
invoke-static {}, Landroidx/webkit/internal/WebViewFeatureInternal;->a()Ljava/lang/UnsupportedOperationException;
|
|
|
|
move-result-object p1
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public final onSafeBrowsingHit(Landroid/webkit/WebView;Landroid/webkit/WebResourceRequest;ILjava/lang/reflect/InvocationHandler;)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
new-instance p1, Landroidx/webkit/internal/SafeBrowsingResponseImpl;
|
|
|
|
.line 2
|
|
invoke-direct {p1}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 3
|
|
const-class p2, Lorg/chromium/support_lib_boundary/SafeBrowsingResponseBoundaryInterface;
|
|
|
|
invoke-static {p2, p4}, Lorg/chromium/support_lib_boundary/util/BoundaryInterfaceReflectionUtil;->a(Ljava/lang/Class;Ljava/lang/reflect/InvocationHandler;)Ljava/lang/Object;
|
|
|
|
move-result-object p2
|
|
|
|
check-cast p2, Lorg/chromium/support_lib_boundary/SafeBrowsingResponseBoundaryInterface;
|
|
|
|
iput-object p2, p1, Landroidx/webkit/internal/SafeBrowsingResponseImpl;->b:Lorg/chromium/support_lib_boundary/SafeBrowsingResponseBoundaryInterface;
|
|
|
|
.line 4
|
|
const-string p2, "SAFE_BROWSING_RESPONSE_SHOW_INTERSTITIAL"
|
|
|
|
invoke-static {p2}, Landroidx/webkit/WebViewFeature;->a(Ljava/lang/String;)Z
|
|
|
|
move-result p2
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
.line 5
|
|
invoke-virtual {p1}, Landroidx/webkit/internal/SafeBrowsingResponseImpl;->a()V
|
|
|
|
return-void
|
|
|
|
.line 6
|
|
:cond_0
|
|
invoke-static {}, Landroidx/webkit/internal/WebViewFeatureInternal;->a()Ljava/lang/UnsupportedOperationException;
|
|
|
|
move-result-object p1
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public final shouldOverrideUrlLoading(Landroid/webkit/WebView;Landroid/webkit/WebResourceRequest;)Z
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-interface {p2}, Landroid/webkit/WebResourceRequest;->getUrl()Landroid/net/Uri;
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result-object p2
|
|
|
|
.line 5
|
|
invoke-virtual {p2}, Landroid/net/Uri;->toString()Ljava/lang/String;
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
move-result-object p2
|
|
|
|
.line 9
|
|
invoke-virtual {p0, p1, p2}, Landroid/webkit/WebViewClient;->shouldOverrideUrlLoading(Landroid/webkit/WebView;Ljava/lang/String;)Z
|
|
|
|
.line 10
|
|
.line 11
|
|
.line 12
|
|
move-result p1
|
|
|
|
.line 13
|
|
return p1
|
|
.end method
|