See Android 4.2.1 Jelly Bean running on the T-Mobile G2 thanks to CyanogenMod 10.1

Unfortunately, the T-Mobile G2 was never updated to anything beyond Android 2.3 Gingerbread. That, however, does not mean it can't run anything newer, albeit in the form of a custom ROM provided by the CyanogenMod team. What you will see in the video below is Android 4.2.1 – the platform's very latest version released to date, installed on a T-Mobile G2. And as a matter of fact, the smartphone performs much better than you might expect, even though the hardware inside it is a far cry from what powers today's high-end smartphones.
source: Pocketnow, XDA-Developers