Merge "Added permission checks for explicit grant while logging for getType calls."