android replace a method call at runtime
问题 I am developing an Android app with a 3rd-party library. I want to replace a method call in the library. Please note that I cannot obtain the library's source code, so that I have to change it at runtime. For example, let's assume there is doA() method in a class Foo in the library class Foo { doA() { //method body } ... } I want to replace the method body of doA() with my own code. I have done some exploration and found the following stackoverflow thread: Replacing a method call in a class