2021-07-08 11:59:54 +00:00
|
|
|
# Microdroid demo app
|
|
|
|
|
|
|
|
## Building
|
|
|
|
|
|
|
|
```
|
2022-06-28 04:06:53 +00:00
|
|
|
UNBUNDLED_BUILD_SDKS_FROM_SOURCE=true TARGET_BUILD_APPS=MicrodroidDemoApp m apps_only dist
|
2021-07-08 11:59:54 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
## Installing
|
|
|
|
|
2023-03-28 16:54:14 +00:00
|
|
|
You can install the app like this:
|
2021-07-08 11:59:54 +00:00
|
|
|
```
|
2023-03-28 16:54:14 +00:00
|
|
|
adb install -t -g out/dist/MicrodroidDemoApp.apk
|
2021-07-08 11:59:54 +00:00
|
|
|
```
|
|
|
|
|
2023-03-28 16:54:14 +00:00
|
|
|
(-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
|
|
|
|
```
|
2022-01-10 13:24:18 +00:00
|
|
|
|
2021-07-08 11:59:54 +00:00
|
|
|
## 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.
|