From 5a797d4de1aba92ac5d9cba5a159046a35b8e465 Mon Sep 17 00:00:00 2001 From: harshanl Date: Fri, 13 Nov 2015 21:59:47 +0530 Subject: [PATCH] Updated DeviceManager service to latest DMService --- .../device/mgt/mobile/impl/android/AndroidDeviceManager.java | 5 +++++ .../device/mgt/mobile/impl/windows/WindowsDeviceManager.java | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.mobile.impl/src/main/java/org/wso2/carbon/device/mgt/mobile/impl/android/AndroidDeviceManager.java b/components/device-mgt/org.wso2.carbon.device.mgt.mobile.impl/src/main/java/org/wso2/carbon/device/mgt/mobile/impl/android/AndroidDeviceManager.java index 008a9e93e..11442785c 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.mobile.impl/src/main/java/org/wso2/carbon/device/mgt/mobile/impl/android/AndroidDeviceManager.java +++ b/components/device-mgt/org.wso2.carbon.device.mgt.mobile.impl/src/main/java/org/wso2/carbon/device/mgt/mobile/impl/android/AndroidDeviceManager.java @@ -296,6 +296,11 @@ public class AndroidDeviceManager implements DeviceManager { licenseManager.addLicense(AndroidDeviceManagementService.DEVICE_TYPE_ANDROID, license); } + @Override + public boolean requireDeviceAuthorization() { + return true; + } + @Override public boolean updateDeviceInfo(DeviceIdentifier deviceIdentifier, Device device) throws DeviceManagementException { diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.mobile.impl/src/main/java/org/wso2/carbon/device/mgt/mobile/impl/windows/WindowsDeviceManager.java b/components/device-mgt/org.wso2.carbon.device.mgt.mobile.impl/src/main/java/org/wso2/carbon/device/mgt/mobile/impl/windows/WindowsDeviceManager.java index 106b1def7..fabfe1ac2 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.mobile.impl/src/main/java/org/wso2/carbon/device/mgt/mobile/impl/windows/WindowsDeviceManager.java +++ b/components/device-mgt/org.wso2.carbon.device.mgt.mobile.impl/src/main/java/org/wso2/carbon/device/mgt/mobile/impl/windows/WindowsDeviceManager.java @@ -263,6 +263,11 @@ public class WindowsDeviceManager implements DeviceManager { licenseManager.addLicense(WindowsDeviceManagementService.DEVICE_TYPE_WINDOWS, license); } + @Override + public boolean requireDeviceAuthorization() { + return false; + } + @Override public boolean updateDeviceInfo(DeviceIdentifier deviceIdentifier, Device device) throws DeviceManagementException {