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 515f7cb2c..775ddd756 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 @@ -509,6 +509,7 @@ var androidOperationModule = function () { deviceGlobalConfigurations["displayOrientation"] = operationData["displayOrientation"]; if (deviceGlobalConfigurations["isMultiUserDevice"] === true) { deviceGlobalConfigurations["isLoginRequired"] = operationData["isLoginRequired"]; + deviceGlobalConfigurations["tenantDomainName"] = $("#logged-in-user").data("domain"); var storeApps = $("#cosu-profile-app-configs-storeapps").data("storeapps"); var primaryUserApps = { "username" : "primaryUser", @@ -522,7 +523,7 @@ var androidOperationModule = function () { userAppConfigurations[index]["visibleAppList"].split(/,(?![^{]*})/) .map(function (item) { var packageName = item.trim(); - if (packageName) { + if (packageName && storeApps) { var i; for (i=0; i