soul-browser/sources/java/com/google/android/gms/internal/ads/zzboj.java
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

235 lines
7.5 KiB
Java

package com.google.android.gms.internal.ads;
import android.graphics.Bitmap;
import android.net.http.SslError;
import android.os.Message;
import android.view.KeyEvent;
import android.webkit.ClientCertRequest;
import android.webkit.HttpAuthHandler;
import android.webkit.RenderProcessGoneDetail;
import android.webkit.SafeBrowsingResponse;
import android.webkit.SslErrorHandler;
import android.webkit.WebResourceError;
import android.webkit.WebResourceRequest;
import android.webkit.WebResourceResponse;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import androidx.annotation.Nullable;
import androidx.annotation.RequiresApi;
/* loaded from: classes.dex */
public abstract class zzboj extends WebViewClient {
public abstract WebViewClient a();
@Override // android.webkit.WebViewClient
public void doUpdateVisitedHistory(WebView webView, String str, boolean z) {
WebViewClient a2 = a();
if (a2 == null) {
return;
}
a2.doUpdateVisitedHistory(webView, str, z);
}
@Override // android.webkit.WebViewClient
public void onFormResubmission(WebView webView, Message message, Message message2) {
WebViewClient a2 = a();
if (a2 == null) {
return;
}
a2.onFormResubmission(webView, message, message2);
}
@Override // android.webkit.WebViewClient
public void onLoadResource(WebView webView, String str) {
WebViewClient a2 = a();
if (a2 == null) {
return;
}
a2.onLoadResource(webView, str);
}
@Override // android.webkit.WebViewClient
public void onPageCommitVisible(WebView webView, String str) {
WebViewClient a2 = a();
if (a2 == null) {
return;
}
a2.onPageCommitVisible(webView, str);
}
@Override // android.webkit.WebViewClient
public void onPageFinished(WebView webView, String str) {
WebViewClient a2 = a();
if (a2 == null) {
return;
}
a2.onPageFinished(webView, str);
}
@Override // android.webkit.WebViewClient
public void onPageStarted(WebView webView, String str, Bitmap bitmap) {
WebViewClient a2 = a();
if (a2 == null) {
return;
}
a2.onPageStarted(webView, str, bitmap);
}
@Override // android.webkit.WebViewClient
public void onReceivedClientCertRequest(WebView webView, ClientCertRequest clientCertRequest) {
WebViewClient a2 = a();
if (a2 == null) {
return;
}
a2.onReceivedClientCertRequest(webView, clientCertRequest);
}
@Override // android.webkit.WebViewClient
public void onReceivedError(WebView webView, int i, String str, String str2) {
WebViewClient a2 = a();
if (a2 == null) {
return;
}
a2.onReceivedError(webView, i, str, str2);
}
@Override // android.webkit.WebViewClient
public void onReceivedHttpAuthRequest(WebView webView, HttpAuthHandler httpAuthHandler, String str, String str2) {
WebViewClient a2 = a();
if (a2 == null) {
return;
}
a2.onReceivedHttpAuthRequest(webView, httpAuthHandler, str, str2);
}
@Override // android.webkit.WebViewClient
public void onReceivedHttpError(WebView webView, WebResourceRequest webResourceRequest, WebResourceResponse webResourceResponse) {
WebViewClient a2 = a();
if (a2 == null) {
return;
}
a2.onReceivedHttpError(webView, webResourceRequest, webResourceResponse);
}
@Override // android.webkit.WebViewClient
public void onReceivedLoginRequest(WebView webView, String str, @Nullable String str2, String str3) {
WebViewClient a2 = a();
if (a2 == null) {
return;
}
a2.onReceivedLoginRequest(webView, str, str2, str3);
}
@Override // android.webkit.WebViewClient
public void onReceivedSslError(WebView webView, SslErrorHandler sslErrorHandler, SslError sslError) {
WebViewClient a2 = a();
if (a2 == null) {
return;
}
a2.onReceivedSslError(webView, sslErrorHandler, sslError);
}
@Override // android.webkit.WebViewClient
@RequiresApi
public boolean onRenderProcessGone(WebView webView, RenderProcessGoneDetail renderProcessGoneDetail) {
WebViewClient a2 = a();
if (a2 == null) {
return false;
}
return a2.onRenderProcessGone(webView, renderProcessGoneDetail);
}
@Override // android.webkit.WebViewClient
@RequiresApi
public void onSafeBrowsingHit(WebView webView, WebResourceRequest webResourceRequest, int i, SafeBrowsingResponse safeBrowsingResponse) {
WebViewClient a2 = a();
if (a2 == null) {
return;
}
a2.onSafeBrowsingHit(webView, webResourceRequest, i, safeBrowsingResponse);
}
@Override // android.webkit.WebViewClient
public void onScaleChanged(WebView webView, float f, float f2) {
WebViewClient a2 = a();
if (a2 == null) {
return;
}
a2.onScaleChanged(webView, f, f2);
}
@Override // android.webkit.WebViewClient
public void onTooManyRedirects(WebView webView, Message message, Message message2) {
WebViewClient a2 = a();
if (a2 == null) {
return;
}
a2.onTooManyRedirects(webView, message, message2);
}
@Override // android.webkit.WebViewClient
public void onUnhandledKeyEvent(WebView webView, KeyEvent keyEvent) {
WebViewClient a2 = a();
if (a2 == null) {
return;
}
a2.onUnhandledKeyEvent(webView, keyEvent);
}
@Override // android.webkit.WebViewClient
@Nullable
public WebResourceResponse shouldInterceptRequest(WebView webView, WebResourceRequest webResourceRequest) {
WebViewClient a2 = a();
if (a2 == null) {
return null;
}
return a2.shouldInterceptRequest(webView, webResourceRequest);
}
@Override // android.webkit.WebViewClient
public boolean shouldOverrideKeyEvent(WebView webView, KeyEvent keyEvent) {
WebViewClient a2 = a();
if (a2 == null) {
return false;
}
return a2.shouldOverrideKeyEvent(webView, keyEvent);
}
@Override // android.webkit.WebViewClient
@RequiresApi
public boolean shouldOverrideUrlLoading(WebView webView, WebResourceRequest webResourceRequest) {
WebViewClient a2 = a();
if (a2 == null) {
return false;
}
return a2.shouldOverrideUrlLoading(webView, webResourceRequest);
}
@Override // android.webkit.WebViewClient
public void onReceivedError(WebView webView, WebResourceRequest webResourceRequest, WebResourceError webResourceError) {
WebViewClient a2 = a();
if (a2 == null) {
return;
}
a2.onReceivedError(webView, webResourceRequest, webResourceError);
}
@Override // android.webkit.WebViewClient
@Nullable
public WebResourceResponse shouldInterceptRequest(WebView webView, String str) {
WebViewClient a2 = a();
if (a2 == null) {
return null;
}
return a2.shouldInterceptRequest(webView, str);
}
@Override // android.webkit.WebViewClient
public boolean shouldOverrideUrlLoading(WebView webView, String str) {
WebViewClient a2 = a();
if (a2 == null) {
return false;
}
return a2.shouldOverrideUrlLoading(webView, str);
}
}