this post was submitted on 18 Jul 2025
133 points (97.2% liked)

Programming

21725 readers
199 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] muzzle@lemmy.zip 49 points 6 days ago (5 children)

Some phones will silently strip GPS data from images when apps without location permission try to access them.

This is quite reasonable.

[–] calcopiritus@lemmy.world 12 points 6 days ago (1 children)

It is not. App X creates image A with location data.

App Y without location permission accesses image A in read mode. Now image A has no location.

You open image A again from app X and the location is no longer there. It makes no sense. Had app Y written to image A, it makes sense that location data was stripped. But opening a file in read mode should not alter it. Except for metadata of the kind "last opened at ...".

[–] muzzle@lemmy.zip 5 points 5 days ago (1 children)

In modern android you do not open files, you use an OS service to get an image, which may or may not come from a file on the device. If you want to open files you need a different permission.

You could argue that android should have a permission level for apps that need image geolocation but not GPS.

[–] Scipitie@lemmy.dbzer0.com 10 points 5 days ago

One could argue they a reading service should not alter the thing that's read. Android is not a quantum state!

[–] Scrath@lemmy.dbzer0.com 9 points 6 days ago

Yes but do they present a stripped copy or strip it from the original?

[–] phoenixz@lemmy.ca -2 points 5 days ago

Wtf?

Opening a file with a program that doesn't support part of the file will delete that part

There is nothing even remotely reasonable with that.