V
V
Vegzuz2021-08-02 19:07:15
Raspberry Pi
Vegzuz, 2021-08-02 19:07:15

Apktool - compilation error after decompilation?

System: Linux kali 5.4.83-Re4son-v8l on Raspberry Pi4
Apktool v2.5.0
openjdk version "11.0.11" 2021-04-20
OpenJDK Runtime Environment (build 11.0.11+9-post-Debian-1)
OpenJDK 64- Bit Server VM (build 11.0.11+9-post-Debian-1, mixed mode)

Error:

Код:
[email protected]:~$ sudo apktool d base.apk
I: Using Apktool 2.5.0 on base.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: /root/.local/share/apktool/framework/1.apk
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Baksmaling classes.dex...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...
[email protected]:~$ sudo apktool b base
I: Using Apktool 2.5.0
I: Checking whether sources has changed...
I: Smaling smali folder into classes.dex...
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_75360084907195806465914733483280765632.tmp, p, --forced-package-id, 127, --min-sdk-version, 21, --target-sdk-version, 29, --version-code, 26000005, --version-name, 26.5, --no-version-vectors, -F, /tmp/APKTOOL5867638423269440609.tmp, -e, /tmp/APKTOOL6984013494315319055.tmp, -0, arsc, -I, /root/.local/share/apktool/framework/1.apk, -S, /home/kali/base/res, -M, /home/kali/base/AndroidManifest.xml]
W: /tmp/brut_util_Jar_75360084907195806465914733483280765632.tmp: 1: ELF: not found
W: /tmp/brut_util_Jar_75360084907195806465914733483280765632.tmp: 1: Syntax error: "&" unexpected
[email protected]:~$

Rummaged through all the resources. I read all similar topics on stackoverflow. I tried all the options:
- apktool empty-framework-dir
- tried different versions of Apktool
- use aapt2
Please direct me to the true path until the roof finally goes!
PS
sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0 lib32stdc++6
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package lib32z1
E: Unable to locate package lib32ncurses5
E: Unable to locate package lib32bz2-1.0
E: Couldn't find any package by glob 'lib32bz2-1.0'
E: Couldn't find any package by regex 'lib32bz2-1.0'
E: Unable to locate package lib32stdc++6
E: Couldn't find any package by regex 'lib32stdc++6'

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vegzuz, 2021-08-02
@Vegzuz

there is a suspicion that apktool does not work correctly on ARM architecture

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question