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

Commit dcf3d371 authored by Patrick Baumann's avatar Patrick Baumann
Browse files

Don't save self visibility grants

This change avoids unnecessary grants of visibility between uids that
are the same.

Test: atest AppEnumerationTests AppsFilterTest
Change-Id: I32447c3decee18e6149a8a1fdb56027fefbd3804
parent 0d66c262
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -302,8 +302,9 @@ public class AppsFilter {
     *                   initiating uid.
     */
    public void grantImplicitAccess(int callingUid, int targetUid) {
        if (mImplicitlyQueryable.add(targetUid, callingUid) && DEBUG_LOGGING) {
            Slog.wtf(TAG, "implicit access granted: " + callingUid + " -> " + targetUid);
        if (targetUid != callingUid
                && mImplicitlyQueryable.add(targetUid, callingUid) && DEBUG_LOGGING) {
            Slog.wtf(TAG, "implicit access granted: " + targetUid + " -> " + callingUid);
        }
    }