summaryrefslogtreecommitdiffstats
path: root/adb
Commit message (Collapse)AuthorAgeFilesLines
* Fix adb/fastboot windows compilations.Christopher Ferris2014-11-064-2/+10
| | | | | | | | | | Many of the windows files where not including stdlib.h even though they are using malloc/free calls. Bug: 18283958 (cherry picked from commit ae7bf0959bd3f79afbf365e41f015ed1c304afdc) Change-Id: Iebc09cc314fa8f0ba6c6cd45ba26135052f156dd
* adb warns on remount when verity is enabledPaul Lawrence2014-10-271-1/+33
| | | | | Bug: 18119147 Change-Id: I75e5edf83fa01dbf2495e24df4597dce41f13654
* Revert "Revert "Enable verity on userdebug, and add disable-verity to adb""Paul Lawrence2014-10-095-4/+219
| | | | | | | | | This reverts commit 152d2d4234ba89e0c20c4af13e291b6049a7bc33. Fixed build error, and also fixed memory leak spotted from warning. Bug: 17691572 Change-Id: I23b5ba537f7b557432041d4338b38b9be434e981
* Revert "Enable verity on userdebug, and add disable-verity to adb"Nick Kralevich2014-10-085-219/+4
| | | | | | | | | | | | | | | | | | | Build is broken. system/core/fs_mgr/fs_mgr_verity.c: In function 'fs_mgr_setup_verity': system/core/fs_mgr/fs_mgr_verity.c:103:20: error: 'verity_table_signature' may be used uninitialized in this function [-Werror=maybe-uninitialized] if (!RSA_verify(key, ^ system/core/fs_mgr/fs_mgr_verity.c:374:11: note: 'verity_table_signature' was declared here char *verity_table_signature; ^ cc1: all warnings being treated as errors make: *** [out/target/product/minnow/obj/STATIC_LIBRARIES/libfs_mgr_intermediates/fs_mgr_verity.o] Error 1 make: *** Waiting for unfinished jobs.... This reverts commit d4cea0bc16d1ad96cc6d6177232d7b339785460c. Change-Id: I6862cc79ef9d944a2472b6fb2e46dae514cea8ce
* Enable verity on userdebug, and add disable-verity to adbPaul Lawrence2014-10-085-4/+219
| | | | | | Bug: 17691572 Change-Id: I58f588f318e7952d06a41325337d946d7c007e31
* Fix windows-specific error without messing up Makefile flags.Stephen Hines2014-10-014-5/+3
| | | | | | | | | Bug: 14416410 The proper fix for the error/warning we encountered is to move winsock2.h in front of windows.h. Change-Id: I29504ba3a184a85c6636d06c2ad900828fdb5436
* Fix build breakage for missing -Wcpp option on old GCC versions.Stephen Hines2014-10-011-1/+4
| | | | | Bug: 14416410 Change-Id: Ib30c3739d50d6122b3b4643051c72f2fa4985686
* Merge "Remove obsolete reference to ddk; Fixes for -Werror" into lmp-devStephen Hines2014-10-014-4/+4
|\
| * Remove obsolete reference to ddk; Fixes for -WerrorAndrew Hsieh2014-09-304-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 14416410 1. The new mingw-w64 toolchain x86_64-w64-mingw32-4.8 has ddk in x86_64-w64-mingw32/include/ddk 2. Add -Wno-error=cpp to suppress a warning that turns into error thanks to -Werror: Please include winsock2.h before windows.h 3. Cast GetLastError() return type DWORD to "int" 4. Include direct.h for _mkdir 5. Include stdint.h for uint8_t on Windows Change-Id: I4bec0587f6573692f08c760da6c98ae551b8b5eb
* | fix for adbd pinning CPUVince Harron2014-09-251-1/+1
|/ | | | | | | | | | | adbd was spinning between select & read (0 bytes) for an adb_auth socket. The read documentation states: "On success, the number of bytes read is returned (zero indicates end of file)" so the code has been modified to close the connection (like the read error case). BUG=17419868 Change-Id: I1d8fb70c8e1876225ba8d47ea0a2b6265a7d182b
* 74602: Fixes adb not seeing connected devices on Mac.Esteban de la Canal2014-09-151-5/+9
| | | | | | | | | Every alternate time an adb server was started already connected devices were not being seen. This was caused by opened usb connections being "stalled". See this thread for more information: http://lists.apple.com/archives/usb/2011/Jun/msg00050.html Change-Id: Ic35b7a66c3f14a837b960066557f44e105609dcb Fixes: https://code.google.com/p/android/issues/detail?id=74602
* delete_file() should force removal.Jeff Sharkey2014-09-091-1/+1
| | | | | | | | It's a shell command with a pty, but it's not really interactive, so force the removal to avoid giving users dead-end prompts. Bug: 17339227 Change-Id: Iaf5d95c49f032066aa741a711a2c45557d93c598
* 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] Signed-off-by: Alexander Ivchenko <alexander.ivchenko@intel.com> (cherry picked from commit 53723338858772a0189aa3f92f4d4bbdaa9b6772) Change-Id: I920c1de933ce5ba0a0d57eb8a9b557325a767a2a
* Fix Windows adb build by avoiding "bool"Brian Carlstrom2014-08-051-1/+1
| | | | Change-Id: I9ca59e400c199d497a1a18d5e64c2cafe628097b
* 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
* 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
* Follow refactoring of install-abandon command.Jeff Sharkey2014-07-251-2/+2
| | | | | Bug: 16543552 Change-Id: I1f54254813fd7d7f4341b8815f816535a39de079
* 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
* | 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
* Add install-multiple to adb.Jeff Sharkey2014-07-144-153/+192
| | | | | | | | | | | | | | | | | | | The new install-multiple command automates creating an install session, streaming multiple files into place, and then committing or destroying the session. This uses the recent "exec" feature to stream APK contents over stdin directly into their final resting place, requiring no extra copies. Blindly pass through command line arguments to "pm" to make adding new flags easier in future. Remove support for verifying APK before sending across wire, since it was reading the entire APK into memory (!) before sending. Also remove encrypted APKs, since they are no longer supported. Drop support for undocumented verification files. Bug: 14975160 Change-Id: I0c538471873061798160e2e47cec4c0424c27361
* am cb7be1e8: am 87c7a0d7: am 77a2c22d: Merge "adbd: adb root should ↵Badhri Jagan Sridharan2014-07-101-1/+12
|\ | | | | | | | | | | | | terminate adbd only if it\'s debuggable" * commit 'cb7be1e8cd4e4388d014a5c48df455a5715f2180': adbd: adb root should terminate adbd only if it's debuggable
| * am 87c7a0d7: am 77a2c22d: Merge "adbd: adb root should terminate adbd only ↵Badhri Jagan Sridharan2014-07-101-1/+12
| |\ | | | | | | | | | | | | | | | | | | if it\'s debuggable" * commit '87c7a0d74b9dadaedfe6805c57d221d9c445aaf6': adbd: adb root should terminate adbd only if it's debuggable
| | * Merge "adbd: adb root should terminate adbd only if it's debuggable"Badhri Jagan Sridharan2014-07-091-1/+12
| | |\
| | | * adbd: adb root should terminate adbd only if it's debuggablejzhuan52014-05-051-1/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | adb root command will terminate adbd when closing the socket if current user id is not root. This works for userdebug build, as adb root causes re-enumeration. But for user build, adb root command won't cause re-enumeration, and if adbd is terminated and restarted, it will be in offline state, thus it won't send any thing to host. Change-Id: I81216a3b3da888cd9b236060cf745175f6d93c60 Author: jzhuan5 <jin.can.zhuang@intel.com> Signed-off-by: Bo Huang <bo.b.huang@intel.com>
* | | | fix windows buildDoug Zongker2014-07-071-1/+1
| | | | | | | | | | | | | | | | Change-Id: Ia7b236f1a915630fe85d488072efb9784ba10dad
* | | | adb: fix 64-bit buildColin Cross2014-07-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | strlen returns a size_t, but the * modifier in printf expects an int. On arm64 size_t != int. Change-Id: I11e84a7b62c935162abc0aba910d14e63d11efd3
* | | | Merge "add sideload-host mode to adb"Doug Zongker2014-07-073-3/+113
|\ \ \ \
| * | | | add sideload-host mode to adbDoug Zongker2014-07-073-3/+113
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The sideload-host mode turns the host into a server capable of sending the device various pieces of the file on request, rather than downloading it all in one transfer. It's used to support sideloading OTA packages to devices without the need for them to hold the whole package in RAM. If the connected device doesn't support sideload-host mode, we fall back to the older sideload connection. Change-Id: I5adaedd8243dc3b76414bba0149879ca2bbf35fa
* | | | | Added support for vendor partition to adbDaniel Rosenberg2014-07-024-48/+87
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remount will now remount the vendor partition as well, if it exists. Sync will also allow you to sync vendor, and will include it by default if it exists. Change-Id: Iea1e8212f445e96233438a8d8a9d3266bf3d6557 Signed-off-by: Daniel Rosenberg <drosen@google.com>
* | | | am f6d86d75: am d08b80cc: am 20bda70f: Merge "Add Smartisan usb config"Elliott Hughes2014-06-241-0/+3
|\ \ \ \ | |/ / / | | | | | | | | | | | | * commit 'f6d86d75461ae3a246522932759e045dcc7a4952': Add Smartisan usb config
| * | | am d08b80cc: am 20bda70f: Merge "Add Smartisan usb config"Elliott Hughes2014-06-241-0/+3
| |\ \ \ | | |/ / | | | | | | | | | | | | * commit 'd08b80ccc6f7d106a8bfc410f89e466b798e2ebe': Add Smartisan usb config
| | * | Merge "Add Smartisan usb config"Elliott Hughes2014-06-231-0/+3
| | |\ \
| | | * | Add Smartisan usb configBao Haojun2014-04-111-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ifd921f1dc0d2163230337805c3cf726f371300b0 Signed-off-by: Bao Haojun <baohaojun@gmail.com>
* | | | | adb: use oom_score_adj instead of oom_adjRom Lemarchand2014-06-201-3/+3
| | | | | | | | | | | | | | | | | | | | Change-Id: I76c6ce83d7d400c8b84bfece5d30189640cb2505
* | | | | am d7d9b6fc: am f02fd9f0: am 5e504a4e: Merge "adb: Add USB vendor ID for ↵Colin Cross2014-06-191-0/+3
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | Honeywell" * commit 'd7d9b6fcaa415ea6251e45d84b95a95740ea807e': adb: Add USB vendor ID for Honeywell
| * | | | am f02fd9f0: am 5e504a4e: Merge "adb: Add USB vendor ID for Honeywell"Colin Cross2014-06-191-0/+3
| |\ \ \ \ | | |/ / / | | | | | | | | | | | | | | | * commit 'f02fd9f0b061d29bb872664479ed4a5949d23ac9': adb: Add USB vendor ID for Honeywell
| | * | | adb: Add USB vendor ID for HoneywellDanielMo2014-06-191-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ib92eca23a6c75ec9323bb1b0e7d7f8cd5f9ca207 Signed-off-by: DanielMo <DanielMo@fih-foxconn.com>
* | | | | am 4224edf5: am 89e4fad0: am 4e6aa6a2: Merge "adbd: unconditionally call ↵Nick Kralevich2014-06-181-18/+18
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | setgroups" * commit '4224edf51dcddf9e014b198bb23fc40ef61a5834': adbd: unconditionally call setgroups
| * | | | am 89e4fad0: am 4e6aa6a2: Merge "adbd: unconditionally call setgroups"Nick Kralevich2014-06-181-18/+18
| |\ \ \ \ | | |/ / / | | | | | | | | | | | | | | | * commit '89e4fad09e1ae765ab0be1580a468bc0837ef7e4': adbd: unconditionally call setgroups
| | * | | adbd: unconditionally call setgroupsNick Kralevich2014-06-181-18/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We should ensure that the appropriate supplementary groups are set, regardless of whether we're running UID=0 or UID=shell. Change-Id: I3a1624a574102be08176a41f9c7eb5f82af2b3e5
* | | | | am cd0d5935: am 6c65cd5d: am 60218f19: Merge "Add gionee USB vendor id."Elliott Hughes2014-06-161-0/+3
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | * commit 'cd0d593569d7f2b8f8ec81ab3ef6dd942230e973': Add gionee USB vendor id.