-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Recompiled APK Not Containing Some *.PIO Files #1366
Comments
Don't know if you noticed it also drops .xml files too (in same drawable folder: stat_sys_roaming_cdma_flash_ctc.xml along with some other pio files in drawable-xxxhdpi-v4) |
Okay this is what is happening. The resources I've been studying are those 5 We can see them in the zip
This is great, but apktool actually doesn't care about the file system inside A little basic expression and atom, we search for
Uh oh. This is the
They do. So those resources are put in |
Putting this into ROADMAP. I don't see anything happening till we think about this plan with files in /res, but never referenced. Apktool was not built to handle that. |
This is using apktool 2.2.1.
When this APK is recompiled, 7 files in the res folder aren't put into the new APK. There's no mention of them in either the decompile or recompile logs - they just aren't included.
5 of these files are .PIO files from the drawable folder: "stat_sys_wifi_captive_0.pio","stat_sys_wifi_captive_1.pio","stat_sys_wifi_captive_2.pio","stat_sys_wifi_captive_3.pio" and "stat_sys_wifi_captive_4.pio".
Unfortunately I haven't been able to track down the other 2 yet.
When the original res folder is used in the new APK it installs and runs without any trouble (once the usual signature and permission stuff is sorted out). Without these 7 files the file FC's.
This seems to be yet another format that Samsung have started using. I've not attached the twframework-res.apk as, apparently, the APK runs with just framework-res.apk being installed during the de/recompiling. I'm not sure how true that is but these 7 files are still ignored during recompiling.
I've uploaded the framework-res.apk, original SystemUI.apk and recompiled SystemUI.apk to here:
https://www.mediafire.com/?chaacdpsxfqikeg
(The recompiled APK was made by creating a copy of the original, deleting the res folder from that original and copying over the res folder from the build folder.)
Hopefully this all makes sense...
The text was updated successfully, but these errors were encountered: