diff --git a/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.android.device-view/device-view.hbs b/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.android.device-view/device-view.hbs
index b814fc2a7f..09c6fe7e40 100644
--- a/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.android.device-view/device-view.hbs
+++ b/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.android.device-view/device-view.hbs
@@ -16,7 +16,7 @@
data-type="{{device.type}}"
data-ownership="{{device.ownership}}"
data-owner="{{device.owner}}"
- data-status="{{device.status}}"
+ data-status="{{devicamera-enabledce.status}}"
data-deviceinfoservice="{{device.deviceInfoServiceAPI}}"
data-devicelocationservice="{{device.deviceLocationServiceAPI}}">
{{device.owner}}'s {{device.name}}
diff --git a/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.android.operation-bar/public/js/operation-bar.js b/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.android.operation-bar/public/js/operation-bar.js
index 854a2eaee1..d5303db9af 100644
--- a/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.android.operation-bar/public/js/operation-bar.js
+++ b/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.android.operation-bar/public/js/operation-bar.js
@@ -337,7 +337,16 @@ var generatePayload = function (operationCode, operationData, deviceList) {
"ENSURE_VERIFY_APPS": operationData["ensureVerifyApps"],
"AUTO_TIME": operationData["enableAutoTime"],
"SET_SCREEN_CAPTURE_DISABLED": operationData["disableScreenCapture"],
- "SET_STATUS_BAR_DISABLED": operationData["disableStatusBar"]
+ "SET_STATUS_BAR_DISABLED": operationData["disableStatusBar"],
+ "KEY_RESTRICTIONS_PENDING": operationData["keyRestrictionsPending"],
+ "DISALLOW_SET_WALLPAPER": operationData["disallowSetWallpaper"],
+ "DISALLOW_SET_USER_ICON": operationData["disallowSetUserIcon"],
+ "DISALLOW_REMOVE_MANAGEMENT_PROFILE": operationData["disallowRemoveManagedProfile"],
+ "DISALLOW_AUTOFILL": operationData["disallowAutoFill"],
+ "DISALLOW_BLUETOOTH": operationData["disallowBluetooth"],
+ "DISALLOW_BLUETOOTH_SHARING": operationData["disallowBluetoothSharing"],
+ "DISALLOW_REMOVE_USER": operationData["disallowRemoveUser"],
+ "DISALLOW_DATA_ROAMING": operationData["disallowDataRoaming"]
}
};
break;
@@ -554,5 +563,14 @@ var androidOperationConstants = {
"APPLICATION_OPERATION_CODE": "APP-RESTRICTION",
"SYSTEM_UPDATE_POLICY_CODE": "SYSTEM_UPDATE_POLICY",
"KIOSK_APPS_CODE": "KIOSK_APPS",
- "FILE_TRANSFER": "FILE_TRANSFER"
+ "FILE_TRANSFER": "FILE_TRANSFER",
+ "KEY_RESTRICTIONS_PENDING": "KEY_RESTRICTIONS_PENDING",
+ "DISALLOW_SET_WALLPAPER": "DISALLOW_SET_WALLPAPER",
+ "DISALLOW_SET_USER_ICON": "DISALLOW_SET_USER_ICON",
+ "DISALLOW_REMOVE_MANAGEMENT_PROFILE": "DISALLOW_REMOVE_MANAGEMENT_PROFILE",
+ "DISALLOW_AUTOFILL": "DISALLOW_AUTOFILL",
+ "DISALLOW_BLUETOOTH": "DISALLOW_BLUETOOTH",
+ "DISALLOW_BLUETOOTH_SHARING": "DISALLOW_BLUETOOTH_SHARING",
+ "DISALLOW_REMOVE_USER": "DISALLOW_REMOVE_USER",
+ "DISALLOW_DATA_ROAMING": "DISALLOW_DATA_ROAMING"
};
diff --git a/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.android.operation-mod/public/js/operation-mod.js b/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.android.operation-mod/public/js/operation-mod.js
index fe820ecc38..9a7309233c 100644
--- a/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.android.operation-mod/public/js/operation-mod.js
+++ b/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.android.operation-mod/public/js/operation-mod.js
@@ -100,7 +100,15 @@ var androidOperationModule = function () {
"COSU_PROFILE_CONFIGURATION_OPERATION": "cosu-profile-configuration",
"COSU_PROFILE_CONFIGURATION_OPERATION_CODE": "COSU_PROFILE",
"ENROLLMENT_APP_INSTALL": "enrollment-app-install",
- "ENROLLMENT_APP_INSTALL_CODE": "ENROLLMENT_APP_INSTALL"
+ "KEY_RESTRICTIONS_PENDING": "KEY_RESTRICTIONS_PENDING",
+ "DISALLOW_SET_WALLPAPER": "DISALLOW_SET_WALLPAPER",
+ "DISALLOW_SET_USER_ICON": "DISALLOW_SET_USER_ICON",
+ "DISALLOW_REMOVE_MANAGEMENT_PROFILE": "DISALLOW_REMOVE_MANAGEMENT_PROFILE",
+ "DISALLOW_AUTOFILL": "DISALLOW_AUTOFILL",
+ "DISALLOW_BLUETOOTH": "DISALLOW_BLUETOOTH",
+ "DISALLOW_BLUETOOTH_SHARING": "DISALLOW_BLUETOOTH_SHARING",
+ "DISALLOW_REMOVE_USER": "DISALLOW_REMOVE_USER",
+ "DISALLOW_DATA_ROAMING": "DISALLOW_DATA_ROAMING"
};
/**
@@ -344,7 +352,15 @@ var androidOperationModule = function () {
"ENSURE_VERIFY_APPS": operationData["ensureVerifyApps"],
"AUTO_TIME": operationData["enableAutoTime"],
"SET_SCREEN_CAPTURE_DISABLED": operationData["disableScreenCapture"],
- "SET_STATUS_BAR_DISABLED": operationData["disableStatusBar"]
+ "KEY_RESTRICTIONS_PENDING": operationData["keyRestrictionsPending"],
+ "DISALLOW_SET_WALLPAPER": operationData["disallowSetWallpaper"],
+ "DISALLOW_SET_USER_ICON": operationData["disallowSetWallpaper"],
+ "DISALLOW_REMOVE_MANAGEMENT_PROFILE": operationData["disallowRemoveManagedProfile"],
+ "DISALLOW_AUTOFILL": operationData["disallowAutoFill"],
+ "DISALLOW_BLUETOOTH": operationData["disallowBluetooth"],
+ "DISALLOW_BLUETOOTH_SHARING": operationData["disallowBluetoothSharing"],
+ "DISALLOW_REMOVE_USER": operationData["disallowRemoveUser"],
+ "DISALLOW_DATA_ROAMING": operationData["disallowDataRoaming"]
}
};
break;
@@ -1200,6 +1216,33 @@ var androidOperationModule = function () {
} else if (featureCode == androidOperationConstants["SET_STATUS_BAR_DISABLED"]) {
restrictions["disableStatusBar"] = restriction["enabled"];
continue;
+ }else if (featureCode == androidOperationConstants["KEY_RESTRICTIONS_PENDING"]) {
+ restrictions["keyRestrictionsPending"] = restriction["enabled"];
+ continue;
+ }else if (featureCode == androidOperationConstants["DISALLOW_SET_WALLPAPER"]) {
+ restrictions["disallowSetWallpaper"] = restriction["enabled"];
+ continue;
+ }else if (featureCode == androidOperationConstants["DISALLOW_SET_USER_ICON"]) {
+ restrictions["disallowSetUserIcon"] = restriction["enabled"];
+ continue;
+ }else if (featureCode == androidOperationConstants["DISALLOW_REMOVE_MANAGEMENT_PROFILE"]) {
+ restrictions["disallowRemoveManagedProfile"] = restriction["enabled"];
+ continue;
+ }else if (featureCode == androidOperationConstants["DISALLOW_AUTOFILL"]) {
+ restrictions["disallowAutoFill"] = restriction["enabled"];
+ continue;
+ }else if (featureCode == androidOperationConstants["DISALLOW_BLUETOOTH"]) {
+ restrictions["disallowBluetooth"] = restriction["enabled"];
+ continue;
+ }else if (featureCode == androidOperationConstants["DISALLOW_BLUETOOTH_SHARING"]) {
+ restrictions["disallowBluetoothSharing"] = restriction["enabled"];
+ continue;
+ }else if (featureCode == androidOperationConstants["DISALLOW_REMOVE_USER"]) {
+ restrictions["disallowRemoveUser"] = restriction["enabled"];
+ continue;
+ }else if (featureCode == androidOperationConstants["DISALLOW_DATA_ROAMING"]) {
+ restrictions["disallowDataRoaming"] = restriction["enabled"];
+ continue;
}
//push the feature-code to the configuration array
configuredOperations.push(featureCode);
diff --git a/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.android.policy-edit/public/templates/android-policy-edit.hbs b/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.android.policy-edit/public/templates/android-policy-edit.hbs
index c2e2cb227b..8550778a81 100644
--- a/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.android.policy-edit/public/templates/android-policy-edit.hbs
+++ b/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.android.policy-edit/public/templates/android-policy-edit.hbs
@@ -356,6 +356,7 @@
work-profile owner or device owner.
+