diff options
| author | 2024-04-09 16:35:19 +0100 | |
|---|---|---|
| committer | 2024-05-23 14:47:17 +0100 | |
| commit | 12e2998c72b4bda9576fb7b3504f54510531b25a (patch) | |
| tree | 7d4bde98a44684c286da4cb193467e6479ffb714 /libs/input/PointerController.cpp | |
| parent | 101b2f5ea543194f8454833bdc663d455ad115f8 (diff) | |
Migrate setPackagesSuspended
The underlying package suspension mechanism (PackageManager
.setPackagesSuspendedByAdmin) changes package suspension
state on a per-package basis so we can't simply "push" the
current list of suspended package to PackageManager from
PolicyEnforcerCallback. DPM.setPackagesSuspended() also
returns a list of failed packages which is complex to calculate
under coexistence. As a result, we simply use PolicyEngine
to store the package suspension state, and keep the enforcing
logic in DPMS.
Test: FrameworksServicesTests:SuspendPackagesTest
android.suspendapps.cts.SuspendPackagesTest
android.devicepolicy.cts.PackagesTest
android.devicepolicy.cts.PackageSuspensionTest
android.devicepolicy.cts.ApplicationExemptionsTest
MixedDeviceOwnerTest#testSuspendPackage
MixedManagedProfileOwnerTest#testSuspendPackage
MixedDeviceOwnerTest#testSuspendPackageWithPackageManager
MixedManagedProfileOwnerTest#testSuspendPackageWithPackageManager
Bug: 335624297
Change-Id: I9c287d39593d53d69e16ea2ec520df4d12ebcdaa
Diffstat (limited to 'libs/input/PointerController.cpp')
0 files changed, 0 insertions, 0 deletions