Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
It is currently in "alpha" release, and is in active development.
- 2016-02-27 - v0.03 is out. This is mostly a stability/bug fix release, with no significant new functionality.
- Syntax Highlighting/Syntax Errors
- Bytecode level debugging
- Instruction level single stepping
- Adding watches for arbitrary (non-named) registers
- Full java-style expression support in locals window, etc. while debugging
- Go to Definition
- Find Usages
- Referencing smali classes from java code (except it can't actually be compiled, yet)
- Issue reporting - easily create a new github issue from the error dialog
- Auto-complete (instruction names, class/method/field references, etc.)
- Compile support for smali-only projects
- Robust error detection (e.g. full bytecode verification)
- Smoother project import process
- Automatic detection of source directory
- Choosing sdk
- Wizard for importing an apk as a new project
- "Smali Class" entry in "New..." context menu
- Show all registers with a value in "locals" pane
- Ability to set the value of a register in "watch" pane
- Compile support for mixed smali+java projects
- "Introduce new register" intention
- Import (and deodex) device framework as new module (or new sdk??)
- Expose register type analysis data
- Show the expected type of a register at any point
- Find locations where the register's value could have been set
- Download the latest smalidea zip file from the Bitbucket download page
- In IDEA/AS, go to Settings->Plugins and click the "Install plugin from disk" button, selecting the downloaded smalidea zip file
- Click "Apply" and restart IDEA/AS
Debugging an application
Note: Single-instruction stepping is only supported in IDEA 14.1 and greater, and any future version of Android Studio based on IDEA 14.1 or greater. In earlier versions, attempting to single step will step to the next .line directive, instead of stepping to the next instruction.
- Manually disassemble an application using baksmali into a "src" subdirectory of a new project directory, e.g.
baksmali d myapp.apk -o ~/projects/myapp/src
- In IDEA, import a new project, and select the project directory. e.g.
- Use the "Create project from existing sources" option when importing the project
- Once the project has been created, right click on the src directory and select "Mark Directory As->Sources Root"
- Open the project settings and select/create an appropriate JDK
- Install/start the application on the device
- Run ddms, and select the application's process
- In IDEA, Create a new "Remote" debug configuration (Run->Edit Configurations), and change the debug port to 8700
- The application should pause if/when the breakpoint is hit, at which point you can single step, add watches, etc.