From a3df5dad0157802c6cb99772621c9319804f91df Mon Sep 17 00:00:00 2001 From: inoshperera Date: Thu, 5 Dec 2019 13:22:27 +0530 Subject: [PATCH] Fix for enrollment app install without Google --- .../carbon/mdm/services/android/util/AndroidDeviceUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.api/src/main/java/org/wso2/carbon/mdm/services/android/util/AndroidDeviceUtils.java b/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.api/src/main/java/org/wso2/carbon/mdm/services/android/util/AndroidDeviceUtils.java index 4f43c332e..a7e745382 100644 --- a/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.api/src/main/java/org/wso2/carbon/mdm/services/android/util/AndroidDeviceUtils.java +++ b/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.api/src/main/java/org/wso2/carbon/mdm/services/android/util/AndroidDeviceUtils.java @@ -711,7 +711,7 @@ public class AndroidDeviceUtils { JsonElement googlePolicyPayload = appElement.getAsJsonObject(). get(AndroidConstants.ApplicationInstall.GOOGLE_POLICY_PAYLOAD); - if (googlePolicyPayload == null) { + if (googlePolicyPayload == null || googlePolicyPayload.toString().equals("\"\"")) { uuid = appElement.getAsJsonObject(). get(AndroidConstants.ApplicationInstall.ENROLLMENT_APP_INSTALL_UUID).getAsString(); try (CloseableHttpClient httpClient = HttpClients.createDefault()) {