20 February 2014

apk: analysis

1) apktool ( apktool d filename.apk)

  • convert apk to human readable
    • AndroidManifest.xml    
    • .smali(class file into java byte code)
2)  dex2jar (d2j-dex2jar.sh filename.apk)
  • convert apk to standard jar file.

3) jd-gui
  • convert jar(.class) file to java code
  • (NO AndroidManifest.xml; need to use apktool)




ref:  http://blog.nviso.be/2013/06/step-by-step-analysis-of-android.html

apk: jd-gui

1) running jd-gui yield error on ubuntu 13.10
  • "error while loading shared libraries: libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory"
2) Perlu  install ia32-libs-gtk
  • sudo apt-get install ia32-libs-gtk

3) Tapi pada Ubuntu saucy 13.10, akan error
  • E: Package 'ia32-libs' has no installation candidate

4) sudo apt-get install libgtk2.0-0:i386



ref::  http://wiki.phoenixviewer.com/ia32-libs-in-ubuntu-13-10