spion / adbfs-rootless

Mount Android phones on Linux with adb. No root required.
Other
912 stars 73 forks source link

no contents in external SD card on Lollipop (5.1.1)? #11

Closed IzzySoft closed 8 years ago

IzzySoft commented 8 years ago

Just tried the latest code on my Lollipop device (Wileyfox Swift, CyanogenOS 12.1/Android 5.1.1). Works fine so far, with one exception: contents of the external SD card are not shown. adb shell ls /storage/sdcard1 shows the content, which confuses me at this part – as I don't see how this should be different. adbfs -f doesn't give a clue (no output when changing to /storage/sdcard1). Permissions/ownership of the card are the same as for the internal one, which adbfs deals with just fine.

Device is connected in MTP mode. Same behavior if I switch to PTP. If I switch to charge-only, the device is no longer found by adb.

Any ideas?

IzzySoft commented 8 years ago

WOW! Please merge #10 !!! Just did that on my clone, fixes the issue! Strange that adbfs -f didn't show up those errors but simply refused to show anything. Neither do I have any idea what could have caused it: checked the permissions on /storage/sdcard1/* and, as expected, all have the same owner, group and permissions. Wait: You're using ls -l -a, and there we go:

lstat '/storage/sdcard1/.android_secure' failed: Permission denied

Ah, that device supports App2SD again (not that I'd need it) – but that being the very first entry returned explains why the directory appeared to be empty, and why that PR fixed it :)