Approval from Chinese regulators was slow in coming. On Saturday, China approved the deal, on condition that Google Inc.’s Android software would remain free for other phone makers for at least five years.

Google is buying Motorola, a pioneer in the cellphone industry, to prop up its patent portfolio and help defend phone makers who use Android against litigation.