Commit Graph

4 Commits

Author SHA1 Message Date
Alan Stokes 222edd023b Add support for create image & start VM.
Add a make-image command to create an empty VM image.

Add --start <image> option to start a CompOS VM & then connect to it,
rather than some existing VM. Also add --log to capture the VM output
to file.

This is mostly for test purposes, and to allow me to experiment with
using IVirtualizationService from C++ before I start adding it to
odsign.

Bug: 193603140
Test: compos_key_cmd make-instance <if>
Test: compos_key_cmd --log <log> --start <if> generate <blob> <key>
Test: compos_key_cmd --log <log> --start <if> verify <blob> <key>
Change-Id: I32419837ac4cf0c69180382fa7eaee591056f85d
2021-07-28 16:09:38 +01:00
Jiyong Park a1267ad834 Add APIs for creating and running a virtual machine
Bug: 183496040
Test: atest MicrodroidHostTestCase
Test: TARGET_BUILD_APPS=MicrodroidTestApp.signed
Push the build MicrodroidTestApp.apk.idsig to /data/local/tmp/virt
Install the APK and run it.

Change-Id: I1614f8c83605a32ef34b62216c13cb4e4f7fcf99
2021-07-06 21:31:24 +09:00
Jiyong Park 9b8253bad2 Add the skeleton for the client-side API
android.system.virtualmachine is added as the client-side API for the
controlling of virtual machines. This change doesn't add any new API.
It adds an empty library to the existing framework.

Bug: 183496040
Test: atest MicrodroidHostTestCases
Change-Id: I9c52dfaf7e33137e5e3d6c587b5cc3932f667025
2021-07-02 11:39:20 +09:00
Andrew Walbran f6bf686c97 Rename VirtManager to VirtualizationService.
Bug: 188042280
Test: atest VirtualizationTestCases
Change-Id: I15f3f91e464f52d1b1fd47b1290846b1d21fa665
2021-05-26 12:27:37 +00:00