Originally Posted by eureka
, in thread about kindlepdfviewer
there was a discussion about KPVBooklet, relying on some stock Amazon Java classes. It searches required method
in class by it's signature, so it can resist to obfuscation. Maybe this way will be suitable for some of your patches.
Interesting idea, but it can only be applied in very specific circumstances. It's not suitable for patching classes - even if the method to be patched could be unambiguously identified (the approach only works for them because there is only one method with the given signature in the class), simply going ahead and modifying bytecode that has not been manually examined is a lot like playing russian roulette.
BTW, I am already using something (roughly) similar here