Advances daemon to accept Agent temporary VMs (vm_create "temporary": true
and their vm_delete) in owner mode; the app already marks them. Adds
run_agent_temporary_vm_probe.py: isolated owner daemon, Agent-shaped crosvm
VM boots to the rescue shell, runs a command and is deleted without being
persisted. Passed on warsaw (boot 7.8 s, 9 checks, cleanup complete).
"Adjust huge pages on start" (default on) in the VM settings. Off, the
daemon leaves the huge-page reserve target alone and does not wait for it;
the start guard then warns when the reserve is short instead of assuming
the daemon will size it. Advances the daemon and extends the runtime probe.
Verified: app compiles; runtime probe --autostart PASS 24 checks, full
lifecycle PASS 39.
AGP strips jniLibs only, so droidvm, daemon and droidvmd shipped in
assets/bin kept their debug info (droidvmd 71 MB debug / 68 MB release).
CopyNativeBinAssets now writes them through the NDK llvm-strip
--strip-unneeded; the unstripped build stays under
intermediates/native_binaries for symbolization. arm64 droidvmd is now
8.8 MB debug / 4.0 MB release. verify_native_assets compares the APK with
the stripped copies.
Verified: Debug and Release build; verify_native_assets PASS;
run_configuration_owner_probe with the stripped droidvmd PASS (8 checks).
DiskOperationActivity sends the settings' qemu-img core list as "cpus";
the daemon binds the tool as taskset did on the legacy path. Advances the
daemon to API 26 and updates the disk-config probe expectations.
Verified: app Debug and migration-tests build; --vm-disks TCP probe PASS
(42 checks).
droidvmd is now the only service: DaemonHelper always launches it (with
--configuration-owner once ownership is claimed), and the "native service"
settings switch is gone. Removed the cn.classfun.droidvm.daemon
implementation (132 files), its JNI adapter (UnixHelper, NativeProcess,
libunixhelper), the unit tests of removed classes and the migration-tests
NativeProcess bridge. UsbRules, UsbHostDevice, UplinkResolver, UsbAcmPool
and RequestException stay because the UI still uses them. Oracle probes
now take --oracle-apk (default: the archived pre-removal debug APK).
Verified: app Debug/Release, androidTest and migration-tests APKs build;
no daemon classes or libunixhelper in the APK; unit tests 466 run, the 12
failures are pre-existing (Windows ':' directory names in
UsbHostDeviceTest, AgentActionQueueTest); run_configuration_owner_probe
on device PASS 8 checks.
Add run_configuration_owner_probe for droidvmd --configuration-owner in an isolated data directory (passed with cleanup) and remove the isolated legacy ownership gate file in run_vm_inventory_probe cleanup (42 checks passed).
When the daemon offers native disk operations, DiskCreateActivity no longer pre-registers a row: DiskOperationActivity sends a path-mode create (registered backing only) and the daemon creates and registers the image. DiskOverlayCreateDialog submits an overlay create whose follow/read-only choice moves stopped VMs' slots in the daemon transaction, and overlay reset uses the daemon's leased reset instead of client-side qemu-img and rename. Planning reads use the native-aware registry snapshot. Legacy mode keeps the existing flows.
Verified: Debug/Release Java and migration test APK compile; device --vm-disks TCP probe (including the Java disk operation test) passed with cleanup. These UI flows were not exercised interactively on device.
Add DiskOperationClient for the API 25 disk operation tasks: capability check, single submission pinned to a disk registry revision, SubmitUnknown for lost or internal admission replies (never resubmitted), polling, cooperative cancel and recovery. When the daemon offers native operations, DiskOperationActivity no longer runs su shell commands or client-side registry follow-ups for registered disks: resize, convert/optimize in place, flatten, commit and clone map to daemon requests, unsupported shapes (converting into another file) fail instead of falling back, and registry/capability reads move off the main thread. The joint delete dialog enables image deletion through the daemon's leased delete operation pinned to the confirmed revision.
Verified: Debug/Release Java compile; device --vm-disks TCP probe with the new DiskOperationTcpTest instrumentation (create, stale revision, resize, lost start reply reported unknown without resubmission, delete with files, no leftovers) passed with cleanup. Activity/dialog UI flows were not exercised on device; production daemon does not advertise disk operations yet.
Serialize DataStore VM writes with native takeover, retain ownership across disconnect and restart, and reject Java rollback startup before force. Copy the production gate into isolated instrumentation tests; Java/native lock transition and persistent refusal verified on device. Native single-writer activation and remaining UI migration are still pending.
Capture the opening revision, preserve unrelated definitions, and require explicit reload after conflicts or uncertain commits. Refuse local fallback on failed or partial capability negotiation; retain an explicit legacy Java handshake. Debug/Release Java builds and isolated TCP/UBSan client-session tests pass. Production ownership activation and Activity end-to-end validation remain pending.
Keep the new VM store contract executable out of release assets. Native ownership is not enabled until runtime and Android save paths are migrated together; P7 remains incomplete.
Require platform AIDL tooling, retain explicit Java rollback preference, record display startup diagnostics, and add read-only resource sampling. Debug/release dual-ABI builds and packaged launch/protocol/recovery checks pass; UBSan contracts, USB and package interop pass. Production upgrade/rollback and same-workload performance remain unverified; display UBSan is blocked by zero available hugepages.
The probe runs both native parts as separate adb shell invocations, merges their checks and timings, and fails if either part fails. All 34 checks pass on warsaw API 37 (41.8 s + 49.2 s).
Advance daemon to the production LinuxBridge factory and add a focused backend probe suite. Dual ABI builds, Debug APK assets, the new isolated backend suite, all 34 network contracts and TCP/gvisor lifecycle pass on warsaw API 37; L2 uplinks, PD ownership and VM attachment remain pending.
Advance daemon to shared-firewall VM port forward composition and add a focused firewall-forwards probe suite. Dual ABI builds, Debug APK assets, all 34 network contracts and TCP/gvisor lifecycle pass on warsaw API 37; VM service and Linux factory wiring remain pending.