android_packages_modules_Vi.../demo
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
..
assets Add microdroid demo app 2021-07-06 21:31:28 +09:00
java/com/android/microdroid/demo Add the onPayloadStarted callback API 2021-07-13 10:58:41 +09:00
res Add the onPayloadStarted callback API 2021-07-13 10:58:41 +09:00
Android.bp Add microdroid demo app 2021-07-06 21:31:28 +09:00
AndroidManifest.xml Add microdroid demo app 2021-07-06 21:31:28 +09:00
README.md Add README for the demo app 2021-07-08 20:59:54 +09:00

README.md

Microdroid demo app

Building

TARGET_BUILD_APPS=MicrodroidDemoApp m apps_only dist

Installing

adb install out/dist/MicrodroidDemoApp.apk
adb push out/dist/MicrodroidDemoApp.apk.idsig /data/local/tmp/virt

Running

Run these commands before running the app. Eventually, these won't be needed.

adb root
adb setenforce 0
adb start virtualizationservice

Run the app by touching the icon on the launcher. Press the run button to start a VM. You can see console output from the VM on the screen. You can stop the VM by pressing the stop button.