Unsuspending packages when a PO or DO is set

If a profile or device owner is present, package manager does not
support calls to PM#setPackagesSuspended. So if there were already
suspended packages, they need to be unsuspended when a PO or DO is
added.

Test: atest com.android.server.pm.SuspendPackagesTest

Bug: 79980390
Change-Id: Ib79d95ccc25eef534fdcd540d3d6ea75c31982a7
4 files changed