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

Commit c052fed1 authored by Eric Laurent's avatar Eric Laurent Committed by Gerrit Code Review
Browse files

Merge "PermissionCache: expose a method to purge permission cache"

parents 1488a158 881030a5
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();
};

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