1
0
mirror of https://github.com/google/adb-sync.git synced 2026-07-02 20:28:24 +00:00

37 Commits

Author SHA1 Message Date
Nurudin Imsirovic 09e0abf3fc Update the link to better-adb-sync (#61)
The previous link used points to an out-dated repository. The link given in this commit is up-to-date.
2023-09-22 08:47:28 -07:00
Rudolf Polzer 76b27837f1 Add deprecation notice. 2022-11-06 07:17:06 -05:00
jottr fb7c549753 Respect users $PATH settings (#32) 2019-01-01 11:21:04 -08:00
Kostas Chatzikokolakis b0a2a10852 Add --copy-links, use stat instead of lstat
To properly sync symlinks, use stat instead of lstat, otherwise we get the size
of the link (instead of the file) and we end up constantly re-pushing
everything. Also add a --copy-links/-L option that enables syncing of symlinks,
similarly to rsync.
2018-11-27 13:59:47 -08:00
Rudolf Polzer e6d9ffdbb0 Do not cut off final slash from source path.
Other than somewhat annoying // in path names printed or passed to adb
push/pull, this breaks nothing.

Fixes #9.
2018-11-27 13:45:16 -08:00
Rudolf Polzer 3d9683d290 Use os.fsencode to encode path names from argv to byte strings.
This is the proper way according to https://docs.python.org/3/library/os.html#file-names-command-line-arguments-and-environment-variables

Fixes #10.
Fixes #18.
Fixes #7.
2018-11-27 13:29:13 -08:00
Rudolf Polzer bcd3541697 Fix lint, and make logging actually work again. 2018-11-27 12:55:22 -08:00
Rudolf Polzer 270bfe6b3a Also pass mypy --strict. 2018-11-27 11:45:44 -08:00
Rudolf Polzer 384a485224 Add annotations to pass both mypy and pytype. 2018-11-27 11:45:40 -08:00
Rudolf Polzer 6dde901f5a Get rid of the hideous _sprintf wrapper too. 2018-11-27 08:51:33 -08:00
Rudolf Polzer c75950bbfe pyformat. 2018-11-27 08:45:13 -08:00
Rudolf Polzer bbe25f9c68 Remove _print, start using logging.info. 2018-11-27 08:44:52 -08:00
Charlie Gorichanaz 491158ff46 Issue #11: adb-channel fix (#13)
* Consistent names, typo

* adb shell -n: don't read from stdin
2018-11-27 07:59:35 -08:00
cryptogopher fd6a98cfba Fix: size is only know for regular files (#23) 2018-11-27 07:58:02 -08:00
Thibault Saunier b8813dc214 adb-sync: Allow syncing symlinks (#4)
It is artificial limitation and actually works with adb (though it
might not work with absolute links, same as with rsync)
2017-04-11 17:07:40 -04:00
Rudolf Polzer 861eb4bbb3 Fix the suggested ProxyCommand for adb-channel.
Thanks to duckdalbe for noticing!

Fixes #6.
2016-10-04 14:10:23 -04:00
Rudolf Polzer ba8f830d28 Merge caching and listing directory contents.
This also removes reliance on Android version specific "ls" arguments,
fixing things for both N and M.
2016-09-26 10:52:47 -04:00
Rudolf Polzer f345a79f93 adb-sync: Fix listdir() with Android N. 2016-08-25 09:26:45 -04:00
Rudolf Polzer 7fc48ad1e1 Fix some accidental Unicode/Binary string mistakes from b28ba49. 2016-07-08 20:13:19 -04:00
divVerent 9a0d978900 Merge pull request #3 from qezt/qezt
now it will be compatible with N's ls output format
2016-06-27 16:35:33 -04:00
qezt b28ba4904b now it will be compatible with N's ls output format 2016-05-29 21:49:50 +08:00
Rudolf Polzer 012b326252 More py2/3 fixes. 2015-12-20 19:39:56 +01:00
Rudolf Polzer d21617f70b adb-sync: Stop assuming the encoding of the input files matches the
current locale.

Instead, treat all file names as binary, EVEN for output.
2015-12-20 19:35:22 +01:00
Rudolf Polzer 9b9a7041ff adb-channel: In fact, safely exit also on SIGINT, SIGTERM and SIGALRM,
as all these usually intend a "clean" exit.
2015-05-03 15:52:58 +02:00
Rudolf Polzer 38496c2c25 adb-channel: also delete temps on SIGHUP. 2015-05-03 15:51:09 +02:00
Rudolf Polzer 9b43cee636 Make adb-channel able to start/stop a SSH server app automatically. 2015-04-30 12:18:47 +02:00
Rudolf Polzer f7ca1e197b Add a separate adb-channel tool. 2014-09-22 10:01:26 +02:00
Rudolf Polzer 95b7746cba Fix path appending to not append /. or /.. components. 2014-09-10 12:01:20 +02:00
Rudolf Polzer fe9d9f1584 If there is no path component at all, do append it to the destination. 2014-09-09 07:05:10 +02:00
Rudolf Polzer 33f3c1502f Implement wildcard support on the source side. Now we're rsync
equivalent!
2014-09-08 10:21:02 +02:00
Rudolf Polzer 368e8aecec Add a TODO section. 2014-09-08 09:47:08 +02:00
Rudolf Polzer 12bf974b6a Document rsync-like path munging. 2014-09-08 09:44:01 +02:00
Rudolf Polzer 18dbd52b91 Implement rsync-like path munging. 2014-09-08 09:42:43 +02:00
Rudolf Polzer a01bf3b565 Add trailing slash to sources; this is more rsync-like. 2014-09-08 09:29:03 +02:00
Rudolf Polzer bac9159956 Add an easy shortcut to add some adb flags. 2014-09-08 09:27:35 +02:00
Rudolf Polzer f4f65ef170 Fix links. 2014-08-26 09:35:27 +02:00
Rudolf Polzer de9659ddab first commit 2014-08-26 09:33:49 +02:00