Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Decompiling apk file its extracted folders missing -v4 #928
referenced this issue
May 13, 2015
Looks like after fixing of this bug we have new issue, apktool adds version qualifiers to folders that don't have them.
According to the files uploaded to test, there is no problem.
Look at the output
Then you can see after decode.
Thanks for the details.
I see now, though was reluctant as I've always been trusting
What confuses me is that we have an extensive application in the unit-test pool that has over 40 resource folders, only one of which has a version qualifier (
Now unit-tests go
Without the change I have any qualifier that has
Does reverting my change fix the above problem? Not sure yet.
Obviously there is a problem though, so re-opening.
Okay, just talking through words here.
So currently, apktool decodes this properly as in the
Now, if we examine the code we have currently.
There is a difference. The
All of this is irrelevant in the greater picture that apktool should decode resources to what they literally are. If the qualifier is
However in the instance of that, the
Okay, I tracked this problem down (again?)
I have a LINUX rebuild aapt here - http://connortumbleson.com/apktool/aapt_8-8-2015/aapt
Anyone willing to confirm my findings before I build a windows/mac aapt and include in master? Basically aapt is trying to make the apks "future compatible", by doing all these tweaks which cause this.
Since apktool is suppose to simply rebuild to match the original apk as close as possible, it made sense to skip (no-op) these functions.
It seems that the behaviour is still present.
I'm using Apktool v2.1.0
01/04/2016 17:39 ..
01/04/2016 17:39 anim
01/04/2016 17:39 drawable
01/04/2016 17:39 drawable-hdpi-v4
01/04/2016 17:39 drawable-land-hdpi-v4
01/04/2016 17:39 drawable-land-xhdpi-v4
01/04/2016 17:39 drawable-land-xxhdpi-v4
01/04/2016 17:39 drawable-ldrtl-hdpi-v4
01/04/2016 17:39 drawable-ldrtl-sw600dp-hdpi-v13
01/04/2016 17:39 drawable-ldrtl-sw600dp-xhdpi-v13
01/04/2016 17:39 drawable-ldrtl-sw600dp-xxhdpi-v13
01/04/2016 17:39 drawable-ldrtl-xhdpi-v4
01/04/2016 17:39 drawable-ldrtl-xxhdpi-v4
01/04/2016 17:39 drawable-nodpi-v4
01/04/2016 17:39 drawable-sw600dp-hdpi-v13
01/04/2016 17:39 drawable-sw600dp-xhdpi-v13
01/04/2016 17:39 drawable-sw600dp-xxhdpi-v13
01/04/2016 17:39 drawable-sw800dp-hdpi-v13
01/04/2016 17:39 drawable-xhdpi-v4
01/04/2016 17:39 drawable-xxhdpi-v4
01/04/2016 17:39 layout
01/04/2016 17:39 layout-land
01/04/2016 17:39 layout-ldrtl
01/04/2016 17:39 layout-port
01/04/2016 17:39 layout-sw600dp-land-v13
01/04/2016 17:39 layout-sw600dp-port-v13
01/04/2016 17:39 layout-sw600dp-v13
01/04/2016 17:39 menu
01/04/2016 17:39 mipmap-hdpi-v4
01/04/2016 17:39 mipmap-mdpi-v4
01/04/2016 17:39 mipmap-xhdpi-v4
01/04/2016 17:39 xml