jmj 14e27a4f16 fix(android): load WebView pages over http to avoid mixed content
Pages are hosted on appassets.androidplatform.net and the in-page
requests target the hub over http://192.168.1.111:8765. Because the
pages were loaded over https, Chromium blocked those http requests
under the mixed content policy before they ever hit the network,
which surfaced as immediate ERR_ABORTED failures.

Switch the page scheme to http so the page is served from an insecure
context. Mixed content rules are directional: an http page may load
https subresources, so both the http hub (8765) and the https hub
(8766) remain reachable.

WebViewAssetLoader only accepts the http scheme when explicitly
enabled, so also call setHttpAllowed(true). Without it
PathMatcher.match() returns null for http URIs, the request escapes
interception and is treated as a real network request to
appassets.androidplatform.net, leaving a blank page with no error log.

Also raise the default versionCode/versionName to 34 / 0.3.4 so a
build without -PpwVersionCode no longer regresses to 1 / 0.1.0 and
triggers a spurious downgrade.
2026-11-30 08:41:47 +08:00

PulseWall

AI-driven Android 11 live information wall, real-time device status monitor, and bidirectional MCP interactive terminal.

Repository Layout

  • protocol/ — Canonical architecture, MCP schema, and WebSocket protocol specs:
    • protocol/architecture.md
    • protocol/mcp-schema.md
    • protocol/ws-protocol.md
  • hub/ — Python Central Bridge (FastAPI + official MCP Streamable HTTP + WebSocket device gateway + SQLite + Web Admin Panel + LAN-only ADB Debug controller)
  • android/ — Android 11 (minSdk = 30) native Kotlin client with layered basic/root telemetry, offline Vue 3 + PulseWall CSS framework, offscreen pre-render validation sandbox, runtime console watchdog, OpenAI-compatible on-device Repair Sentinel, and unbreakable native alert/alarm layer.

Quick Start

1. Start the Python Hub

cd /data/working/PulseWall/hub
./run_hub.sh
  • Web Admin Panel: http://<hub-ip>:8765/admin
  • Generic MCP Endpoint (Streamable HTTP): http://<hub-ip>:8765/mcp/
  • Upstream Plugin Event Stream (SSE): http://<hub-ip>:8765/api/events/stream
  • Android WebSocket Gateway: ws://<hub-ip>:8765/ws/device/{device_id}
  • LAN-Only Developer Debug / ADB API: POST http://<hub-ip>:8765/api/lan-debug/{device_id}/action

2. Build the Android 11 APK

/data/working/PulseWall/android/build_apk.sh

Output APK: android/app/build/outputs/apk/debug/app-debug.apk

3. First-Time Pairing

  1. Install app-debug.apk onto your Android 11 device.
  2. Tap the top-right floating status pill (⚙) to set your Hub WebSocket URL (ws://<hub-ip>:8765) and device name.
  3. Open http://<hub-ip>:8765/admin to verify live device telemetry & DisplayProfile, configure your OpenAI-compatible end-side Repair AI model (pushed live to the device), and test feed/alarm/dynamic canvas rendering.
S
Description
No description provided
Readme
1 MiB
0 Stars 1 Watchers 0 Forks
Languages
Python 38.8%
Vue 19%
Kotlin 17.5%
HTML 16.6%
JavaScript 5.8%
Other 2.3%