utility based on ptrace() (Linux/android native)