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 b814fc2a7..09c6fe7e4 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 56fc63621..de213aebb 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 866e7efd1..01a609a14 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 d8b15d0d6..4d8d7a21e 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. +
-
+
+
+ +
+
+
+ +
+
+
+ +
+
+
+ +
+
+
+ +
+
+
+ +
+
+
+ +
+
+
+ +
+
+
+
+
+
-
+
+
+ +
+
{{/unless}} 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-view/public/templates/android-policy-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.policy-view/public/templates/android-policy-view.hbs index 1649a0009..a743f5793 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-view/public/templates/android-policy-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.policy-view/public/templates/android-policy-view.hbs @@ -729,6 +729,7 @@ +

@@ -747,6 +748,109 @@
+ +
+ +
+
+ +
+ +
+
+ +
+ +
+
+ +
+ +
+
+ +
+ +
+
+ +
+ +
+
+ +
+ +
+
+ +
+ +
{{/unless}} 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-wizard/public/templates/android-policy-operations.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-wizard/public/templates/android-policy-operations.hbs index 36ed7b995..00fbf2794 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-wizard/public/templates/android-policy-operations.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-wizard/public/templates/android-policy-operations.hbs @@ -506,6 +506,98 @@
+
+ +
+
+
+ +
+
+
+ +
+
+
+ +
+
+
+ +
+
+
+ +
+
+
+ +
+
+
+ +
+
+

+
+ +
+
{{/unless}} diff --git a/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android/src/main/java/org/wso2/carbon/device/mgt/mobile/android/impl/AndroidFeatureManager.java b/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android/src/main/java/org/wso2/carbon/device/mgt/mobile/android/impl/AndroidFeatureManager.java index a9f28bf92..6af4e16ab 100644 --- a/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android/src/main/java/org/wso2/carbon/device/mgt/mobile/android/impl/AndroidFeatureManager.java +++ b/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android/src/main/java/org/wso2/carbon/device/mgt/mobile/android/impl/AndroidFeatureManager.java @@ -469,6 +469,54 @@ public class AndroidFeatureManager implements FeatureManager { feature.setDescription("Unlock the device"); supportedFeatures.add(feature); + feature = new Feature(); + feature.setCode("DISALLOW_SET_WALLPAPER"); + feature.setName("Device Unlock"); + feature.setDescription("Unlock the device"); + supportedFeatures.add(feature); + + feature = new Feature(); + feature.setCode("DISALLOW_SET_USER_ICON"); + feature.setName("Device Unlock"); + feature.setDescription("Unlock the device"); + supportedFeatures.add(feature); + + feature = new Feature(); + feature.setCode("DISALLOW_REMOVE_MANAGEMENT_PROFILE"); + feature.setName("Device Unlock"); + feature.setDescription("Unlock the device"); + supportedFeatures.add(feature); + + feature = new Feature(); + feature.setCode("DISALLOW_AUTOFILL"); + feature.setName("Device Unlock"); + feature.setDescription("Unlock the device"); + supportedFeatures.add(feature); + + feature = new Feature(); + feature.setCode("DISALLOW_BLUETOOTH"); + feature.setName("Device Unlock"); + feature.setDescription("Unlock the device"); + supportedFeatures.add(feature); + + feature = new Feature(); + feature.setCode("DISALLOW_BLUETOOTH_SHARING"); + feature.setName("Device Unlock"); + feature.setDescription("Unlock the device"); + supportedFeatures.add(feature); + + feature = new Feature(); + feature.setCode("DISALLOW_REMOVE_USER"); + feature.setName("Device Unlock"); + feature.setDescription("Unlock the device"); + supportedFeatures.add(feature); + + feature = new Feature(); + feature.setCode("DISALLOW_DATA_ROAMING"); + feature.setName("Device Unlock"); + feature.setDescription("Unlock the device"); + supportedFeatures.add(feature); + return supportedFeatures; } } \ No newline at end of file diff --git a/features/mobile-plugins-feature/android-plugin-feature/org.wso2.carbon.device.mgt.mobile.android.feature/src/main/resources/devicetypes/android.xml b/features/mobile-plugins-feature/android-plugin-feature/org.wso2.carbon.device.mgt.mobile.android.feature/src/main/resources/devicetypes/android.xml index 27e8e19a2..6fccf219f 100644 --- a/features/mobile-plugins-feature/android-plugin-feature/org.wso2.carbon.device.mgt.mobile.android.feature/src/main/resources/devicetypes/android.xml +++ b/features/mobile-plugins-feature/android-plugin-feature/org.wso2.carbon.device.mgt.mobile.android.feature/src/main/resources/devicetypes/android.xml @@ -343,6 +343,39 @@ Fetch device logcat Fetch device logcat + + Fetch device logcat + Fetch device logcat + + + Fetch device logcat + Fetch device logcat + + + Fetch device logcat + Fetch device logcat + + + Fetch device logcat + Fetch device logcat + + + Fetch device logcat + Fetch device logcat + + + Fetch device logcat + Fetch device logcat + + + Fetch device logcat + Fetch device logcat + + + Fetch device logcat + Fetch device logcat + + Unlock the device Unlock the device