Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0c44432d authored by Charlie Anderson's avatar Charlie Anderson
Browse files

Add additonal logging around PackageUpdatedTask to detect app updates for User

Bug: 350144057
Flag: EXEMPT just logging
Test: local debugging
Change-Id: I317bee94342ad5022025ec52c992c5eeb906efa5
parent 359fb55a
Loading
Loading
Loading
Loading
+7 −4
Original line number Diff line number Diff line
@@ -223,7 +223,8 @@ public class AllAppsList {
                    if (DEBUG) {
                        Log.w(TAG, "updatePromiseInstallInfo: removing app due to install"
                                + " failure and appInfo not startable."
                                + " package=" + appInfo.getTargetPackage());
                                + " package=" + appInfo.getTargetPackage()
                                + ", user=" + user);
                    }
                    removeApp(i);
                }
@@ -319,7 +320,8 @@ public class AllAppsList {
                    if (!findActivity(matches, applicationInfo.componentName)) {
                        if (DEBUG) {
                            Log.w(TAG, "Changing shortcut target due to app component name change."
                                    + " package=" + packageName);
                                    + " component=" + applicationInfo.componentName
                                    + ", user=" + user);
                        }
                        removeApp(i);
                    }
@@ -346,8 +348,9 @@ public class AllAppsList {
        } else {
            // Remove all data for this package.
            if (DEBUG) {
                Log.w(TAG, "updatePromiseInstallInfo: no Activities matched updated package,"
                        + " removing all apps from package=" + packageName);
                Log.w(TAG, "updatePackage: no Activities matched updated package,"
                        + " removing any AppInfo with package=" + packageName
                        + ", user=" + user);
            }
            for (int i = data.size() - 1; i >= 0; i--) {
                final AppInfo applicationInfo = data.get(i);
+2 −1
Original line number Diff line number Diff line
@@ -119,7 +119,8 @@ public class PackageUpdatedTask implements ModelUpdateTask {
        final HashMap<String, List<LauncherActivityInfo>> activitiesLists = new HashMap<>();
        if (DEBUG) {
            Log.d(TAG, "Package updated: mOp=" + getOpString()
                    + " packages=" + Arrays.toString(packages));
                    + " packages=" + Arrays.toString(packages)
                    + ", user=" + mUser);
        }
        switch (mOp) {
            case OP_ADD: {