commit | 028a41334c211c6f0173ec306b734b579ab1941a | [log] [tgz] |
---|---|---|
author | Sebastian Ene <sebastianene@google.com> | Wed Nov 13 16:59:28 2024 +0000 |
committer | Sebastian Ene <sebastianene@google.com> | Wed Nov 13 17:09:28 2024 +0000 |
tree | 2d78db5b7751019c3e10b88f88931aa670fec819 | |
parent | b37407f1dfde06d0c48f419b50ba63c469eccbfd [diff] [blame] |
Allow the payload running in Microdroid to interact with kmsg When debuggable property is set, allow the payload running in the VM to show messages to kmsg. Depends on : https://android-review.git.corp.google.com/c/platform/system/sepolicy/+/3346847 Test: run the Empty Payload as per the AVF doceumentation and make sure that we see the Hello Microdroid log. Bug: 378479069 Change-Id: I662437eb32f862102606b4d842632f884e27e769 Signed-off-by: Sebastian Ene <sebastianene@google.com>
diff --git a/guest/microdroid_manager/src/main.rs b/guest/microdroid_manager/src/main.rs index fa089fa..c5fa864 100644 --- a/guest/microdroid_manager/src/main.rs +++ b/guest/microdroid_manager/src/main.rs
@@ -669,7 +669,9 @@ }); } - command.stdin(Stdio::null()).stdout(Stdio::null()).stderr(Stdio::null()); + if !is_debuggable()? { + command.stdin(Stdio::null()).stdout(Stdio::null()).stderr(Stdio::null()); + } info!("notifying payload started"); service.notifyPayloadStarted()?;