private boolean validateActivityIntent ( Context context , Intent intent ) { ResolveInfo resolveInfo = context . getPackageManager ( ) . resolveActivity ( intent , 0 ) ; if ( resolveInfo == null ) { return false ; } return validateAppSignatureForPackage ( context , resolveInfo . activityInfo . packageName ) ; }
Helper to validate an activity intent by resolving and checking the provider s package signature .