Skip to content
This repository has been archived by the owner on Sep 21, 2021. It is now read-only.

Commit

Permalink
fix(app): check application package
Browse files Browse the repository at this point in the history
Signed-off-by: Rafa Hernandez <rhernandez@teclib.com>
  • Loading branch information
rafaelje authored and Hector Rondon committed Oct 3, 2018
1 parent 203db9f commit 26a8285
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 14 deletions.
6 changes: 3 additions & 3 deletions app/src/main/assets/about.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
about.version=2.0.0-rc.3
about.build=2460
about.date=Wed Sep 19 18:05:02 2018
about.version=2.0.0-rc.4
about.build=2518
about.date=Wed Oct 03 17:14:17 2018
about.commit=
about.commitFull=
about.github=https://github.com/flyve-mdm/flyve-mdm-android-agent
11 changes: 0 additions & 11 deletions app/src/main/java/org/flyve/mdm/agent/utils/AppThreadManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ private AppThreadManager(MqttAndroidClient client) {
}

public void add(Context context, JSONObject jsonObj) {
<<<<<<< HEAD
if(!item.isEmpty()) {
for (int i = 0; i < item.size(); i++) {
if (item.get(i).toString().trim().contains(jsonObj.toString().trim())) {
Expand All @@ -71,8 +70,6 @@ public void add(Context context, JSONObject jsonObj) {
}
}

=======
>>>>>>> fix(apps): add thread manager
item.add(jsonObj);
process(context);
}
Expand Down Expand Up @@ -101,7 +98,6 @@ 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);

Expand All @@ -120,13 +116,6 @@ 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("");
>>>>>>> fix(apps): add thread manager
}
}
}
Expand Down

0 comments on commit 26a8285

Please sign in to comment.