Update README.md
Fixed a typo, added options for daemonizing the VMM and grabbing log.
Bug: N/A
Test: N/A
Change-Id: Ie74e8af556c22d6427b8e080bc201bf0f59f216a
diff --git a/microdroid/README.md b/microdroid/README.md
index 802e847..b9d2086 100644
--- a/microdroid/README.md
+++ b/microdroid/README.md
@@ -181,7 +181,7 @@
TEST_ROOT=/data/local/tmp/virt
adb push out/dist/MyApp.apk.idsig $TEST_ROOT/MyApp.apk.idsig
adb push path_to_payload.json $TEST_ROOT/payload.json
-adb shell /apex/com.android.virt/bin/my_payload $TEST_ROOT/payload.json $TEST_ROOT/payload.img
+adb shell /apex/com.android.virt/bin/mk_payload $TEST_ROOT/payload.json $TEST_ROOT/payload.img
adb shell chmod go+r $TEST_ROOT/payload*
```
@@ -193,14 +193,14 @@
```sh
TEST_ROOT=/data/local/tmp/virt
-adb push packages/modules/Virtualization/microdroid/microdroid.json $TEST_ROOT/microdroid.json
adb root
adb shell setenforce 0
adb shell start virtualizationservice
-adb shell /apex/com.android.virt/bin/vm run $TEST_ROOT/microdroid.json
+adb shell /apex/com.android.virt/bin/vm run --daemonize --log $TEST_ROOT/log.txt /apex/com.android.virt/etc/microdroid.json
```
-The last command lets you know the CID assigned to the VM.
+The last command lets you know the CID assigned to the VM. The console output
+from the VM is stored to `$TEST_ROOT/log.txt` file for debugging purpose.
Note: the disabling of SELinux is a temporary step. The restriction will
eventually be removed.
@@ -211,7 +211,8 @@
adb shell /apex/com.android.virt/bin/vm stop CID
```
-, where `CID` is the reported CID value.
+, where `CID` is the reported CID value. This works only when the `vm` was
+invoked with the `--daemonize` flag.
## ADB