|
|
@ -312,6 +312,7 @@ public class AndroidAPIUtils {
|
|
|
|
private static void updateApplicationList(Operation operation, DeviceIdentifier deviceIdentifier)
|
|
|
|
private static void updateApplicationList(Operation operation, DeviceIdentifier deviceIdentifier)
|
|
|
|
throws ApplicationManagementException {
|
|
|
|
throws ApplicationManagementException {
|
|
|
|
// Parsing json string to get applications list.
|
|
|
|
// Parsing json string to get applications list.
|
|
|
|
|
|
|
|
if (operation.getOperationResponse() != null) {
|
|
|
|
JsonElement jsonElement = new JsonParser().parse(operation.getOperationResponse());
|
|
|
|
JsonElement jsonElement = new JsonParser().parse(operation.getOperationResponse());
|
|
|
|
JsonArray jsonArray = jsonElement.getAsJsonArray();
|
|
|
|
JsonArray jsonArray = jsonElement.getAsJsonArray();
|
|
|
|
Application app;
|
|
|
|
Application app;
|
|
|
@ -332,6 +333,10 @@ public class AndroidAPIUtils {
|
|
|
|
applications.add(app);
|
|
|
|
applications.add(app);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
getApplicationManagerService().updateApplicationListInstalledInDevice(deviceIdentifier, applications);
|
|
|
|
getApplicationManagerService().updateApplicationListInstalledInDevice(deviceIdentifier, applications);
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
log.error("Operation Response is null.");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|