Flajt / decentproof-app

Proof that your audio/video/image files taken with this app haven't been tampered with
https://www.decentproof.com
GNU General Public License v3.0
2 stars 0 forks source link

Detect mock locations #129

Closed Flajt closed 3 months ago

Flajt commented 3 months ago

Is your feature request related to a problem? Please describe. If I want to be sure that the location of a media file is trustworthy, it should be not possible to allow location mocking.

Describe the solution you'd like Use the isMocked property of Geolocator, to detect if a mocked location might be used and throw an error to abort the process.

Todo this, extend the Interface with a similar named property / function which uses Geolocators under the hood. In PreperationBloc add an additional check, which can throw an: Invalid Location: It seems like you are using a mock location service or something like that.

Checkout if some tests need to be adjusted / extended (I think mostly PreperationBloc_test.dart, but make sure to check)

Describe alternatives you've considered Just letting it be, but that's not a good idea in the long term.