summaryrefslogtreecommitdiffstats
path: root/adb
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | | am fc8e16bf: am 2c805883: Merge "Add -Wno-deprecated-declarations to makefiles."Christopher Ferris2014-09-061-2/+10
|\ \ \ \ \ | | |/ / / | |/| | | | | | | | | | | | | * commit 'fc8e16bfc59fcebaf554e266aae808eed5f2d078': Add -Wno-deprecated-declarations to makefiles.
| * | | | Merge "Add -Wno-deprecated-declarations to makefiles."Christopher Ferris2014-09-061-2/+10
| |\ \ \ \
| | * | | | Add -Wno-deprecated-declarations to makefiles.Christopher Ferris2014-09-041-2/+10
| | | |/ / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is in preparation for an update to the uapi v3.16.1 kernel headers that marks the structure usb_functionfs_descs_head as deprecated. Change-Id: I25d2f32ce8e95e038e6df201ce2f8126f5a8b6fa
* | | | | am 379ca94d: am 299a32c8: Merge "Include ADB_HOST only code in #if ADB_HOST."Chih-Hung Hsieh2014-09-051-2/+5
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | * commit '379ca94d00cab91a77ad8991cc92e2b4d4236d56': Include ADB_HOST only code in #if ADB_HOST.
| * | | | Merge "Include ADB_HOST only code in #if ADB_HOST."Chih-Hung Hsieh2014-09-051-2/+5
| |\ \ \ \
| | * | | | Include ADB_HOST only code in #if ADB_HOST.Chih-Hung Hsieh2014-09-051-2/+5
| | |/ / / | | | | | | | | | | | | | | | | | | | | BUG: 17409892 Change-Id: Ic1199dd745191aba718fdb18343e87c0ccbe530b
* | | | | am 0dcc3f65: am 9c814648: Merge "Add USB Vendor ID for Micromax Informatics ↵Elliott Hughes2014-09-051-0/+3
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | Ltd." * commit '0dcc3f65b1ff5fa771618436ee4bfdd44cd2f672': Add USB Vendor ID for Micromax Informatics Ltd.
| * | | | Add USB Vendor ID for Micromax Informatics Ltd.Abhishek Karmakar2014-09-051-0/+3
| |/ / / | | | | | | | | | | | | | | | | Signed-off-by: Abhishek Karmakar <abhishek.karmakar@micromaxinfo.com> Change-Id: I63462eb15575cc953ac0246ee5d4c883d3678c08
* | | | am 87ad7cdc: am e1ba39aa: Merge "Fix 64-bit host build."Ying Wang2014-08-141-1/+2
|\ \ \ \ | |/ / / | | | | | | | | | | | | * commit '87ad7cdc590aa4033f0b7ae23d83e2fbc119d07a': Fix 64-bit host build.
| * | | Fix 64-bit host build.Ying Wang2014-08-141-1/+2
| | | | | | | | | | | | | | | | | | | | Bug: 13751317 Change-Id: Ibf62935b7d12a55ffc57242a26a2581b52796847
* | | | am 771f6f29: am 29c5a78f: Merge "Fix build of adb with gcc-4.9."Elliott Hughes2014-08-061-2/+5
|\ \ \ \ | |/ / / | | | | | | | | | | | | * commit '771f6f299f16704b251d6adb8fb185c8fb517d07': Fix build of adb with gcc-4.9.
| * | | Merge "Fix build of adb with gcc-4.9."Elliott Hughes2014-08-051-2/+5
| |\ \ \
| | * | | Fix build of adb with gcc-4.9.Alexander Ivchenko2014-08-061-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Without this patch we get: system/core/adb/commandline.c:1629:16: error: array subscript is above array bounds [-Werror=array-bounds] Change-Id: I494eb8b4d0e8082f8ff57bdd33d8d46c8c481c6f Signed-off-by: Alexander Ivchenko <alexander.ivchenko@intel.com>
* | | | | am 46a8ffe8: Fix Windows adb build by avoiding "bool"Brian Carlstrom2014-08-061-1/+1
|\ \ \ \ \ | | |_|/ / | |/| | | | | | | | | | | | | * commit '46a8ffe87f3cba070fb18a90e3c5c1f73468f99c': Fix Windows adb build by avoiding "bool"
| * | | | Fix Windows adb build by avoiding "bool"Brian Carlstrom2014-08-051-1/+1
| | | | | | | | | | | | | | | | | | | | Change-Id: I9ca59e400c199d497a1a18d5e64c2cafe628097b
* | | | | am 43d65b69: Merge "Escape single quotes in arguments." into lmp-devJeff Sharkey2014-08-061-3/+8
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | * commit '43d65b6903249a409031b081bb6175b9ad3e5c2a': Escape single quotes in arguments.
| * | | | Merge "Escape single quotes in arguments." into lmp-devJeff Sharkey2014-08-051-3/+8
| |\ \ \ \
| | * | | | Escape single quotes in arguments.Jeff Sharkey2014-08-051-3/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Verified that these use-cases continue working: $ adb shell arg a a 'b b' $ adb shell arg a a "b b" |arg|a|a|b b| $ adb shell arg "a a 'b b'" |arg|a a 'b b'| $ adb shell arg 'a a "b b"' |arg|a a "b b"| $ adb shell arg a\"b\'c |arg|a"b'c| $ adb shell "arg a && arg b" |arg|a| |arg|b| $ adb shell "arg 'a' \"b\" c" |arg|a|b|c| Bug: 16139781 Change-Id: I3b010b6cdf57281695c11fda318c9bea0a7221cc
| * | | | | Move host 'get-state' service up so that it works.Simon Ye2014-08-051-5/+5
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Due to previous bad merge, the get-state service was moved out of the ADB_HOST #ifdef block. (cherry picked from commit dc22c3c7a82ad1919c52dc4d00c601ad7210c61b) Change-Id: I08465e7c666104a4c2d15eadef8a4d4be7f91456
* | | | | am 830a8641: am a8d0c4a2: Merge "Move host \'get-state\' service up so that ↵Elliott Hughes2014-08-061-5/+5
|\ \ \ \ \ | | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | it works." * commit '830a8641bb960d208ad2a5b3bc3d9fb91bc31c2b': Move host 'get-state' service up so that it works.
| * | | | Merge "Move host 'get-state' service up so that it works."Elliott Hughes2014-08-051-5/+5
| |\ \ \ \
| | * | | | Move host 'get-state' service up so that it works.Simon Ye2014-07-281-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Due to previous bad merge, the get-state service was moved out of the ADB_HOST #ifdef block. Change-Id: Id4b72a051ff04104659925e63a02eb340db2f807
| * | | | | Partially revert argument escaping.Jeff Sharkey2014-08-051-13/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Commands chained with && need to be passed through literally instead of always being quoted. (cherry-pick of 7c460351f53cb683097fe4071b9ec1e4cd7cdf82.) Bug: 15479704 Change-Id: I2998e40a92a3bfd092098cd526403b469c86c9a6
| * | | | | Uniformly escape shell arguments.Jeff Sharkey2014-08-051-40/+25
| | |_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Arguments with embedded spaces need to be wrapped in quotes, which changes the overall escaping strategy. Instead of mixing the two strategies, just always wrap arguments in quotes. (cherry-pick of fd546e8c35341b518873eb4f883afbed92e947af.) Bug: 15479704 Change-Id: I03eacfa1bd6c220d4ec6617b825ebb0c43c7221e
* | | | | am a361503e: Merge "Consolidate adb trace macro defines into its own header ↵leozwang2014-07-303-114/+146
|\ \ \ \ \ | | |_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | file." into lmp-dev * commit 'a361503e3e68d1b26ce737547c4e1d53a03ec2d9': Consolidate adb trace macro defines into its own header file.
| * | | | Merge "Consolidate adb trace macro defines into its own header file." into ↵leozwang2014-07-253-114/+146
| |\ \ \ \ | | | | | | | | | | | | | | | | | | lmp-dev
| | * | | | Consolidate adb trace macro defines into its own header file.leozwang2014-07-293-114/+146
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Most code is copied and pasted from adb.h. Any file can just include it to enable tracing. Removed some duplications. Change-Id: Ie1ed9e9edbf92158aac84669fbcbf7dc85fe2cf0
| * | | | | Fix adb "ptsname is not thread-safe; use ptsname_r instead" build break.Elliott Hughes2014-07-291-3/+2
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | (cherry picked from commit d235288553f8c0535f51dfb8f05f81e1bc01e4ed) Change-Id: I05f8160bc8c356cb8a57e2bc5677517750700456
* | | | | am ec531e5c: am 47a12389: Merge "Fix adb "ptsname is not thread-safe; use ↵Elliott Hughes2014-07-291-3/+2
|\ \ \ \ \ | | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | ptsname_r instead" build break." * commit 'ec531e5cdde5e0b120bd88aeb2c3d36d18cedfb4': Fix adb "ptsname is not thread-safe; use ptsname_r instead" build break.
| * | | | Fix adb "ptsname is not thread-safe; use ptsname_r instead" build break.Elliott Hughes2014-07-291-3/+2
| | | | | | | | | | | | | | | | | | | | Change-Id: I633dc4d6d421862473e7267cc0d2c1b0933392e0
* | | | | am 74ff4fcf: Merge "Follow refactoring of install-abandon command." into lmp-devJeff Sharkey2014-07-251-2/+2
|\ \ \ \ \ | | |/ / / | |/| | | | | | | | | | | | | * commit '74ff4fcfc46e853ecd9fe34b5cedb47fc379f1af': Follow refactoring of install-abandon command.
| * | | | Follow refactoring of install-abandon command.Jeff Sharkey2014-07-251-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | Bug: 16543552 Change-Id: I1f54254813fd7d7f4341b8815f816535a39de079
* | | | | am 5a255238: Merge "Redirect debug output to logcat." into lmp-devleozwang2014-07-252-2/+26
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | * commit '5a2552388e698fec4efda270d2d88bb18ed3f299': Redirect debug output to logcat.
| * | | | Merge "Redirect debug output to logcat." into lmp-devleozwang2014-07-242-2/+26
| |\ \ \ \
| | * | | | Redirect debug output to logcat.leozwang2014-07-232-2/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If ADB_TRACE is enabled, debug output will be redirected to logcat. Change-Id: I9c36ada7690a2b946ecd6a926d04e36a8313c36a
* | | | | | am edf41f98: am 8d9d362b: Merge "adb: Add USB vendor ID for SONIM ↵Colin Cross2014-07-251-0/+3
|\ \ \ \ \ \ | | |_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | TECHNOLOGIES, INC." * commit 'edf41f981c47d857bd130e8ecc95cd7cf0a0fe0a': adb: Add USB vendor ID for SONIM TECHNOLOGIES, INC.
| * | | | | adb: Add USB vendor ID for SONIM TECHNOLOGIES, INC.DanielMo2014-07-251-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Id66997709fec55b1efd389abf2efa644b9a8ccf4 Signed-off-by: DanielMo <DanielMo@fih-foxconn.com>
* | | | | | am 6ebaf311: am 721f189a: Merge "fix adb build on Darwin"Tim Murray2014-07-251-0/+1
|\ \ \ \ \ \ | |/ / / / / | | / / / / | |/ / / / |/| | | | * commit '6ebaf311a7af8d20979deba279f9d5096ed8f193': fix adb build on Darwin
| * | | | fix adb build on DarwinTim Murray2014-07-241-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bug 16172793 Change-Id: Ia34b7148afc4c909f29037df91c04d6fd29a731e
| * | | | adb: set O_CLOEXEC on lots of file descriptorsNick Kralevich2014-07-215-16/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Too many leaking FDs. Fixes bug: https://code.google.com/p/android/issues/detail?id=65857 (and more) (cherrypicked from commit fe8d7f4f2e775d46d61f7c2d29a4e852434984da) Change-Id: I67d8683244e54288a8105f6f65ee40abe2378d7e
| * | | | adb: replace utimes() with utime()Greg Hackmann2014-07-211-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix the win_sdk host build by replacing utimes() with utime(). utime() is functionally equivalent to utimes() when dealing with non-fractional second timestamps, and is supported by the Windows CRT. (The Windows CRT uses the nonstandard name _utime(), but mingw creates aliases to the POSIX names.) Change-Id: I513c6c5de05376c34cbb0894a94259acba8ae6f1
| * | | | adb: use oom_score_adj instead of oom_adjRom Lemarchand2014-07-181-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (cherry picked from commit 07ce7cab72d9b3e5c701491daf8fd457d035eec8) Change-Id: I1730d1df34039a5502200002ac813ce96a3eaa1a
| * | | | Add "exec" service: shell commands with no pty.Jeff Sharkey2014-07-185-218/+171
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To facilitate device scripts that want to read/write binary data from the host side, this change introduces a new "exec" service that behaves like "shell" but without creating a pty, which would otherwise mangle binary data. After forking, it hooks up stdin/stdout of the child process to the socket connected through to the host. The adb transport doesn't support shutdown(), so the host can't half-close the socket and wait for device termination. Instead, the host side now has two explicit commands "exec-in" and "exec-out" for either sending or receiving data. Teach host side copy_to_file() to deal with stdin/stdout special cases. Switch device side backup/restore services to use the new create_subproc_raw under the hood. (cherry picked from commit 5d9d434efadf1c535c7fea634d5306e18c68ef1f) Change-Id: I42c18cb5bb907449b458c94450ef6c584d84ecdb
| * | | | adb: added support for adb pull -a to preserve time stamps and modeLajos Molnar2014-07-183-36/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added -a flag to adb pull that preserves time and mode. Mode is subjected to umask for security. We only receive modification time from adb server, so creation time will be set to the modification time as well. Signed-off-by: Lajos Molnar <lajos@google.com> (cherry picked from commit de8ff4adcaa487259f9ddcd0eab4d1117d1cca71) Change-Id: I03bb5cc14ce542299cf3b221a8be318a28ee8a8d
| * | | | Fix implicit declaration of function 'prctl' in adb.Elliott Hughes2014-07-181-1/+1
| | |/ / | |/| | | | | | | | | | Change-Id: I9f14cabbb36d658510c11833b3314565a2445e10
* | | | Merge "adb: set O_CLOEXEC on lots of file descriptors" into lmp-devNick Kralevich2014-07-215-16/+16
|\ \ \ \ | |_|/ / |/| | |
| * | | adb: set O_CLOEXEC on lots of file descriptorsNick Kralevich2014-07-185-16/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Too many leaking FDs. Fixes bug: https://code.google.com/p/android/issues/detail?id=65857 (and more) Change-Id: I67d8683244e54288a8105f6f65ee40abe2378d7e
* | | | Fix implicit declaration of function 'prctl' in adb.Elliott Hughes2014-07-181-1/+1
|/ / / | | | | | | | | | | | | | | | (cherry picked from commit b4dd6ef223c4744f8583add1b4999c9ce0b5a0fe) Change-Id: Ia64bec746ae8d2c45663f61afb46702838b1e5bf
* | | Fix the build in clangChristopher Tate2014-07-141-4/+4
| | | | | | | | | | | | | | | | | | | | | "fprintf(stderr, buf)" is a warning in some compilers, and we're building with all warnings promoted to error. Change-Id: Ie3c6ddcd74cf4dda40cf7b742df955dde1d1a5ff
* | | Fix 64-bit builds.Jeff Sharkey2014-07-141-1/+1
| | | | | | | | | | | | Change-Id: I1ff5c9c3dc8d870aef2885f8a1989c6c913ccb3d