summaryrefslogtreecommitdiffstats
path: root/adb/adb_utils.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix ' escaping in adb.Elliott Hughes2015-05-151-5/+10
| | | | | | | | | You can't just use \' inside a single-quoted string. Bug: http://b/20323053 Bug: http://b/3090932 Change-Id: I73754b097671d02dc11c35052f0534b6dd789e4f (cherry picked from commit 84b0bf22644b35d6b3d3f7dc96311a484c3519b3)
* More adb buffer fixes.Elliott Hughes2015-05-011-0/+29
| | | | | | | | | | | | | | This patch factors out a lot of the basic protocol code: sending OKAY, sending FAIL, and sending a length-prefixed string. ADB_TRACE has been non-optional for a long time, so let's just remove the #ifs. Also actually build the device tracker test tool (and remove its duplicate). Bug: http://b/20666660 Change-Id: I6c7d59f18707bdc62ca69dea45547617f9f31fc6 (cherry picked from commit e67f1f87d9b1188ec8617035db7006c37ee7b21e)
* Merge "Use ' quoting to escape arguments."Elliott Hughes2015-04-211-8/+7
|\
| * Use ' quoting to escape arguments.Elliott Hughes2015-04-171-8/+7
| | | | | | | | | | | | | | | | | | | | | | The specific motivating case is "text;ls;1.apk", but rather than continue adding individual characters to the list of characters to be escaped, let's just switch to quote all arguments with ', which only leaves ' itself to be escaped. Bug: 20323053 Bug: 19734868 Change-Id: I8bd71db9373bc2d1169fc11e46c889da6638550a
* | Fix the Windows adb build.Elliott Hughes2015-04-191-0/+2
|/ | | | | | | | | | It looks like we can't use clang on Windows yet because libc++ isn't ready. So move back to GCC for the Windows host clang. Work around the mingw printf format string problems that made us want to switch to clang in the first place, and #include "sysdeps.h" in adb_utils.cpp to work around the absence of lstat(2) on Windows. Change-Id: Icd0797a8c0c2d1d326bdd704ba6bcafcbaeb742f
* Remove yet more fixed-length buffers (and their overruns).Elliott Hughes2015-04-171-0/+8
| | | | | Bug: 20317724 Change-Id: If137fc96f5f23576ccecd388ac87afefa47337c6
* Fix more buffer overruns.Elliott Hughes2015-04-171-0/+43
Also add some tests. Bug: 20323050 Change-Id: I9eaf3dc04efd85206663c4cca4f8c1208620a89a