This site documents source code obtained from LGE for TVs. The model of the TV for which source code was requested for was 42LG50.
The documentation manual comes with an opensource software notice which indicates you have the right to request the modification to the source code used on your product. LGE list the following software components used:
Get the code
I've set up a git tree with the code already extracted for which you can send patches to:
You can download the original source code provided by LGE here: