Skip to content

[BUG] AndroidManifest.xml is missing attributes when decoding apk #2981

@HeyItsMedz

Description

@HeyItsMedz

Information

  1. Apktool Version (apktool -version) - 2.7.0
  2. Operating System (Mac, Linux, Windows) - macOS Monterey 12.0.1
  3. APK From? (Playstore, ROM, Other) - https://m.apkpure.com/all-4-watch-live-on-demand/com.channel4.ondemand/download

Stacktrace/Logcat

I: Using Apktool 2.7.0 on All4.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: /Users/Mehdi/Library/apktool/framework/1.apk
I: Regular manifest package...
[Fatal Error] :4:22: Element type "uses-permission" must be followed by either attribute specifications, ">" or "/>".
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Baksmaling classes.dex...
I: Baksmaling classes2.dex...
I: Baksmaling classes3.dex...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...
I: Copying META-INF/services directory

Steps to Reproduce

  1. Download All 4 app from APKPure or any other source (https://m.apkpure.com/all-4-watch-live-on-demand/com.channel4.ondemand/download)
  2. Rename apk to All4.apk for ease
  3. Run java -jar apktool_2.7.0.jar decode All4.apk -o All4-decoded -only-main-classes
  4. Open decoded folder and open AndroidManifest.xml
  5. Observe that attributes are missing from certain tags

Screenshot 2023-01-18 at 16 06 45

Frameworks

N/A

APK

https://m.apkpure.com/all-4-watch-live-on-demand/com.channel4.ondemand/download

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? N/A - Not an installation issue
  3. Are you using the latest apktool version? - Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions