summaryrefslogtreecommitdiffstats
path: root/libcamera
diff options
context:
space:
mode:
authorSimon Wilson <simonwilson@google.com>2010-11-02 16:16:53 -0700
committerSimon Wilson <simonwilson@google.com>2010-11-02 16:19:24 -0700
commit794e39d5c5f6f6512118522bd0209d6a92db5272 (patch)
tree074fce7992a8e2f14ab0de04348a831dd53e64ee /libcamera
parentd828c5495cbbb53558dadf529474a8879c7ea161 (diff)
downloaddevice_samsung_crespo-794e39d5c5f6f6512118522bd0209d6a92db5272.zip
device_samsung_crespo-794e39d5c5f6f6512118522bd0209d6a92db5272.tar.gz
device_samsung_crespo-794e39d5c5f6f6512118522bd0209d6a92db5272.tar.bz2
libcamera: use camera make/model from properties
Change-Id: Ie8dea300c4ee5b9c1cd055301ae26fe44ceef68e
Diffstat (limited to 'libcamera')
-rw-r--r--libcamera/SecCamera.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/libcamera/SecCamera.cpp b/libcamera/SecCamera.cpp
index 55baef7..28cd65a 100644
--- a/libcamera/SecCamera.cpp
+++ b/libcamera/SecCamera.cpp
@@ -3281,9 +3281,15 @@ void SecCamera::setExifFixedAttribute()
//2 0th IFD TIFF Tags
//3 Maker
- strcpy((char *)mExifInfo.maker, EXIF_DEF_MAKER);
+ property_get("ro.product.brand", property, EXIF_DEF_MAKER);
+ strncpy((char *)mExifInfo.maker, property,
+ sizeof(mExifInfo.maker) - 1);
+ mExifInfo.maker[sizeof(mExifInfo.maker) - 1] = '\0';
//3 Model
- strcpy((char *)mExifInfo.model, EXIF_DEF_MODEL);
+ property_get("ro.product.model", property, EXIF_DEF_MODEL);
+ strncpy((char *)mExifInfo.model, property,
+ sizeof(mExifInfo.model) - 1);
+ mExifInfo.model[sizeof(mExifInfo.model) - 1] = '\0';
//3 Software
property_get("ro.build.id", property, EXIF_DEF_SOFTWARE);
strncpy((char *)mExifInfo.software, property,