[Android-tools-devel] Bug#969454: apktool: unable to rebuild Trebuchet

sergio sergio+it at outerface.net
Thu Sep 3 09:07:01 BST 2020


Package: apktool
Version: 2.4.1-1
Severity: normal

Dear Maintainer,

1. Original apktool_2.4.1.jar from bitbucket / github works fine.

2. Debian version is broken:


% apktool d TrebuchetQuickStep.apk -o baz
% apktool b baz -o baz.apt

I: Using Apktool 2.4.1-dirty
I: Checking whether sources has changed...
I: Smaling smali folder into classes.dex...
I: Checking whether sources has changed...
I: Smaling smali_classes3 folder into classes3.dex...
I: Checking whether sources has changed...
I: Smaling smali_classes2 folder into classes2.dex...
I: Checking whether resources has changed...
I: Building resources...
W: aapt: brut.common.BrutException: brut.common.BrutException: Could not extract resource: /prebuilt/linux/aapt_64 (defaulting to $PATH binary)
W: res/drawable/$avd_hidden_lock__0.xml: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable/$avd_hidden_lock__1.xml: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable/$avd_hidden_lock__2.xml: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable/$avd_hidden_unlock__0.xml: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable/$avd_hidden_unlock__1.xml: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable/$avd_hidden_unlock__2.xml: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable/$avd_hide_password__0.xml: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable/$avd_hide_password__1.xml: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable/$avd_hide_password__2.xml: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable/$avd_protected_lock__0.xml: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable/$avd_protected_lock__1.xml: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable/$avd_protected_unlock__0.xml: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable/$avd_protected_unlock__1.xml: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable/$avd_show_password__0.xml: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable/$avd_show_password__1.xml: Invalid file name: must contain only [a-z0-9_.]
W: res/drawable/$avd_show_password__2.xml: Invalid file name: must contain only [a-z0-9_.]
brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [aapt, p, --min-sdk-version, 29, --target-sdk-version, 29, --version-code, 29, --version-name, 10, --no-version-vectors, -F, /tmp/APKTOOL14555950087481931025.tmp, -0, classes.dex, -0, resources.arsc, -0, png, -0, arsc, -I, /home/sergio/.local/share/apktool/framework/1.apk, -S, /tmp/t/baz/res, -M, /tmp/t/baz/AndroidManifest.xml]
zsh: exit 1     apktool b baz -o baz.apt


LineageOS 17.1 /system/product/priv-app/TrebuchetQuickStep/TrebuchetQuickStep.apk
https://sergio.outerface.net/misc/TrebuchetQuickStep.apk

-- System Information:
Debian Release: bullseye/sid
  APT prefers unstable
  APT policy: (800, 'unstable'), (200, 'experimental')
Architecture: amd64 (x86_64)



More information about the Android-tools-devel mailing list