android_packages_modules_Vi.../demo
Alan Stokes 38d00f82a5 Simplify use of config files
Since the exposed API won't support config files:
- Don't use a config file for the demo app.
- Don't use config files for tests that don't need one.

Also, in preparation for removing command line argument support
entirely, remove all arguments from config files. Where we were using
arguments to specify behavior, use different binaries instead.

Tweak: Improve error reporting in the benchmark after I got a (sadly
non-reproducible) failure.

Bug: 250876593
Bug: 243513572
Test: atest MicrodroidTests MicrodroidHostTestCases
Test: atest MicrodroidBenchmarkApp
Test: manual - install & run demo app
Change-Id: I4332b2340bf2e18cdaee5acd9ef3277766b1c0b5
2022-10-04 17:04:03 +01:00
..
java/com/android/microdroid/demo Simplify use of config files 2022-10-04 17:04:03 +01:00
res
Android.bp
AndroidManifest.xml
README.md

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.