android_packages_modules_Vi.../demo
Alan Stokes 3504a6fd21 Modify API clients to use only the to-be public API
This is just code cleanup so that these clients build cleanly when we
switch to @SystemApi.

These changes were originally in https://r.android.com/2192919 and
https://r.android.com/2196998, but I'm moving them before the
@SystemApi change mainly to make my life easier with less CL herding.

Bug: 242828259
Bug: 243512107
Test: Install & run demo app
Test: atest MicrodroidTests
Change-Id: I8527ea4c064a315872eddccadef3b40387bc1c18
2022-09-02 11:22:34 +01:00
..
assets Make exporting tombstone (out of VM) configurable 2022-04-19 14:40:04 +00:00
java/com/android/microdroid/demo Modify API clients to use only the to-be public API 2022-09-02 11:22:34 +01:00
res Console output and OS logs are separated 2021-10-27 10:07:12 +09:00
Android.bp The demo app built from AOSP is installable to T devices 2022-06-28 23:22:18 +09:00
AndroidManifest.xml The demo app built from AOSP is installable to T devices 2022-06-28 23:22:18 +09:00
README.md Fix build command for demo app 2022-06-28 13:06:53 +09:00

README.md

Microdroid demo app

Building

UNBUNDLED_BUILD_SDKS_FROM_SOURCE=true 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.