From e9793012ea0e15346b7295ba2d73d84c73dedf87 Mon Sep 17 00:00:00 2001 From: mharindu Date: Thu, 30 Apr 2015 13:57:53 +0530 Subject: [PATCH] Added android features to the AD_FEATURE table(Temporarily) --- .../dbscripts/plugins/h2_android.sql | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/features/device-mgt/org.wso2.carbon.device.mgt.mobile.feature/src/main/resources/dbscripts/plugins/h2_android.sql b/features/device-mgt/org.wso2.carbon.device.mgt.mobile.feature/src/main/resources/dbscripts/plugins/h2_android.sql index 5d5b2b735d..dc23300f65 100644 --- a/features/device-mgt/org.wso2.carbon.device.mgt.mobile.feature/src/main/resources/dbscripts/plugins/h2_android.sql +++ b/features/device-mgt/org.wso2.carbon.device.mgt.mobile.feature/src/main/resources/dbscripts/plugins/h2_android.sql @@ -28,3 +28,30 @@ CREATE TABLE IF NOT EXISTS `AD_FEATURE` ( `DESCRIPTION` VARCHAR(200) NULL , PRIMARY KEY (`ID`) ); + +-- ----------------------------------------------------- +-- TODO remove this later +-- ----------------------------------------------------- + +INSERT INTO AD_FEATURE (CODE, NAME, DESCRIPTION) +VALUES +('DEVICE_LOCK', 'DEVICE_LOCK', 'Lock the device'), +('DEVICE_LOCATION', 'DEVICE_LOCATION', 'Request coordinates of device location'), +('WIFI', 'WIFI', 'Setting up wifi configuration'), +('CAMERA', 'CAMERA', 'Enable or disable camera'), +('EMAIL', 'EMAIL', 'Configure email settings'), +('DEVICE_MUTE', 'DEVICE_MUTE', 'Enable mute in the device'), +('PASSWORD_POLICY', 'PASSWORD_POLICY', 'Set up password policy'), +('DEVICE_INFO', 'DEVICE_INFO', 'Request device information'), +('ENTERPRISE_WIPE', 'ENTERPRISE_WIPE', 'Remove enterprise applications'), +('CLEAR_PASSWORD', 'CLEAR_PASSWORD', 'Clear current password'), +('WIPE_DATA', 'WIPE_DATA', 'Factory reset the device'), +('APPLICATION_LIST', 'APPLICATION_LIST', 'Request list of current installed applications'), +('CHANGE_LOCK_CODE', 'CHANGE_LOCK_CODE', 'Change current lock code'), +('INSTALL_APPLICATION', 'INSTALL_APPLICATION', 'Install Enterprise or Market application'), +('UNINSTALL_APPLICATION', 'UNINSTALL_APPLICATION', 'Uninstall application'), +('BLACKLIST_APPLICATIONS', 'BLACKLIST_APPLICATIONS', 'Blacklist applications'), +('ENCRYPT_STORAGE', 'ENCRYPT_STORAGE', 'Encrypt storage'), +('DEVICE_RING', 'DEVICE_RING', 'Ring the device'), +('PASSCODE_POLICY', 'PASSCODE_POLICY', 'Set passcode policy'), +('NOTIFICATION', 'NOTIFICATION', 'Send notification');