From a58a5375cb5b5879f6708c86cf161f06dbc6269d Mon Sep 17 00:00:00 2001 From: Jay Wang Date: Mon, 9 May 2016 14:57:25 -0700 Subject: SnapdragonCamera: Add manufacture and model info Manufacture and model information is added to the EXIF tag of saved panorama image file Change-Id: Ie5688032abc2278718dfcc0bf9129a35dedc7b8b CRs-Fixed: 1011930 --- src/com/android/camera/exif/ExifInterface.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/com/android/camera/exif') diff --git a/src/com/android/camera/exif/ExifInterface.java b/src/com/android/camera/exif/ExifInterface.java index f353f3586..2fec1bf4f 100644 --- a/src/com/android/camera/exif/ExifInterface.java +++ b/src/com/android/camera/exif/ExifInterface.java @@ -19,6 +19,7 @@ package com.android.camera.exif; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.util.SparseIntArray; +import android.os.Build; import java.io.BufferedInputStream; import java.io.ByteArrayInputStream; @@ -2028,6 +2029,21 @@ public class ExifInterface { return true; } + public boolean addMakeAndModelTag() { + ExifTag t = buildTag(TAG_MAKE, Build.MANUFACTURER); + if (t == null) { + return false; + } + setTag(t); + t = buildTag(TAG_MODEL, Build.MODEL); + if (t == null) { + return false; + } + setTag(t); + return true; + } + + private static Rational[] toExifLatLong(double value) { // convert to the format dd/1 mm/1 ssss/100 value = Math.abs(value); -- cgit v1.2.3