Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Attribute "android:" was already specified for element "manifest" #3667

Closed
vmprog opened this issue Aug 14, 2024 · 4 comments
Closed

Comments

@vmprog
Copy link

vmprog commented Aug 14, 2024

Hi.
In new APK versions, I started getting FATAL Error. Help please.
As I understand it, similar problems have already been defeated before.
3233
2664

Information

  1. Apktool Version (apktool -version) -
    2.9.3

  2. Operating System (Mac, Linux, Windows) -
    Debian GNU/Linux trixie/sid

  3. APK From? (Playstore, ROM, Other) -
    Other

  4. Java Version (java --version) -
    openjdk 17.0.12 2024-07-16
    OpenJDK Runtime Environment (build 17.0.12+7-Debian-1)
    OpenJDK 64-Bit Server VM (build 17.0.12+7-Debian-1, mixed mode, sharing)

Stacktrace/Logcat

Include stacktrace here

apktool d ./base.apk -f
I: Using Apktool 2.9.3 on base.apk
I: Loading resource table...
W: Bad string block: string entry is at 43204, past end at 43204
W: Chunk header size (308), read (284). Exceeding bytes: 0x1001C0010230F003FB302005B9A0B008A280C00.
W: Bad string block: string entry is at 493460, past end at 493460
W: Bad string block: string entry is at 510948, past end at 510948
I: Decoding file-resources...
I: Loading resource table from file: /home/kl/.local/share/apktool/framework/1.apk
I: Decoding values */* XMLs...
I: Decoding AndroidManifest.xml with resources...
W: Bad string block: string entry is at 552, past end at 552
W: Could not decode attr value, using undecoded value instead: ns=, name=theme, value=0x0000001d
W: Could not decode attr value, using undecoded value instead: ns=, name=, value=0x10000008
W: Unknown chunk type at: (0x00001c34) skipping...
W: Unknown chunk type at: (0x00001c3c) skipping...
W: Unknown chunk type at: (0x00001c44) skipping...
W: Unknown chunk type at: (0x0000477c) skipping...
W: AXML hit unexpected end of file at byte: 0x477C
I: Regular manifest package...
[Fatal Error] :2:172: Attribute "android:" was already specified for element "manifest".
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. apktool
    apktool d ./base.apk -f

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

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? Yes
  3. Are you using the latest apktool version? Yes
@iBotPeaches
Copy link
Owner

Generally with an application triggering that many warnings - its pretty obfuscated. So I'm pretty happy Apktool didn't crash.

You call out the "fatal error" which is nothing more than an XML violation, but you have 10+ warnings above. What are you looking to resolve?

@vmprog
Copy link
Author

vmprog commented Aug 14, 2024

If the presence of warnings, among other things, does not allow me to build an apk, then of course I need to start with the first critical warning.

@iBotPeaches
Copy link
Owner

Honestly with an application obfuscated like that - there is no chance of assembly. The goal when an application gets that obfuscated is only disassembly in my eyes. So the warnings are expected and the only thing I believe I could focus here is looking into the fatal error.

@vmprog vmprog closed this as completed Aug 15, 2024
@vmprog
Copy link
Author

vmprog commented Aug 15, 2024

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants