Use explicit API to grant/revoke permissions.

The raw "pm grant" and "pm revoke" commands can be flaky, so use
more direct APIs.

Test: builds, boots
Bug: 75315597
Change-Id: Id640d80fff7579124d7afaec8397dc10eae5bea5
11 files changed