resolver: get custom resolver activity

The cts case gets the custom ResolverActivity name with the command
'pm resolve-activity -a android.intent.action.SEND --brief'.
However, if another application exists that responds to the SEND intent
and has the tag Intent.CATEGORY_DEFAULT, the result of the command is
wrong and will not be a custom ResolverActivity. To fix this, instead
use the 'cmd overlay lookup android
android:string/config_customResolverActivity' command, which gets the
field config_customResolverActivity from the resource to get the
custom ResolverActivity name.

Test: run cts -m CtsDevicePolicyManagerTestCases -t  com.android.cts.devicepolicy.ManagedProfileTest#testResolverActivityLaunchedFromWorkProfileWithSelectedPersonalTab
Test: run cts -m CtsDevicePolicyManagerTestCases -t com.android.cts.devicepolicy.ManagedProfileTest#testResolverActivityLaunchedFromPersonalProfileWithSelectedWorkTab
Bug: 263829609
Change-Id: I4664db81064ec9348c7a931b946912e904154d0e
1 file changed