ZCode Android
A standalone Android app that wraps the ZCode webapp in a native fullscreen
shell. Built with Flutter. Package name: com.z.zcode.
Why this app exists
The ZCode IDE (an agentic coding environment) has a Mobile remote control
feature. It shows a QR code on the desktop, you scan it or open the link on
your phone, and the workspace opens in the phone's browser so you can control
it remotely. That works, but a browser tab is not an app: there is browser
chrome, tabs get recycled, it does not feel installed.
This project turns that experience into a standalone Android app. Scan the
QR code from inside ZCode Android once, and from then on the remote control
opens like a native app, fullscreen, with its own icon on your home screen.
Instead of opening the webapp in a mobile browser tab, you install this app,
connect it to your webapp address once, and from then on it opens like any
other installed app: no browser UI, no address bar, edge to edge.
Features
- Fullscreen WebView with JavaScript. No app chrome, no headers, no floating
buttons. The web page gets every pixel.
- Setup screen on first launch. Enter the server address or scan a QR code.
The address is saved on the device, so later launches go straight in.
- QR scanning. Point the camera at a QR code that contains the webapp URL.
Bare addresses like
192.168.1.20:3000 work too, the app adds the scheme.
- Link rules. Pages on the configured server and anything on
z.ai or
*.z.ai open inside the app. Other http(s) links open in the real
browser. Non web schemes are blocked.
- Auto theme. Light and dark follow the device setting, seeded with the
Z.ai brand blue
#126EF4. Status bar icons adapt automatically.
- Z.ai launcher icon. Official logo with an adaptive icon (black background,
monochrome layer for Android 13 themed icons).
- Smooth keyboard. The webview screen does not relayout while the keyboard
animates, so there is no jank. The setup screen resizes properly so the
input stays above the keyboard.
- Safe area handling. The 3 button navigation bar gets its own strip and
never covers web content. The status bar never clips the top of the page.
- Error screen with retry and change server when the webapp cannot be
reached. System back walks web history first, then offers reload,
change server, or exit.
Building
Requirements: Flutter (stable), Android SDK, JDK 17.
flutter pub get
flutter build apk --release
Output: build/app/outputs/flutter-apk/app-release.apk
Signing
Release builds are signed when credentials are present. Two sources are
supported:
- Local file
android/key.properties plus the keystore file:
storeFile=keystore/alice.jks
storePassword=YOUR_STORE_PASSWORD
keyAlias=YOUR_KEY_ALIAS
keyPassword=YOUR_KEY_PASSWORD
The storeFile path resolves relative to the android/app directory.
- Environment variables, used by CI:
KEYSTORE_FILE=/path/to/keystore.jks
KEYSTORE_PASSWORD=...
KEY_ALIAS=...
KEY_PASSWORD=...
Without credentials the build falls back to the debug key, which is fine for
local testing. Never commit android/key.properties or any .jks file.
They are already excluded by .gitignore.
Download
Grab the latest signed APK from the GitHub releases page:
https://github.com/mithun50/zcode-android/releases/latest
Each release ships:
| File |
Use |
zcode-android-x.y.z.apk |
Install directly on a phone (sideload) |
zcode-android-x.y.z.aab |
Upload to Google Play |
Quick download with the gh CLI:
gh release download --repo mithun50/zcode-android --pattern "*.apk"
Or with curl (replaces older copies, always fetches the newest):
curl -L -o zcode-android.apk \
https://github.com/mithun50/zcode-android/releases/latest/download/zcode-android-1.0.0.apk
Install on a device
Enable USB debugging, then:
adb install build/app/outputs/flutter-apk/app-release.apk
Or copy the APK to the phone and tap it. Allow install from unknown sources.
Releases
Releases are automated with GitHub Actions.
- CI (
.github/workflows/ci.yml): on every push and pull request to main.
Runs analyze, tests, and a debug APK smoke build.
- Release (
.github/workflows/release.yml): on tags like v1.0.0 or manual
dispatch. Builds a signed release APK and AAB, verifies the signature, and
attaches both to a GitHub release.
To cut a release:
git tag v1.1.0
git push origin v1.1.0
Signing secrets live in GitHub Actions secrets:
KEYSTORE_BASE64, KEYSTORE_PASSWORD, KEY_ALIAS, KEY_PASSWORD.
Acknowledgments
- Z.ai, whose logo and brand color this app uses.
- The Flutter team, and the authors of
webview_flutter, mobile_scanner,
shared_preferences, url_launcher, and vector_graphics.
Project structure
lib/main.dart The whole app: setup screen, QR scanner, webview
android/ Android host, signing config, manifest
assets/zai_logo.vec Z.ai logo as a compiled vector graphic
.github/workflows/ CI and release automation
Notes
- The phone and the webapp server must be on the same network when the
address is a LAN IP such as
192.168.x.x. Cleartext http is allowed so
local development servers work.
- The app accepts any address you give it. Point it at a local dev server,
a LAN deployment, or a public site.