Android.bp: Add dependency for Nullable

Test: m
Change-Id: If12a800e78e7508a74566208ab15f458ec2635d3
1 file changed
tree: 4351144bc9442c69b3ea7e53aa2a60f3131a0562
  1. baksmali/
  2. deodexerant/
  3. dexlib2/
  4. examples/
  5. gradle/
  6. scripts/
  7. smali/
  8. smali-integration-tests/
  9. third_party/
  10. util/
  11. .gitignore
  12. Android.bp
  14. build.gradle
  17. gradlew
  18. gradlew.bat
  20. OWNERS
  22. settings.gradle


smali/baksmali is an assembler/disassembler for the dex format used by dalvik, Android‘s Java VM implementation. The syntax is loosely based on Jasmin’s/dedexer's syntax, and supports the full functionality of the dex format (annotations, debug info, line info, etc.)

NOTE: This is a fork of for patches needed by Google as the original repository is currently not maintained. After forking the namespace was changed from org.jf to The artifacts are released on Google Maven under the following coordinates:

After the fork the first version released was 3.0.0, which was version 2.5.2 from the original repo with a few patches and the namespace change.


Some useful links for getting started with smali


./gradlew assemble

Command Line Version

To run the smali and baksmali tools from the command line build the fat jars. The fat jars will be named with the current version followed by the first 8 characters of the current git hash followed by an optional -dirty if the repository was dirty when building and ending in -fat . The fat jar can be invoked with java -jar.

./gradlew smali:fatJar
java -jar smali/build/libs/smali-x.y.z-aaaaaaaa-dirty-fat.jar


To execute all tests run

./gradlew test

Testing Maven Release

Push a release version to your local maven repository (add -Dmaven.repo.local=<dir> to override the default local maven repository location)

./gradlew release publishToMavenLocal

Prepare and build a release version

To prepare a release update build.gradle with the next release version and commit that. Then create a tag for that commit with the version.

git tag <version> <commit>
git push origin <version>

Release versions can then be built by the Google R8 team using:

tools/ --smali=<version> --release

in the R8 repository.

The status of the build on the bot is at

Releasing versions on Google Maven