> ## Content Index
> Fetch the complete content index at: https://connortumbleson.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# Apktool v2.8.1 Released
- URL: https://connortumbleson.com/2023/07/22/apktool-v2-8-1-released/
- Published: 2023-07-22T17:45:02.000Z
- Updated: 2025-02-04T11:42:33.000Z
- Description: Apktool v2.8.1 has been released as a quick patch release to cover some recent regressions from the last release.
- Author: Connor Tumbleson
- Tags: Apktool

![](https://connortumbleson.com/content/images/2023/07/2.8.1.png)

Apktool v2.8.1 has been released! This release has been quickly released to cover some immediate regressions from v2.8.0 as well as patching a new LTS Java feature that affected parsing malformed zip headers.

A part of me expected that refactoring \~50% of the codebase would lead to some regressions, but not the ones or quantity we had. 

Turns out we had no test coverage for the exact format of the `apktool.yml` meta file. Since the test suite decodes and assembles - they were generating a `apktool.yml` on the fly. So the only way this regression was noticed if you were using older `apktool.yml` files against the newest release. We do have [tests](https://github.com/iBotPeaches/Apktool/commit/ca07a0a56cd0ce3418151c8ddc296625f7200026?ref=connortumbleson.com) now to prevent this from happening again.

Next we had wide spread build failures on JDK 11 & 17 shortly after the release of v2.8.0 which became apparent with this crash.

```
java.util.zip.ZipException: Invalid CEN header (invalid zip64 extra data field size)
```

Turns out thanks to the research by [evowizz](https://github.com/iBotPeaches/Apktool/issues/3174?ref=connortumbleson.com#issuecomment-1642697602) \- a recent Java update affected some types of applications.

> Improved ZIP64 Extra Field Validation (JDK-8302483 (not public))

> java.util.zip.ZipFile has been updated to provide additional validation of ZIP64 extra fields when opening a ZIP file. This validation may be disabled by setting the system property `jdk.util.zip.disableZip64ExtraFieldValidation` to true.

So we set some system properties to opt out of this protection.

---

**This release had 17 commits by 4 people and 1 robot**

- Connor Tumbleson (iBotPeaches) - 11 commits
- Igor Eisberg - 3 commits
- ArjunaKumarMohanta - 1 commit
- Dependabot (BOT) - 1 commit
- sv99 - 1 commit

---

# Changes since 2.8.0

- \[[#3177](https://github.com/iBotPeaches/Apktool/pull/3177?ref=connortumbleson.com)\] Add JDK 20 to test suite.
- \[[#3179](https://github.com/iBotPeaches/Apktool/pull/3179?ref=connortumbleson.com)\] Add `run` command for Gradle inline execution. (Thanks sv99)
- Fix links on usage output for new smali & apktool links.
- \[[#3165](https://github.com/iBotPeaches/Apktool/issues/3165?ref=connortumbleson.com)\] Fix Windows issue copying files that resolved to an empty filename.
- \[[#3170](https://github.com/iBotPeaches/Apktool/issues/3170?ref=connortumbleson.com), [#3174](https://github.com/iBotPeaches/Apktool/issues/3174?ref=connortumbleson.com)\] Fix Java restriction with ZIP64 extra field validation.
- \[[#3169](https://github.com/iBotPeaches/Apktool/issues/3169?ref=connortumbleson.com)\] Fix regression on `apktool.yml` property names.
- \[[#3182](https://github.com/iBotPeaches/Apktool/pull/3182?ref=connortumbleson.com)\] Fix regression on `minSdkVersion` value being blown out before setting into `apktool.yml`.
- \[[#3181](https://github.com/iBotPeaches/Apktool/issues/31810?ref=connortumbleson.com)\] Fix regression on inefficient reading of framework files during attribute parsing.
- \[[#3193](https://github.com/iBotPeaches/Apktool/pull/3193?ref=connortumbleson.com)\] Fix regression on decoding framework file with a tag. (Thanks IgorEisberg)
- \[[#3188](https://github.com/iBotPeaches/Apktool/pull/3188?ref=connortumbleson.com)\] Refactor descriptions on commands. (Thanks IgorEisberg)
- \[[#3151](https://github.com/iBotPeaches/Apktool/pull/3151?ref=connortumbleson.com)\] Upgrade `gradle/gradle-build-action` to `2.6.0`
- \[[#3141](https://github.com/iBotPeaches/Apktool/pull/3141?ref=connortumbleson.com)\] Upgrade to Gradle 8.2.1\. (Thanks ArjunaKumarMohanta)

## Notes

- Applications are becoming more and more difficult to build with aapt1, using the `--use-aapt2` flag during rebuild is a good test.

## Download

[Download Apktool 2.8.1](https://bitbucket.org/iBotPeaches/apktool/downloads/apktool%5F2.8.1.jar?ref=connortumbleson.com)

- [Apktool 2.8.1](https://bitbucket.org/iBotPeaches/apktool/downloads/apktool%5F2.8.1.jar?ref=connortumbleson.com)  
  - `c186ee0c87dbf197456cc010aeba99da` (md5)
  - `7b4a8e1703e228d206db29644b71141687d8a111b55b039b08b02dfa443ab0f9` (sha256)
  - Rename to `apktool.jar` and follow the [Instruction Guide](https://apktool.org/docs/install?ref=connortumbleson.com) if you need help.
- [2.8.1 Release Post](https://apktool.org/blog/apktool-2.8.1?ref=connortumbleson.com)

## Links

- [Project Site](https://apktool.org/?ref=connortumbleson.com)
- [GitHub](https://github.com/iBotPeaches/Apktool?ref=connortumbleson.com)
- [Bug Tracker](https://github.com/iBotPeaches/Apktool/issues?ref=connortumbleson.com)
- [XDA Thread](https://forum.xda-developers.com/showthread.php?t=1755243&ref=connortumbleson.com)
- [Buy me a ~~Coffee~~ Beer](https://www.buymeacoffee.com/iBotPeaches?ref=connortumbleson.com)