Looking at an existing Android app, I have the full source, I’m wondering how to determine which Adapter handles events from the UI for a particular screen in the running app.
There are a number of layout (XML) files, and a fistful (dramatically lower number) of Adapters. Guessing, grepping and setting debug points have not lead me to the Adapter in question thus far. (Frankly I’m unsure I can even find the correct layout file for the screen I’m trying to work on!)
I’m very familiar with Web development and PHP and given an app, have a plethora of methods to find my way into the ‘controller’ code. Also know Java fairly well, and have been making mods to the app so far, but stuck now… Can someone throw me pointers on reverse engineering an Android app?
last time i did this was a year ago, when Android security sucked (and not a lot of proguard), so i used an eclipse decompiler and dex2jar. Actually i’m surprised – how were you able to get the full code?
the benefit of using eclipse is that you can backtrace callers to function.
the thing is – i don’t think you’re after the adapter. if the screen is a list, you’re actually after the
ListView(which contains the adapter). maybe the adapter might even contain a reference to the listview itself. so, try to find the view and not the adapterif it’s a listView then, actually, look for something named “xxxx_row.xml” something with the word “row” in it, because that’s the standard convention for listview views.