Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

windows 10 #44

Open
sifaaa opened this issue Apr 24, 2020 · 8 comments
Open

windows 10 #44

sifaaa opened this issue Apr 24, 2020 · 8 comments

Comments

@sifaaa
Copy link

sifaaa commented Apr 24, 2020

Is there somewhere a version for Windows 10?

I use google translator

@ptanmay143
Copy link

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.

@ptanmay143
Copy link

ptanmay143 commented Jun 25, 2020

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

Instructions

  • Disable firewall for WSL vEthernet so that the Windows adb binary can communicate with the Linux adb 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

@MaskyS
Copy link

MaskyS commented Oct 22, 2020

On windows, one can use http://www.temblast.com/adbsync.htm. The author explains its usage here

@ptanmay143
Copy link

On windows, one can use http://www.temblast.com/adbsync.htm. The author explains its usage here

Great find. Is it open source?

@MaskyS
Copy link

MaskyS commented Oct 24, 2020 via email

@ptanmay143
Copy link

The author has replied that he doesn't plan on open sourcing the utility. This issue can be closed now.

@oO0oO0oO0o0o00
Copy link

oO0oO0oO0o0o00 commented Sep 11, 2021

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/

@freemedom
Copy link

freemedom commented Mar 24, 2024

@oO0oO0oO0o0o00 I have no problem using backslashes \ .
python .\adb-sync -R -t -n /storage/emulated/0 C:\a\b
(windows10 powershell python3)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants