berkus / android-apktool

Automatically exported from code.google.com/p/android-apktool
Other
1 stars 0 forks source link

"Cant find 9patch chunk in file" when decoding framework-res.apk #194

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. apk d framework-res.apk framework-res
2.
3.

What is the expected output? What do you see instead?
Expected result:
I: Loading resource table...
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...

Result:
I: Loading resource table...
I: Loaded.
I: Decoding file-resources...
W: Cant find 9patch chunk in file: 
"drawable-hdpi/quickcontact_badge_small_pressed.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: 
"drawable-hdpi/quickcontact_badge_unpressed.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: 
"drawable-hdpi/quickcontact_badge_pressed.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: 
"drawable-hdpi/quickcontact_badge_small_unpressed.9.png". Renaming it to *.png.
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...

It makes building impossible with following errors:
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
libpng error: Read Error
ERROR: Failure processing PNG image 
/media/sf_GalaxyS2/Dev/LR2.0/FS/System/framework/flinux_test2/res/drawable-hdpi/
quickcontact_badge_pressed.9.png
libpng error: Read Error
ERROR: Failure processing PNG image 
/media/sf_GalaxyS2/Dev/LR2.0/FS/System/framework/flinux_test2/res/drawable-hdpi/
quickcontact_badge_small_pressed.9.png
libpng error: Read Error
ERROR: Failure processing PNG image 
/media/sf_GalaxyS2/Dev/LR2.0/FS/System/framework/flinux_test2/res/drawable-hdpi/
quickcontact_badge_small_unpressed.9.png
libpng error: Read Error
ERROR: Failure processing PNG image 
/media/sf_GalaxyS2/Dev/LR2.0/FS/System/framework/flinux_test2/res/drawable-hdpi/
quickcontact_badge_unpressed.9.png

What version of the product are you using? On what operating system?
apktool 1.4.1
Ubuntu 11.04

Please provide any additional information below.
framework-res.apk attached (2.3.4)

Original issue reported on code.google.com by Thierry.Pot@gmail.com on 12 Jul 2011 at 10:36

Attachments:

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I did some google search. Since this framework-res.apk comes from an already 
themed ROM, maybe the author has done something wrong with some 9files.

So it's quite possible there is no 9file decoding issue in apktool.

If it is the case, I am sorry to have disturbed you for nothing.

Original comment by Thierry.Pot@gmail.com on 13 Jul 2011 at 8:28

GoogleCodeExporter commented 9 years ago
Just tried with stock Kernel and no problem.

You may close this defect.

Sorry again

Original comment by Thierry.Pot@gmail.com on 13 Jul 2011 at 8:46

GoogleCodeExporter commented 9 years ago
It's ok. It seems these files was just broken and it's quite probable you 
wouldn't be able to open it using any image viewer.

Original comment by Brut.alll on 5 Nov 2011 at 8:57

GoogleCodeExporter commented 9 years ago
how to deal with this issue?

Original comment by zhouzhiw...@gmail.com on 20 Apr 2013 at 2:55