I presume you already know Xposed and are looking for a different approach, right?
If not, have a look here:
http://forum.xda-developers.com/xpos...gelog-t2714053
Even if you don't want to use it as is, looking at the resources (sources, examples) might give you valuable inputs.