android_packages_modules_Vi.../demo
Andrew Walbran c92d35ff72 Enable --extended-status for crosvm and return reason why VM died.
This will allow us to detect guest VM kernel panics because they can be
configured to reboot on panic.

Bug: 211704107
Test: Ran some VMs manually with vm tool
Change-Id: I3845bb9d569ad0dc098013b527b69b31352e7e08
2022-01-14 16:07:03 +00:00
..
assets
java/com/android/microdroid/demo Enable --extended-status for crosvm and return reason why VM died. 2022-01-14 16:07:03 +00:00
res
Android.bp
AndroidManifest.xml
README.md

README.md

Microdroid demo app

Building

TARGET_BUILD_APPS=MicrodroidDemoApp m apps_only dist

Installing

adb install -t out/dist/MicrodroidDemoApp.apk
adb shell pm grant com.android.microdroid.demo android.permission.MANAGE_VIRTUAL_MACHINE

Don't run the app before granting the permission. Or you will have to uninstall the app, and then re-install it.

Running

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.