From 2169c6937a672af88cd0104bc3ab3758f1423a11 Mon Sep 17 00:00:00 2001 From: ashvini Date: Thu, 9 May 2024 07:43:39 +0530 Subject: [PATCH 1/2] Fix unknown application type error when installing web apps --- .../mgt/core/device/mgt/core/util/MDMAndroidOperationUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/device-mgt/io.entgra.device.mgt.core.device.mgt.core/src/main/java/io/entgra/device/mgt/core/device/mgt/core/util/MDMAndroidOperationUtil.java b/components/device-mgt/io.entgra.device.mgt.core.device.mgt.core/src/main/java/io/entgra/device/mgt/core/device/mgt/core/util/MDMAndroidOperationUtil.java index 61c34fcd4d4..42889367b4c 100644 --- a/components/device-mgt/io.entgra.device.mgt.core.device.mgt.core/src/main/java/io/entgra/device/mgt/core/device/mgt/core/util/MDMAndroidOperationUtil.java +++ b/components/device-mgt/io.entgra.device.mgt.core.device.mgt.core/src/main/java/io/entgra/device/mgt/core/device/mgt/core/util/MDMAndroidOperationUtil.java @@ -70,7 +70,7 @@ public class MDMAndroidOperationUtil { webApplication.setName(application.getName()); // webApplication.setType(application.getType().toString()); // Hard-corded "type" to "webapp". Some agent versions accept only "webapp" as the type. - webApplication.setType("webapp"); +// webApplication.setType("webapp"); webApplication.setProperties(application.getProperties()); operation.setPayLoad(webApplication.toJSON()); break; From 3fd61636030b0c37f05c6113ff8d829917607c27 Mon Sep 17 00:00:00 2001 From: ashvini Date: Mon, 13 May 2024 07:18:18 +0530 Subject: [PATCH 2/2] Remove comments --- .../core/device/mgt/core/util/MDMAndroidOperationUtil.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/components/device-mgt/io.entgra.device.mgt.core.device.mgt.core/src/main/java/io/entgra/device/mgt/core/device/mgt/core/util/MDMAndroidOperationUtil.java b/components/device-mgt/io.entgra.device.mgt.core.device.mgt.core/src/main/java/io/entgra/device/mgt/core/device/mgt/core/util/MDMAndroidOperationUtil.java index 42889367b4c..4485df61a1e 100644 --- a/components/device-mgt/io.entgra.device.mgt.core.device.mgt.core/src/main/java/io/entgra/device/mgt/core/device/mgt/core/util/MDMAndroidOperationUtil.java +++ b/components/device-mgt/io.entgra.device.mgt.core.device.mgt.core/src/main/java/io/entgra/device/mgt/core/device/mgt/core/util/MDMAndroidOperationUtil.java @@ -68,9 +68,7 @@ public class MDMAndroidOperationUtil { WebApplication webApplication = new WebApplication(); webApplication.setUrl(application.getLocation()); webApplication.setName(application.getName()); -// webApplication.setType(application.getType().toString()); -// Hard-corded "type" to "webapp". Some agent versions accept only "webapp" as the type. -// webApplication.setType("webapp"); + webApplication.setType(application.getType().toString()); webApplication.setProperties(application.getProperties()); operation.setPayLoad(webApplication.toJSON()); break;