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
Apk tool unable to Re-compile apps having Newer Pattern #2220
Comments
There is not much Apktool can figure out to do here. If the "key" part of "key/value" is gone, Apktool needs to make up some human readable name so it can process back into resourceIds. Android doesn't require that, so tools have an advantage to just strip information preventing exactly this (Apktool) from piecing it back together. Do you have any ideas? |
I'm on the same situation. When decompiling:
Then when recompiling, without changing anything:
|
Maybe you can comment |
@realityJie where and what file did you edit to add that addMissingResSpecs()? I would like to try that comment myself to see if it works for me. |
https://github.com/iBotPeaches/Apktool/blob/17ad91da61ee12cce11baac73176547925e4dd8d/brut.apktool/apktool-lib/src/main/java/brut/androlib/res/decoder/ARSCDecoder.java |
Information
apktool -version
) - 2.4.0Apktool 2.4.0 can decompile any app but it can't recompile them after decompiling even without modifying nothing. I think It's fron the resources folder and by file names that contains special characters like _(underscore)
I tried with older application and apktool 2.4.0 works fine
Is it possible to fix this issue?
Stacktrace/Logcat
Steps to Reproduce
apktool
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.
Questions to ask before submission
apktool d
,apktool b
without changing anything?The text was updated successfully, but these errors were encountered: