HTC just made the One X source code available to anyone who’s interested in it. The code should help developers to create custom ROMs, without having to rewrite all those drivers.
Unfortunately the released One X source does not include the AT&T’s version, which is based on a different chipset and requires different code to operate. We are not sure if that will be made at a later stage of if it will remain private forever due to some other “restrictions”.
The source code is available for most of the regions and carriers worldwide. You should head over the download page and get the one you need.
Source | Via