This ensures that the api-versions.xml shipped with
the SDK always includes the correct latest API
data (see http://b.android.com/183500)
(cherry picked from commit fbe6c8105a)
(cherry picked from commit 82336df0c1)
Change-Id: Ied1441430f023f7680ef4fe43e45eeda5162fa60
adb.shell() was recently changed to use subprocess.Popen(), which
doesn't work properly with Unicode on Windows. The fix is to use the
same work-around that I did for subprocess.check_output(): write UTF-8
to a batch file and run it. The change is primarily refactoring to
enable code reuse.
Change-Id: I88e9b9b35e5318533c0cd932d92e13bc9e734092
Signed-off-by: Spencer Low <CompareAndSwap@gmail.com>
Python's subprocess.check_output() cwd argument does not change the PWD
environmental variable, which is what dumpvar.mk uses to turn relative
paths into absolute paths. This led to incorrect symbol paths when
gdbclient was not run from the root directory.
This CL fixes the bug by manually setting PWD before calling the
makefile. It's possible that dumpvar.mk should be using a different
method to get the current directory, but I was scared to change any
core build logic and this approach seems to work just fine.
Change-Id: Ibe3db0bef6694934c512918f7562029313b1deae
gdbclient.py can sometimes attempt to connect to the server before it's
ready, especially when debugging on an emulator. This CL adds
functionality to retry the connection for up to 5 seconds.
Bug: http://b/24671386
Change-Id: I65e77f918c3ea8433f992e67122cd48e3647c67b
http://r.android.com/173810 changed the shell feature name. This CL
updates the python scripts to re-enable shell protocol tests, and adds
an additional test for `adb shell -x`.
Change-Id: I961adf7abd1782ea98f3f82d8af11dcaa02f9570
This is mostly to allow backgrounding of processes run through adb
(gdbserver in particular).
Bug: http://b/23715403
Change-Id: I47fbebbd05d58044b4c447ffa86e0ab97d920278
The install escaping test fails if the device supports exit codes. This
fixes the test to ignore the exit code since we expect the install to
fail.
Change-Id: I37bb39552a6e9068ac088a25d831f45d81b28155
Adds python tests to check that -T (disable PTY) and -t (force PTY)
arguments work as expected for `adb shell`.
Bug: http://b/23825231
Change-Id: I5343fae35b2be8459a9b95125f66def46c26adf4
This really ought to be maintained as a separate project. Also adds a
setup.py for distribution.
Bug: http://b/22881740
Change-Id: I8e11e4154fac21d3196a533613822b236b2b73e6
The build scripts don't seem to accept alpha1 as the qualifier.
Earlier we've used rc1 so trying that.
Change-Id: I10c86fa2e727a840b8fdd16b3e7d3e311fb05831