Apple has regained the top place in the smartphone market helped by the new iPhone 7 and 7 Plus, while rival Samsung Electronics grappled with the recall of its flagship Galaxy Note 7 over overheating batteries, according to a research firm.

The iPhone maker shipped 78.3 million smartphones in the fourth quarter for a market share of 17.8 percent in comparison to 77.5 million smartphones shipped by Samsung, which had a market share of 17.7 percent, Strategy Analytics said Tuesday.

For the full year, Samsung was the clear winner with shipments of 309.4 million smartphones to Apple’s 215.4 million, in part because Apple saw shipments of the iPhone drop in recent quarters.

Apple said earlier on Tuesday that it had as well as the Mac, Apple Watch and its services business. For its fiscal 2017 first quarter ended Dec. 31, 2016, Apple said iPhone shipments were up by about 5 percent by units from the same quarter in the previous year. Revenue from phones was up 5 percent year-on-year at around US$54 billion.

A significant part of Samsung’s shipments consists of budget smartphones that the company ships to price-sensitive markets like India. Apple has tried to reach such customers by offering earlier models at lower prices and has recently tried to get permission from the Indian government for the import and sale of refurbished phones.

Strategy Analytics estimates that one in four of Samsung’s global smartphone shipments were low-end models in the fourth quarter, Mawston said. Samsung is the world’s biggest low-end smartphone vendor and has a strong presence in low-end smartphones across Africa, Asia and Latin America, he added.