Git Product home page Git Product logo

Comments (8)

elichai avatar elichai commented on April 19, 2024

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.

Lanchon avatar Lanchon commented on April 19, 2024

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.

divVerent avatar divVerent commented on April 19, 2024

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.

elichai avatar elichai commented on April 19, 2024

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.

tmst avatar tmst commented on April 19, 2024

I don't see any mention of an external SD card here. Can I assume this is unimplemented or requires root?

from adb-sync.

tmst avatar tmst commented on April 19, 2024

I've concluded that it supports full external SD card operations on Android 7.1.1 without root!

from adb-sync.

divVerent avatar divVerent commented on April 19, 2024

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.

divVerent avatar divVerent commented on April 19, 2024

Given all that breaks from not cutting off that slash is some ugliness... fixed.

from adb-sync.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.