ROCHESTER, N.Y. (AP) â¿¿ Eastman Kodak is selling its digital imaging patents for about $525 million, money the struggling photo pioneer says will help it emerge from bankruptcy protection in the first half of next year. Apple Inc., Google Inc., Samsung Electronics Co., Research In Motion Ltd., Microsoft Corp., China's Huawei Technologies, Facebook Inc. and Amazon.com Inc. are among the 12 companies paying to license the 1,100 patents, according to court filings. Patents have become very valuable to digital device makers, who want to protect themselves from intellectual property lawsuits. But Kodak, which has been trying to make the sale happen for more than a year, wound up receiving substantially less money than had been expected. Rochester, N.Y.-based Eastman Kodak Co. said Wednesday that the patent sale will help it repay a substantial amount of a loan it received under the bankruptcy process. It also satisfies a key condition of a new, cheaper $830 million loan package, which required that the patents be sold for at least $500 million. Founded in 1880, Kodak filed for Chapter 11 bankruptcy protection in January after a long struggle to stay relevant. First came competition from Japanese companies, then the shift from film to digital photography over the past decade. Kodak failed to keep up. The once-mighty company, whose workforce peaked at 145,300 in 1988, said at the end of September that it expected to wind up with 13,100 employees after another round of job cuts. Since filing for bankruptcy protection, Kodak has sold off several businesses, such as its online photo service, and said it would shut down other divisions, including the manufacturing of digital cameras. The company intends to focus on commercial and packaging printing. It sees home photo printers, high-speed commercial inkjet presses, software and packaging as the core of its business as it emerges from bankruptcy.