Commit Graph

4 Commits

Author SHA1 Message Date
Jiyong Park b8182bb39d Console output and OS logs are separated
The console output and the log output from a VM can now be redirected to
different file descriptors. IVirtualizationService.createVm method is
extended to accept two file descriptors - one for the console output and
the one for the OS logs.  The Java framework, the vm tool, the demo app,
and the compos are also modified to correctly use the modified AIDL API.
The demo app is slightly refactored to better render the two outputs on
a small screen - smaller font size, no line wrap with horizontal
scrolling.

Bug: 200914564
Test: run MicrodroidDemoApp. run microdroid using the vm tool

Change-Id: Id7bcfd75cd775a8fba5a13d5f6d2faafce2370ff
2021-10-27 10:07:12 +09:00
Jiyong Park 8611a6c9f6 Add the onPayloadStarted callback API
The API is called back to the client when the payload starts in the VM.
The standard output from the payload is accessible via the
ParcelFileDescriptor argument as well.

Bug: 192904048
Test: run MicrodroidDemoApp and check that the payload output is shown.

Change-Id: Ie2afbb455496eec21617b94940ed4386a4865876
2021-07-13 10:58:41 +09:00
Jiyong Park af1a74b084 Add API for configuring a VM to run in debug mode
Bug: 185211964
Test: run the demo app
Change-Id: I960839037b2f23dbce1552199d9c9e59c36053e2
2021-07-07 15:28:08 +09:00
Jiyong Park b02e95f2a0 Add microdroid demo app
Add a demo app showing how an app can start a VM.

Bug: N/A
Test: TARGET_BUILD_APPS=MicrodroidDemoApp m apps_only dist
adb install out/dist/MicrodroidDemoApp.apk
adb push out/dist/MicrodroidDemoApp.apk.idsig /data/local/tmp/virt/
adb root
adb shell start virtualizationservice
<then launch the app>

Change-Id: If46b2f8910b98b2b29ca0c629e1f7eacc01a477a
2021-07-06 21:31:28 +09:00