PackageManager side of the change. bug:37929796 Test: manual OTA with a safemode app. (cherry picked from commit d093b203) Change-Id: Icee7f7174d28bed79fc2cde4c174ee002d182832