SUMMARY Missing gps data of picture taken with Android phone after wifi transfer using KDE Connect. Direct USB transfer of the same picture preserves geolocation data. STEPS TO REPRODUCE 1. Take a picture with Android phone with location saving enabled 2. Transfer via wifi with KDEconnect to PC OBSERVED RESULT No gps data stored in picture file EXPECTED RESULT Picture EXIF geolocation info preserved SOFTWARE/OS VERSIONS Linux/KDE Plasma: Kubuntu 18.04 KDE Plasma Version: 5.12.9 KDE Frameworks Version: 5.44.0 Qt Version: 5.9.5
Hi Robert, What mechanism are you using when you say "Transfer via wifi"? Do you mean mounting the remote filesystem and copy-pasting, or do you mean using the send file feature of KDE Connect? If you are using the send file feature, what app are you using on the phone to select and send the pictures?
Hi Simon, I used the send file feature of default Gallery app on Android 10 (Lineageos 17.1). Now that You mentioned it, I performed the same type of transfer with Ghost Commander file manager and it seems that gps data is preserved. Copying a picture file from a remote file system to PC also works without losing location info. Thanks,
In that case, my best suggestion is to keep using the file manager to share the photos (or use the SFTP browser) The reason this happens is because when sharing from a gallery app, Android doesn't give us just give us access to the file but instead gives fine-grained access to the different data and metadata in the picture. We would have to transport every piece of metadata individually and then assign it back to the file once transferred. It's not impossible, but I don't know if it will come any time soon.
OK Simon, I think it explains the issue. Glad there's a workaround. Thanks again, (In reply to Simon Redman from comment #3) > In that case, my best suggestion is to keep using the file manager to share > the photos (or use the SFTP browser) > > The reason this happens is because when sharing from a gallery app, Android > doesn't give us just give us access to the file but instead gives > fine-grained access to the different data and metadata in the picture. We > would have to transport every piece of metadata individually and then assign > it back to the file once transferred. It's not impossible, but I don't know > if it will come any time soon.
I have confirmed this problem on my Kubuntu 21.10, Plasma 5.23.5, Frameworks 5.90.0. If I connect via USB, gps data is present. If I attach the pic in Gmail or upload/download with Photos, gps is there. So, it seems this is really an Android 12 security bug! This is a relatively new issue 'cause it used to be just fine; DCIM folder gets mounted over wifi and my app simply copies the files.
Same issue when using DCIM folder of device on PC https://developer.android.com/training/data-storage/shared/media#location-info-photos
*** Bug 453350 has been marked as a duplicate of this bug. ***
*** Bug 454617 has been marked as a duplicate of this bug. ***