Samsung, Google sign patent deal