UPDATE

This post has since been updated and is available on John Kozyrakis’s blog here:- https://koz.io/android-substrate-c-hooking/