Fix permission test in MixedProfileOwnerTest and MixedDeviceOwnerTest

The root cause is that when installing CtsPermissionApp.apk, -g option is provided.
Add a new method to avoid -g option

This CL fixes the following test cases in MixedProfileOwnerTest and MixedDeviceOwnerTest
testPermissionGrant
testPermissionPrompts
testPermissionMixedPolicies
testPermissionAppUpdate

BUG=27450018

Change-Id: Icebea836eefb6716661adf5b356e47a4bf90fd6b
2 files changed