Fix debugging payload command
lldbclient.py pushes lldb server to /data/local/tmp. We need to remount
/data as exec, because /data is noexec by default.
Also there might be confusion why we need --chroot and --user, so this
adds a note.
Bug: 275058548
Test: manual
Change-Id: Ibafc27d6733a1619fa3cb934b940b100981f6521
diff --git a/microdroid/README.md b/microdroid/README.md
index 28785fd..f70965a 100644
--- a/microdroid/README.md
+++ b/microdroid/README.md
@@ -221,6 +221,11 @@
Use `vm_shell` tool above, and then run `lldbclient.py`.
```sh
+adb -s localhost:8000 shell 'mount -o remount,exec /data'
development/scripts/lldbclient.py -s localhost:8000 --chroot . --user '' \
(-p PID | -n NAME | -r ...)
```
+
+**Note:** We need to pass `--chroot .` to skip verifying device, because
+microdroid doesn't match with the host's lunch target. We need to also pass
+`--user ''` as there is no `su` binary in microdroid.