Closed GoogleCodeExporter closed 9 years ago
bah, that Res9Patch decoder still needs work. Can't promise anything
immediately as we have bigger bugs, but I'll try and look into it after I get
4.2 support working.
Original comment by connor.tumbleson
on 27 Nov 2012 at 4:42
Fixed. Fix available at:
http://code.google.com/r/fbarriga-android-apktool/source/detail?r=e7a49f0452994f
97272fa4c430d577701b2f9e24&name=fbarriga/master
Output from fixed version:
{{{
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: /home/xxxx/apktool/framework/1.apk
I: Loaded.
I: Regular manifest package...
I: Decoding file-resources...
S: Could not decode file, replacing by FALSE value:
drawable-hdpi/card_background.9.png
S: Could not decode file, replacing by FALSE value:
drawable-hdpi/search_bg_shadow.9.png
I: Decoding values */* XMLs...
I: Done.
I: Copying assets and libs...
}}}
Original comment by fbarriga@ngmoco.com
on 20 Feb 2013 at 3:43
So just catching the NPE and treating it as false.
So was this a problem of a bad image that we are just treating with a
try-catch. Or actually a bad decompilation of the 9patch that we need to fix
and not hack around.
Basically,
Was the image bad? Or is apktool at fault?
If the first, we can use the fix. If the latter, I'd prefer a real fix.
Original comment by connor.tumbleson
on 20 Feb 2013 at 4:30
Merged in wip2.0
Original comment by connor.tumbleson
on 21 Mar 2013 at 10:50
Original issue reported on code.google.com by
liyuanmi...@gmail.com
on 27 Nov 2012 at 3:41Attachments: