From 52cfc99355b00eb78c7308bc339f1196d0fd200f Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 18 Apr 2020 15:55:12 +0200 Subject: [PATCH] Remove some more EXIF tags --- .../eu/faircode/email/FragmentCompose.java | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/FragmentCompose.java b/app/src/main/java/eu/faircode/email/FragmentCompose.java index 291d91bcd4..21650ca4ba 100644 --- a/app/src/main/java/eu/faircode/email/FragmentCompose.java +++ b/app/src/main/java/eu/faircode/email/FragmentCompose.java @@ -2839,12 +2839,33 @@ public class FragmentCompose extends FragmentBase { if (privacy) try { ExifInterface exif = new ExifInterface(file.getAbsolutePath()); + exif.setAttribute(ExifInterface.TAG_GPS_LATITUDE_REF, null); exif.setAttribute(ExifInterface.TAG_GPS_LATITUDE, null); exif.setAttribute(ExifInterface.TAG_GPS_LONGITUDE_REF, null); exif.setAttribute(ExifInterface.TAG_GPS_LONGITUDE, null); exif.setAttribute(ExifInterface.TAG_GPS_ALTITUDE_REF, null); exif.setAttribute(ExifInterface.TAG_GPS_ALTITUDE, null); + exif.setAttribute(ExifInterface.TAG_GPS_SPEED_REF, null); + exif.setAttribute(ExifInterface.TAG_GPS_SPEED, null); + + exif.setAttribute(ExifInterface.TAG_GPS_DEST_LATITUDE_REF, null); + exif.setAttribute(ExifInterface.TAG_GPS_DEST_LATITUDE, null); + exif.setAttribute(ExifInterface.TAG_GPS_DEST_LONGITUDE_REF, null); + exif.setAttribute(ExifInterface.TAG_GPS_DEST_LONGITUDE, null); + exif.setAttribute(ExifInterface.TAG_GPS_DEST_BEARING_REF, null); + exif.setAttribute(ExifInterface.TAG_GPS_DEST_BEARING, null); + exif.setAttribute(ExifInterface.TAG_GPS_DEST_DISTANCE_REF, null); + exif.setAttribute(ExifInterface.TAG_GPS_DEST_DISTANCE, null); + + exif.setAttribute(ExifInterface.TAG_GPS_IMG_DIRECTION_REF, null); + exif.setAttribute(ExifInterface.TAG_GPS_IMG_DIRECTION, null); + + exif.setAttribute(ExifInterface.TAG_GPS_TRACK_REF, null); + exif.setAttribute(ExifInterface.TAG_GPS_TRACK, null); + + exif.setAttribute(ExifInterface.TAG_GPS_AREA_INFORMATION, null); + exif.saveAttributes(); } catch (IOException ex) { Log.w(ex);