Package Details: android-apktool-bin 2.12.0-1

Git Clone URL: https://aur.archlinux.org/android-apktool-bin.git (read-only, click to copy)
Package Base: android-apktool-bin
Description: A tool for reverse engineering Android .apk files
Upstream URL: https://github.com/iBotPeaches/Apktool
Licenses: Apache-2.0
Conflicts: android-apktool, android-apktool-git
Provides: android-apktool
Submitter: jnbrains
Maintainer: jnbrains (bemxio)
Last Packager: jnbrains
Votes: 6
Popularity: 0.87
First Submitted: 2023-08-04 10:16 (UTC)
Last Updated: 2025-07-07 06:02 (UTC)

Dependencies (1)

Required by (5)

Sources (2)

Latest Comments

jnbrains commented on 2025-07-10 17:10 (UTC) (edited on 2025-07-10 17:10 (UTC) by jnbrains)

Hi, cookiengineer.
Firstly, I'm not the author of the script; it is taken as is.
But if you review it a bit more carefully, you'll see the author provided some flexibility regarding the java params - the -Jxxx option.
So, you can set your desired value as
apktool -JXmx2G
Yet... Hardcoding a value should be only a fallback if not set beforehand. I'd probably would've approached it as
: "${javaOpts:=-Xmx2G}"

cookiengineer commented on 2025-07-10 16:26 (UTC)

The default /usr/bin/apktool wrapper script provided by this package overrides the java options by default.

If you get a "java.lang.OutOfMemoryError: Java heap space" error, you need to modify the "javaOpts" variable that is set in that file, and replace it with something that has more memory.

In my case most apk files actually need around 2G memory to not throw this error, so you need to change "javaOpts" to "-Xmx2G".

jnbrains commented on 2024-06-13 17:05 (UTC)

As the suffix (-bin) implies - this is the end binary (compiled by the author of the tool), while the 'android-apktool' package downloads the source and compiles it on your box. This packages is just a 'shortcut' if you don't want to spend time and resources installing the necessary dev packages and then compiling it locally. Or you have a low end box and just takes forever to build :) If in doubt - prefer building from source. Cheers

Mitmischer commented on 2024-06-13 16:51 (UTC)

What is the difference between this and android-apktool?