. /etc/tizen-platform.conf
DB_NAME=${TZ_SYS_DB}/.policy.db
+DB_NAME_JOURNAL=${TZ_SYS_DB}/.policy.db-journal
MDM_BLACKLIST=${TZ_SYS_RO_SHARE}/security-config/mdm_blacklist
+if [ ! -e $DB_NAME ]; then
+ echo "Creating $DB_NAME ..."
+ touch $DB_NAME
+ if [ -e $DB_NAME_JOURNAL ]; then
+ rm $DB_NAME_JOURNAL
+ fi
+ touch $DB_NAME_JOURNAL
+
+ echo "Creating PREVENT_LIST table ..."
+ sqlite3 $DB_NAME "CREATE TABLE PREVENT_LIST (UID NUMERIC not null, PACKAGE_TYPE NUMERIC , PRIVILEGE_NAME TEXT not null, UNIQUE(UID, PACKAGE_TYPE, PRIVILEGE_NAME));"
+ echo "Creating DISABLE_LIST table...."
+ sqlite3 $DB_NAME "CREATE TABLE DISABLE_LIST (UID NUMERIC not null, PRIVILEGE_NAME TEXT not null, UNIQUE(UID, PRIVILEGE_NAME));"
+fi
if [ -a $MDM_BLACKLIST ]; then
echo "mdm blacklist exist"