Add PermissionControllerService.isRoleVisible() for app info shortcut.

The default app shortcut in app info inside Settings needs to know if
a role is visible, and whether it is visible is controlled logic in
PermissionController, hence add this API.
Also fixed a bug where the visibility config is not properly
retrieved.

Bug: 124452117
Bug: 124457823
Test: manual
Change-Id: I9888696dd36de91044c4fb9658f1c60c94d1801a
3 files changed
tree: 28dcb2945c45c54fa344edfbde25753bf1fd6b45
  1. PermissionController/