Skip to content

[Alpha NEXT] Native AOSP Architecture: Launcher3, Standalone Alpha Apps, System Chat Overlay, Sandboxed Google Play & Native Third-Party App Control #1865

Backlog

Description

@lalalune

Why

Alpha currently ships as a single monolithic Capacitor WebView APK (ai.alphacompute.alphaphone) that owns the Android HOME role and renders all 18 built-in apps as internal JavaScript views (apps/app/src/shell/views.tsx). That architecture prevents third-party Play Store apps from behaving as first-class citizens on the home screen, concentrates all OS permissions and web browsing into one UID/process, prevents individual apps from holding standard Android roles or being swapped out (e.g., for Firefox), and traps the Ask Alpha chat inside a single launcher WebView.

User goal: Transition Alpha into Alpha NEXT — a truly native AOSP-based personal agent phone built on stock AOSP Launcher3 themed with the Alpha Compute design system, with each Alpha view packaged as a real standalone Android app communicating bidirectionally with the resident on-device Eliza agent, Ask Alpha running as a system-wide overlay above Launcher3 and any third-party app, opt-in GApps / Google Play Store support, and native AOSP APIs allowing the Eliza agent to perceive and control arbitrary third-party apps (such as Firefox) — while preserving Vibestack/Quint/Dafny formal verification and maximizing code reuse.


Executive Summary & Verdict

Verdict: Highly feasible and architecturally clean. Implementing Alpha NEXT via a Dual-Tier Shared-Core Architecture delivers native AOSP integration while preserving ~95% of existing React / @repo/ui / VibeLang code and ~85–90% of the repository's 216 Quint specs & 80 Dafny proofs untouched.

Pillar Recommended Architecture Key Codebase Anchor
Embodiment Dual-Tier Shared-Core: Tier 1 sideloadable APK suite on any Android 14–16 phone/emulator + Tier 2 full AOSP Android 17 ROM sharing the exact same APKs with graceful privilege escalation Extends spec/app/platform/index.md Variant pattern
Native Home Hybrid Stock AOSP Launcher3 (Quickstep): extended RROs auto-generated from tokens.json + zero-patch AlphaPartnerCustomization APK + ~150–300 LOC SHA-256-pinned QSB Ask Alpha hook + native AlphaDayWidget Extends existing AlphaNavigationOverlay in apps/app/aosp/branding/Android.bp
Standalone Apps Core Hub (AlphaCore = ai.alphacompute.alphaphone) + 18 Thin Multi-APK Suite sharing :alpha-app-runtime AAR & Vite multi-entry build (Node 26 + Paradee voice + DeviceCustody stay strictly in AlphaCore) Preserves pixel10a.json, AlphaSense, App Links & release-signer.json
System Chat Overlay & IPC VoiceInteractionService / VoiceInteractionSession (ROLE_ASSISTANT) with TOUCHABLE_INSETS_REGION + Signature-guarded Binder/AIDL Broker (IAlphaAgentBroker with ParcelFileDescriptor >64 KB/SSE, IAlphaPlatformBroker, IAlphaContextRegistry, AlphaPreferencesProvider) Reuses AlphaAgentService 0600 Unix socket + alpha_launcher_agent_ipc.te; preserves platform/agent.vibe unchanged
GApps / Play Store GrapheneOS Sandboxed Google Play (GmsCompat MIT) on Android 17 — unprivileged /data/app install, locked AVB compatible, zero proprietary binaries in Git/ROM Aligns natively with existing Pixel 10a adevtool + android-17.0.0_r1 baseline
3rd-Party App Control (Firefox) 5-Layer Hybrid Ladder: Intents & Android 16/17 AppFunctions → VoiceInteractionService/AssistContent → AccessibilityService → Visual capture → tiny platform-signed AlphaControlBridge (INJECT_EVENTS + captureDisplay) Native non-WebView Kotlin executor + new formal safety spec spec/app/control/

1. Open-Source Agent Phone Embodiment Comparison (2025–2026)

Ecosystem Landscape

  • Mobile AI Agents: DroidRun → Mobilerun (+ Portal APK), Open-AutoGLM (Z.ai), Mobile-Agent (Alibaba X-PLUG), AppAgent, and AndroidWorld dominate OSS traction because developers can install a companion Accessibility/ADB APK on any existing phone or emulator in 60 seconds (repurposing spare Android phones into always-on agent nodes). Microsoft OmniParser + VLMs serve as visual fallback where accessibility trees are incomplete; Shizuku is the de facto non-root elevation bridge on stock Android.
  • Android 16/17 Native Shift: androidx.appfunctions / android.app.appfunctions is Android's native MCP-equivalent for typed local app-to-agent tool calls, gated to ROLE_ASSISTANT via android.permission.EXECUTE_APP_FUNCTIONS. Alpha already targets API 36+ (apps/app/android/host.json).
  • Custom ROMs, Launchers & GApps: Lawnchair proves developer preference for stock AOSP Launcher3 + Quickstep + RRO theming over custom WebView launchers. GrapheneOS (GmsCompat) is the gold standard for real Play Store compatibility on de-Googled locked-AVB AOSP; CalyxOS (microG) trades paid/IAP/strict-app compatibility for FOSS shims; LineageOS maximizes device breadth (400+ devices) with manual GApps/microG; PostmarketOS lacks mainstream Android/Play app compatibility.

Embodiment Matrix

Embodiment OSS Developer Adoption Native 3rd-Party Apps & Play Store Privileged OS Control (AppFunctions, INJECT_EVENTS) Testable Without 300 GB AOSP Build? Alpha Formal Verification & Eliza Moat
Current Monolith WebView Launcher Low (breaks launcher ergonomics) Poor (custom grid/drawer; no Play Store on AOSP) Limited (2 priv perms only) Partial (emulator launcher) High
AOSP-ROM-Only Agent Phone Very Low (Pixel-only + wipe + 64–128 GB RAM compile) High with GmsCompat Full No (blocks 99% of contributors) High
Unverified Mobile-Agent Scripts (DroidRun / AutoGLM) High (zero-flash APK) Native host phone Tier 1 only (Accessibility / ADB / Shizuku) Yes None (no formal safety/approval proofs or resident local-memory OS)
Alpha NEXT: Dual-Tier Shared-Core (Recommended) Highest (60-sec Tier-1 APK install + Tier-2 flagship ROM) Full on both tiers (native Play on Tier 1; Sandboxed Play on Tier 2) Graceful ladder: Accessibility (+ opt-in Shizuku) on Tier 1 → AppFunctions + AlphaControlBridge on Tier 2 Yes — 95% tested on stock Android emulators & any phone Unmatched: Quint + Dafny formal approval/privacy proofs + on-device ElizaOS

Why Dual-Tier Wins: Sharing the exact same APK suite, system overlay, and resident Eliza daemon across Tier 1 (any Android 14–16 device) and Tier 2 (Alpha NEXT AOSP Android 17 ROM) gives ~95% code reuse, 100× wider OSS adoption, live emulator verification of real third-party apps (including Firefox) without compiling AOSP, and an unmatched trust story via formally proved safety invariants.


2. Native AOSP Launcher3 + Alpha Compute Design System

Codebase Baseline

  • AOSP baseline: Pixel 10a (stallion, cp2a) & Cuttlefish on Android 17 (android-17.0.0_r1) (apps/app/aosp/pixel10a.json, .eliza/packages/os/aosp/aosp.lock.json).
  • Existing RRO foundation: apps/app/aosp/branding/Android.bp already defines 5 static product RROs (priority="999", certificate: "platform"): AlphaFrameworkOverlay, AlphaSystemUIOverlay, AlphaSettingsOverlay, AlphaSettingsProviderOverlay, and AlphaNavigationOverlay (which already overlays com.android.launcher3!).
  • Design tokens (packages/design-system/tokens.json): Monochrome Black (#000000 / #050505) & White (#FFFFFF / #FAFAFA) with one signature Alpha Blue (oklch(0.4520 0.3132 264.05) ≈ #0000FF light, #B8C0FF dark), already sRGB-mapped in apps/app/aosp/branding/overlay/frameworks/base/core/res/res/values/colors.xml; radii tile=22dp, drawer-icon=18dp, dock=31dp, home-card=30dp; fonts Public Sans + Denton + Fraunces.

Launcher Architecture Comparison

Dimension 1. Pure RRO + Workspace Overlay 2. Forked Launcher3 (Lawnchair / Trebuchet / Full Fork) 3. Hybrid: Stock Launcher3 + RROs + Partner APK + Micro-Patch (Recommended)
Android 17 cp2a Rebase Tax Zero Java/Kotlin patches High: Lawnchair lags Quickstep ISystemUiProxy/RecentsWindowManager by 6–12 mo; Trebuchet lags AOSP 17 cp2a Minimal (~150–300 LOC), pinned with SHA-256 preimage manifests (apply.py), matching existing apps/app/aosp/branding/ practice
Alpha Compute Palette, Shapes, Grid & Fonts Covers colors.xml, config_icon_mask, fonts_customization.xml, config_dynamic_grid_* Full control Same RRO coverage, auto-generated from packages/design-system/tokens.json
Default Home Layout + Native 3rd-Party Apps RRO default_workspace_*.xml fragile on res-auto namespaces Full control Zero-patch AlphaPartnerCustomization APK (com.android.launcher3.action.PARTNER_CUSTOMIZATION + partner_default_layout.xml) pre-places Alpha apps & Glance widget; stock LauncherModel/LauncherApps auto-populates Play/sideloaded apps, badges, shortcuts & Work/Private profiles
Persistent Ask Alpha Bar & Daily Cards Cannot do: RRO cannot swap QsbContainerView click/voice/swipe-up hooks or edge-to-edge DeviceProfile/Hotseat layouts Full control Surgical QSB/hotseat micro-patch invoking Alpha's VoiceInteractionSession (31dp dock, Alpha Blue mark, mic) + keeps hidden-navigation-handle.patch (config_alpha_home_back_only=false so Quickstep Recents works natively) + native Android AppWidgetProvider (AlphaDayWidget) backed by spec/app/home/cards.md
Tier 1 (Stock Android) Experience N/A Standalone Lawnchair (loses Quickstep Recents without root) Users keep their existing launcher + place Alpha's Ask Alpha Search Widget & AlphaDayWidget + set Alpha as ROLE_ASSISTANT

Typography Requirement (.woff2 vs .ttf): packages/design-system/fonts/ currently ships Public Sans and Denton only as .woff2 (only Fraunces italic is .ttf). Android's native fonts_customization.xml / RRO @font/* requires .ttf/.otf assets, which must be sourced cleanly and pass apps/app/scripts/licences.ts (gen/app__image__licences.ts font-check gate).


3. Packaging All 18 Alpha Views as Real Standalone Android Apps

Surface Classification (apps/app/src/ — 33 dirs, 32 spec/app/ areas)

  • Core Hub (AlphaCore = ai.alphacompute.alphaphone): Retains the existing package ID (preserving pixel10a.json, AlphaSense, verified App Links, and single-key custody in release-signer.json). Exclusively hosts heavy shared runtimes — Node 26 (libeliza_node.so), agent.mjs, Paradee local ASR/TTS (libelizainference.so, libparadeevoicejni.so, GGUFs), DeviceCustody, Autofill, NotificationListener, AlphaVoiceInteractionService (Ask Alpha overlay + Voice + Approvals + Startup/Account + Updates) — plus the cross-APK Binder/AIDL brokers.
  • 18 Standalone User-Facing App Views (apps/app/src/shell/views.tsx):
    • 9 OS Default-Role Candidates: Phone (ROLE_DIALER, InCallService), Messages (ROLE_SMS, SMS_DELIVER), Contacts, Browser (ROLE_BROWSER, AlphaBrowserPlugin), Camera (IMAGE_CAPTURE/STILL_IMAGE_CAMERA_SECURE), Clock (SET_ALARM/SET_TIMER), Calendar, Files (MANAGE_EXTERNAL_STORAGE + local OCR tessdata), Photos.
    • 9 Productivity / Comms / Agent-Native Apps: Notes, Reminders, Inbox, Maps, Telegram, Slack, Workflows (includes digests), Wallet, Settings (Alpha account/agent/preferences; native Android Settings remains com.android.settings).
  • Retired on Android: home (Home.tsx, catalog.vibe, AppsDrawer) is replaced by themed AOSP Launcher3 + AlphaDayWidget.

Multi-App Packaging Comparison

Dimension (A) Unified Multi-APK: AlphaCore + Thin APKs Sharing :alpha-app-runtime AAR & Vite Multi-Entry (Recommended) (B) Single APK with <activity-alias> + taskAffinity (C) <static-library> + Thin Wrapper APKs (D) Native Kotlin/Compose Rewrites
Code Reuse & Quint Parity ~95%+: Reuses React, @repo/ui (238 components), .vibe, and all domain gen/ Quint machines (areas.ts already isolates per-area sub-runtimes) ~98%+ (good optional Phase-0 bridge) ~95%+ <15%: Breaks Vibestack TS/Effect/React codegen & Bombadil conformance
True OS Citizenship (Roles, Least-Privilege Perms, Uninstall/Swap e.g. Firefox, Independent OTA) Full: Notes never holds READ_SMS/CALL_PHONE; Browser runs in an isolated security sandbox away from DeviceCustody; any app can be swapped/disabled/updated independently Broken: One package in Settings→Apps, one permission bucket, cannot swap/uninstall individual apps, single crash/security domain Full on AOSP ROM; breaks Tier-1 sideloading (INSTALL_FAILED_MISSING_SHARED_LIBRARY + rigid integer version pinning) Full
APK / ROM Storage ~2–4 MB/APK × 18 ≈ 45–70 MB total (OCR tessdata only in Files+Camera; Node+Paradee only in AlphaCore) ~0 MB overhead ~300–500 KB/APK (~10 MB total) ~1–3 MB/APK
Runtime RAM (Chromium WebView) ~80–150 MB PSS per open app (separate ART + isolated Chromium renderer per UID); 2–3 concurrent apps ≈ 250–400 MB (viable on 8 GB Pixel 10a; lmkd reclaims older ones) Lowest (~20–35 MB/extra view in shared process) Identical to (A)! <static-library> saves ROM disk & DEX page cache, not per-UID Chromium renderer RAM Lowest (~30–60 MB/app)
Build & pnpm check 1 Vite multi-entry build + Gradle parallel subprojects over 1 shared AAR (~1.5–2× Gradle time); pnpm check unchanged 1× build Higher Soong/Gradle publish complexity Breaks pnpm check

Security Invariant: NEVER use android:sharedUserId (deprecated API 29+, restricted on AOSP 15–17, Play-banned). Trust between AlphaCore and Alpha app APKs uses protectionLevel="signature" permissions + runtime checkSignatures() (already proven with apps/app/android/sense/), all signed with Alpha's single release key (aosp/signing/release-signer.json). Browser isolation (ai.alphacompute.browser) strictly improves security by removing untrusted web rendering from AlphaCore's key custody UID.


4. System-Wide Chat Overlay & Bidirectional App ↔ Resident Agent IPC

System-Wide Ask Alpha Overlay (Works Over Launcher3 AND Firefox/3rd-Party Apps)

Mechanism Strengths Flaws / Risks Verdict
VoiceInteractionService + VoiceInteractionSession (ROLE_ASSISTANT) Half-wired today (AlphaFrameworkOverlay sets config_defaultAssistant=ai.alphacompute.alphaphone & config_longPressOnPowerBehavior=5, plus power-voice & system-entry). Runs in privileged TYPE_VOICE_INTERACTION layer without SYSTEM_ALERT_WINDOW. Triggered by Power long-press, corner swipe, Launcher3 QSB, Sense wake-word, Lockscreen, QS tile. Overrides onComputeInsets() with Insets.TOUCHABLE_INSETS_REGION so transparent areas pass touch straight through to Launcher3/Firefox. Grants free AssistStructure + AssistContent.webUri + onHandleScreenshot(). Identical on Tier 1 & Tier 2. Requires explicit FLAG_NOT_FOCUSABLE toggling (passthrough vs IME focus in Typing/Sheet/Full) and a pre-warmed Capacitor WebView pool kept alive in AlphaCore for <50 ms open PRIMARY MECHANISM — hosts existing assistant/ + voice/ + approvals/ React/VibeLang UI with zero UI rewrite
TYPE_APPLICATION_OVERLAY (SYSTEM_ALERT_WINDOW) Persistent floating window Severe Android 12–17 blockers: HIDE_NON_SYSTEM_OVERLAY_WINDOWS / setFilterTouchesWhenObscured(true) (Play Store, banking apps, PermissionController, Alpha's own MainActivity.java:197) blocks touches; scary Tier-1 grant; WebView IME focus dropouts Reject for Chat UI (at most optional non-focusable edge pill)
SystemUI / Quickstep Native Overlay Full system window authority Kills Tier 1 sideloading; massive frameworks/base/packages/SystemUI Kotlin/Dagger build & rebase cost Reject

Bidirectional IPC Architecture (Why Localhost TCP Is Rejected)

  • Why NO localhost TCP HTTP/WS: Today AgentService spawns Node 26 over an owner-only 0600 Unix domain socket (files/ipc/, alpha_launcher_agent_ipc.te) with SO_PEERCRED UID checks (AgentSocketClient.java:97) and per-launch Bearer tokens. Both apps/app/vite.config.ts:27 and apps/app/scripts/android.ts:276 ban 127.0.0.1:/localhost: in production bundles; opening localhost TCP would expose the resident agent to every Play Store app holding INTERNET.
  • Recommended Signature-Guarded Binder/AIDL Broker (hosted in AlphaCore):
    1. IAlphaAgentBroker.aidl (App → Agent): Protected by ai.alphacompute.permission.AGENT_IPC (protectionLevel="signature") + checkSignatures() + per-calling-package route allowlist (e.g., ai.alphacompute.notes may only invoke /api/notes/*, /api/alpha/notes/*, /api/health, /api/status — stricter least-privilege than the monolith). Forwards internally to AgentService.channel() over the existing 0600 Unix socket (zero new SELinux rules needed for thin app APKs). Bodies >64 KB (e.g., POST /api/alpha/notes/transcription 1.1 MB; REQUEST_BODY_LIMIT 16 MiB) and SSE streams pass via ParcelFileDescriptor (SharedMemory/pipe FD) to avoid Binder's 1 MB TransactionTooLargeException. A drop-in Capacitor RemoteAgentPlugin preserves apps/app/src/platform/agent.vibe and all @elizaos/agent clients unchanged.
    2. IAlphaPlatformBroker.aidl & AlphaPreferencesProvider (Shared Auth/Cloud/Prefs): Keeps DeviceCustody (ElizaSignIn), ElizaCloud, and ElizaSecureStore anchored in AlphaCore's single Keystore UID. Shared preferences (alpha.appearance, alpha.preferences, alpha.textScale, install) move to a signature-protected ContentProvider + ContentObserver behind a split Effect KeyValueStore Layer (apps/app/src/platform/platform.vibe), preserving 100% of .vibe preference machines.
    3. IAlphaContextRegistry.aidl (Live Foreground Context → Ask Alpha): Replaces in-process FileContext/BrowserPage/NotesSelection/Maps pulls (boot.tsx:162-182). Each foreground Alpha app publishes a bounded, privacy-gated Context Snapshot ({ packageId, view, focusedEntityId, summary, sensitive, leaseToken, updatedAt }) and clears it in onPause(). VoiceInteractionSession merges IAlphaContextRegistry (Alpha app foreground) or onHandleAssist + Accessibility (3rd-party app foreground) into encodeTurnContext().
    4. 2-Tier Agent → App Execution:
      • Tier 1 — Headless Mutations (0 ms WebView cold start): Notes, Clock, Reminders, Calendar, Workflows, Wallet, Inbox mutate directly in the resident Node agent (routes.jsonl) or native Android providers (CalendarContract, ContactsContract, Telephony.Sms) and emit agentEvent invalidations.
      • Tier 2 — Interactive UI Navigation & Handoffs: AlphaCore dispatches a signed explicit Intent (ai.alphacompute.action.AGENT_OPEN, alpha://<view>/<path>?claimId=..., Binder IActionCallback); warm apps respond in <30 ms via onNewIntent(). Cross-app MediaHandoff uses FileProvider URIs + FLAG_GRANT_READ_URI_PERMISSION.

5. GApps / Google Play Store Integration on AOSP

Comparison Matrix

Approach Android 16/17 Status Locked AVB (avb_pkmd.bin) Legal for OSS Repo/ROM App Compatibility Play Integrity (BASIC / DEVICE / STRONG)
(A) GrapheneOS Sandboxed Google Play (GmsCompat) — Recommended Active on Android 17 (GmsCompatConfig v179+) Full support (GMS installs to /data/app as unprivileged user apps) Clean (MIT) — zero Google binaries in ROM or Git; user opts in via OOBE/Settings Very High (~85–95%): Play Store, paid apps, FCM push, Maps, Firefox, Spotify, Uber, WhatsApp BASIC: mixed/volatile; DEVICE/STRONG: Fail
(B) Flashable GApps (MindTheGapps / NikGApps / BiTGApps; OpenGApps is dead) Active up to A16/17 Broken — mutating /system//product breaks vbmeta_system & Virtual A/B + APEX Illegal to bundle (proprietary Google APKs) High (privileged GMS) BASIC: mixed; DEVICE/STRONG: Fail (unlocked bootloader)
(C) microG + Aurora Store / F-Droid Active (A15/16 patches) Full support (/product/priv-app) Clean (Apache 2.0) (Aurora Play scraping is ToS gray area) Medium — breaks paid Play apps/IAP, Android Auto, Wear OS, some FCM/reCAPTCHA/Maps Fail across all tiers
(D) Official GMS / MADA Certification OEM-only Full Closed / NDA — incompatible with OSS & Alpha launcher/assistant defaults (Google placement mandates) 100% Pass

Exact AOSP Requirements for Sandboxed Google Play

  1. Upstream MIT repos (github.com/GrapheneOS): platform_packages_apps_GmsCompat, platform_external_GmsCompatConfig, and an AlphaPlayInstaller module (modeled on GrapheneOS AppStore) using signed metadata verification to download authentic Google-signed com.google.android.gsf, com.google.android.gms, and com.android.vending strictly on user opt-in.
  2. frameworks/base hooks: Port GrapheneOS's GmsCompat hooks (ActivityThread, ApplicationPackageManager, ContextImpl, PackageManagerService, ActivityManagerService, AppOpsService, LocationManagerService) pinned to GrapheneOS's Android 17 branch — aligning directly with Alpha's existing Pixel 10a adevtool (init.{pixel,zumapro}.grapheneos.rc) + android-17.0.0_r1 stack!
  3. Zero privileges for Google APKs: All 3 Google packages run as standard untrusted_app in /data/app; narrow privapp-permissions apply only to GmsCompat and AlphaPlayInstaller (INSTALL_PACKAGES, DELETE_PACKAGES, UPDATE_PACKAGES_WITHOUT_USER_ACTION).
  4. WebView Policy (config_webview_packages.xml): Ship an updated WebView (Vanadium/Trichrome WebView) AND allowlist Google's com.google.android.webview (pinned by Google cert) so Google OAuth works out of the box and Play Store keeps WebView security-patched.
  5. Honest Play Integrity Reality (post-May 2025 enforcement): Even with a locked bootloader + custom avb_pkmd.bin, TEE KeyMint reports SelfSigned (yellow verified boot), NOT OEM green. MEETS_DEVICE_INTEGRITY and MEETS_STRONG_INTEGRITY will ALWAYS fail on any uncertified AOSP ROM. Everyday Play Store apps work cleanly; Google Wallet tap-to-pay and strict banking/DRM apps will not. Alpha will never ship PlayIntegrityFix/keybox spoofing. Users who decline Sandboxed Play may optionally install F-Droid/Aurora Store (without mixing FAKE_PACKAGE_SIGNATURE and GmsCompat).

6. Native Third-Party App Control (incl. Firefox / GeckoView) & Formal Safety Specs

5-Layer Hybrid Perception & Actuation Stack

  1. Layer 1 — Intents & Android 16/17 AppFunctions (Structured First): Launch apps via LauncherApps, open URLs in Firefox directly via Intent(ACTION_VIEW, uri).setPackage("org.mozilla.firefox") (skipping URL-bar typing), and invoke @AppFunction tools via AppFunctionManager (android.permission.EXECUTE_APP_FUNCTIONS, internal|role granted to ROLE_ASSISTANT).
  2. Layer 2 — VoiceInteractionService / AssistContent: One-shot AssistContent.getWebUri() (Firefox active non-private tab URL!), AssistStructure, and onHandleScreenshot() with zero MediaProjection prompts.
  3. Layer 3 — AccessibilityService (Primary Continuous Tier-1 & Tier-2 Engine): Inspects all windows via getWindows() (FLAG_RETRIEVE_INTERACTIVE_WINDOWS) for multi-window/IME/permission prompts; executes ACTION_CLICK, ACTION_SET_TEXT, ACTION_SCROLL_*, GLOBAL_ACTION_*, and dispatchGesture(). On Tier 2 AOSP, WRITE_SECURE_SETTINGS enables frictionless activation strictly upon explicit owner opt-in (bypassing Android 13+ "Restricted Settings"), paired with a persistent indicator chip and one-tap kill switch.
  4. Layer 4 — Visual Screen Capture (Vision/VLM Fallback): Tier 1 uses AccessibilityService.takeScreenshot() (API 30+, respects FLAG_SECURE, 1s rate limit); Tier 2 uses IWindowManager.captureDisplay(captureSecureLayers=false) (sub-30ms, unthrottled). MediaProjection is rejected (per-session consent prompts + DETECT_SCREEN_RECORDING).
  5. Layer 5 — Platform-Signed AlphaControlBridge (INJECT_EVENTS + READ_FRAME_BUFFER):
    • Critical AOSP Cert Split: In AOSP frameworks/base/core/res/AndroidManifest.xml, INJECT_EVENTS and ACCESS_SURFACE_FLINGER are protectionLevel="signature" ONLY (not privileged), while AlphaPhone is presigned: true with ALPHA_SIGNER_SHA256 (not the AOSP platform cert).
    • Clean Solution (zero framework permission hacks): Add a tiny (~300 LOC), audited, platform-signed system companion AlphaControlBridge (certificate: "platform", privileged: true, isolated SELinux domain modeled on eliza_sense_app.te with neverallow network sockets) holding INJECT_EVENTS + READ_FRAME_BUFFER + WRITE_SECURE_SETTINGS. Every Binder call verifies caller signature against ALPHA_SIGNER_SHA256 (same pattern as alpha-protected-power-voice.patch) and exposes 3 narrow AIDL methods (captureDisplay(secureLayers=false), injectInputEvent, setAlphaAccessibilityEnabled). Never use UiAutomation in production (requires shell UID and disables TalkBack).

Firefox for Android (Fenix / GeckoView) Deep Dive

  • What works natively: GeckoView's SessionAccessibility.java exposes web DOM nodes (<a>, <button>, <input>, headings, ARIA roles, bounds, click/scroll actions) as virtual AccessibilityNodeInfo descendants; AssistContent.getWebUri() reads the current URL; Intent(ACTION_VIEW) navigates directly.
  • Exact failure modes requiring hybrid fallbacks:
    1. Compose Toolbar Migration (2025–2026): Fenix's Jetpack Compose BrowserToolbar drops legacy mozac_browser_toolbar_url_view resource IDs → match via AssistContent + semantics + vision, never legacy IDs alone.
    2. ACTION_SET_TEXT on web forms: Often skips React/Vue synthetic JS input/change events or fails on contenteditable/Shadow DOM → fallback to focus click + clipboard/IME or INJECT_EVENTS KeyEvent + KEYCODE_ENTER.
    3. Canvas / WebGL / PDF.js / Shadow DOM / Cross-Origin <iframe> (Fission): Missing or scroll-drifted bounds → vision-grounded coordinates (captureDisplay → VLM → injectInputEvent / dispatchGesture).
    4. JNI sync lag & stale refs: SessionAccessibility syncs on UI thread → enforce settle check + monotonic snapshotId verification before every click.
    5. Popups & Private Browsing: Permission dialogs & tab sheets live in separate AccessibilityWindowInfo windows (must inspect getWindows()); Private Browsing sets FLAG_SECURE & clears AssistContent.webUri → hard-refuse as protectedScreen.

Native Executor Loop & Formal Quint Safety Specs

  • Native Non-WebView Executor Loop: Today apps/app/src/approvals/approvals.vibe executes inside Alpha's WebView, which is paused/backgrounded whenever Firefox is in front. External perception & actuation MUST run in a native Kotlin service (AlphaAccessibilityService / AlphaUiControlExecutor) calling the resident Node agent directly via AgentService.request(CallerKind.NATIVE, ...), with the VoiceInteractionSession overlay rendering approval cards and a live Stop button.
  • Spec Parity Audit (216 .md specs, 80 .proof.dfy files):
    • grep -rn "import shell" spec/ confirms only 7 spec files import spec/app/shell (home/{index,tiles,cards}.md, assistant/{index,context,dock}.md, startup/access.md). All ~24 domain feature areas (ask, notes, calendar, inbox, telegram, slack, wallet, maps, clock, reminders, photos, files, camera, passwords, workflows, digests, notices, browser, phone, messages, contacts, account, settings, voice) are already decoupled — ~85–90% of Quint specs & Dafny proofs survive unchanged!
    • New Formal Control Spec (spec/app/control/index.md + index.proof.dfy) proving:
      • alwaysNoActionOnProtectedScreen (lockscreen, FLAG_SECURE, private tabs, accessibilityDataSensitive)
      • alwaysNoStaleSnapshotActuation (snapshotId + foreground packageName match before dispatch — prevents TOCTOU/tapjacking)
      • alwaysBlockedPackagesProtected (hard-deny agent input on PermissionController, PackageInstaller, Settings security/accessibility/device-admin, Play Store billing/checkout, biometric prompts, and Alpha's own approval overlay — preventing self-approval!)
      • alwaysKillSwitchHaltsImmediately (overlay Stop button or user touch immediately revokes the active lease)
      • alwaysLeaseBounded (scoped multi-step UI task lease bounded by target app, step cap & expiry).
    • Targeted Spec Evolutions (~10–15% of spec tree): spec/app/index.md (multi-app architecture), shell/{index,layers}.md (separate Overlay Shell & generalize View → Target incl. ExternalApp), home/ (retire Android tiles/drawer in favor of Launcher3; keep cards.md 100% for AlphaDayWidget), startup/{index,instance,access}.md (keep call.md 100%; add Tier-1 opt-in steps), assistant/{index,context,dock}.md (add ExternalApp context, FLAG_SECURE shielding, Intent Navigate), platform/index.md (Tier-1/Tier-2 capability variants + Binder IPC), image/index.md (per-APK least-privilege allowlists), update/index.md & release/index.md (multi-APK suite index using existing 16-entry Feed).

7. Complete Parity Gaps, Hard Limitations & Risk Register

# Gap / Risk Severity Root Cause Concrete Mitigation
1 Background WebView suspension breaks resident.vibe's 50 always-on machines Critical Backgrounded per-app WebViews freeze (onPause) & get reclaimed by lmkd, breaking HTML clock/alertOverlay, reminders/alertOverlay, phone/strip, and live JS polling Split always-on work to native Android / resident Node daemon: AlarmManager + USE_FULL_SCREEN_INTENT (alarms/reminders), CallStyle ongoing notification + status chip (works over Firefox!), resident Node/WorkManager (Inbox/Telegram/Slack/Workflows/Digests), NotificationManager (Notices), AlphaCore overlay (Approvals/Updates). WebViews hydrate on onResume().
2 INJECT_EVENTS / ACCESS_SURFACE_FLINGER signature-only AOSP cert split Critical AlphaPhone is presigned with ALPHA_SIGNER_SHA256, not the AOSP platform key Tiny (~300 LOC) platform-signed AlphaControlBridge verifying caller ALPHA_SIGNER_SHA256 with isolated SELinux policy (neverallow sockets).
3 Binder 1 MB TransactionTooLargeException limit High POST /api/alpha/notes/transcription (1.1 MB), REQUEST_BODY_LIMIT (16 MiB), attachments & SSE exceed Binder transaction buffer Stream bodies >64 KB and SSE via ParcelFileDescriptor (SharedMemory/pipe FD) in IAlphaAgentBroker.aidl.
4 Firefox GeckoView automation edge cases High Compose BrowserToolbar drops legacy IDs; ACTION_SET_TEXT misses React/Vue events; Canvas/WebGL/PDF.js/Fission/Shadow DOM lack nodes; JNI sync lag; Private Browsing sets FLAG_SECURE Hybrid ladder: ACTION_VIEW + AssistContent.webUri + getWindows() + snapshotId verification + INJECT_EVENTS/IME text fallback + vision coordinates; hard-refuse FLAG_SECURE Private tabs.
5 Play Integrity (MEETS_DEVICE / STRONG) fails on uncertified ROMs High (Product) Post-May 2025 KeyMint reports SelfSigned yellow verified boot even with locked custom AVB Honest product disclosure: standard Play Store apps (~85–95%) work via Sandboxed Play; Google Wallet tap-to-pay & strict banking/DRM fail unless web/attestation-pinned. Zero keybox spoofing.
6 Cross-sandbox SharedPreferences & WebView textZoom Medium Distinct applicationIds isolate localStorage, Keystore & SharedPreferences("alpha-appearance") Centralize auth/cloud/keys in IAlphaPlatformBroker & shared prefs in AlphaPreferencesProvider (ContentObserver); every AlphaBaseActivity.onResume() applies WebSettings.setTextZoom() + theme before first paint.
7 Cold-start latency (~350–700 ms) on closed thin apps Medium Starting a fresh ART + Chromium WebView process when agent opens a closed app Route data mutations via Tier 1 headless Node/Android executors (0 ms); emit lean per-app Vite chunks (~150–300 KB); match native window background (#FFFFFF/#000000); keep Ask Alpha WebView pre-warmed (<50 ms).
8 Multi-APK WebView RAM budget Medium Each distinct UID spawns an isolated Chromium renderer (~80–150 MB PSS/open app) 2–3 concurrent apps (~250–400 MB) fit cleanly on 8 GB Pixel 10a with Android lmkd reclaiming idle apps; optional AssetContentProvider reduces disk footprint on Tier 2.
9 Design-system .woff2-only font files Medium Public Sans & Denton ship only as .woff2; Android native RRO/Launcher3 requires .ttf/.otf Add licensed .ttf/.otf builds and pass apps/app/scripts/licences.ts (gen/app__image__licences.ts) gate.
10 Comms Stage (Phone ↔ Messages ↔ Contacts) sheet continuity Medium In-app horizontal slide (App.tsx:98) assumes single WebView VoiceInteractionSession naturally stays overlaid across Phone ↔ Messages task switches; Phone retains an in-app Contacts tab backed by ContactsContract alongside standalone Contacts.
11 Single-APK assumptions in staging, updates & releases Medium scripts/aosp.ts, spec/app/image/index.md (alphaPrivileged), update/index.md, release/index.md expect 1 Launcher.apk Evolve to suite-manifest staging & multi-APK update index (reusing existing 16-entry Feed) with IPC protocol version pinning.
12 AOSP Android 17 full Soong build host requirements Infra Full Android 17 Soong build requires 64–128 GB RAM, ~400+ GB SSD, repo sync & stallion vendor blobs (current dev workstation has 30 GB RAM & no AOSP tree) Build & verify all APKs, specs, IPC, RRO resource compilation (aapt2), JVM stub checks, and Tier-1 live Android Emulator E2E (driving real Firefox) locally; run Tier-2 full ROM builds & hardware acceptance on dedicated AOSP build host + Pixel 10a.

8. Phased Implementation Plan (alpha-next Branch) & Honest Verification Matrix

Phased Plan on alpha-next

  • Phase 1.5 — Architecture Contracts & Branch Setup (complete): Cut alpha-next from develop (c2bc8c0ddeb, baseline commit 4558e68a7cf9ca062810201cf2e9395c440a9ce9 pinning Eliza 6ea3f91ff983), created milestone Alpha NEXT (Complete MVP view enrollment, reviewed reminders and durable notifications #1) and label alpha-next, and locked exact multi-APK manifest (apps/app/android/suite/apps.json), AIDL/Provider contracts, Vite AlphaSurfaceMode (monolith | overlay | app), spec/app/control/ Quint schema, agent plugin routes, and AOSP module layouts.
  • Phase 2A — Formal Specs & Agent Control Protocol: Add spec/app/control/{index.md,index.proof.dfy} (passing quint + dafny 4.11 + pnpm check), add apps/agent/src/plugins/alpha-apps/ closed control routes/tools (/api/alpha/control/*), and extend packages/cli (pnpm cli) with Alpha NEXT RRO generator (tokens.json → Android XML) and multi-APK manifest validators (--json).
  • Phase 2B — Multi-APK Runtime, IPC Broker & System Overlay: Implement :alpha-ipc (IAlphaAgentBroker with ParcelFileDescriptor streaming, IAlphaPlatformBroker, IAlphaContextRegistry, AlphaPreferencesProvider), RemoteAgentPlugin + split KeyValueStore Layer, Vite AlphaSurfaceMode (monolith preserved 100% for existing tests + overlay + per-app app entries), AlphaVoiceInteractionService / VoiceInteractionSession, AlphaDayWidget, and Gradle multi-APK wiring.
  • Phase 2C — Native 3rd-Party App Control & AOSP Modules: Implement AlphaAccessibilityService + AlphaUiControlExecutor (Tier-1 + Tier-2 handshake, hard BLOCKED_PACKAGES, FLAG_SECURE/keyguard/password guards, Firefox GeckoView handling), plus AOSP Tier-2 modules under apps/app/aosp/{launcher3,control-bridge,sandboxed-play}/ (Android.bp, RROs, AlphaPartnerCustomization, QSB patch, IAlphaControlBridge.aidl, SELinux .te, privapp-permissions, GmsCompat pin & signed-metadata installer verifier).
  • Phase 3 — Local Build & Live Tier-1 Emulator E2E Verification: Run pnpm check / pnpm verify, build real APKs locally, spin up a KVM-accelerated Android 15 emulator (android-35/google_apis/x86_64), install AlphaCore + standalone Alpha apps + Firefox, and run automated E2E verifying bidirectional app↔agent IPC, system-wide Ask Alpha overlay over Firefox, and Accessibility/Vision control of real Firefox with approval & kill-switch enforcement.
  • Phase 4 — External AOSP Build Server & Physical Pixel 10a Acceptance: Sync pinned android-17.0.0_r1 + stallion blobs + GrapheneOS GmsCompat on a 64–128 GB RAM build host, compile full alpha_stallion_phone & alpha_cf_x86_64_phone images, verify SELinux zero-denial, idmap2 RRO activation, EXECUTE_APP_FUNCTIONS / AlphaControlBridge enforcement, Sandboxed Google Play install flow, and physical Pixel 10a acceptance.

Honest Verification Matrix ("Say What Was Shown")

Verified local workstation (beast): 24-core Linux x86_64, 30 GiB RAM, 856 GiB free disk, /dev/kvm, Node 26.13.1, pnpm 10.24.0, OpenJDK 21.0.13, Dafny 4.11.0, .eliza pinned at 6ea3f91ff983, Android SDK (platforms/android-36, build-tools/36.0.0 with aapt2/apksigner/dexdump, ndk/28.2.13676358, emulator, system-images/android-35/google_apis/x86_64), Playwright browsers, and node apps/app/scripts/android.ts inputs passing.

Verification Gate Provable Locally on This Machine? Requires Dedicated AOSP Build Host / Pixel 10a Hardware
Quint models, Dafny proofs, TS codegen, Vitest, Playwright, Bombadil (pnpm check / pnpm verify) YES (100%) —
Multi-app Vite builds & real Android APK builds (AlphaCore + thin Alpha APKs, API 36, JDK 21, NDK 28) YES (100%) Production key-custody release signing
Binder/AIDL IPC, ParcelFileDescriptor streaming, AlphaPreferencesProvider, Eliza control plugin tests YES (100%) (Vitest + JUnit/Robolectric + Emulator) —
Live Tier-1 Emulator E2E: Multi-APK Alpha suite + VoiceInteractionSession overlay + controlling real Firefox YES (100%) via KVM + android-35/google_apis/x86_64 AVD + adb Physical Pixel latency/ergonomics & Android 17 cp2a runtime behavior
AOSP RRO resource compilation (aapt2), Android.bp/manifest/patch preimage validation & JVM stub checks YES (static / JVM) Full Soong compile of Launcher3, SystemUI (Kotlin/Dagger), frameworks/base (GmsCompat), AlphaControlBridge, Cuttlefish/Pixel image boot, idmap2 RRO activation, SELinux zero-denial check, privileged EXECUTE_APP_FUNCTIONS/INJECT_EVENTS enforcement, Sandboxed Play runtime, Verified Boot / AVB, telephony & AlphaSense wake-word hardware acceptance

Activity

  1. added this to the Alpha NEXT milestone on Nov 27, 2026
  2. added
    enhancement
    alpha-next
    on Nov 27, 2026
  3. lalalune commented on Nov 27, 2026

    @lalalune
    CollaboratorAuthor

    Alpha NEXT — Implementation & Verification Summary

    Branch: origin/alpha-next @ 915d2810da578f0bc36d31b2f749ffc10b337084 (25 commits on top of baseline 4558e68a7cf, @elizaos/* pin 6ea3f91ff983)


    Implemented Pillars (6/6)

    1. Formal Verification (Quint / Dafny)
      • spec/app/control/index.md (42/42 Dafny obligations proved) and spec/agent/index.md (11/11 Dafny obligations proved), preserving existing domain specs untouched (~85–90% spec parity).
      • Generated TypeScript state machines wired into VibeLang shell (apps/app/src/control/control.vibe).
    2. Multi-APK Suite & Cross-App IPC
      • 19-entry standalone app manifest (apps/app/android/suite/apps.json: AlphaCore + 18 standalone thin views) with Gradle multi-APK builder (apps/app/android/suite/generate-suite.ts, build-thin.ts).
      • :alpha-ipc AIDL contract (IAlphaAgentBroker, IAlphaContextRegistry, IAlphaPlatformBroker, AlphaPreferencesProvider, AlphaSuitePolicy) guarded by signature-level ai.alphacompute.permission.AGENT_IPC.
      • :alpha-app-runtime shared Android library (AlphaBaseActivity, CoreServiceConnector, RemoteAgentPlugin, RemoteCloudPlugin, AlphaPreferencesPlugin).
    3. Multi-Surface Web Runtime, AlphaCore System Overlay & Widgets
      • Web surface split (launcher / overlay / app via ?surface=), shared cross-app store, and context bridge (apps/app/src/).
      • AlphaCore AlphaVoiceInteractionService / AlphaVoiceInteractionSessionService system-wide overlay (WebViewAssetLoader + Capacitor/native bridge + ControlBanner live kill-switch), Binder brokers (AlphaAgentBrokerService, AlphaContextRegistryService, AlphaPlatformBrokerService), and native Android AppWidgets.
    4. Stock AOSP Launcher3 Theming & QSB Integration
      • AlphaLauncher3Overlay RRO (apps/app/aosp/launcher3/overlay/ synced with Alpha design tokens and Inter / JetBrains Mono fonts), AlphaPartnerCustomization workspace/grid layout (apps/app/aosp/launcher3/partner/), and alpha-qsb-ask-bar.patch wiring Launcher3 QSB directly to Ask Alpha.
    5. Native Device Control (Tier-1 Accessibility + Agent Plugin)
      • :alpha-control module (AlphaAccessibilityService with structured UI node extraction, blocked-package refusal, SensitiveView protection, touch preemption, and zero-PII diagnostic telemetry; AlphaUiControlExecutor; AlphaControlBridgeClient).
      • DEVICE_CONTROL Eliza agent plugin (apps/agent/src/plugins/control.ts, 4 /api/alpha-control/* routes, lease/policy/rate-limit coordinator).
    6. AOSP Tier-2 Bridge, Sandboxed Google Play Staging & CLI Levers
      • Privileged AOSP AlphaControlBridge (apps/app/aosp/control-bridge/: ALPHA_SIGNER_SHA256 pinning, CAPTURE_SECURE_LAYERS = false, SELinux neverallow sockets, test_bridge_plan.py).
      • MIT-licensed Sandboxed Google Play GmsCompat staging & PlayPackageVerifier (apps/app/aosp/sandboxed-play/: Ed25519 + certificate pinning + GSF -> GMS -> Vending install ordering, test_play_verifier.py), AOSP suite stager (apps/app/scripts/aosp.ts), and typed pnpm cli alpha-next commands (sync-tokens, sync-fonts, manifest, validate, emulator-e2e).

    Bug-Review Audit & Hardening (All Resolved & Re-Verified)

    A deep read-only bug review identified 4 P0, 8 P1, and 4 P2 findings across security, lifecycle, concurrency, and spec-to-shell parity; all 16 findings plus live Android 35 build/runtime issues were fixed and re-verified (736009e4c22, bb946fcbef7, 57e7c38931f, beb328eaa27, 2f8c0d6b9d2, e2eec15a00a, af4bd249ca9, 915d2810da5):

    • 4 P0s resolved: AlphaIpcContract self-signature check tautology; spoofable EXTRA_REFERRER fallback on ACTION_AGENT_OPEN (fail-closed on API 34+ + AGENT_IPC-guarded entry); AlphaVoiceInteractionSession Capacitor/native bridge wiring; Launcher3 QSB crash against disabled STATUS_BAR_SERVICE-guarded AlphaAssistActivity.
    • 8 P1s resolved: AlphaUiControlExecutor main-thread blocking/deadlock, stuck pending op / duplicate actuation / thread leak, SensitiveView & FLAG_SECURE detection, and app_open_url leased-package confinement; OverlayControlBanner /api/alpha/control/state live sync fiber; AlphaAgentBrokerService per-owner call/sub namespacing, unlinkToDeath cleanup & RejectedExecutionException FD leak; AlphaContextRegistryService linkToDeath crash cleanup; alpha-next emulator-e2e core-first sorting for launcher-*.apk.
    • 4 P2s resolved: RRO priority tiebreak (AlphaLauncher3Overlay priority 1000); onHandleAssist blocked-package privacy guard + cold-start event queueing; AlphaSuitePolicy.normalizePath pre-query control-char validation; AlphaOverlayIntakeActivity policy loading & Tier-2 JPEG dimension reporting.
    • Live Android 35 fixes resolved: AlphaAccessibilityService active-window/root fallback and cold-start re-observation (nodes > 0 on Chrome), Linux XDG_CONFIG_HOME AVD path auto-discovery, Alpha Device Control dumpsys accessibility label match, and AOSP + Google APIs PermissionController package detection.

    Verification Receipts (915d2810da578f0bc36d31b2f749ffc10b337084)

    Stage 1 — Static, Spec, Lint, Unit & JVM/AIDL Checks (ALL GREEN)

    • pnpm cli alpha-next validate --check --aapt2 --json: ok: true, status: "pass" — 30/30 artifacts present, tokensInSync: true, manifestValid: true (19 apps / 18 views), 4/4 security invariants passed, aapt2 compile passed on apps/app/aosp/launcher3/overlay/res.
    • @repo/cli test: 12/12 passed.
    • @repo/agent build + @repo/agent test: 37/37 passed (3/3 files).
    • @repo/app targeted Vitest (test/control.test.vibe, test/surface.test.tsx, test/image.test.ts): 28/28 passed (3/3 files).
    • Typechecks (@repo/cli, @repo/agent, @repo/app): 3/3 passed (0 errors); ESLint (--max-warnings 0 --no-warn-ignored on changed .ts/.tsx/.vibe): 0 errors, 0 warnings.
    • AOSP JVM/AIDL harnesses: test_bridge_plan.py (2/2 OK, real aidl + javac API 36) and test_play_verifier.py (2/2 OK, real javac API 36).
    • Formal specs: spec/app/control/index.md (42/42 proved) and spec/agent/index.md (11/11 proved).

    Stage 2 — Real Installable APKs & Signing Certificate Parity (4/4 MATCH)

    All 4 APKs verified via Android build-tools/36.0.0/apksigner verify --print-certs with identical Signer #1 SHA-256 (UNIQUE_SIGNER_CERTS=1): 227ddd0bf51116a69fb6f8f8ceb32ee2df9ed086471bceec4f9a26f48f31d5d5.

    APK Package Size (bytes) SHA-256
    apps/app/artifacts/launcher-debug.apk (AlphaCore*) ai.alphacompute.alphaphone 300,344,623 8547753db56ce0e30f6585dbac4591e088e3ff923e8690f66305d16e63b1fdc4
    apps/app/android/suite/out/notes-debug.apk ai.alphacompute.notes 13,001,706 f7dea975e83b87672abf7082b9bbbb4d8126b83a465d3714bef91f21e7a13cb0
    apps/app/android/suite/out/browser-debug.apk ai.alphacompute.browser 12,976,763 4c7c566d16e7586ec3bdf602e99ff55598c9aa6582d54087660f9ee3e3368959
    apps/app/android/suite/out/settings-debug.apk ai.alphacompute.settings 13,168,904 fec721845efa4230c0c2f3b7f073dba72a7dc49a79efdd520b1b6a55124d6228

    *AlphaCore built with -PelizaSpeechBridgeCapacitor=true -PelizaParadeeApiOnly=true (Node 26 libeliza_node.so, agent.mjs, all 20 @elizaos/os modules, :alpha-ipc, :alpha-control, VoiceInteractionService, AccessibilityService, and widgets; native C++/GGUF Paradee voice models omitted for fast local E2E).

    Stage 3 — Live KVM Android 35 Emulator E2E (alpha-next emulator-e2e --json — 9/9 PASS)

    1. ensure-avd passed — reused AVD alpha_next_api35 via XDG auto-discovery (/home/shaw/.config/.android/avd).
    2. boot-emulator passed — booted emulator-5554 (system-images;android-35;google_apis;x86_64, KVM).
    3. install-apks passed — core-first install of all 4 APKs (launcher-debug.apk, browser-debug.apk, notes-debug.apk, settings-debug.apk).
    4. verify-launcher-activities passed — core=1 thin=3 thirdParty=19 (stock Launcher3 displays standalone Alpha apps alongside 19 third-party apps).
    5. verify-ipc-and-provider passed — components=8/8, authority=ai.alphacompute.alphaphone.preferences, permission=ai.alphacompute.permission.AGENT_IPC(signature).
    6. verify-voice-interaction passed — AlphaVoiceInteractionService registered for VoiceInteractionService.
    7. verify-cross-app-ipc passed — app=ai.alphacompute.notes, coreUid=10209, thinUid=10211, distinctUid=true, prefs=true, broker=true (live cross-UID signature verification, AlphaPreferencesProvider, and IAlphaAgentBroker Binder binding).
    8. verify-accessibility-and-browser-control passed — enabled=true, bound=true, connected=true, browser=com.android.chrome, observed=true, observedNodes=8, settingsObserved=true, refusedSettings=true, blockedGuards=com.android.settings,com.google.android.permissioncontroller, telemetryLines=4.
    9. teardown passed — cleanly stopped emulator-5554 (confirmed adb devices -l empty and zero residual emulator processes).

    What Was Shown vs. What Still Requires an AOSP Build Host & Pixel 10a Hardware

    • Proven locally on this workstation:
      • Formal Quint/Dafny verification of external control (42/42) and agent (11/11) specs.
      • Unit, Vitest, ESLint, TypeScript, aapt2, and real API 36 aidl/javac JVM policy checks for AlphaControlBridge and PlayPackageVerifier.
      • Real signed multi-APK suite (AlphaCore + 3 thin APKs sharing a single signing cert) running end-to-end on a live KVM Android 35 emulator (stock Launcher3 discovery, signature-guarded cross-UID Binder IPC, VoiceInteractionService registration, live AccessibilityService UI tree extraction on Chrome, and blocked-package refusal on com.android.settings).
    • Not yet proven locally (requires a 64–128 GB RAM AOSP Android 17 build host + physical Pixel 10a hardware):
      • Full AOSP Android 17 Soong compilation of Launcher3 (including pinning beforeSha256/afterSha256 for alpha-qsb-ask-bar.patch against the real cp2a checkout), SystemUI, and frameworks/base (GmsCompat).
      • Cuttlefish / Pixel 10a full system-image boot, idmap2 RRO activation, and SELinux zero-denial verification (avc: denied).
      • Tier-2 privileged AlphaControlBridge runtime (INJECT_EVENTS, captureDisplay, EXECUTE_APP_FUNCTIONS), Sandboxed Google Play runtime, native Paradee C++/GGUF local voice runtime, and physical Pixel 10a hardware acceptance.
  4. added a commit that references this issue on Dec 4, 2026
  5. NubsCarson commented on Dec 4, 2026

    @NubsCarson
    Collaborator

    Progress update on the opt-in Alpha NEXT slices:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    alpha-nextenhancement

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions