#include "InstallerUtil.h"
-#define OSP_INSTALLER_VERSION "version=[20130502.3]"
+#define OSP_INSTALLER_VERSION "version=[20130807.1]"
#define DIR_BIN L"/bin"
#define DIR_INFO L"/info"
#define PACKAGE_NAME_RULE_ORG L"org.tizen.%ls#%s"
#define PACKAGE_NAME_RULE L"%ls.%s"
+#define BACKUP_NAME_RULE L"_backup"
#define FILE_EXT_INFO L"info"
#define VERSION_INFO_FILE L"/info/version.info"
#define COMPAT_INFO_FILE L"/info/compat.info"
-#define UISCALABILITY_INFO_FILE L"/info/uiscalability.info"
+#define VIRTUAL_ROOT_INFO_FILE L"/info/virtualroot.info"
+#define UISCALABILITY_INFO_FILE L"/uiscalability.info"
+#define UITHEME_INFO_FILE L"/uitheme.info"
+#define DISABLE_SCREEN_READER_INFO_FILE L"/disablescreenreader.info"
#define WEBSERVICE_INFO_FILE L"/info/webservice.info"
#define TYPE_INFO_FILE L"/info/type.info"
#define PACKAGE_XML_FILE L"/info/manifest.xml"
#define AUTHOR_SIGNATURE_XML_FILE L"/author-signature.xml"
#define UISCALABILITY_INFO L"1 %ls %ls %ls"
+#define UITHEME_INFO L"1 %ls %ls"
#define CONFIG_PATH L"/usr/etc/installer-config.ini"
#define TERMINATE_RETRY_COUNT 300
#define DIR_OSP_APPLICATIONS_TEMP L"/opt/usr/apps/__@@osp_tmp@@__"
+#define DIR_INSTALL_LOGS L"/opt/usr/apps/logs"
#define DIR_RO_PACKAGE_SYSTEM_MANIFEST L"/usr/share/packages/%ls.xml"
#define DIR_RW_PACKAGE_SYSTEM_MANIFEST L"/opt/share/packages/%ls.xml"
#define DIR_MEMORYCARD_OSP_APPLICATIONS L"/opt/storage/sdcard/apps"
#define DIR_MEMORYCARD_OSP_APPLICATIONS_TEMP L"/opt/storage/sdcard/apps/__@@osp_tmp@@__"
-#define DIR_MEMORYCARD_INSTALLATION L"/opt/storage/sdcard/installtosdcard"
#define PERM_BASE (S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH) // 0644
#define PERM_EXECUTE (S_IXUSR | S_IXGRP | S_IXOTH)
#define TIZEN_CATEGORY_MENUSCREEN "http://tizen.org/category/menuscreen"
#define TIZEN_CATEGORY_ANTIVIRUS "http://tizen.org/category/antivirus"
+// custom metadata
+#define METADATA_FONT L"http://developer.samsung.com/tizen/metadata/font"
+#define METADATA_SPLASH L"http://developer.samsung.com/tizen/metadata/splash"
+#define METADATA_SPLASH_INDICATOR_DISPLAY L"http://developer.samsung.com/tizen/metadata/splash/indicatordisplay"
+#define METADATA_SPLASH_PORTRAIT L"http://developer.samsung.com/tizen/metadata/splash/portrait"
+#define METADATA_SPLASH_LANDSCAPE L"http://developer.samsung.com/tizen/metadata/splash/landscape"
+#define METADATA_DISABLE_SCREEN_READER L"http://developer.samsung.com/tizen/metadata/disablescreenreader"
+
#define DIR_APPLICATIONS_TMP "/opt/usr/apps/tmp"
#define INSTALLER_RDS_FILE_NAME ".rds_delta"
#define INSTALLER_RDS_ADD_STR "add"
#define INSTALLER_RDS_MODIFY_STR "modify"
-static const int BLOCK_SIZE = 4096;
+static const int INSTALLER_BLOCK_SIZE = 4096;
static const int SIGNATURE_FILE_NUMBER_DISTRIBUTOR = 1;
+static const int SIGNATURE_FILE_NUMBER_DISTRIBUTOR2 = 2;
#define OSP_INSTALLER "osp-installer"
INSTALLER_OPTION_FILELOG_ON = 32,
INSTALLER_OPTION_UPDATE_STDOUT = 64,
INSTALLER_OPTION_CSC = 128,
+ INSTALLER_OPTION_RESET_PRELOADED = 256,
};
INSTALLER_ERROR_FATAL_ERROR = 61,
INSTALLER_ERROR_OUT_OF_STORAGE = 62,
INSTALLER_ERROR_OUT_OF_MEMORY = 63,
+ INSTALLER_ERROR_DISABLED = 65,
+ INSTALLER_ERROR_PRIVILEGE_BLACKLIST = 66,
+ INSTALLER_ERROR_SIGNATURE_BLACKLIST = 67,
INSTALLER_ERROR_USER_CANCEL = 141,
INSTALLER_ERROR_UNMOUNT_FAILED = 142,
INSTALLER_ERROR_INTERNAL_STATE = 143,
INSTALLER_ERROR_DATABASE = 144,
INSTALLER_ERROR_DRM = 145,
+ INSTALLER_ERROR_BACKUP_FAILED = 146,
};
enum InstallerOperation
SIGNATURE_FILE_TYPE_NONE,
SIGNATURE_FILE_TYPE_AUTHOR,
SIGNATURE_FILE_TYPE_DISTRIBUTOR,
+ SIGNATURE_FILE_TYPE_DISTRIBUTOR2,
};
enum InstallationStorage
{
+ INSTALLATION_STORAGE_NONE,
INSTALLATION_STORAGE_INTERNAL,
INSTALLATION_STORAGE_EXTERNAL,
};
+enum SmackDirType
+{
+ SMACK_DIR_TYPE_PRIVATE,
+ SMACK_DIR_TYPE_GROUP_RW,
+ SMACK_DIR_TYPE_PUBLIC_RO,
+ SMACK_DIR_TYPE_SETTINGS_RW,
+ SMACK_DIR_TYPE_ANY_LABEL,
+
+};
+
#endif // _INSTALLER_DEFS_H_