from Hacker News

Spying on Android events without modifying source code

by kalmar on 10/4/16, 4:52 AM with 4 comments

  • by pawadu on 10/4/16, 8:38 AM

    I wonder if you can achieve the same thing by inserting a debug class that replaces the original parent. That is, change the code to go from

        View <-- MyView
    
    to

        View <-- DebugView <-- MyView
    
    You might even be able to do this without decompiling the code.