[automerger skipped] Ensure permissions are revoked on state changes am: 3dfb544626 am: ebfe073540 am: b2152f32f4 -s ours am: ff63084c2d -s ours am: fb70a5eaa7 -s ours am: 59511934e3 -s ours

am skip reason: Change-Id I0dec9eb7c2fecd3147e33e04d3f79f6dffcf7721 with SHA-1 a162e9592d is in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12940341

Change-Id: I887aff6c265fbe601b3e9c4630d5a55f4d584bb5