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

Skip to content
Commit 5b1bc594 authored by Evan Severson's avatar Evan Severson
Browse files

Add listeners to appops checking interface

Note about locking: AppOpsService calls into the checking service
holding the lock when changing mode then the checking service also grabs
the same lock. It then dispatches the callback synchronously back to
AppOpsService where (in packageModeChanged) that callback grabs the lock
again. This is taking advantage of the reentrant property of java locks
and protects against mutations that may happen outside of this flow.

Test: atest CtsAppOpsTestCases AppOpsServiceTest
Bug: 268696066

Change-Id: I41d79fdba0dcdc56a287082e22663fbc85998fb2
parent befba4b4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment