0
Fork 0
mirror of https://github.com/Droid-VM/DroidVM.git synced 2026-11-17 06:58:15 +00:00
Commit graph

82 commits

Author SHA1 Message Date
lateautumn233
85f2f5a01a build(webui): package frontend and native web transport in APK
Add API contracts, build and validation tools, embedded assets and required license resources. Record daemon and WebUI revisions and shared default data.
2026-10-19 17:50:52 +08:00
lateautumn233
42aed7830e test(agent): run the temporary VM probe on QEMU/TCG too
--backend qemu builds the ChangePasswordActivity shape (QEMU, soft
hypervisor, uart console on ttyAMA0). Passed 3/3 on warsaw (boot 3.5-3.9 s,
9 checks, cleanup complete); crosvm still passes.
2026-10-18 00:55:19 +08:00
lateautumn233
ebea796933 fix(agent): temporary VMs run under native configuration ownership
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).
2026-10-18 00:38:50 +08:00
lateautumn233
dc2b132cc2 feat(settings): switch for adjusting huge pages on VM start
"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.
2026-10-17 22:02:58 +08:00
lateautumn233
f6da875587 build: strip native executables packaged as assets
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).
2026-10-17 21:20:47 +08:00
lateautumn233
30f31f01cc fix(disk): apply qemu-img CPU affinity to native disk operations
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).
2026-10-17 19:59:51 +08:00
lateautumn233
e94ddf051c refactor: remove the Java daemon
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.
2026-10-17 19:03:10 +08:00
lateautumn233
6f582ee8c0 chore: advance daemon to VM lifecycle logging
The runtime probe now asserts that daemon.log records the running,
rebooting, stopping and exit lines (on-device PASS, 39 checks).
2026-10-17 18:39:01 +08:00
lateautumn233
d1924b841e test: validate the opt-in configuration owner daemon on device
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).
2026-10-17 16:31:04 +08:00
lateautumn233
9762e6abfb feat(disk): create, snapshot and reset disks through native daemon tasks
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.
2026-10-17 15:52:41 +08:00
lateautumn233
90cddb850f feat(disk): route registered disk operations through native daemon tasks
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.
2026-10-17 15:44:35 +08:00
lateautumn233
8325cbc398 chore: advance daemon to native disk merge and delete
Device pkg contract 43 groups, real qemu-img merge/delete, UBSan and --vm-disks TCP probe pass.
2026-10-17 15:34:23 +08:00
lateautumn233
c9586ddfb3 chore: advance daemon to native disk create and clone
Device pkg contract 41 groups, real qemu-img suite, UBSan and --vm-disks TCP probe pass.
2026-10-17 15:23:30 +08:00
lateautumn233
49cd2db47a test: drive coordinated disk operations over TCP
Extend the --vm-disks TCP probe with native resize/flatten tasks against an isolated qemu-img; device run passed with cleanup_complete.
2026-10-17 15:14:28 +08:00
lateautumn233
263c753689 fix(vm): keep special disk filenames inside backend path values 2026-10-17 09:26:29 +08:00
lateautumn233
d150832d5f test: exercise joint VM disk client and recovery over TCP 2026-10-17 08:42:54 +08:00
lateautumn233
b988c879ef Exercise disk registry clients and restart behavior over isolated TCP 2026-10-17 07:59:44 +08:00
lateautumn233
fa4e795132 Verify production network deletion client through coordinated TCP fixture 2026-10-17 07:32:59 +08:00
lateautumn233
36684e3f71 Exercise coordinated deletion and crash recovery through isolated TCP fixture 2026-10-17 07:30:33 +08:00
lateautumn233
bdcd2b09f9 Read full network configuration through shared document snapshots 2026-10-17 06:52:08 +08:00
lateautumn233
393c8cb0c3 Pin chunked network import API and extend transport probe 2026-10-17 06:42:09 +08:00
lateautumn233
cccc6f65d0 Pin conditional network config API and extend TCP probe
Probe exact reads, stale edits and missing expectations without relaxing existing checks. Python syntax validation passes; TCP execution awaits device connectivity.
2026-10-17 06:19:28 +08:00
lateautumn233
b63eab8213 Add revisioned VM start client and TCP verification 2026-10-17 06:00:37 +08:00
lateautumn233
fa93e75f8f feat(config): guard all legacy VM saves with persistent native ownership
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.
2026-10-17 05:11:11 +08:00
lateautumn233
f4c8c4f569 feat(ui): connect VM editor to revisioned native configuration sessions
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.
2026-10-17 04:59:53 +08:00
lateautumn233
71d28e2368 feat(vm): add Java configuration client with TCP validation 2026-10-17 04:44:15 +08:00
lateautumn233
c985e88b21 fix(vm): integrate inventory lifecycle race protection 2026-10-17 04:03:38 +08:00
lateautumn233
af5ac5f60c Pin tested VM configuration persistence groundwork
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.
2026-10-17 03:45:12 +08:00
lateautumn233
f3ed9bcab5 Validate shared network configuration snapshots over legacy transport
Pin daemon network invalidation and fixed-view pagination support. Extend isolated TCP probes for replay, reconnect, task-stream filtering and shared startup cursors. Debug/Release dual-ABI builds, packaged daemon checks and UBSan contracts pass; P7 is not complete.
2026-10-17 03:29:56 +08:00
lateautumn233
e3b0e3674f test: validate shared package tasks and cancellation on device
Exercise retained results alongside legacy package events, cross-connection import cancellation, cleanup and snapshot visibility, and control RPC responsiveness during compression. Preserve task transport eviction assertions and add failure diagnostics. Native, UBSan and packaged Debug interop pass; Debug/Release dual-ABI builds and packaged lifecycle pass. P7 remains incomplete pending resource snapshots, configuration ownership and production acceptance.
2026-10-17 03:09:43 +08:00
lateautumn233
d5f50d4a8e feat: default to native daemon and validate P7 cleanup
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.
2026-10-17 02:48:10 +08:00
lateautumn233
e593c64968 test: package export/import native <-> Java on device 2026-10-17 01:52:42 +08:00
lateautumn233
97efc6f70c test: USB ACM pool contract on a fake configfs 2026-10-17 01:04:34 +08:00
lateautumn233
7bf8b3aceb test: USB contract, oracle and daemon wiring checks 2026-10-17 00:44:39 +08:00
lateautumn233
cb8c6358d4 test: drive the native display broker from the app side 2026-10-17 00:26:35 +08:00
lateautumn233
1cb6aa0c42 test: expect the published audio table in probe run directories 2026-10-17 00:05:40 +08:00
lateautumn233
f5e82c6f51 test: native audio table matches the Java daemon's 2026-10-17 00:00:51 +08:00
lateautumn233
f44d474420 test: grab a uinput keyboard into a real crosvm guest 2026-10-16 23:58:06 +08:00
lateautumn233
ad274f8bee test: manual bridge addresses and ports on a native Linux network 2026-10-16 23:25:00 +08:00
lateautumn233
82c927e432 test: prepare a test-only GPU cpuset natively on device 2026-10-16 23:17:21 +08:00
lateautumn233
e98d6675c9 test: compare native QEMU planning and live network details with the legacy daemon 2026-10-16 22:55:58 +08:00
lateautumn233
90f4c03315 test: run a real crosvm guest on a native gVisor network 2026-10-16 22:26:57 +08:00
lateautumn233
1d748653e9 test: auto-start image-boot and networked VMs through the native daemon 2026-10-16 22:04:14 +08:00
lateautumn233
395a990ecb test: deliver native display input to a real crosvm VM 2026-10-16 21:34:08 +08:00
lateautumn233
859d14e628 test: give a real crosvm VM a DHCP static lease on a native Linux network 2026-10-16 21:11:09 +08:00
lateautumn233
e25d317e70 test: boot a real Gunyah crosvm VM through the native daemon 2026-10-16 20:35:17 +08:00
lateautumn233
1cc797e930 test: compare native VM launch planning with the Java daemon run as root 2026-10-16 20:14:19 +08:00
lateautumn233
acd3abe186 test: validate native VM inventory against the Java VMConfig oracle 2026-10-16 19:45:18 +08:00
lateautumn233
7648ea5de7 test: run the full network contract set as two budgeted parts
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).
2026-10-16 17:10:19 +08:00
lateautumn233
dab73354f7 test: validate native Linux L3 network backend on device
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.
2026-10-16 14:38:17 +08:00