-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Sharing images from other apps removes EXIF location on Android > 10 #6248
Comments
How are you uploading the picture? Auto Upload? The "Upload files" button? The "Upload content from other apps" button?
Does this mean you have a stock system? (I.e. the version of Android that came with your phone)
I believe this question is asking what web server you access Nextcloud through. |
@strugee updated the issue. Trying several other uploads, I found out that the issue may not be related to the Nextcloud app itself. I've uploaded pictures through the share menu from both apps:
Both uploads resulted in setting the GPS data to zero. Upload through a file browser like "Amaze" or through the Nextcloud app itself didn't change the GPS data. Tricky one! I will contact the app maintainers and reference to this issue here. |
I have to reopen it again since I'm not quite sure how to debug this issue without brainstorming/information from here. The "simple gallery" app provider said that they don't change the image beforehand. What could be the problem? |
I think it is usual for sharing application to remove metadata, it used to be a huge privacy leak sending images over IMs that turned out to contain user's exact coordinates. |
Also to reference a comment which describes exactly the same thing: nextcloud/maps#361 (comment) |
How exactly did you upload in all of these apps? Did you use the "Share" button in Amaze? In Simple Gallery? In the stock gallery? In general the more information and specifics contained in a bug report, the better. |
@strugee as I said in point 3: |
NC is not changing any metadata. |
@tobiasKaminsky can we reopen this issue please? It prevents me from uploading images through gallery apps which is way more convenient than doing it through the Nextcloud app. |
Stripping EXIF data is part of the android Q privacy feature set. Starting with Android 10 (or 11?), apps need to explicitly specify that they want to receive Metadata. So it's indeed a bug in the nextcloud client, and not the fault of speciffic gallery apps. You can read more about it here: |
@AlvaroBrey any chance we get feedback on this issue since @fm-sys thankfully added more information? |
Hopefully a resolution soon on this |
I found a solution, not sure it works everywhere, but it fixed every upload done with the Nexcloud app (notably instant upload). Go to your phone Settings -> Privacy -> Permission Manager -> Files and Media. Find Nexcloud in the list and make sure to "Allow management of all file". This works for me Previously this setting was on "Allow access to media only". |
I get gps data on my Samsung S21 + with auto uploads on. It started to work. I have no idea what changed. |
Tested some more. Funny thing is only instant upload and "Upload files" from the "all app" menu is working. |
Uploading within the Nextcloud app already worked before in my case, it is cropping GPS data when you use the share functionality of other apps like gallery and files apps. |
The problem also occurs under Android 13 on a Pixel 4. |
Clearly, this is a case of data loss! If I wouldn't have found out and would just have all my photos in the nextcloud instance I would never be able to get back my GPS data in the photos. How is this issue not getting more attention? How many users may be already affected by this? |
Nobody seems to care about these issues. And the amount of them is vast. |
I just moved to a new phone, had to freshly set up next cloud client. I did not receive this prompt. I would also suggest the app should monitor to ensure it still has this permission before uploading corrupt data. |
@brilthor Are you by chance on Android OS <11? |
Nope, Android 14 build UQ1A.231205.015 |
I think I mentioned it earlier, if the API that gives NextCloud zeroed out files has any return code that indicates it does that NextCloud should pay attention to it and notify quite prominently. If there is no indication about that NextCloud could still detect this from the content of the files (these files don't just have no GPS data, they have zeroed out GPS data). Or, easier, instead of trying to do something fancy just read the GPS via some standard library and if nothing sane is returned just warn on the transfer notification (with the option to disable the extra text somewhere in settings). This could help also if the location permission gets removed from the Camera app (because of inactivity) or some other shenanigans happen in the next flavor of Android and the user starts generating pictures without location, while actually wanting this data to be saved. For the users that want no GPS tags it shouldn't be too bad if they get this spelled out in the transfer notification (with the option to have the text removed and basically revert to what we (don't) do now), might actually be a welcome confirmation that they still have the desired configuration. |
To "fix" (er work around) this on a Pixel 8 Pro running Android 14 do the following: |
I tried this but nothing happens. I also tried killing the application between removing the setting and adding it again but to no avail. |
Hi all, sadly I'm now also facing this issue (missing GPS Exif tags in pictures uploaded through Nextcloud App). I'm using a Google Pixel 7a and got the Android 15 update recently. Maybe this has something to do with it. I cannot add the above mentioned permission to the Nextcloud App. The Nextcloud App isn't in the list and can't be added to it. |
Eventually I moved to immich for the photo storage. It's supreme in do many
aspects that I didn't even hesitate
…On Fri, 27 Dec 2024, 20:24 Thorsten, ***@***.***> wrote:
Hi all,
sadly I'm now also facing this issue (missing GPS Exif tags in pictures
uploaded through Nextcloud App). I'm using a Google Pixel 7a and got the
Android 15 update recently. Maybe this has something to do with it. I
cannot add the above mentioned
<#6248 (comment)>
permission to the Nextcloud App. The Nextcloud App isn't in the list and
can't be added to it.
—
Reply to this email directly, view it on GitHub
<#6248 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAJ4XASBWDO67IYIZOJOKUL2HWSQFAVCNFSM6AAAAABTLFPSC2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNRTHE3TANJWHE>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Same problem for me now, i used the workaround now for a long time. Everyone, that had it working before please check your permission!!! This is again a major problem, exact same problem as last time. For me the last day it worked was one 23rd September 2024. Check your files! Edit: As i can see, for the moment no way to get the GPS data back, but the upload for all other NON media files from within the nextcloud. Edit2: I checked the open issues PR for requesting the Media Location Permission Someone created an APK from the PR (did not test) |
New Info, if you use the nextcloud application from the fdroid store, it will ask again for the permission. |
Confirmed, it happened again, the permission just went away from the Play Store app! Last time some people lost 1-2 years of GPS metadata, now it's been about a month- or up to a few months. No matter if this or that version or workaround still works we don't know for how long, and how the next problem will look. I'd strongly reiterate my previous suggestion to detect and warn if we aren't getting GPS data.
|
Thanks to this thread I discovered I was losing the GPS data again, it seems to have occurred some time between the 14th & 18th December, so only a few files were affected and I could sync them off the phone. Is this a permission we can allow ourselves? or is switching to the fdroid version the only reliable workaround? |
I can confirm that it has also happened again to me on a Google Pixel 7 Pro. |
Yup, happened to me as well (Pixel 8 Pro). Synced Images up to Dec 14th still have GPS data, Images synced December 17th and later do not (no Images where taken on 15th and 16th). And yes, the NC App disappeared completely form the "Access all files" section , where i had set the option before as well. |
This isn't much different for this type of issue, except for just being a different program that breaks at different times depending on who knows what Play Store policies, various OEM configurations, etc. immich-app/immich#2965 |
This is so annoying... As others stated, it is happening again. The GPS data got zeroed-out. Not sure when it was the last time it worked and totally annoying to trace back the date and re-upload it again via a PC rather than using the app. To be honest Nextcloud team, I don't get why this still is an issue and not handled with priority. This causes unrecoverable data loss and the problem is, that most of the users don't even know. Nextcloud Android App Version: 3.30.7 from PlayStore. |
Since we cannot control Google's policies on the Play Store, I think the best workaround would be:
Moving to Immich is not currently an acceptable solution for FreeBSD users like myself since they do not provide a raw installer, only a docker-based setup, which is not currently supported under FreeBSD. |
As I see it the problem also occurs when using the Nextcloud app's auto upload feature. At least that was the reason I discovered this bug report. |
No, this is not the problem, the OS is presenting a zeroed out file to NC. It doesn't matter what it does with it afterwards, the damage is done. |
Really? This would be deliberately destroying a file, which is IMHO unacceptable. This doesn't happen when copying the pictures as files with other options, e. g. FolderSync or any file explorer (at least I hope so). So I assumed that the Nextcloud app should simply access the pictures as files and not as media. |
Everyone is in the same boat, hanging for dear life on the discussed permission. Sure, a file manager might have a lower chance to have it randomly yanked, doubly so if it's the default OS file manager, but there's nothing fundamentally different. |
Steps to reproduce
Expected behaviour
Actual behaviour
Can you reproduce this problem on https://try.nextcloud.com?
Environment data
Android version: 10 (OxygenOS 10.3.3)
Device model: OnePlus 6T
Stock or customized system: Stock
Nextcloud app version: 3.11.1
Nextcloud server version: 18.0.5
Reverse proxy: Nginx
Logs
Web server error log
Nextcloud log (data/nextcloud.log)
Only related to "Maps" app while trying to analyze the image since the GPS data is wrong.
I faced this issue since I saw that the pictures weren't showing up in the Maps app of Nextcloud. So this is not a new issue. Also I can surely say that the problem started before 20th of April, so also with a prior version. I can share pictures in a PM.
Appreciate any ideas for solving this issue.
Thank you for your great work!
The text was updated successfully, but these errors were encountered: