[automerger skipped] Ensure permissions are revoked on state changes am: bc71724034 am: f31a906eba -s ours am: cef551dc4f -s ours am: e980626fb4 -s ours am: f9e5ef415b -s ours am: 4c64aaa8a5 -s ours am: a444a55f6b -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/+/12933388

Change-Id: Iefc50b73867637307da3be6e7cc27c39b9cc8efe