• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!
  • Fill out your device list and let everyone know which phones you have!    Edit Your Device Inventory

[Q] Find and hook obfuscated onStop method

Search This thread

SnZ

Senior Member
Aug 14, 2011
359
45
Hi,

App I was modding started to use proguard/obfuscate it's methods. Currently methods like:
  • onCreate
  • onResume
  • onDestroy
  • onStop

looks as follows:
  • d
  • r
  • f
  • g

Problem lies in dynamic hooking. I don't want to search for x/y/z method every release of new version.

I can pretty easily loop through class.getDeclaredMethods and find onCreate because it have "Bundle paramBundle" as argument. I don't have single idea about finding the rest of the methods, where onDestroy is my target (during on destroy I need to find obsfucated boolean var and change it to true - different case).

Thanks in advance.