[G1 Android Development] JsChiSurf:
Thanks for the tool. This is going to prove very beneficial as the kinks are ironed out. I'm having varying luck just trying to decode/build without changing any content, just to try a round-trip on various apks.

I'm on a 2.1 platform and don't know if this has anything to do with it.

I was able to mimic a round-trip for HTC_IME.apk, but not for much else.

It states it supports framework-res.apk, but fails as there is no classes.dex in this file. There no odex/dex file for this apk ever, so I'm not sure why it is looking for such a file in this instance.

In another instance, I'm trying to round-trip (decode/build w/ no changes), Rosie.apk, and I get a bunch of warning on the decode

I: Decoding resources...
W: Could not decode attr value, using undecoded value instead: ns=android, name=icon, value=0x02020116
W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x020200d6
W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x020200d8
W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x020200d8
W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x020200d7
W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x02020513
W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x0202061d
W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x02020572
W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x02020574
W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x02020573
W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x0202061d
W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x02020513
W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x02020513
W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x02020412
W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x02020412
W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x02020411
W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x0202061d
W: Could not decode attr value, using undecoded value instead: ns=android, name

And, I'm assuming, as a result, errors when attempting to build:

I: Building resources...
/home/virtualbox/Documents/android-sdk-linux_86/tools/rosie_out/res/layout/add_list_title.xml:2: error: Error: No resource type specified (at 'background' with value '@33685780').
/home/virtualbox/Documents/android-sdk-linux_86/tools/rosie_out/res/layout/add_setting_widget.xml:4: error: Error: No resource type specified (at 'background' with value '@33685781').
/home/virtualbox/Documents/android-sdk-linux_86/tools/rosie_out/res/layout-normal-port-mdpi/add_setting_widget.xml:8: error: Error: No resource type specified (at 'divider' with value '@33685778').
/home/virtualbox/Documents/android-sdk-linux_86/tools/rosie_out/res/layout/appwidget_error.xml:2: error: Error: No resource type specified (at 'background' with value '@33685716').
/home/virtualbox/Documents/android-sdk-linux_86/tools/rosie_out/res/layout/bladelistview.xml:4: error: Error: No resource type specified (at 'divider' with value '@33685778').
/home/virtualbox/Documents/android-sdk-linux_86/tools/rosie_out/res/layout-normal-port-mdpi/bladelistview.xml:4: error: Error: No resource type specified (at 'divider' with value '@33685778').
/home/virtualbox/Documents/android-sdk-linux_86/tools/rosie_out/res/layout-land/button_bar.xml:2: error: Error: No resource type specified (at 'background' with value '@33685786').
/home/virtualbox/Documents/android-sdk-linux_86/tools/rosie_out/res/layout-port/button_bar.xml:2: error: Error: No resource type specified (at 'background' with value '@33685786').
/home/virtualbox/Documents/android-sdk-linux_86/tools/rosie_out/res/layout/create_shortcut_list.xml:2: error: Error: No resource type specified (at 'divider' wi

These are just snippets and not a complete output, but you get the point :)

Just wanted to give a heads up, so hopefully this can help debug, etc.

Also, perhaps there is a way to include an external reference to newer bak[smali] files, so that when there is an update, we can use them, w/o having to wait for a new apktool.jar file? I'm wondering if the most recent release of bak[smali] may address this same issue?

Thanks.