Mark all permissions as reviewed and test location permission better.

This change marks all requested permissions as reviewed after
installing an app, so that permission policy will start working for
foreground permissions which isn't restricted and thus wasn't marked
reviewed.

This change also grants the ACCESS_FINE_LOCATION for location
permission tests, so that we actually test something. Previously the
29 tests didn't grant the foreground permission so the assertion will
just accept any state of app op. The 22 tests was working with the
foreground location in granted state by default, but now we need to
grant it explicitly to remove the REVOKED_COMPAT flag.

Bug: 136503238
Test: manual
Change-Id: I96b7486f183ba33fe4b08c34f1ed97d57326b893
1 file changed