smali
smali copied to clipboard
Can't set breakpoint on latest Intellij IDEA
Adding breakpoint for smali file is not working on Intellij IDEA 2019.3
you should regist File Types
to associate *.smali
file in idea
File -> Settings -> Editor -> File Types
see [link]https://medium.com/@ghxst.dev/static-analysis-and-debugging-on-android-using-smalidea-jdwp-and-adb-b073e6b9ae48
Thanks. I'll check
@infahash @youngerier Test passed android studio 4.0.1
Hi, I faced same issue, breakpoints not working.
I used baksmali-2.4.0.jar d someapp.apk
, the someapp.apk is multidex and I noticed backsmali just translated first dex file to smali.
However after that I opened the translated parts using Smalidea v0.05 and Android studio v3.5.3 and start debugging, but breakpoints didn't work.
1)Why adding breakpoints for that part of code doesn't work?
2)How can I do backsmali for all the dex files of a mutidex app?
Hi, I faced same issue, breakpoints not working. I used
baksmali-2.4.0.jar d someapp.apk
, the someapp.apk is multidex and I noticed backsmali just translated first dex file to smali. However after that I opened the translated parts using Smalidea v0.05 and Android studio v3.5.3 and start debugging, but breakpoints didn't work. 1)Why adding breakpoints for that part of code doesn't work? 2)How can I do backsmali for all the dex files of a mutidex app?
Ok I found the answers :D I will share for anyone else with same issue:
The issue reason was maybe because I just tried to debug 1 dex file of the app. I thought it's not the case because each dex has complete functionality, but it's seems my thought is wrong (I dunno why, somebody please explain).
Anyway after extract all dex files from app and baksmaling all of them separately in one destination file (like java -jar baksmali-2.4.0.jar d classes(X) -o desPath
) and start debugging again, all went well this time.