Under the agreement, Google will acquire a team of HTC employees to potentially boost its growing hardware business.