There is a tool for ioS called flex2 for jailbroken devices. Basically, it analyses the functions called in an app, and tampers the response. It is used specially to bypass jailbreak detection (you force a method isJailbroken to return a false value).
Is there anything like that for Android? The closest i have seen is rootcloak, but it doesnt show the functions available in the app