android-file-transfer-linux icon indicating copy to clipboard operation
android-file-transfer-linux copied to clipboard

Cannot access to photos

Open CoinCheung opened this issue 7 years ago • 8 comments
trafficstars

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 ?

CoinCheung avatar Oct 15 '18 11:10 CoinCheung

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

whoozle avatar Oct 15 '18 11:10 whoozle

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' ?

CoinCheung avatar Oct 15 '18 12:10 CoinCheung

Do it please if you can! if you still can't find your photos, we can dig deeper.

whoozle avatar Oct 15 '18 13:10 whoozle

I did, and nothing is to be found, my commands are:

find ./ -type d -iname '.*' -exec grep -Ir '*jpg' {} \;
find ./ -name '*IMG_20180825_175709*'

CoinCheung avatar Oct 16 '18 02:10 CoinCheung

can you try using storage-list command and switch to storage using storage explicitly. Then go DCIM folder?

whoozle avatar Oct 22 '18 10:10 whoozle

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.

CoinCheung avatar Oct 23 '18 06:10 CoinCheung

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.

whoozle avatar Oct 23 '18 19:10 whoozle

do you have SD card in your phone?

whoozle avatar May 18 '19 22:05 whoozle