######First. Connect your device(root) to your PC:
adb root
adb shell
ls /data/app // get the com.xxx.apk name
######Second. Open another terminal and start:
./apk.sh com.xxx.apk // it will generate the folder 'com.xxx', the smali codes in it
######Third New a JavaSE Porject, unchecked 'Use default location', reference to folder 'com.xxx'. This step is for debug and pack/repack apk.
######Fourth
- Set some breakpoints
- Close your origin project (the apk's project if you have / or if needed)
- In Debug Configuration, select Remote Java Application, set Remote Port
######Fifth Hit 'enter' in apk.sh, in Eclipse Debug Configuration, then hit Debug button
######Additional
./apk.sh -P com.xxx // this for repack apk to debug, then redo 'Third' to 'Fifth' steps
######First. Extract you com.xxx.apk file, use Jeb to open the classes.dex
######Second. Use jeb to rename the classes, variables, functions . The following is for extract and search .
./jeb.sh ./com.xxx.xxx/classes.dex.jdb // extract
./jeb.sh -f ./com.xxx.xxx/classes.dex.jdb "Callback_s" // search the function, class, variaable name