android_packages_modules_Vi.../demo
Alan Stokes 5be89e6eee Update install instructions.
- Use the -g option to simplify the install.
- Remove the warning about not running the app without granting the
permission, since it doesn't seem to be true.

Bug: 261421013
Test: I tried the new install command, it worked
Change-Id: Id410047403b4c79333b3012fcfce7824591b2e7d
2023-03-28 17:56:30 +01:00
..
java/com/android/microdroid/demo Add API to selectively redirect VM logs to apps 2023-01-12 18:01:11 +09:00
res
Android.bp Migrate VirtualMachine API to @SystemApi 2022-11-23 14:32:45 +00:00
AndroidManifest.xml
README.md Update install instructions. 2023-03-28 17:56:30 +01:00

README.md

Microdroid demo app

Building

UNBUNDLED_BUILD_SDKS_FROM_SOURCE=true TARGET_BUILD_APPS=MicrodroidDemoApp m apps_only dist

Installing

You can install the app like this:

adb install -t -g out/dist/MicrodroidDemoApp.apk

(-t allows it to be installed even though it is marked as a test app, -g grants the necessary permission.)

You can also explicitly grant or revoke the permission, e.g.

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.