commit | 52be2f643861ed7fa4e679c8ef6e7866f497b343 | [log] [tgz] |
---|---|---|
author | Seungjae Yoo <seungjaeyoo@google.com> | Tue Jul 16 16:35:01 2024 +0900 |
committer | Seungjae Yoo <seungjaeyoo@google.com> | Tue Jul 16 16:35:01 2024 +0900 |
tree | 126aa8a8968a2874d6fbe72f49dc170151433ec8 | |
parent | d62453898dfe2a7b7589dead3ce51e7013ca0e8b [diff] |
VmLauncherApp: Small fix for writing \0 in the end of clipboard text Bug: 353121151 Test: Interaction with ferrochrome Change-Id: Ibd9b873c72e706e2db11475c4cce140e8fd0ce77
diff --git a/vmlauncher_app/java/com/android/virtualization/vmlauncher/MainActivity.java b/vmlauncher_app/java/com/android/virtualization/vmlauncher/MainActivity.java index c2b1fa8..bbf4e4f 100644 --- a/vmlauncher_app/java/com/android/virtualization/vmlauncher/MainActivity.java +++ b/vmlauncher_app/java/com/android/virtualization/vmlauncher/MainActivity.java
@@ -553,6 +553,7 @@ try (OutputStream stream = new AutoCloseOutputStream(pfd)) { stream.write(header); stream.write(text.getBytes()); + stream.write('\0'); stream.flush(); Log.d(TAG, "successfully wrote clipboard data to the VM"); return true;