summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* fastboot/sparse: propagate error codeJeremy Compostella2015-03-012-13/+31
| | | | | | | | | | | sparse_file_write_block calls functions that might failed. This patch makes sparse_file_write_block catch the error code and propagate it. Without this patch, fastboot crashes on a segmentation fault if usb_write() fail during a sparse file image flashing. Change-Id: If9c0e8dfac8fa380628a2504e13abe8cf7d62726 Signed-off-by: Jeremy Compostella <jeremy.compostella@intel.com>
* Merge "logcat: add pstore read"Mark Salyzyn2015-02-261-1/+6
|\
| * logcat: add pstore readMark Salyzyn2015-02-261-1/+6
| | | | | | | | | | | | | | | | Used to pull the Android log messages after a reboot. A companion to the pstore console logs. Adding the -L flag triggers this behavior. Change-Id: Icce2dc00bcbb26975bea604420c6be397869e804
* | Merge "liblog: add pstore read"Mark Salyzyn2015-02-263-1/+177
|\ \ | |/
| * liblog: add pstore readMark Salyzyn2015-02-263-1/+177
|/ | | | | | | | | | | Used to pull the Android log messages after a reboot. Adding an ANDROID_LOG_PSTORE flag to the mode parameter in calls to android_logger_list_alloc() and android_logger_list_alloc_time(). The side effects are that android_logger_clear() and android_logger_list_read() will react with the user space pstore driver. Forms a companion to the pstore console logs. Change-Id: I7bb07b87b3bf73f059a21af3f810af37c7715b6d
* Merge "check if uid=0 before attempting remount"Nick Kralevich2015-02-261-0/+6
|\
| * check if uid=0 before attempting remountNick Kralevich2015-02-251-0/+6
|/ | | | | | | | | If "adb remount" is done without having done "adb root" first, scary looking SELinux denials are emitted before the operation eventually fails. Avoid the scary looking messages by refusing remount attempts if we're not running with privileges. Change-Id: I298621251a10e38345ef77875003a97c8b5a0270
* Merge "seclabel use on services out of system partition"Nick Kralevich2015-02-261-2/+0
|\
| * seclabel use on services out of system partitionWilliam Roberts2015-02-231-2/+0
| | | | | | | | | | | | | | These services can make use of type transitions already present in the base policy. Change-Id: Id785c39c4ea44598c64dc499bd943c73bc55ca85
* | Merge "logcat: Add -D print dividers flag"Mark Salyzyn2015-02-251-10/+22
|\ \
| * | logcat: Add -D print dividers flagMark Salyzyn2015-02-251-10/+22
| | | | | | | | | | | | | | | | | | | | | | | | Permits a single thread to collect several log buffer and to separate them out into named buckets by keying off the dividers --------- Change-Id: I5a92c67383a73ea566cb9b9732d26d88d9c41c66
* | | Merge "Test readx/writex (now renamed)."Dan Albert2015-02-2519-211/+435
|\ \ \ | |/ / |/| |
| * | Test readx/writex (now renamed).Dan Albert2015-02-2519-211/+435
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | Renamed readx/writex to ReadFdExactly/WriteFdExactly respectively. These read/write a full fixed-size buffer. If the whole buffer cannot be read/written, these functions return an error. Rename write_string to WriteStringFully. Move the TEMP_FAILURE_RETRY definition in sysdeps.h out of the !Windows section. It seems Windows won't actually interrupt a call, but it's easier to just define it than to #ifdef each call. Change-Id: Ia8ddffa2a52764a2f9a281c96c937660e002b9b9
* | Merge "Remove _(GNU|XOPEN)_SOURCE makefile cruft."Dan Albert2015-02-251-4/+6
|\ \
| * | Remove _(GNU|XOPEN)_SOURCE makefile cruft.Dan Albert2015-02-251-4/+6
|/ / | | | | | | | | | | None of the functions that require these are used. Change-Id: I10cffab127795b94340131f8737f7924b9138f9e
* | Merge "Add some basic tests to adb."Dan Albert2015-02-253-18/+107
|\ \
| * | Add some basic tests to adb.Dan Albert2015-02-253-18/+107
| | | | | | | | | | | | Change-Id: I946b5b1e5650540db3b4f75892214c4218b3baf3
* | | Merge "Support "fastboot reboot bootloader"."Elliott Hughes2015-02-251-1/+9
|\ \ \ | |/ / |/| |
| * | Support "fastboot reboot bootloader".Elliott Hughes2015-02-251-1/+9
| | | | | | | | | | | | | | | | | | | | | This matches the more general adb syntax, though the fastboot protocol doesn't support rebooting into the recovery image. Change-Id: I6d93d4c63d4a9b81c71e681e7a7bf76867fba019
* | | Merge "Fix the mac build."Dan Albert2015-02-251-2/+3
|\ \ \
| * | | Fix the mac build.Dan Albert2015-02-251-2/+3
| | | | | | | | | | | | | | | | Change-Id: Ieb6f2650ce5f39f1d8c938d0ca8cbec459d8e2fd
* | | | Merge "liblog: introduce ANDROID_LOG_* flags"Mark Salyzyn2015-02-259-39/+46
|\ \ \ \ | |/ / / |/| | |
| * | | liblog: introduce ANDROID_LOG_* flagsMark Salyzyn2015-02-259-39/+46
|/ / / | | | | | | | | | | | | | | | | | | | | | Move away from using POSIX open(2) flags and introduce ANDROID_LOG_* flags to replace them. Add security by preventing random mode flags from getting into underlying POSIX calls. ANDROID_LOG_* flags overlap POSIX O_* flag definitions. Change-Id: Ib32bb64c287e8bf150be62242e1ba46bb37839fc
* | | Merge "Move transport declarations into transport.h."Dan Albert2015-02-2521-155/+193
|\ \ \
| * | | Move transport declarations into transport.h.Dan Albert2015-02-2421-155/+193
| |/ / | | | | | | | | | | | | | | | There are a few cloexec issues in here as an added bonus. Change-Id: I1699d719d733f47878bdba0454230cf5ab6a60b6
* | | Merge "Add .clang-format file."Dan Albert2015-02-251-0/+11
|\ \ \ | |/ / |/| |
| * | Add .clang-format file.Dan Albert2015-02-241-0/+11
|/ / | | | | | | | | | | | | Not going to format the whole world just yet, but this helps for `git clang-format`. Change-Id: I482819419647e4c752d3b044bde8d637e1fae1e5
* | Merge "Add a project wide clang switch."Dan Albert2015-02-251-0/+8
|\ \
| * | Add a project wide clang switch.Dan Albert2015-02-241-0/+8
| | | | | | | | | | | | | | | | | | | | | I'll probably make this the default soon, but I'm not brave enough to do that without checking the recovery image first. Change-Id: I9cde687b08a588e3797645a308f381e4ec553447
* | | Merge "Remove the emulator special case from the "adb root" code."Elliott Hughes2015-02-241-7/+0
|\ \ \
| * | | Remove the emulator special case from the "adb root" code.Elliott Hughes2015-02-241-7/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The emulator is essential an "eng" build, so the regular properties should suffice. Change-Id: Id63b3918f9b0b04b0d887ed886535b9976a9cc85
* | | | Merge "Make Python tests only check the current device."Dan Albert2015-02-241-46/+19
|\ \ \ \
| * | | | Make Python tests only check the current device.Dan Albert2015-02-241-46/+19
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In practice testing all connected devices is a pain, since it's probably each device is running a different build. It would probably make sense to just move this functionality up into a higher level test runner (which could just live in main). Also rename test_devices to test_shell, since it doesn't really test `adb devices`. Change-Id: Ie96d3e83b30acfac4e3bcbd9821690c0ad4d2f7e
* | | | Merge "init: grab-bootchart.sh: run bootchart and display results"Mark Salyzyn2015-02-242-5/+7
|\ \ \ \ | |/ / / |/| | |
| * | | init: grab-bootchart.sh: run bootchart and display resultsMark Salyzyn2015-02-242-5/+7
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | - KISS as all options are now passed to adb for better or worse - runs bootchart and immediately displays the results Bug: 19485335 Bug: 18390773 Change-Id: Id32930031371d0368e605810f0c998232a1d4f16
* | | Merge "Fix Mac build."Dan Albert2015-02-241-1/+1
|\ \ \
| * | | Fix Mac build.Dan Albert2015-02-241-1/+1
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | Prior to https://android-review.googlesource.com/#/c/134253/ the makefile had assumed !Windows was the same as Linux, so the Mac was actually getting all the Linux sources as well. I mistakenly didn't add fdevent.cpp to the Darwin sources in that change. Change-Id: I4e12a394e9a2baf7c1e3c711a01a6b5fccbf79d9
* | | Merge "Fix Windows SDK build."Dan Albert2015-02-241-1/+4
|\ \ \ | |/ / |/| |
| * | Fix Windows SDK build.Dan Albert2015-02-241-1/+4
|/ / | | | | | | Change-Id: I9c0f9c92c28867ff17f1ec83aac935d18348c335
* | Merge "Add missing <stdlib.h> to adb_listeners.c."Elliott Hughes2015-02-241-0/+1
|\ \
| * | Add missing <stdlib.h> to adb_listeners.c.Elliott Hughes2015-02-241-0/+1
|/ / | | | | | | Change-Id: If9505880a33131b27bfaa19f3efd45c83a6810ed
* | Merge "Move more into libadb and libadbd."Dan Albert2015-02-241-23/+6
|\ \
| * | Move more into libadb and libadbd.Dan Albert2015-02-201-23/+6
| | | | | | | | | | | | | | | | | | | | | None of this needs to be shared with minadbd, but these sources are still needed for anything linking libadb (such as tests). Change-Id: I3024f714da42364bf27a991986f00676e2bbbf2c
* | | Merge "Oops. Fix make variable name. Thanks again, make."Dan Albert2015-02-242-2/+4
|\ \ \ | |/ /
| * | Oops. Fix make variable name. Thanks again, make.Dan Albert2015-02-202-2/+4
| | | | | | | | | | | | Change-Id: Iecbb41acc835bb8eb20b668c89a3ff065470fcb7
* | | Merge "Ignore another stupid lint warning."Dan Albert2015-02-241-1/+1
|\ \ \ | |/ /
| * | Ignore another stupid lint warning.Dan Albert2015-02-201-1/+1
| | | | | | | | | | | | Change-Id: I8e586e472a139cc3039f1371f8a99935d20aa0f0
* | | Merge "Remove useless refCounting from FileMap."Narayan Kamath2015-02-244-32/+8
|\ \ \
| * | | Remove useless refCounting from FileMap.Narayan Kamath2015-02-234-32/+8
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | Nobody ever called acquire() so release() was always equivalent to delete. Just use delete instead so that people can use unique_ptr directly (or shared_ptr if they really want refcounts). Change-Id: I9e3ad5e0f6a4fcc4e02e5a2ff7ef9514fe234415
* | | Merge "Add more logging message and dead code"Mark Salyzyn2015-02-233-20/+9
|\ \ \ | |/ / |/| |