OSDN Git Service

pass stream contents in separate thread for executeShellCommand
authorGuang Zhu <guangzhu@google.com>
Thu, 19 Mar 2015 03:54:46 +0000 (20:54 -0700)
committerGuang Zhu <guangzhu@google.com>
Thu, 19 Mar 2015 03:54:46 +0000 (20:54 -0700)
commit14e260125e951c2c6372dae80b603996cbb4d362
tree4e51eb4bc19109156236c1f42ce5033f3f533709
parent75f1ba5a815ce13caff1faa8e0df7d4ac483507a
pass stream contents in separate thread for executeShellCommand

Doing it in binder thread will cause deadlock if stdout of
process under execution is larger than buffer of
java.lang.Runtime#exec(String).

Bug: 19829679
Change-Id: Icf0fccd3e2e80b0db4cc1115e501f79066adf091
core/java/android/app/UiAutomationConnection.java