Authentic Kiwi Browser revived on Chromium 160 Dev (160.0.8157.3) — with desktop Manifest V3 extensions on smartphones, tab-native Developer Tools, on-device chrome://inspect/#devices, and direct loopback CDP / MCP integration for AI coding agents.
When kiwibrowser/src.next was archived on Chromium 105, Android power users and mobile web developers lost the browser that brought full desktop Chrome extensions, on-device DevTools, and open hacking workflows to phones.
Kiwi Next (com.kiwibrowser.next) is a clean, reproducible port of Kiwi's signature features onto Chromium 160 Dev (160.0.8157.3) targeting Android 17 (API 37, arm64-v8a), physically built and verified on a Samsung Galaxy S25 Ultra (SM-S938B).
Instead of relying on brittle legacy Chromium 105 patch dumps, every feature is maintained as an idempotent, unit-tested patcher in scripts/apply_kiwi_160_patches.py (11/11 passing tests in tests/).
Every item listed below has been compiled into kiwi-next-arm64-v160.0.8157.3.apk and verified directly on Android 17 (SM-S938B):
- Compiled with
is_desktop_android = true(which enablesenable_desktop_android_extensions = true) plus phone-layout adaptations so desktop extensions work on smartphones, not just tablets. - Phone Toolbar Compatibility Fix: Replaced upstream Chromium 160's tablet-only
(ToolbarTablet) mToolbarLayoutcast inToolbarManager.javawith(ViewGroup) mToolbarLayoutand addedextensions_toolbar_container_stubtotoolbar_phone.xml, eliminating the smartphone startupClassCastException. - Direct 3-Dot Menu Access: Added Extensions, Manage Extensions (
chrome://extensions), and Chrome Web Store directly into the phone overflow menu (TabbedAppMenuPropertiesDelegate.javaandAppMenuPropertiesDelegateImpl.java), with a null-safe fallback tochrome://extensionsinChromeTabbedActivity.java. - WebUI Crash Fix: Removed the
CHECK_IS_TEST()abort inchrome/browser/ui/webui/current_channel_logo.ccsochrome://extensionsand other Chromium WebUIs open cleanly onandroid_channel = "dev"without Google Chrome branding.
- Flipped
kAndroidDevToolsFrontendtobase::FEATURE_ENABLED_BY_DEFAULTincontent/public/common/content_features.ccand removed theDeviceFormFactor.isNonMultiDisplayContextOnTablet()guard inDevToolsWindowAndroid.java. - Tab-Native DevTools: Patched
DevToolsWindow::Show()inchrome/browser/devtools/devtools_window.ccso DevTools inserts itsWebContentsdirectly intoChromeTabbedActivity'sTabModel(InsertWebContentsAt+ActivateTab) right beside the inspected tab, rather than launching a stripped-down standaloneDevToolsActivityCustomTab window. - Renderer Keep-Alive & Action Execution: Sets
ChildProcessImportance::MODERATEon the inspected tab so Android does not freeze the inspected page while viewing DevTools, and allowsDoAction(action)to execute on load completion soInspect(),ShowConsolePanel(), andPauseInDebugger()work reliably. - Always Available in Menu: Tapping ⋮ → Dev tools on any web page opens a DevTools tab inspecting that page; tapping it on a native page (such as the New Tab Page) opens
chrome://inspect/#devicesin a new tab.
- Enabled
//chrome/browser/resources/inspect:resources,inspect_resources.pak,devtools_targets_ui.cc,serialize_host_descriptions.cc, and//chrome/browser/ui/webui/inspecton Android, and registeredInspectUIConfiginchrome_web_ui_configs.cc. - Patched
inspect.jssochrome://inspect/#devicesimmediately displays Kiwi Next (Local Device)#LOCALwith all live open tabs, extension background pages, and service workers, complete withinspect,pause,focus tab,reload,close,inspect fallback, andOpen tab with url(plus dedicated#pages,#extensions,#service-workers,#workers,#other, and#remote-debuggingviews).
- On Android 17+, SELinux blocks apps and
u:r:shell:s0from connecting to@chrome_devtools_remoteabstract Unix sockets. - Kiwi Next patches
chrome/browser/android/devtools_server.ccto bind a native loopbacknet::TCPServerSocketdirectly on127.0.0.1:9222(with automatic--remote-allow-origins=*and fallback to ephemeral port / Unix domain socket). - Zero-Proxy AI Agent Control: Connects directly to
chrome-devtools-mcpand Antigravity's/browsersubagent (--browserUrl=http://127.0.0.1:9222) with no root, nosocat, and no ADB port forwarding. Verified live withlist_pages,take_snapshot, andevaluate_script.
Located in extensions/kiwi_mcp_bridge/, this Manifest V3 extension connects to a local WebSocket MCP server on ws://127.0.0.1:9223 and exposes structured browser automation methods:
| Method | Underlying API | Verified Capability |
|---|---|---|
list_tabs |
chrome.tabs.query |
Lists all open tabs, IDs, titles, URLs, and active status |
navigate |
chrome.tabs.update |
Navigates the active or specified tab to any URL |
new_tab / close_tab |
chrome.tabs.create / remove |
Opens or closes tabs programmatically |
eval_js |
chrome.debugger (Runtime.evaluate) |
Evaluates JS in page context (bypasses strict page CSP) |
cdp_send |
chrome.debugger.sendCommand |
Forwards raw CDP commands (verified with DOM.getDocument) |
capture_screenshot |
chrome.tabs.captureVisibleTab |
Captures full PNG viewport screenshots as base64 data URLs |
- Tuned Blink's dark mode foreground brightness threshold in
third_party/blink/renderer/platform/graphics/dark_mode_settings_builder.ccfrom150to Kiwi's high-contrast AMOLED preset (127). - Branded package as
com.kiwibrowser.next, app label asKiwi Next, and mapped the authentic white Kiwi adaptive icon layers (ic_foreground.png/ic_background.png) onto Chromium 160'slayered_app_icon.png/layered_app_icon_background.pngacross allmipmap-*densities.
flowchart TD
subgraph Build["Build Pipeline (x86_64 Linux + depot_tools)"]
direction TB
CR[Chromium 160.0.8157.3 Source] --> PATCH[scripts/apply_kiwi_160_patches.py]
GN[GN Args: is_desktop_android=true, com.kiwibrowser.next] --> PATCH
PATCH --> NINJA[autoninja -C out/KiwiArm64 chrome_public_apk]
NINJA --> APK[kiwi-next-arm64-v160.0.8157.3.apk]
end
subgraph Device["Android 17 Device (ARM64)"]
APK -->|Install / Shizuku| KIWI[Kiwi Next - com.kiwibrowser.next]
KIWI -->|Native Loopback TCP| CDP[http://127.0.0.1:9222]
CDP <-->|chrome-devtools-mcp / Antigravity /browser| AGENT[AI Coding Agent]
KIWI --> EXT[kiwi_mcp_bridge v1.1.0 MV3]
EXT <-->|WebSocket ws://127.0.0.1:9223| AGENT
KIWI --> INSPECT[chrome://inspect/#devices & Tab DevTools]
end
| Patch Function | Chromium 160 Target File(s) | Purpose |
|---|---|---|
patch_toolbar_phone |
chrome/browser/ui/android/toolbar/java/res/layout/toolbar_phone.xml |
Adds extensions_toolbar_container_stub ViewStub to smartphone toolbar |
patch_toolbar_manager |
chrome/android/java/src/org/chromium/chrome/browser/toolbar/ToolbarManager.java |
Fixes ToolbarPhone → ToolbarTablet ClassCastException with (ViewGroup) |
patch_app_menu_delegate_impl |
.../app/appmenu/AppMenuPropertiesDelegateImpl.java |
Exposes buildManageExtensionsItem() & buildChromeWebstoreItem() on phones |
patch_tabbed_app_menu |
.../tabbed_mode/TabbedAppMenuPropertiesDelegate.java |
Injects Extensions, Manage Extensions, Web Store & DevTools into phone ⋮ menu |
patch_chrome_tabbed_activity |
.../ChromeTabbedActivity.java |
Null-safe fallback to chrome://extensions when toolbar coordinator is null |
patch_dark_mode_amoled |
third_party/blink/renderer/platform/graphics/dark_mode_settings_builder.cc |
Sets AMOLED foreground brightness threshold to 127 |
patch_current_channel_logo |
chrome/browser/ui/webui/current_channel_logo.cc |
Prevents CHECK_IS_TEST() SIGABRT on WebUIs for android_channel = "dev" |
patch_devtools_android |
content/public/common/content_features.cc, DevToolsWindowAndroid.java |
Enables kAndroidDevToolsFrontend and removes tablet-only gate |
patch_devtools_open_as_tab |
devtools_window.cc, MoreToolsItemBuilder.java, ChromeActivity.java |
Opens DevTools as a regular tab in TabModel, keeps inspected tab alive |
patch_inspect_webui_android |
inspect/BUILD.gn, inspect_ui.cc, devtools_targets_ui.cc, inspect.js, chrome_paks.gni, chrome_web_ui_configs.cc |
Enables chrome://inspect/#devices and local device targets on Android |
patch_devtools_tcp_server_android |
chrome/browser/android/devtools_server.cc, inspect_ui.cc |
Binds DevTools HTTP/WS server on 127.0.0.1:9222 with --remote-allow-origins=* |
patch_branding |
chromium_strings.grd, channel_constants.xml, res_chromium_base/mipmap-* |
Sets Kiwi Next branding and maps white Kiwi adaptive app icon |
- APK:
kiwi-next-arm64-v160.0.8157.3.apk - Package ID:
com.kiwibrowser.next - Architecture:
arm64-v8a(aarch64),minSdk 29,targetSdk 37 - Size:
538,057,609bytes (~513 MB) - SHA-256:
eb51775ef7fe729c05a7a3fc3211aec9a64c8ee107e250f7fda4d8810278edb6
# Copy APK to /data/local/tmp and install cleanly
rish -c "cp /storage/emulated/0/Download/kiwi-next-arm64-v160.0.8157.3.apk /data/local/tmp/kiwi-next.apk"
rish -c "chmod 666 /data/local/tmp/kiwi-next.apk"
rish -c "pm install -r -d /data/local/tmp/kiwi-next.apk"
rish -c "rm -f /data/local/tmp/kiwi-next.apk"Point your MCP configuration directly at Kiwi Next's native loopback endpoint:
{
"mcpServers": {
"chrome_devtools": {
"command": "chrome-devtools-mcp",
"args": ["--browserUrl=http://127.0.0.1:9222"]
}
}
}Tip
Preventing Android Background Freezing: On Android 15–17 (including Samsung One UI), the cached-apps freezer pauses background apps after ~10 seconds, which will cause 127.0.0.1:9222 connections to time out while Kiwi Next is in the background. Exempt Kiwi Next via Shizuku/ADB:
rish -c "dumpsys deviceidle whitelist +com.kiwibrowser.next"
rish -c "cmd appops set com.kiwibrowser.next RUN_ANY_IN_BACKGROUND allow"
rish -c "am set-standby-bucket com.kiwibrowser.next active"You can either load extensions/kiwi_mcp_bridge/ unpacked from chrome://extensions (enable Developer Mode → Load unpacked) or pass it via /data/local/tmp/chrome-command-line with am set-debug-app --persistent com.kiwibrowser.next.
- Sync Chromium
160.0.8157.3withdepot_tools(fetch --nohooks android && gclient sync). - Apply all Kiwi Next patches idempotently:
python3 scripts/apply_kiwi_160_patches.py \ --chromium-src /opt/chromium/src \ --overlay-root /path/to/kiwi-next
- Configure
out/KiwiArm64/args.gn:target_os = "android" target_cpu = "arm64" is_debug = false is_desktop_android = true chrome_public_manifest_package = "com.kiwibrowser.next" android_channel = "dev" ffmpeg_branding = "Chrome" proprietary_codecs = true enable_widevine = true
- Compile the ARM64 APK:
gn gen out/KiwiArm64 autoninja -C out/KiwiArm64 chrome_public_apk
- Run the unit test suite:
python3 -m unittest discover -s tests -t .
Lead Architect & Maintainer • Kiwi Next Project
susdj.96@gmail.com • GitHub (@djsusmith)
Engineered, modernized, and revived in collaboration with Antigravity (Google DeepMind).
- Official Website: https://djsusmith.github.io/kiwi-next/
- Source Repository: https://github.com/djsusmith/kiwi-next
- Releases: https://github.com/djsusmith/kiwi-next/releases
- License: Kiwi Browser & Chromium License