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 1c5038755f..1c0081a93c 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
@@ -55,22 +55,33 @@
{{#if device.deviceInfoAvailable}}
{{#if device.BatteryLevel}}
-
{{device.BatteryLevel.value}}%
+
+
+ {{device.BatteryLevel.value}}%
+
{{/if}}
{{#if device.ramUsage}}
-
{{device.ramUsage.value}}%
+
+
+ {{device.ramUsage.value}}%
+
{{/if}}
{{#if device.internalMemory}}
-
{{device.internalMemory.usage}}
- GB/{{device.internalMemory.total}}GB
+
+
+ {{device.internalMemory.usage}}
+ GB Free/{{device.internalMemory.total}}GB Total
+
{{/if}}
{{#if device.externalMemory}}
-
{{device.externalMemory.usage}}
- GB/{{device.externalMemory.total}}GB
+
+
+ {{device.externalMemory.usage}}
+ GB Free/{{device.externalMemory.total}}GB Total
+
{{/if}}
{{else}}
-
Battery, RAM and Storage related information are not
- available yet.
+
Battery, RAM and Storage related information are not available yet.
{{/if}}
{{/zone}}
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.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.device-view/device-view.js
index 7e33ea0361..338320b3f5 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.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.device-view/device-view.js
@@ -153,23 +153,22 @@ function onRequest(context) {
}
viewModel["internalMemory"] = {};
- viewModel["internalMemory"]["total"] = replaceNaNVal(Math.
- round(filteredDeviceData["latestDeviceInfo"]["internalTotalMemory"] * 100) / 100);
if (filteredDeviceData["latestDeviceInfo"]["internalTotalMemory"] != 0) {
- viewModel["internalMemory"]["usage"] = replaceNaNVal(Math.round((filteredDeviceData["latestDeviceInfo"]["internalTotalMemory"] -
- filteredDeviceData["latestDeviceInfo"]["internalAvailableMemory"]) * 100) / 100);
+ viewModel["internalMemory"]["total"] = replaceNaNVal(Math.round
+ (filteredDeviceData["latestDeviceInfo"]["internalTotalMemory"] * 100) / 100);
+ viewModel["internalMemory"]["usage"] = replaceNaNVal(Math.round
+ (filteredDeviceData["latestDeviceInfo"]["internalAvailableMemory"] * 100) / 100);
} else {
viewModel["internalMemory"]["usage"] = 0;
}
viewModel["externalMemory"] = {};
- viewModel["externalMemory"]["total"] = replaceNaNVal(Math.
- round(filteredDeviceData["latestDeviceInfo"]["externalTotalMemory"] * 100) / 100);
if (filteredDeviceData["latestDeviceInfo"]["externalTotalMemory"] != 0) {
+ viewModel["externalMemory"]["total"] = replaceNaNVal(Math.round
+ (filteredDeviceData["latestDeviceInfo"]["externalTotalMemory"] * 100) / 100);
viewModel["externalMemory"]["usage"] = replaceNaNVal(Math.
- round((filteredDeviceData["latestDeviceInfo"]["externalTotalMemory"] -
- filteredDeviceData["latestDeviceInfo"]["externalAvailableMemory"])
- / filteredDeviceData["latestDeviceInfo"]["externalTotalMemory"] * 10000) / 100);
+ round(filteredDeviceData["latestDeviceInfo"]["externalAvailableMemory"]* 100)
+ /100);
} else {
viewModel["externalMemory"]["usage"] = 0;
}