native: TRDS 3.0 and new theme engine preparation (3/4)

All credit and thanks to Lars Greiss/@Slimroms

Change-Id: Ibc5aaec5661455477815043440fae86052a395ce