Closed dzkh closed 1 month ago
I guess the question being - were they webm that apktool improperly treated as png? Or png that are improperly webm?
I guess the question being - were they webm that apktool improperly treated as png? Or png that are improperly webm?
oh, sorry, am talking about webp. That webp files are webp (with RIFF signature) inside the apk and they appear as png after extraction but still with the RIFF sigrature. The signature loooks like this: RIFFR WEBPVP8 but this is a still static graphic file like PNG. So, yes webp improperly treated by apktool as png.
Okay, can you run unzip -l apk.apk | grep 'webp'
over the apk?
Okay, can you run
unzip -l apk.apk | grep 'webp'
over the apk?
1324 occurences.
By the way, no of errors like:
failed to read PNG signature: file does not start with PNG signature.
during assembly is about fifteen or even less for that particular APK
I don't think Apktool can do anything here. These are labeled as PNGs in the source application and Apktool is not reading magic or determining the real image format.
F: Decoding file res/drawable-hdpi-v4/big_default_img.png to res/drawable-hdpi/big_default_img.png
Information
apktool -version
) - 2.9.3java --version
) - Jetbrains OpenJDK 17, Oracle JDK 22APK contains several webp files which being unpacked as PNG-files and thus breaks assembly of APK because of file signature/file extension mismatch during the "Building Resources" phase.
BaiduMap.apk 19.8.0 (1355) downloaded from the Huawei App Store or Google Play Store. Version is latest. Google Play: https://play.google.com/store/apps/details?id=com.baidu.BaiduMap&hl=en_US
Steps to Reproduce
Questions to ask before submission
apktool d
,apktool b
without changing anything? - YES