It seems app need to declare it needs to "Allow management of all files" (or alternatively location permission?) in order for image files to be left as-is without Android removing EXIF GPS Tags from pictures before passing them to app.
It took me a while to find why pictures which have visible Location tags in Gallery app suddenly don't have location anymore when shared to desktop computer via ShareViaHTTP (the file size remain exactly the same, but sha256sum changes!)
It seem to be Android 10/11+ "feature" which zero-out GPS Tags from
.jpg
files EXIF headers for "privacy reasons".See the discussion at: https://github.com/nextcloud/android/issues/6248#issuecomment-1147167524
It seems app need to declare it needs to "Allow management of all files" (or alternatively location permission?) in order for image files to be left as-is without Android removing EXIF GPS Tags from pictures before passing them to app.
It took me a while to find why pictures which have visible Location tags in Gallery app suddenly don't have location anymore when shared to desktop computer via ShareViaHTTP (the file size remain exactly the same, but sha256sum changes!)