commit | 5f41c00906602d1f36bf018503f2d828cde85619 | [log] [tgz] |
---|---|---|
author | Seungjae Yoo <seungjaeyoo@google.com> | Tue Jul 16 12:35:37 2024 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Tue Jul 16 12:35:37 2024 +0000 |
tree | 9c9e8b5d2b03020053293367c33c561a92a25420 | |
parent | bc8160e0f7ec00dba3cf06b988443b39594a3c31 [diff] | |
parent | 52be2f643861ed7fa4e679c8ef6e7866f497b343 [diff] |
Merge "VmLauncherApp: Small fix for writing \0 in the end of clipboard text" into main
diff --git a/vmlauncher_app/java/com/android/virtualization/vmlauncher/MainActivity.java b/vmlauncher_app/java/com/android/virtualization/vmlauncher/MainActivity.java index 4980e55..8bb0fd4 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;