soul-browser/bundled-warp
KaKi87 d1ec2a89ea
Add Cloudflare WARP (#58)
* Add unofficial Cloudflare WARP for WebView via amz proxy.

Route browsing through a local HTTP CONNECT proxy and ProxyController, mutually exclusive with the DNS VPN. Downloads and torrents stay direct.

Co-authored-by: Cursor <cursoragent@cursor.com>

* Fix soulamz DNS on Android so WARP registration can succeed.

Pure-Go resolution defaults to localhost:53 without resolv.conf; bootstrap public DNS and build both ABIs with NDK cgo.

Co-authored-by: Cursor <cursoragent@cursor.com>

* Load Android CA roots in soulamz and warm WebView before proxy override.

Fixes TLS verification on device and ProxyController startup races. Document that local VPNs like AdGuard can block WARP endpoint probes.

Co-authored-by: Cursor <cursoragent@cursor.com>

* Prefer non-443 MASQUE endpoints so WARP CONNECT succeeds.

amz auto-select often picks *:443, which fails TLS/CONNECT against current Cloudflare MASQUE; probe preferred ports and only print READY after warp=on.

Co-authored-by: Cursor <cursoragent@cursor.com>

* Prefer non-443 MASQUE endpoints so WARP CONNECT succeeds.

amz auto-selects *:443 with SNI warp.cloudflare.com, which fails against Cloudflare's masque cert and yields CONNECT 502; try known-good ports and probe warp=on before READY.

Co-authored-by: Cursor <cursoragent@cursor.com>

* Ship rebuilt soulamz with MASQUE :4443 preference and rebuild-on-change.

CI was packaging stale bundled libsoulamz.so; rebuild when main.go is newer and pin working non-443 WARP endpoints.

Co-authored-by: Cursor <cursoragent@cursor.com>

* Make WARP settings use the shared SettingActivity UI.

Match DNS and other settings pages with header chrome and list rows; add compile-only stubs so the warp dex can still build separately.

Co-authored-by: Cursor <cursoragent@cursor.com>

* Fix WARP settings crash from wrong R$string package.

Use literal public.xml string IDs so SettingWarp does not reference
com.mycompany.app.soulbrowser.R (app R is net.kaki87.soul2[.testing]).

Co-authored-by: Cursor <cursoragent@cursor.com>

* Show WARP busy spinner and refresh IP from Cloudflare trace.

Replace the settings switch with a ProgressBar while starting/stopping, and show ip/colo/loc under the toggle refreshed on connect and disconnect.

Co-authored-by: Cursor <cursoragent@cursor.com>

* Fix WARP toggle crash writing final SettingItem.t.

Mark the row busy via mutable SettingItem.s only; t is final in the app dex.

Co-authored-by: Cursor <cursoragent@cursor.com>

* Fix WARP spinner crash from wrong ViewHolder.z field type.

Locate the switch via findViewById instead of accessing ViewHolder.z (MySwitchView in app dex).

Co-authored-by: Cursor <cursoragent@cursor.com>

* Avoid off-flash when disabling WARP.

Keep the switch visually on under the spinner while stopping; the list adapter toggles eagerly before our listener runs.

Co-authored-by: Cursor <cursoragent@cursor.com>

* Route all Soul HTTP through WARP and reword VPN guidance.

Install a process-wide ProxySelector plus chokepoint openConnection patches; update warp_info to ask users to whitelist Soul in other VPNs.

Co-authored-by: Cursor <cursoragent@cursor.com>

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-17 02:07:27 +02:00
..
lib Add Cloudflare WARP (#58) 2026-08-17 02:07:27 +02:00
README.md Add Cloudflare WARP (#58) 2026-08-17 02:07:27 +02:00

Generated by scripts/build-soulamz.sh — commit prebuilts so CI can build without Go/NDK.

Rebuild with: ./scripts/build-soulamz.sh