diff options
author | Simon Wilson <simonwilson@google.com> | 2010-11-02 16:16:53 -0700 |
---|---|---|
committer | Simon Wilson <simonwilson@google.com> | 2010-11-02 16:19:24 -0700 |
commit | 794e39d5c5f6f6512118522bd0209d6a92db5272 (patch) | |
tree | 074fce7992a8e2f14ab0de04348a831dd53e64ee /libcamera | |
parent | d828c5495cbbb53558dadf529474a8879c7ea161 (diff) | |
download | device_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.cpp | 10 |
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, |