> ## 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.2.1 Released
- URL: https://connortumbleson.com/2016/10/18/apktool-v2-2-1-released/
- Published: 2016-10-18T13:21:13.000Z
- Updated: 2018-08-22T01:19:24.000Z
- Author: Connor Tumbleson
- Tags: Apktool

![](https://connortumbleson.com/content/images/2016/10/apktool_221.png)

Apktool v2.2.1 has been released! This is a compatibility release for Android Nougat, in addition to bringing support for wiping the framework directory.

Android Nougat brought three interesting things.

1. `aapt2`. The 2nd iteration (rewrite) of the aapt binary. We leverage `aapt` a lot during the build procedure. The choice of whether moving to `aapt2` will be a requirement or not is still being researched.
2. [Signature Scheme v2](https://source.android.com/security/apksigning/index.html?ref=connortumbleson.com). Nougat also launched a new signing mechanism vs the old JAR signing which was easily breakable. This means modifying applications that use the v2 signature and retaining the original signature is no longer possible. This invalidates the `-c` option.
3. Moving to `64bit` binaries for `aapt`. This excludes the need for `ia32-libs`. I don't think anyone is running 32 bit systems anymore, but noted anyway.

An additional command was added to help clear framework files. As frameworks moved locations in [v2.2.0](https://connortumbleson.com/2016/08/07/apktool-v2-2-0-released/) the ability to find them in the file system became more difficult. While the move was for a good reason (to prevent cluttering `$HOME`), it made management of the frameworks difficult. The command `apktool empty-framework-dir` will dump all framework files. The full usage can be seen below.

```
usage: apktool [-q|--quiet OR -v|--verbose] empty-framework-dir [options]
 -f,--force              Force delete destination directory.
 -p,--frame-path <dir>   Stores framework files into <dir>.

```

This release had 15 commits by 4 people.

- Connor Tumbleson (iBotPeaches) - 12 commits
- amorris13 - 1 commit
- benjamin-promon - 1 commit
- jamestut - 1 commit

# Changes since v2.2.0

- \[[#1223](https://github.com/iBotPeaches/Apktool/issues/1223?ref=connortumbleson.com)\] **Android Nougat - 7.0 Support**
- \[[#1243](https://github.com/iBotPeaches/Apktool/issues/1243?ref=connortumbleson.com)\] Fixed issue with missing attributes (using Android Nougat Final Preview Sdk).
- \[[#1317](https://github.com/iBotPeaches/Apktool/issues/1317?ref=connortumbleson.com)\] Fixed issue with new value type 8 - `TYPE_DYNAMIC_ATTRIBUTE`.
- \[[#1324](https://github.com/iBotPeaches/Apktool/pull/1324?ref=connortumbleson.com)\] Gracefully handle APKs with additional data after `TYPE` chunks. (Thanks jamestut)
- \[[#1313](https://github.com/iBotPeaches/Apktool/pull/1313?ref=connortumbleson.com)\] Pass `minSdkVersion` to smali to correctly trigger edge cases where proper API needs to set. (Thanks benjamin-promon)
- \[[#901](https://github.com/iBotPeaches/Apktool/issues/901?ref=connortumbleson.com)\] Added `empty-framework-dir` command to cleanup framework directory to ease upgrades.
- \[[#1332](https://github.com/iBotPeaches/Apktool/issues/1332?ref=connortumbleson.com)\] Handle applications that trick apktool with unknown header type. (Thanks xpirt)

## Notes

With the talk of Android 7.1 quickly approaching, version 2.2.2 will follow with bug fixes and compatibility.

# Download

- [Apktool 2.2.1](https://bitbucket.org/iBotPeaches/apktool/downloads/apktool%5F2.2.1.jar?ref=connortumbleson.com) \- md5 `27910ecab00fd4cd249cf1e10744b37c`  
  - Rename to `apktool.jar` and follow the [Instruction Guide](http://ibotpeaches.github.io/Apktool/install/?ref=connortumbleson.com) if you need help.

## Links

- [Project Site](http://ibotpeaches.github.io/Apktool/?ref=connortumbleson.com)
- [Github](https://github.com/iBotPeaches/Apktool?ref=connortumbleson.com)
- [Bug Tracker](https://github.com/iBotPeaches/Apktool/issues?ref=connortumbleson.com)
- [Gitter Chat](https://gitter.im/iBotPeaches/Apktool?ref=connortumbleson.com)
- [XDA Thread](http://forum.xda-developers.com/showthread.php?t=1755243&ref=connortumbleson.com)