android-file-transfer-linux
android-file-transfer-linux copied to clipboard
Cannot access to photos
I am working on archlinux, and I install this via:
yaourt -S android-file-transfer
Then I use the cli:
$ aft-mtp-cli
HUAWEI HUAWEI MLA-AL10 [91%]> ls
....
DCIM
....
There is a folder named DCIM, which on my cell phone, I use it to store my photos. However, when I try to list the photos, I got nothing and the sub-folders are just empty. I tried to get DCIM/ but only got empty sub-folders too. How could I download my photos that stores at DCIM/photos and other such directories ?
I think DCIM may be a legacy folder, should be naked as 'camera' in newer devices, try mounting it and find jpg files or look for camera folder
But there are other files in DCIM/, and there are folders there, only there folders are empty where there should be files. Should I mount it with aft-mtp-mount mount_point and then search one of my photos by name find mount_point -name 'IMG_20180825_175709' ?
Do it please if you can! if you still can't find your photos, we can dig deeper.
I did, and nothing is to be found, my commands are:
find ./ -type d -iname '.*' -exec grep -Ir '*jpg' {} \;
find ./ -name '*IMG_20180825_175709*'
can you try using storage-list command and switch to storage using storage explicitly. Then go DCIM folder?
Also tried this method, and the result is the same. I switched to DCIM/ and only find it is empty there. Does this associated with partition formats or file formats? I seem to find some other sort of files, but I can not see photos.
it's time to debug something then !
could you please open mtp/ptp/Session.cpp and replace the following line (around line 52)
_getObjectPropertyListSupported = _deviceInfo.Supports(OperationCode::GetObjectPropList);
with
_getObjectPropertyListSupported = false;
then compile and test again.
do you have SD card in your phone?