How yhoanes/antigravity-android works
Antigravity for Android is a native Android host for the Antigravity agentic coding IDE and ARM64 reverse-engineering tools. The main user workflow enters through the Android activity and embedded web UI, initializes an on-device runtime, starts the core service, and exposes the ready core to the UI for coding and tool use. Separate branches cover authentication, backup/restore and OTA, native runtime utilities, and binary-analysis capabilities. Several web and analysis subsystems are represented from README claims and the tree; their internal wiring was not sampled, so those relationships are not inferred.
Main entry points: main.js Agent IDE UI · CoreServerService.java Core service · MainActivity.java Main activity · RuntimeManager.java Runtime manager
Components 23
Android Host
- Main activity
app/src/main/java/com/agy/ui/MainActivity.java - WebView host
app/src/main/java/com/agy/ui/webview/WebViewHost.java - JavaScript bridges
app/src/main/java/com/agy/bridge/AndroidBridge.java - OAuth flow
app/src/main/java/com/agy/oauth/OAuthManager.java - Core runtime state
app/src/main/java/com/agy/core/CoreRuntimeState.java
Native Runtime
- Runtime manager
app/src/main/java/com/agy/runtime/RuntimeManager.java - Runtime installer
app/src/main/java/com/agy/runtime/CoreInstaller.java - Core environment
app/src/main/java/com/agy/core/CoreEnvironment.java - Core service
app/src/main/java/com/agy/core/CoreServerService.java - Process supervisor
app/src/main/java/com/agy/core/CoreProcessSupervisor.java - Antigravity core
- agy-box applets
env/rust/agy-box/src/main.rs
IDE and Web UI
- Agent IDE UI
web/main.js - Web UI patches
web/src/patches
Product Features
- Binary patch suite
patches/patch_lib/module_base.py - Backup and restore
app/src/main/java/com/agy/backup/BackupManager.java - OTA updater
app/src/main/java/com/agy/update/AppUpdateManager.java - Shizuku integration
app/src/main/java/com/agy/shell/ShizukuBridge.java - USB bridge
app/src/main/java/com/agy/usb/UsbOtgBridgeServer.java - Marketplace and studio
web/src
Other components
- Android user
- Model services
- System browser
Connections 24
- Android user → Main activity: opens app
- Main activity → Runtime manager: initializes runtime
app/src/main/java/com/agy/ui/MainActivity.java - Main activity → WebView host: hosts UI
app/src/main/java/com/agy/ui/MainActivity.java - Main activity → Core service: starts service
- Runtime manager → Runtime installer: schedules install
app/src/main/java/com/agy/runtime/RuntimeManager.java - Runtime manager → Core environment: configures launch
app/src/main/java/com/agy/core/CoreEnvironment.java - Core service → Runtime manager: loads runtime
app/src/main/java/com/agy/core/CoreServerService.java - Core service → Process supervisor: starts supervisor
app/src/main/java/com/agy/core/CoreServerService.java - Process supervisor → Antigravity core: launches core
- Core service → Core runtime state: publishes status
app/src/main/java/com/agy/core/CoreServerService.java - Core runtime state → JavaScript bridges: exposes readiness
- WebView host → Agent IDE UI: loads web app
- Agent IDE UI → JavaScript bridges: calls native APIs
- Agent IDE UI → Model services: uses AI models
- Agent IDE UI → Web UI patches: extends interface
- agy-box applets → Antigravity core: supports runtime
- Agent IDE UI → Marketplace and studio: offers extensions
- Agent IDE UI → Binary patch suite: offers analysis tools
- Main activity → OAuth flow: handles login
app/src/main/java/com/agy/ui/MainActivity.java - OAuth flow → System browser: opens auth
app/src/main/java/com/agy/oauth/OAuthManager.java - Agent IDE UI → Backup and restore: requests backup
- Agent IDE UI → OTA updater: requests updates
app/src/main/java/com/agy/update/AppUpdateManager.java - Core service → USB bridge: starts bridge
app/src/main/java/com/agy/core/CoreServerService.java - Core service → Shizuku integration: applies survivability
app/src/main/java/com/agy/core/CoreServerService.java