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

Files viewable are not the same as phone #306

Open
jehoshua7 opened this issue Apr 24, 2022 · 2 comments
Open

Files viewable are not the same as phone #306

jehoshua7 opened this issue Apr 24, 2022 · 2 comments

Comments

@jehoshua7
Copy link

jehoshua7 commented Apr 24, 2022

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
Copy link
Author

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
Copy link
Author

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 ?

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

1 participant