-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
apktool decode with resources removes/moves files - crashes on runtime #1948
Comments
Interesting find. Will have just debug and see what is going on with that resource. I've seen strange cases where an asset exists in the structure, but has no mapping in the resource tree. Thus it isn't decoded and instead the suspected resource is found with an ID, but no corresponding resource (thus dummy resource) |
Hi, we debugged it a bit and managed to unpack and repack the apk correctly when inserting a small change. We found that some resources that are supposed to be strings, are assigned the wrong type (e.g. drawable). We found that when we change files (on the open apk dir) that their names were only comprised of digits without an extension (e.g. 9, 55, etc), to a name that has at least one letter (we renamed all files and references to these files to apktool_9, apktool_55, etc), apktool managed to build the apk correctly. It did not make any difference to the reported condition above (files move into the res/fonts dir), but it did fix the app, it stopped crashing when loading resources, even that specific font. Hope this helps |
There is a scenario that causes a similar error. |
https://play.google.com/store/apps/details?id=com.frzinapps.smsforward&hl=en&gl=US
|
Information
apktool -version
) - 2.3.4Stacktrace/Logcat
Steps to Reproduce
apktool d orginal.apk
apktool b original -o apktooled.apk
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://www.dropbox.com/s/1tx2uph1nenzkpx/playstoreCityVelocity.apk?dl=0
Questions to ask before submission
apktool d
,apktool b
without changing anything? yesThe text was updated successfully, but these errors were encountered: