Comments (8)
Comment out the latter half of line 215:
b'('#, b'(; #`ls`$PATH\'"(\\\\\\\\){};!\xc0\xaf\xff\xc2\xbf'
Seems like it was intentional. No one need to be able to pass those non-text characters to command line. Maybe they just hate Microsoft.
No problem syncing files with filenames containing CJK characters.
No problem syncing binary files e.g. pictures.
Tested with Win10 + powershell (by default) + Python 3.9
P.S. use slashes /
instead of backslashes \
\\
, like D:/Downloads/CornHubDesktop/
from adb-sync.
On windows, one can use http://www.temblast.com/adbsync.htm. The author explains its usage here
from adb-sync.
This did not directly work with Windows 10 binaries for Python 3 and ADB. I will be testing this using WSL 2 and will report if it works or not.
from adb-sync.
The author has replied that he doesn't plan on open sourcing the utility. This issue can be closed now.
from adb-sync.
Update: I have created a gist for this to keep updated. https://gist.github.com/ptanmay143/c82744f708558483de0de37bd04cea66
So basically this is how I got adb-sync
working in Windows 10 under a WSL Distribution. I am using Arch Linux. Instruction on Arch Linux WSL here: ( https://github.com/ptanmay143/arch-linux-wsl or https://github.com/yuk7/ArchWSL )
Requirements
- Windows
adb
binary from ( https://dl.google.com/android/repository/platform-tools-latest-windows.zip ). - Linux
adb
package installed preferably through your package manager in Linux (eg.android-tools
in Arch Linux).
Instructions
- Disable firewall for WSL vEthernet so that the Windows
adb
binary can communicate with the Linuxadb
package. Type this in Powershell as Administrator.
Set-NetFirewallProfile -DisabledInterfaceAliases "vEthernet (WSL)"
- Start the
adb
server on Windows side using Command Prompt or Powershell.
adb -a -P 5037 nodaemon server
- Connect to the
adb
server on Windows from WSL. Run this command in Powershell.
wsl
declare -x ADB_SERVER_SOCKET="tcp:$(cat /etc/resolv.conf | grep name | cut -d' ' -f2):5037"
- Now run the
adb-sync
script.
./adb-sync -h
from adb-sync.
On windows, one can use http://www.temblast.com/adbsync.htm. The author explains its usage here
Great find. Is it open source?
from adb-sync.
from adb-sync.
Related Issues (20)
- error running it. stacktrace. HOT 1
- Colon not supported in folder name HOT 8
- Hard-coded location of python3 HOT 2
- TypeError with latest rev HOT 1
- Problems with parameters: a bytes-like object is required, not 'str' HOT 3
- adb-sync seems to close standard input? HOT 3
- anyway to --reverse and --delete?
- Problems with encoding: UnicodeDecodeError: 'utf-8' codec can't decode byte: invalid start byte HOT 6
- Is this project still active? HOT 2
- adb-sync doesn't work correctly with symlinks
- Crashes when trying to copy files with question marks in the name.
- Copying from external storage HOT 4
- adb-sync doesn't copy files properly if names are same on local and remote HOT 5
- When the file length is the same, it will be considered as no difference HOT 1
- two way sync breaks when filename contains spaces
- Scanning and diffing takes a long time for large directories HOT 2
- "bad date" from "touch" when using -t option HOT 1
- Ignore unreadable files
- Use my fork HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from adb-sync.