Do not use internal-API PermissionChecker

instead copy out the code and only use public APIs.

Bug: 142918378
Test: atest CtsDevicePolicyManagerTestCases:com.android.cts.devicepolicy.MixedManagedProfileOwnerTest#testPermissionGrantPreMApp
                                            com.android.cts.devicepolicy.MixedProfileOwnerTest#testPermissionGrantPreMApp
	                                                                                       testPermissionGrantPreMApp
Change-Id: I7181ac726e4202cacb4d7f3921c4906b0ee3c42f
Merged-In: I4f6573840fabb979058292c84c8c7495babb94de
1 file changed