android_packages_modules_Vi.../demo
Shikha Panwar 6f03c944f6 Make exporting tombstone (out of VM) configurable
VM owner must specify export_tombstones value in assets/vm_config in
payload apk to enable/disable exporting the tombstones out of VM. This
is also dm-verity protected so only the owner of the VM can make the
change.  There is no default value for this for now. Virtualization
service will fail at load_config() throw binder_exception to client.

Test: atest . (all tests in /packages/modules/Virtualization)
Bug: 227443903

Change-Id: I82325a9ffc57d4d4825d51d9d41ebb767e6c1f6f
2022-04-19 14:40:04 +00:00
..
assets Make exporting tombstone (out of VM) configurable 2022-04-19 14:40:04 +00:00
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 Console output and OS logs are separated 2021-10-27 10:07:12 +09:00
Android.bp Unbundled test apps can obtain virtual machine permissions 2021-10-19 17:15:28 +09:00
AndroidManifest.xml Unbundled test apps can obtain virtual machine permissions 2021-10-19 17:15:28 +09:00
README.md Update microdroid demo instruction 2022-01-10 22:31:30 +09:00

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.