Change-Id: I6429681697f13c58bf2ef3b34b43205ce95255a7
Signed-off-by: Duyoung Jang <duyoung.jang@samsung.com>
<listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/lib/glib-2.0/include""/>
<listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/glib-2.0""/>
<listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/system""/>
<listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/lib/glib-2.0/include""/>
<listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/glib-2.0""/>
<listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/system""/>
- <listOptionValue builtIn="false" value=""${SBI_SYSROOT}/usr/include/drm-intel""/>
<listOptionValue builtIn="false" value=""../../osp-appfw/src/base/inc""/>
<listOptionValue builtIn="false" value=""../../osp-appfw/src/app/inc""/>
<listOptionValue builtIn="false" value=""../../osp-appfw/src/system/inc""/>
<listOptionValue builtIn="false" value=""../../osp-appfw/src/base/inc""/>
<listOptionValue builtIn="false" value=""../../osp-appfw/src/app/inc""/>
<listOptionValue builtIn="false" value=""../../osp-appfw/src/system/inc""/>
<option id="gnu.cpp.link.option.libs.850444138" name="Libraries (-l)" superClass="gnu.cpp.link.option.libs" valueType="libs">
<listOptionValue builtIn="false" value="pkgmgr_parser"/>
<listOptionValue builtIn="false" value="dl"/>
<option id="gnu.cpp.link.option.libs.850444138" name="Libraries (-l)" superClass="gnu.cpp.link.option.libs" valueType="libs">
<listOptionValue builtIn="false" value="pkgmgr_parser"/>
<listOptionValue builtIn="false" value="dl"/>
- <listOptionValue builtIn="false" value="drm-service-core-intel"/>
<listOptionValue builtIn="false" value="app2ext"/>
<listOptionValue builtIn="false" value="glib-2.0"/>
<listOptionValue builtIn="false" value="pkgmgr_installer"/>
<listOptionValue builtIn="false" value="app2ext"/>
<listOptionValue builtIn="false" value="glib-2.0"/>
<listOptionValue builtIn="false" value="pkgmgr_installer"/>
/usr/include/osp/system
/usr/include/libxml2
/usr/include/system
/usr/include/osp/system
/usr/include/libxml2
/usr/include/system
)
SET (${this_target}_SOURCE_FILES
)
SET (${this_target}_SOURCE_FILES
SET(CMAKE_CXX_FLAGS "${OSP_DEBUG_FLAGS} ${OSP_OPT_FLAGS} ${CMAKE_CXX_FLAGS} ${EXTRA_CFLAGS} ${OSP_COMPILER_FLAGS}")
TARGET_LINK_LIBRARIES(${this_target} "-L/usr/lib/osp -losp-appfw -lxml2 -lpkgmgr_installer -lpkgmgr_parser -lglib-2.0 -lapp2ext -ldl" -Wl,--allow-shlib-undefined)
SET(CMAKE_CXX_FLAGS "${OSP_DEBUG_FLAGS} ${OSP_OPT_FLAGS} ${CMAKE_CXX_FLAGS} ${EXTRA_CFLAGS} ${OSP_COMPILER_FLAGS}")
TARGET_LINK_LIBRARIES(${this_target} "-L/usr/lib/osp -losp-appfw -lxml2 -lpkgmgr_installer -lpkgmgr_parser -lglib-2.0 -lapp2ext -ldl" -Wl,--allow-shlib-undefined)
-TARGET_LINK_LIBRARIES(${this_target} "-L/usr/lib -ldrm-service-core-intel")
#include "InstallerUtil.h"
#include "InstallerUtil.h"
-#define OSP_INSTALLER_VERSION "version=[20130322.2]"
+#define OSP_INSTALLER_VERSION "version=[20130326.1]"
#define DIR_BIN L"/bin"
#define DIR_INFO L"/info"
#define DIR_BIN L"/bin"
#define DIR_INFO L"/info"
BuildRequires: pkgconfig(app2sd)
BuildRequires: pkgconfig(libwbxml2)
BuildRequires: pkgconfig(osp-appfw)
BuildRequires: pkgconfig(app2sd)
BuildRequires: pkgconfig(libwbxml2)
BuildRequires: pkgconfig(osp-appfw)
-BuildRequires: pkgconfig(drm-service-core-intel)
BuildRequires: osp-appfw-internal-devel
BuildRequires: osp-appfw-internal-devel
#include <errno.h>
#include <unistd.h>
#include <unique_ptr.h>
#include <errno.h>
#include <unistd.h>
#include <unique_ptr.h>
-#include <drm-oem-intel.h>
#include <FBaseErrorDefine.h>
#include <FIoFile.h>
#include <FBaseErrorDefine.h>
#include <FIoFile.h>
-InstallerUtil::IsDrmFile(const Tizen::Base::String& path)
+InstallerUtil::IsDrmFile(const String& path)
- bool res = true;
- char* pFilePath = null;
- result r = E_SUCCESS;
- int isDrm = 0;
-
- pFilePath = _StringConverter::CopyToCharArrayN(path);
- TryCatch(pFilePath, r = GetLastResult(), "pFilePath is null");
-
- isDrm = drm_oem_intel_isDrmFile(pFilePath);
- if(isDrm == 1)
- {
- AppLog("IsDrmFile() called, packagePath=[%ls] is a drm file", path.GetPointer());
- }
- else
- {
- res = false;
- }
-
-CATCH:
- delete [] pFilePath;
- return res;
-InstallerUtil::DecryptPackage(const Tizen::Base::String& packagePath)
+InstallerUtil::DecryptPackage(const String& packagePath)
- bool res = true;
- char* pFilePath = null;
- result r = E_SUCCESS;
- int result = 0;
-
- pFilePath = _StringConverter::CopyToCharArrayN(packagePath);
- TryCatch(pFilePath, r = GetLastResult(), "pFilePath is null");
-
- result = drm_oem_intel_decrypt_package(pFilePath, pFilePath);
- if(result == 1)
- {
- AppLog("DecryptPackage() called, packagePath=%ls, decrpyt success", packagePath.GetPointer());
- }
- else
- {
- AppLog("DecryptPackage() called, packagePath=%ls, decrypt failed", packagePath.GetPointer());
- res = false;
- }
-
-CATCH:
- delete [] pFilePath;
- return res;
AppLog("------------------------------------------");
AppLog("------------------------------------------");