From 3d605bdd58596b13891e395bdfc70002cfb09cf9 Mon Sep 17 00:00:00 2001 From: Rafa Hernandez Date: Wed, 19 Sep 2018 18:24:02 -0400 Subject: [PATCH] fix(apps): add thread manager Signed-off-by: Rafa Hernandez --- .../java/org/flyve/mdm/agent/utils/AppThreadManager.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/src/main/java/org/flyve/mdm/agent/utils/AppThreadManager.java b/app/src/main/java/org/flyve/mdm/agent/utils/AppThreadManager.java index 9b606834bd..c334fc34e4 100644 --- a/app/src/main/java/org/flyve/mdm/agent/utils/AppThreadManager.java +++ b/app/src/main/java/org/flyve/mdm/agent/utils/AppThreadManager.java @@ -90,6 +90,7 @@ public void process(Context context) { String versionCode = jsonObj.getString("versionCode"); String taskId = jsonObj.getString("taskId"); +<<<<<<< HEAD ApplicationData apps = new ApplicationData(context); Application[] appsArray = apps.getApplicationsById(id); @@ -106,6 +107,13 @@ public void process(Context context) { } } catch (Exception ex) { FlyveLog.e(ex.getMessage()); +======= + // execute the policy + PoliciesController policiesController = new PoliciesController(context, this.client); + policiesController.installPackage(deployApp, id, versionCode, taskId); + } catch (Exception ex) { + FlyveLog.e(""); +>>>>>>> d8b9c459... fix(apps): add thread manager } } }