-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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]When the assets directory contains the Assets folder, the generated apk cannot run #3565
Comments
Thanks for the report. May you submit a failing test case to the repo? I've seen a few iterations of this bug and never really track it down. Since I can't really accept a patch that just hard-codes |
thanks. I'll take a look with this sample. |
@iBotPeaches this issue appears to be a result of case insensitive filesystems. I've reproduced this on APFS (case insensitive). Also, APFS (case insensitive) is victim to dex/proguarded apks that produce |
Thanks for research. I'm thinking I may add a check for case insensitive FS during execution and warn its unsupported. Since I'm fearful the alternative of building out mapping tables to support case insensitivity is not worth it. Anyone doing any RE is probably well aware of the benefit and requirement of a case sensitive FS. |
Information
apktool -version
) - 2.9.3java --version
) - java 11Bug
Pay attention to the capitalization of letters about assets and Assets
When the assets directory contains the Assets folder, an additional folder named Assets will be generated at the same level as assets in the generated apk. All non-directory files under the original assets will be placed in the Assets directory.
error code
brut.util.BrutIO#sanitizeFilepath:
final String canonicalEntryPath = new File(directory, entry).getCanonicalPath();
my temporary solution
Looking forward to the perfect solution.
The text was updated successfully, but these errors were encountered: