Apktool icon indicating copy to clipboard operation
Apktool copied to clipboard

AndroidManifest.xml.orig: Operation not permitted in Apktool

Open ghost1372 opened this issue 3 years ago • 0 comments

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

  1. Apktool Version (apktool -version) - 2.6.1
  2. Operating System (Mac, Linux, Windows) - Windows (WSL Kali Linux)
  3. APK From? (Playstore, ROM, Other) - Other

Stacktrace/Logcat

Include stacktrace here

Steps to Reproduce

  1. 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

  1. Have you tried apktool d, apktool b without changing anything? Yes
  2. If you are trying to install a modified apk, did you resign it?
  3. Are you using the latest apktool version? Yes

ghost1372 avatar Sep 09 '22 15:09 ghost1372