Apple and HTC have reached an agreement to end all patent litigation against each other. The ten-year licence agreement includes the dismissal of all current lawsuits as well as future patents held by either company.

“We are glad to have reached a settlement with HTC. We will continue to stay laser-focused on product innovation,” said Apple CEO Tim Cook.

“HTC is pleased to have resolved its dispute with Apple, so HTC can focus on innovation instead of litigation,” HTC CEO Peter Chou added.

The terms of the settlement were kept confidential.

Apple first sued HTC in 2010, accusing it of infringing technology patents used for the iPhone. The legal action was the first move in Apple’s wider attack on the Android OS, which also included Samsung and Motorola, which Google acquired in May.

Apple won a jury verdict in August which ordered Samsung to pay US$1.05 billion in damages to the iPhone maker after finding the South Korean company of infringing several patents.

The US International Trade Commission imposed a sales ban on HTC after ruling that the Taiwan-based company had infringed a single Apple patent. Despite saying it had come up with a technical workaround for the issue, some HTC shipments were held up by US customs officials.

HTC has suffered from the increased competition from Samsung and Apple and last month forecast a 14.5 percent fall in revenue for the fourth quarter compared to the third, the second straight quarterly decline in 2012.