Fix flakiness in testInstallGrants_notRevokedImmediately

Bug: 166157794
Test: run test a bunch of times with and without fix,
ensure occasional failures only without fix
Change-Id: Idd629f7f0e1e2c0c0489599aaa9ba7a074bf80fb

Change-Id: Iadd5a005dabe15a1782c4bcdfc1c660d4574823e
(cherry picked from commit 19937c1a99e63ef554772e77c77ad019a2f5f4f3)
diff --git a/tests/tests/os/src/android/os/cts/AutoRevokeTest.kt b/tests/tests/os/src/android/os/cts/AutoRevokeTest.kt
index 901623e..44a5444 100644
--- a/tests/tests/os/src/android/os/cts/AutoRevokeTest.kt
+++ b/tests/tests/os/src/android/os/cts/AutoRevokeTest.kt
@@ -245,6 +245,7 @@
                 goToPermissions()
                 click("Calendar")
                 click("Allow")
+                Thread.sleep(500)
                 goBack()
                 goBack()
                 goBack()