Skip to content

A tool to compare two APK files at the dex level. Useful for checking the impact of things like fullMode and dex optimisations.

Notifications You must be signed in to change notification settings

theapache64/dex-diff

Repository files navigation

dex-diff

latestVersion Twitter: theapache64

A tool to compare two APK files at the dex level. Useful for checking the impact of things like fullMode and dex optimisations.

⌨️ Install

sudo npm install -g dex-diff

✨ Usage

dex-diff before.apk after.apk [com.my.app.packageName]

🤖 Example

❯ ls
with-fullmode.apk    without-fullmode.apk

❯ dex-diff without-fullmode.apk with-fullmode.apk com.example.flowobjectrepro
⚔️ dex-diff v0.1.1
🚀 Initialising...
➡️ Deleting old results (dex-diff-result)...
✅ Deleted old results
➡️ Decompiling before APK... (this may take some time)
✅ Decompiling before APK finished
➡️ Decompiling after APK... (this may take some time)
✅ Decompiling after APK finished
✅ Decompile finished (6645ms)
➡️ Comparing before and after... (this may take some time)
✅ Comparing finished (2030ms)
➡️ Making report...
✅ Report ready (10.66s) -> file:///../dex-diff-result/report.html 

💻 Output

Summary image

App files' addition, deletion, and removals image

Libary files' addition, deletion, and removals image

Framework files' addition, deletion, and removals image

Change view image

✍️ Author

👤 theapache64

Feel free to ping me 😉

🤝 Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Open an issue first to discuss what you would like to change.
  2. Fork the Project
  3. Create your feature branch (git checkout -b feature/amazing-feature)
  4. Commit your changes (git commit -m 'Add some amazing feature')
  5. Push to the branch (git push origin feature/amazing-feature)
  6. Open a pull request

Please make sure to update tests as appropriate.

❤ Show your support

Give a ⭐️ if this project helped you!

Patron Link Buy Me A Coffee

📝 License

Copyright © 2024 - theapache64

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

This README was generated by readgen

About

A tool to compare two APK files at the dex level. Useful for checking the impact of things like fullMode and dex optimisations.

Topics

Resources

Stars

Watchers

Forks