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] Case-sensitivity issues on Windows #2697

Closed
jpstotz opened this issue Nov 21, 2021 · 2 comments
Closed

[BUG] Case-sensitivity issues on Windows #2697

jpstotz opened this issue Nov 21, 2021 · 2 comments

Comments

@jpstotz
Copy link

jpstotz commented Nov 21, 2021

Information

  • Apktool Version 2.6.0 -
  • Operating System Windows 10 64bit native (no WSL) -
    • Java: Eclipse Adoptium OpenJDK 11

Steps to Reproduce

  • apktool d --no-res --no-src <apk-filename>
  • Alternatively apktool d <apk-filename>

If you decompile an APK on Windows which contains resource files or other entries that only differ in their file name case, apktool shows no warning indicating that the decompilation failed. In my opinion apktool should show a warning or error if it overwrites a file when extracting resources or other files (unless -f option is set).

This would also be useful on Linux in case an file entry exists more than one time in the APK file (this should still be possible or does newer Android versions reject such APK files?).

@iBotPeaches
Copy link
Owner

Unfortunately a long time known issue.

#1460


Android rejects files that attempt this in the APK. This was used for some injections attacks where the application was signed for AndroidManifest.xml, but androidManifest.xml could be in application and in some situations loaded over the other. This was way back in Gingerbread if memory is right.

@jpstotz
Copy link
Author

jpstotz commented Nov 27, 2021

@iBotPeaches This feature request was not about solving all the Windows problems but instead warning if a file is overwritten.

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