whoozle / android-file-transfer-linux

Android File Transfer for Linux (and macOS!)
http://whoozle.github.io/android-file-transfer-linux/
GNU Lesser General Public License v2.1
1.47k stars 120 forks source link

Files viewable are not the same as phone #306

Open jehoshua7 opened 2 years ago

jehoshua7 commented 2 years ago

I can mount the phone okay ..

aft-mtp-mount ~/myphone

your device does not have android EditObject extension, mounting read-only

However, when I view the files on the phone (Samsung Galaxy S5) under 'My Files', I can view all the files in Android/data , yet if I try and view that path in either Dolphin, or a File Explorer like Beyond Compare, or even a ls at terminal, that path is not shown.

I even tried the GUI, but that same problem.

mount

aft-mtp-mount on /home/****/myphone type fuse.aft-mtp-mount (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)

ls -al ~/myphone/

total 4 drwxr-xr-x 0 root root 0 Apr 24 15:21 . drwxr-x--- 24 **** **** 4096 Apr 24 08:53 .. drwxr-xr-x 0 root root 0 Apr 24 15:21 Phone

I see it has 'root' for the Phone path. Is it a permissions problem ? Although I'm a user in the sudo group, so have viewable access to that path.

Have had a quick look at other paths, and what I can view on the phone is not the same as after the mount.

Some more info, yet I don't think it is relevant ?

lsusb | grep Galaxy

Bus 002 Device 005: ID 04e8:6860 Samsung Electronics Co., Ltd Galaxy A5 (MTP)

ls -l /dev/bus/usb/002/005

crw-rw-r--+ 1 root plugdev 189, 132 Apr 24 15:38 /dev/bus/usb/002/005

jehoshua7 commented 2 years ago

I also tried running Android_File_Transfer_For_Linux-299a01f-x86_64.AppImage , the latest version and the same problem appeared.

Also, why do the permissions change as follows ?

ls -al ~/myphone/

total 8 drwxrwxr-x 2 username username 4096 Apr 15 16:00 . drwxr-x--- 24 username username 4096 Apr 24 08:53 ..

aft-mtp-mount ~/myphone

your device does not have android EditObject extension, mounting read-only

ls -al ~/myphone/

total 4 drwxr-xr-x 0 root root 0 Apr 24 16:15 . drwxr-x--- 24 username username 4096 Apr 24 08:53 .. drwxr-xr-x 0 root root 0 Apr 24 16:15 Phone

jehoshua7 commented 2 years ago

I can see /Android/data and /Android/media via the "My Files" app, yet cannot see /Android/data from android-file-transfer-linux , or any other tools/software for that matter.

ls -al ~/myphone/Phone/Android/data

ls: cannot access '/home/****/myphone/Phone/Android/data': No such file or directory

sudo ls -al ~/myphone/Phone/Android/data

[sudo] password for ****: ls: cannot access '/home/****/myphone/Phone/Android/data': Permission denied

so is it simply a permissions problem ? I tried a search at https://duckduckgo.com/?t=ffab&q=file+permissions+of+%2FAndroid%2Fdata&atb=v322-2&ia=web , but nothing startling yet. It seems on the app or API side of things, all manner of permissions can be set - https://developer.android.com/s/results?q=path%20permissions

Could it be as simple as a phone setting somewhere ?