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

Skip to content
Commit 3641ff80 authored by Hai Zhang's avatar Hai Zhang
Browse files

Remove locking inside PermissionRegistry.

This change removes the locking inside PermissionRegistry, and makes
sure that the PermissionManagerService lock is held when calling into
PermissionRegistry.

There are still a small number of cases where a Permission instance
may be retrieved under the lock, but used outside of the locked
block. This may be okay because it doesn't contain any collection
classes that absolutely requires synchronized access, and the worst
theoretical effect is slightly outdated data (if that's even possible
in reality). This has been happening for years in past releases, and
permissions almost never change after being registered.

Bug: 158736025
Test: manual
Change-Id: I8d1c8b64f6db169e8feb23e779db3f326469c5fe
parent 4583da1a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment