-
-
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
Windows: mapping between unknown chars & valid chars #1460
Comments
This is a duplicate of #1314 , but I closed that one for being a Windows problem. There is no short term fix for this. The work required to create a lookup table of filenames, yet save them back into the apk as the original string is a ton of work. So that is why I closed the report, use unix/mac until then. |
The common and easy way would be to build a white-list of characters which are supported on all platforms/current platform in file-names. Additionally a blacklist of forbidden file-names can be created. Everything that does not match the whitelist or terms from the blacklist is escaped: For example:
Then you don't have to store a mapping somewhere. For compatibility with decompiled directories created by older apktool versions you can add a flag in And when running on Windows for solving the case sensitivity problem on NTFS drives you could run |
This would be all solved if Windows ever supported EXT drives |
@KarmaMod I don't see a relation between the file-system and disallowed files like |
Information
apktool -version
) - 2.2.2Stacktrace/Logcat
Steps to Reproduce
APK
http://files.nabstudio.com/mangarock/mangarock-definitive-v1.9.9-RELEASE.apk?cfcache=1
Questions to ask before submission
apktool d
,apktool b
without changing anything? YESThe text was updated successfully, but these errors were encountered: