summaryrefslogtreecommitdiffstats
path: root/adb/file_sync_client.c
Commit message (Collapse)AuthorAgeFilesLines
* Add install-multiple to adb.Jeff Sharkey2014-07-141-61/+4
| | | | | | | | | | | | | | | | | | | 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
* Added support for vendor partition to adbDaniel Rosenberg2014-07-021-21/+24
| | | | | | | | | 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 e7597115: am 328746da: am 129e9dad: Merge changes ↵Mark Salyzyn2014-05-081-3/+3
|\ | | | | | | | | | | | | | | | | | | Idfd1a114,If725a1cb,I61211165,If9a05ccb * commit 'e75971157c46a0fc57194a75d4dde0920f60f427': adb: turn on -Werror netcfg: turn on -Werror mkbootimg: turn on -Werror gpttool: turn on -Werror
| * adb: turn on -WerrorMark Salyzyn2014-05-051-3/+3
| | | | | | | | | | | | - Deal with some -Wunused issues Change-Id: Idfd1a114e68ae637978b52fde5144d0dca0ec79f
* | adb: replace utimes() with utime()Greg Hackmann2014-05-061-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: added support for adb pull -a to preserve time stamps and modeLajos Molnar2014-05-021-27/+28
|/ | | | | | | | | | 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. Change-Id: I37c0b94741ed464f19025d25dea3ff2f6ac43e7f Signed-off-by: Lajos Molnar <lajos@google.com>
* Added transfer progress reporting for push and pull commands.Mark Lindner2014-03-111-12/+75
| | | | | | | | | | Added a new '-p' switch to the 'push' and 'pull' commands that outputs the file transfer progress (bytes transmitted, total bytes, and % done). This provides useful feedback when transferring large files, and also makes it possible for other tools to easily monitor the progress of a forked push/pull command. Change-Id: Iee6f42f5bd41292e5bc80fba779f526f0072e356
* Fix a bunch of small system/core bugs.Elliott Hughes2013-10-291-1/+1
| | | | | | | | | | | | | | | | | | | | | Missing frees in: adb/file_sync_client.c fastboot/fastboot.c libsparse/output_file.c Missing closedirs in: adb/file_sync_service.c cpio/mkbootfs.c libcutils/dir_hash.c Potential buffer overrun in: gpttool/gpttool.c Incorrect NULL check in: libsparse/backed_block.c Bug: https://code.google.com/p/android/issues/detail?id=61564 Change-Id: If97838a9e73a77aef7f416c31c237ce1fca4ce21
* adb: fix reported transfer size for transfer over 4 GiBJeff Smith2013-06-151-3/+3
| | | | | | | | When transferring files over 4 GiB with adb, the size of the transfer is misreported. Change-Id: Ia3d4cae1e9f82b4f7432341820b101ea9a44f85b Signed-off-by: Jeff Smith <whydoubt@gmail.com>
* adb: fix subprocess exit handling, oom adjust fixes, extra debugging.JP Abgrall2011-03-281-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | * Add support for correctly handling subprocess termination in shell service (b/3400254 b/3482112 b/2249397) - have a waitpid() track the subprocess, then notify the fdevent via a socket - force an eof on the pty master in fdevent's new subproc handler. - modify fdevent to force-read the pty after an exit. * Migrate the "shell:blabla" handling to "#if !ADB_HOST" sections, where it belongs. * Fix the race around OOM adjusting. - Do it in the child before exec() instead of the in the parent as the child could already have started or not (no /proc/pid/... yet). * Allow for multi-threaded D() invocations to not clobber each other. - Allow locks across object files. - Add lock within D() - Make sure sysdesp init (mutex init also) is called early. * Add some missing close(fd) calls - Match similar existing practices near dup2() * Add extra D() invocations related to FD handling. * Warn about using debugging as stderr/stdout is used for protocol. * Fix some errno handling and make D() correctly handle it. * Add new adb trace_mask: services. * Make fdevent_loop's handle BADFDs more gracefully (could occur some subproc closed its pts explicitely). * Remove obsolete commandline args reported in help. (b/3509092) Change-Id: I928287fdf4f1a86777e22ce105f9581685f46e35
* adb: Don't report negative number of bytes after pushing file > 2 gigabytesMike Lockwood2010-12-141-2/+2
| | | | | | | BUG: 3198322 Change-Id: I6067857b9490984a21b597f6ee338446a9decaf5 Signed-off-by: Mike Lockwood <lockwood@android.com>
* Add -l option to `adb sync`Anthony Newnam2010-04-191-6/+7
| | | | Change-Id: I87c01663dff319dde24b70560e6fe5647ebf9d49
* Allow 'adb pull' to pull symlinked filesMatt Fischer2010-04-151-1/+1
| | | | Change-Id: I02f31334e4ee0c7b0e7b379016629a465e711905
* Cleaning up whitespace in adb sources. Nothing more, nothing less.David 'Digit' Turner2009-05-181-4/+4
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-0/+1022
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-1022/+0
|
* Code drop from //branches/cupcake/...@124589The Android Open Source Project2008-12-171-13/+13
|
* Initial ContributionThe Android Open Source Project2008-10-211-0/+1022