I want to compile any TouchWiz-based ROM for Samsung Galaxy S4 (GT-I9500). I've found the guide for CyanogenMod and compiled it, but there are bugs in all Cyanogen-based ROMs for this device: unable to power it on when charging, and MHL cable connection often doesn't work. These bugs are absent in TouchWiz ROM, that's why I want to compile it to make my modifications there. Is there any guide or instruction how to do it?
We dont't have sources for Samsungs OEM ROM, only the kernel sources, so you can't compile it like CM.
You only can take the stockfirmware, tweak it more or less (decompile APKs, Theming, etc.), make a flashable Zip or something like that.
XDA Developers was founded by developers, for developers. It is now a valuable resource for people who want to make the most of their mobile devices, from customizing the look and feel to adding new functionality. Are you a developer?