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

Commit 74bdcfcc authored by JW Wang's avatar JW Wang
Browse files

Add logs for debugging flaky test

See b/154080003#comment2 for the detail.

Add logs to show when ACTION_PACKAGE_FULLY_REMOVED is received.
We can tell if the broadcast is late from the timestamp.

Bug: 154080003
Test: atest RollbackTest
Change-Id: I84234ba7cebe793c3bb1d0aab2739b22f5c7d11c
parent 7e0bd753
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -348,9 +348,7 @@ class RollbackManagerServiceImpl extends IRollbackManager.Stub {
                }
                if (Intent.ACTION_PACKAGE_FULLY_REMOVED.equals(action)) {
                    String packageName = intent.getData().getSchemeSpecificPart();
                    if (LOCAL_LOGV) {
                        Slog.v(TAG, "broadcast=ACTION_PACKAGE_FULLY_REMOVED pkg=" + packageName);
                    }
                    Slog.i(TAG, "broadcast=ACTION_PACKAGE_FULLY_REMOVED pkg=" + packageName);
                    onPackageFullyRemoved(packageName);
                }
            }