Apktool
Apktool copied to clipboard
AndroidManifest.xml.orig: Operation not permitted in Apktool
I want to edit an APK file, for this purpose I use the following command in Linux (Kali):
apktool d ed28.apk
and result is:
I: Using Apktool 2.6.1-dirty on ed28.apk I: Loading resource table...
I: Decoding AndroidManifest.xml with resources... I: Loading resource
table from file: /home/mahdi/.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...
After editing one of the smalli files, i want to recompile it again, so i used this command:
apktool b -d -f ed28
but i get this error:
I: Using Apktool 2.6.1-dirty I: Smaling smali folder into classes.dex... ed28/AndroidManifest.xml.orig: Operation not permitted
I tried this too and the result was the same
apktool b -d -f ed28 --use-aapt2
Information
- Apktool Version (
apktool -version) - 2.6.1 - Operating System (Mac, Linux, Windows) - Windows (WSL Kali Linux)
- APK From? (Playstore, ROM, Other) - Other
Stacktrace/Logcat
Include stacktrace here
Steps to Reproduce
apktool
Frameworks
If this APK is from an OEM ROM (Samsung, HTC, LG). Please attach framework files
(.apks that live in /system/framework or /system/priv-app)
APK
If this APK can be freely shared, please upload/attach a link to it.
https://www.apkmirror.com/apk/samsung-electronics-co-ltd/edgelighting/
Questions to ask before submission
- Have you tried
apktool d,apktool bwithout changing anything? Yes - If you are trying to install a modified apk, did you resign it?
- Are you using the latest apktool version? Yes