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

Commit 1ae9decd authored by Eric Laurent's avatar Eric Laurent Committed by Automerger Merge Worker
Browse files

Merge "PermissionCache: expose a method to purge permission cache" into sc-dev am: 7eba108a

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/14294562

Change-Id: Ie0d584a8788e5fa4b6c5761c6028b12cf11abcee
parents 34e42a15 7eba108a
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -109,5 +109,10 @@ bool PermissionCache::checkPermission(
    return granted;
}

void PermissionCache::purgeCache() {
    PermissionCache& pc(PermissionCache::getInstance());
    pc.purge();
}

// ---------------------------------------------------------------------------
} // namespace android
+2 −0
Original line number Diff line number Diff line
@@ -73,6 +73,8 @@ public:

    static bool checkPermission(const String16& permission,
            pid_t pid, uid_t uid);

    static void purgeCache();
};

// ---------------------------------------------------------------------------