Hax4us / Apkmod

Apkmod can decompile, recompile, sign APK, and bind the payload with any legit APP
GNU General Public License v3.0
708 stars 94 forks source link

Error during enabling permissions #134

Open Samyboii2 opened 2 years ago

Samyboii2 commented 2 years ago

$ apkmod -a --enable-perm=ser.apk -o done.apk [] Decompiling /storage/emulated/0/Download/ser.apk Destination directory (/data/data/com.termux/files/usr/tmp/tmp.saMF5okN8N) already exists. Use -f switch if you want to overwrite it. [] Decompiled into /data/data/com.termux/files/usr/tmp/tmp.saMF5okN8N sed: can't read /data/data/com.termux/files/usr/tmp/tmp.saMF5okN8N/apktool.yml: No such file or directory sed: can't read /data/data/com.termux/files/usr/tmp/tmp.saMF5okN8N/apktool.yml: No such file or directory [*] Recompiling /data/data/com.termux/files/usr/tmp/tmp.saMF5okN8N I: Using Apktool 2.5.0 brut.directory.PathNotExist: apktool.yml [!] Try again with -a option But if still can't recompile, take screenshot and open a issue on github

Hax4us commented 2 years ago

Post output of termux-info and give app also

Samyboii2 commented 2 years ago

Post output of termux-info and give app also

ux-info Packages CPU architecture: aarch64 Subscribed repositories:

sources.list

deb https://termux.librehat.com/apt/termux-main/ stable main

sources.list.d/termuxblack.list

deb https://hax4us.github.io/TermuxBlack/ termuxblack main

sources.list.d/gushmazuko.list

deb https://github.com/gushmazuko/metasploit_in_termux/raw/master gushmazuko main Updatable packages: autoconf/stable 2.71-1 all [upgradable from: 2.71] proot-distro/stable 2.3.0 all [upgradable from: 2.1.1] proot/stable 5.1.107-42 aarch64 [upgradable from: 5.1.107-41] Android version: 8.1.0 Kernel build information: Linux localhost 4.9.77+ #1 SMP PREEMPT Sat Feb 27 21:02:00 CST 2021 aarch64 Android Device manufacturer: vivo Device model: vivo 1808 $

What should i do next?

OussamaTBN commented 2 years ago

Same issue.

OussamaTBN commented 2 years ago

I think because apkmod cannot access /tmp directory because the tool is decompiling the apk file in tmp directory