Root@kali:~# apktool b /root/original I: Using Apktool 2.4.1
I: Checking whether sources has changed...
[Fatal Error] :1:1: Content is not allowed in prolog.
I: Checking whether resources has changed...
I: Building resources...
brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 2): [/tmp/brut_util_Jar_16302614773745251850.tmp, p, --forced-package-id, 127, --min-sdk-version, 17, --target-sdk-version, 24, --version-code, 871010500, --version-name,
1.1.5.0, --no-version-vectors, -F, /tmp/APKTOOL14492683044032364045.tmp, -e, /tmp/APKTOOL16103953040338650011.tmp, -0, arsc, -I, /root/.local/share/apktool/framework/1.apk, -S, /root/original/res, -M, /root/original/AndroidManifest.xml]
W: /tmp/brut_util_Jar_16302614773745251850.tmp: 1: ELF: not found
W: /tmp/brut_util_Jar_16302614773745251850.tmp: 1: Syntax error: end of file unexpected (expecting ")")