well krnlyng/liar has already done that, but it still requires special treament for every app, and doesn't work with Java only apps. It might be interesting to see if the Android N JIT compiler helps.