Refactor TelephonyPermissions for Mainline

Because of the new System permission, CTS need that permission to run the test.
This requires to integrate Android ShellItentiyUtil.

To achieve above and the requirement "Test device identifier access for apps with
 the READ_PHONE_STATE permission targeting pre-Q." of this test, it is more reasonable
to remove the restriction on the .bp file, but move the logic in the test code.

Test: Treehugger
Bug: 145688189
Change-Id: I93461f67046460c9246f6139052217802a2800dc
2 files changed