Reputation: 54791
I had a problem recently with some devices after I upgraded to SDK Tools r16 from SDK Tools r11.
I found out it was texture related, now looking back the APK files I created with SDK Tools r11 contain exact copies of the textures in the raw file. But the APK files created with SDK Tools r16 contain some differences at the byte level, I can't see any difference, no difference in colour depth either, but whatever has happened to them causes problems loading on PowerVR GPU devices.
JPG and BMP files are not altered.
Does anyone know what might be causing this and how I can get a raw file to stay raw?
Edit: Looking at the files inside Notepad++ I see "iCCPPhotoshop ICC profile" is removed from the header. There may be other changes.
Edit2: Looking at the properties in windows explorer the raw one says "Attributes A" and the APK one says "Attibutes N". It's definitely stripping/changing information.
Edit3: I meant SDK Tools Revision XX not API XX
Upvotes: 2
Views: 1193
Reputation: 36302
I don't know why anyone thought this was a good idea but Android does some sort of compression on PNGs. See here for one guy's experience with it. I'm not sure if API 16 does something different from API 11, but this behavior has been there since way before 11. As to how to fix this behavior, I suspect that renaming your resource might help. Try naming it whatever.mp3 instead of .png and see if that fixes it.
Upvotes: 2