Go to file
David Pursell 0aacbbe9f3 adb: fix GetFeatureSet() to indicate failure.
Previously GetFeatureSet() on an invalid target would just return an
empty feature set, leading to some invalid assumptions, e.g. if there
isn't exactly one device connected this happens:

$ adb shell -t
error: target doesn't support PTY args -Tt

This CL adds a success/failure return value to GetFeatureSet(), and
also adds an option to print errors to stderr since that's the most
common behavior.

This will cause a slight difference in behavior for install/uninstall.
Previously they would block until the device was available, now they
print an error and quit immediately, which seems to be the more common
behavior for adb functions.

Bug: http://b/26387641
Change-Id: I0ea6ffaec922e04b9946e84f05c3870e5b549fde
2016-01-22 08:49:15 -08:00
adb adb: fix GetFeatureSet() to indicate failure. 2016-01-22 08:49:15 -08:00
adf Adf: Remove unused variable 2015-07-27 22:08:16 -07:00
base base: add network address parsing function from adb. 2016-01-21 20:03:33 -08:00
bootstat bootstat: Followup cleanups from the initial bootstat checkin. 2016-01-20 13:17:02 -08:00
cpio fs_config: replace getenv('OUT') by new fs_config parameter 2015-07-09 21:47:07 -07:00
crash_reporter Merge "crash_reporter: Add unit tests to debug builds" 2016-01-21 04:43:23 +00:00
debuggerd debuggerd: fix debug.debuggerd.wait_for_gdb. 2016-01-15 11:31:17 -08:00
fastboot fastboot: use cutils socket functions. 2016-01-21 09:53:11 -08:00
fingerprintd Fingerprint: Add HAL close() code 2015-07-10 16:26:32 -07:00
fs_mgr Merge "fs_mgr: support upstream dm-verity without error correction" 2015-12-10 20:13:02 +00:00
gatekeeperd Track rename of base/ to android-base/. 2015-12-04 22:00:26 -08:00
healthd logd: isMonotonic improvements 2015-12-29 11:34:29 -08:00
include fastboot: use cutils socket functions. 2016-01-21 09:53:11 -08:00
init Merge "Allow paths of .rc files to be specified at mount_all" 2016-01-21 04:12:23 +00:00
libbacktrace Modify tests to use executable memory. 2016-01-15 16:08:58 -08:00
libbinderwrapper libbinderwrapper: Add BinderWrapper::GetOrCreateInstance() 2016-01-04 12:56:27 -08:00
libcutils fastboot: use cutils socket functions. 2016-01-21 09:53:11 -08:00
libdiskconfig am eb075e28: am c8179498: am 2f62edf7: Merge "libdiskconfig: Turn on -Werror" 2014-05-21 21:19:27 +00:00
libion am 8d2cd035: am 2ddb9cb1: am ed43be39: Merge "Remove LOCAL_ADDITIONAL_DEPENDENCIES in cases where it\'s not needed." 2015-04-02 22:07:16 +00:00
liblog liblog: fix android_log_printLogLine empty event string 2016-01-20 14:15:19 -08:00
libmemtrack Remove a hack for getting libpagerank's headers. 2015-09-22 22:35:30 -07:00
libmincrypt Enable clang compilation. 2015-05-14 10:53:48 -07:00
libnativebridge nativebrige: log code_cache access errors to stderr as well 2016-01-12 12:24:16 -08:00
libnativeloader Add libRS.so to the list of public libraries 2016-01-13 15:19:35 -08:00
libnetutils libnetutils: Check socket() return value 2015-12-29 11:17:05 -08:00
libpackagelistparser packagelistparser: rename to libpackagelistparser 2015-11-05 12:12:38 -08:00
libpixelflinger libpixelflinger: MIPS64 assembler test bug fix 2015-12-15 15:23:01 +01:00
libprocessgroup processgroup: change the polling interval for killProcessGroup() 2015-06-16 13:59:32 -07:00
libsparse Turn off CRC checking for append2simg 2015-12-17 17:28:44 -08:00
libsuspend Adds a parameter to the wakeup_callback to report sucessful wakeup or suspend aborts. 2015-06-25 13:15:22 -07:00
libsync Fix isValid() condition for libsync tests 2015-11-05 10:07:53 -08:00
libsysutils Switch from using sockaddr to sockaddr_storage. 2015-12-07 16:07:46 +09:00
libusbhost libusbhost: Fix problem reading USB string descriptors on some quirky devices 2015-06-18 13:38:31 -07:00
libutils more O_CLOEXEC 2015-12-18 20:57:25 -08:00
libziparchive Allow setting an arbitrary alignment for an entry. 2016-01-19 13:55:53 -08:00
lmkd more O_CLOEXEC 2015-12-18 20:57:25 -08:00
logcat logpersist: missing X 2015-12-29 07:31:37 -08:00
logd logd: prune maintain per-id watermark (part deux) 2016-01-19 16:14:39 -08:00
logwrapper am eaf04aa0: am 3b94cef1: Merge "Add FORK_EXECVP_OPTION_CAPTURE_OUTPUT to logwrap.h" 2015-08-22 02:40:51 +00:00
metricsd libmetrics: Update BASE_VERS to 369476 2016-01-20 15:49:35 -08:00
mkbootimg mkbootimg: misc typo fixes 2015-06-04 09:59:01 -07:00
reboot reboot: Turn on -Werror 2014-05-21 12:58:38 -07:00
rootdir init.rc: Reland "mkdir /data/misc/vold" 2016-01-08 14:51:32 +08:00
run-as Fix the run-as environment to better match su. 2015-11-03 14:31:46 -08:00
sdcard Re-derive permissions after package changes. 2015-12-16 13:08:29 -07:00
toolbox Toolbox: |ps -t| now correctly displays the USER for threads 2016-01-12 15:06:09 -08:00
trusty/libtrusty Merge "Revert "[core][trusty] add gatekeeper module"" 2015-09-16 22:54:14 +00:00
tzdatacheck Track rename of base/ to android-base/. 2015-12-04 22:00:26 -08:00
.gitignore Ignore adb/*.pyc files 2015-08-11 12:59:58 -07:00
Android.mk Remove the simulator target from all makefiles. 2011-07-11 22:12:32 -07:00
CleanSpec.mk Add a CleanSpec for grep/toolbox. 2015-03-22 18:04:54 -07:00
MODULE_LICENSE_APACHE2 auto import from //depot/cupcake/@135843 2013-07-30 13:56:49 -07:00
NOTICE Fix omission in NOTICE file. 2013-07-30 13:56:55 -07:00