Replace permission APIs about package and state removal.

Replace removeAllPermissions() with onPackageRemoved().

Replace removeAppIdStateTEMP() and
revokeSharedUserPermissionsForDeletedPackageTEMP() with
onPackageStateRemoved().

Bug: 158736025
Test: presubmit
Change-Id: If85837452aeb1061f74532768782248e00d76a03
3 files changed