Redone the hacks on cm's frameworks/opt/telephony

This should be a bit closer to what we need. It might even compile!