Revert "Updating ActivityIntentResolver so that queryIntents doesn't return protected applications."

This reverts commit 82505c5b2106ab4946785382f0d47db48bd8ec17.
PackageManagerService: Prevent sending a SIGKILL while the device shutting down

This avoid potential NPE when cleanup theme related data

Change-Id: Ifc7b5f7a21af32464feb32012336cfbe4b7de2ff