LG is buying HP’s (S HPQ) troubled mobile operating system webOS, according to reports from CNET and the Verge. However, the company doesn’t want to put the system to use in any of its phones: Instead, LG plans to use webOS to power its smart TVs. That could be bad news for Google, (s GOOG) which has been cooperating with LG on getting Google TV into the hands of consumers.

The deal between LG and HP includes the webOS source code, documentation, websites and what’s remaining of the webOS team. Cloud components such as the webOS app store technology as well as all of the patents will remain with HP, but are going to be licensed to LG. There’s no word on the purchase price.

Most of LG’s smart TVs have been powered by the company’s own app platform, which was originally called NetCast and has been ripe for…