android_packages_modules_Vi.../demo
Jooyung Han dd0a173b8f Add notifyError/onError notification for VM errors
For now, microdroid_manager shuts down a VM instance when it fails to
verify the VM payload. This change adds a new "error" notification to
deliver the error to the VM app.

Fow now this doesn't change the workflow. In a follow-up change this
will be changed so that VM app can decide to shutdown or not "onError".

Bug: 205778374
Test: MicrodroidHostTestCases
Change-Id: If7fdac3996b69601be0eda17da3e4cf218b4d1d8
2021-11-23 22:15:05 +09:00
..
assets
java/com/android/microdroid/demo Add notifyError/onError notification for VM errors 2021-11-23 22:15:05 +09: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 docs 2021-11-22 18:47:01 +09:00

README.md

Microdroid demo app

Building

TARGET_BUILD_APPS=MicrodroidDemoApp m apps_only dist

Installing

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

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.