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]Unexpected container offset in header #3725

Open
rashpel77 opened this issue Nov 12, 2024 · 3 comments
Open

[BUG]Unexpected container offset in header #3725

rashpel77 opened this issue Nov 12, 2024 · 3 comments

Comments

@rashpel77
Copy link

Information

  1. Apktool Version (apktool -version) - 2.10.1_20241110
  2. Operating System (Mac, Linux, Windows) - Windows 11
  3. APK From? (Playstore, ROM, Other) - ROM
  4. Java Version (java --version) - 21.0.2.0

Stacktrace/Logcat

"Exception in thread "main" java.lang.RuntimeException: java.util.concurrent.ExecutionException: com.android.tools.smali.dexlib2.util.DexUtil$InvalidFile: Unexpected container offset in header
at brut.androlib.ApkDecoder.decode(SourceFile:0)
at brut.apktool.Main.main(SourceFile:0)
Caused by: java.util.concurrent.ExecutionException: com.android.tools.smali.dexlib2.util.DexUtil$InvalidFile: Unexpected container offset in header
at java.base/java.util.concurrent.FutureTask.report(FutureTask.java:122)
at java.base/java.util.concurrent.FutureTask.get(FutureTask.java:191)
... 2 more"

Steps to Reproduce

  1. apktool --use-aapt1 -b -p
  2. apktool --use-aapt1 -d -p

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://cloud.mail.ru/public/WVtg/vofudoRVp

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
@iBotPeaches
Copy link
Owner

Well thats odd. Mind opening upstream with smali? https://github.com/google/smali

@rashpel77
Copy link
Author

After parsing the application again, this error occurs. Everything comes together the first time. An error occurs if you edit smali. But apktool 2.93 coped with all the tasks.

@iBotPeaches
Copy link
Owner

Yes why I asked to upstream to smali. We upgraded smali between 2.10 and 2.9 which may be related.

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

No branches or pull requests

2 participants