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 56fc63621d..de213aebb5 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,15 @@ 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"],
+ "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;
@@ -565,5 +573,13 @@ var androidOperationConstants = {
"SYSTEM_UPDATE_POLICY_CODE": "SYSTEM_UPDATE_POLICY",
"KIOSK_APPS_CODE": "KIOSK_APPS",
"FILE_TRANSFER": "FILE_TRANSFER",
- "APP_RESTRICTION_OPERATION_CODE": "REMOTE_APP_CONFIG"
+ "APP_RESTRICTION_OPERATION_CODE": "REMOTE_APP_CONFIG",
+ "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 866e7efd1c..01a609a14b 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"
+ "ENROLLMENT_APP_INSTALL_CODE": "ENROLLMENT_APP_INSTALL",
+ "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"
};
/**
@@ -345,7 +353,14 @@ var androidOperationModule = function () {
"ENSURE_VERIFY_APPS": operationData["ensureVerifyApps"],
"AUTO_TIME": operationData["enableAutoTime"],
"SET_SCREEN_CAPTURE_DISABLED": operationData["disableScreenCapture"],
- "SET_STATUS_BAR_DISABLED": operationData["disableStatusBar"]
+ "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;
@@ -1202,6 +1217,30 @@ var androidOperationModule = function () {
} else if (featureCode == androidOperationConstants["SET_STATUS_BAR_DISABLED"]) {
restrictions["disableStatusBar"] = 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 d8b15d0d60..4d8d7a21e7 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.
+