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

Commit 748d4dca authored by Pavel Grafov's avatar Pavel Grafov
Browse files

Update policy cache when clearing policy

Permission grant policy getter returns cached value while setter relies
on the underlying value in DevicePolicyData to check if there is a
change. As a result if they diverge, it is possible that the setter call
is ignored because the value is the same as in DevicePolicyData, while
cached value remains different.

Bug: 376650409
Test: atest CtsDevicePolicyManagerTestCases:com.android.cts.devicepolicy.MixedProfileOwnerTest
Flag: EXEMPT bugfix
Change-Id: I00d457da1a7337f91a1e34e3d8cf8b63ea548516
parent 559895c2
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