Comments (8)
Adding to it, if I use /sdcard/*
when it finish (and I ran it multiple times just to be sure),
I don't get the same amount of files, I ran inside adb shell
this command in the /sdcard/ directory: find . -type f | wc -l
and I got 35694, but when I ran it on the remote I got 28150.
Any Ideas how's that possible?
from adb-sync.
the mtp daemon does not provide access to all files on the emulated storage. some files are considered app-private, and google thinks your phones are theirs and/or of app developers and not yours, so you are denied access. in addition to that, the daemon only lets you access files of specific know types.
if you ask me, the free software community should fix these bugs and anti-features in aftermarket roms.
you can boot TWRP to access the complete storage via mtp. but keep in mind that TWRP's mtp implementation is not rock solid, AFAICT.
from adb-sync.
Not sure if this is the only issue, but /sdcard/* does not include hidden files in /sdcard/, which might exist on your device (e.g. ES File Explorer creates such a directory).
As for /sdcard/ getting turned into /sdcard, I'll look into that and keep this bug open for that purpose. To be consistent with rsync, /sdcard/ should imply looking into the directory, while /sdcard should refer to the symlink.
Can you try listing the files on both sides using find, and compare the output? That might help figuring out what exactly is missing and why.
from adb-sync.
My solution was opening an SSH port and using adb forward
and then syncing with rsync
.
Sorry I can't make a diff file because I already synced everything, but try it on your phone i'm pretty sure you'll encounter the same problem.
from adb-sync.
I don't see any mention of an external SD card here. Can I assume this is unimplemented or requires root?
from adb-sync.
I've concluded that it supports full external SD card operations on Android 7.1.1 without root!
from adb-sync.
I see the problem is with /sdcard being a symlink; don't see a quick fix though. The main issue is that adb-sync expects directory names internally to not end with a slash.
A workaround to force interpretation as a directory is using /sdcard/. as a source.
from adb-sync.
Given all that breaks from not cutting off that slash is some ugliness... fixed.
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
- windows 10 HOT 8
- 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.