Система: Linux kali 5.4.83-Re4son-v8l на 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)
Ошибка:
Код:
kali@kali:~$ 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...
kali@kali:~$ 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
kali@kali:~$
Перерыл все ресурсы. Перечитал все похожие темы на stackoverflow. Перепробовал все варианты:
- apktool empty-framework-dir
- пробовал разные версии Apktool
- use aapt2
Прошу направить на истинный путь пока окончательно крышв не поехала!
P.s.
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'