Android Studio动态调试Smali

网上的教程坑太多,记录一下

下载地址

https://bitbucket.org/JesusFreke/smali/downloads

Android Studio安装smalidea插件

java -jar baksmali-2.1.1.jar crackme.apk -o src/debug

adb install crackme.apk

adb shell am start -D -n me .sweetll.me.crackme/.MainActivity 调试apk

adb shell ps 找到对应进程的pid

adb forward tcp:8700 jwdp:{{pid}}

Project Structure 设置jdk为openjdk 1.8

Edit Configurations设置端口为8700

Run->Debug

你可能感兴趣的:(Android,Studio,android,studio,调试,smali)