[G1 Android Development] tommytomatoe:
Thanks for the reply, I just saw your post. Yeah I applied the correct changes to the smali getSpanX and getSpanY. I put away that project for now. It's giving me a headache.

On another note, I successfully themed a GB keyboard and signed it and it's golden except for the &amp and &lt. I found the post on pages 90 and 91 of this thread but upon making those changes, my apk won't build. The changes are in values/strings.xml. I get this sort of error:

Tommy-Nguyens-MacBook-Pro:~ MrTomatoeHead$ apktool build /Users/MrTomatoeHead/Desktop/MOD/gingerkey/test
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, /var/folders/V1/V1uksuERHiqkwrSuDtlaeE+++TI/-Tmp-/APKTOOL5762675776965816155.tmp, -I, /Users/MrTomatoeHead/apktool/framework/1.apk, -S, /Users/MrTomatoeHead/Desktop/MOD/gingerkey/test/res, -M, /Users/MrTomatoeHead/Desktop/MOD/gingerkey/test/AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(Unknown Source)
at brut.androlib.Androlib.buildResourcesFull(Unknown Source)
at brut.androlib.Androlib.buildResources(Unknown Source)
at brut.androlib.Androlib.build(Unknown Source)
at brut.androlib.Androlib.build(Unknown Source)
at brut.apktool.Main.cmdBuild(Unknown Source)
at brut.apktool.Main.main(Unknown Source)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, /var/folders/V1/V1uksuERHiqkwrSuDtlaeE+++TI/-Tmp-/APKTOOL5762675776965816155.tmp, -I, /Users/MrTomatoeHead/apktool/framework/1.apk, -S, /Users/MrTomatoeHead/Desktop/MOD/gingerkey/test/res, -M, /Users/MrTomatoeHead/Desktop/MOD/gingerkey/test/AndroidManifest.xml]
at brut.util.OS.exec(Unknown Source)
... 7 more
/Users/MrTomatoeHead/Desktop/MOD/gingerkey/test/res/values/strings.xml:28: error: Error parsing XML: not well-formed (invalid token)
/Users/MrTomatoeHead/Desktop/MOD/gingerkey/test/res/values/public.xml:314: error: Public symbol string/alternates_for_p declared here is not defined.
/Users/MrTomatoeHead/Desktop/MOD/gingerkey/test/res/values/public.xml:438: error: Public symbol string/english_ime_debug_settings declared here is not defined.
/Users/MrTomatoeHead/Desktop/MOD/gingerkey/test/res/values/public.xml:425: error: Public entry identifier 0x7f0d0082 entry index is larger than available symbols (index 130, total symbols 127).
/Users/MrTomatoeHead/Desktop/MOD/gingerkey/test/res/values/public.xml:425: error: Public symbol string/has_dictionary declared here is not defined.
/Users/MrTomatoeHead/Desktop/MOD/gingerkey/test/res/values/public.xml:424: error: Public entry identifier 0x7f0d0081 entry index is larger than available symbols (index 129, total symbols 127).
/Users/MrTomatoeHead/Desktop/MOD/gingerkey/test/res/values/public.xml:424: error: Public symbol string/hint_add_to_dictionary declared here is not defined.
/Users/MrTomatoeHead/Desktop/MOD/gingerkey/test/res/values/public.xml:430: error: Public entry identifier 0x7f0d0087 entry index is larger than available symbols (index 135, total symbols 127).
/Users/MrTomatoeHead/Desktop/MOD/gingerkey/test/res/values/public.xml:430: error: Public symbol string/keyboard_layout declared here is not defined.
/Users/MrTomatoeHead/Desktop/MOD/gingerkey/test/res/values/public.xml:423: error: Public entry identifier 0x7f0d0080 entry index is larger than available symbols (index 128, total symbols 127).
/Users/MrTomatoeHead/Desktop/MOD/gingerkey/test/res/values/public.xml:423: error: Public symbol string/language_selection_summary declared here is not defined.
/Users/MrTomatoeHead/Desktop/MOD/gingerkey/test/res/values/public.xml:422: error: Public entry identifier 0x7f0d007f entry index is larger than available symbols (index 127, total symbols 127).
/Users/MrTomatoeHead/Desktop/MOD/gingerkey/test/res/values/public.xml:422: error: Public symbol string/language_selection_title declared here is not defined.
/Users/MrTomatoeHead/Desktop/MOD/gingerkey/test/res/values/public.xml:431: error: Public symbol string/layout_basic declared here is not defined.
/Users/MrTomatoeHead/Desktop/MOD/gingerkey/test/res/values/public.xml:435: error: Public symbol string/layout_gingerbread declared here is not defined.
/Users/MrTomatoeHead/Desktop/MOD/gingerkey/test/res/values/public.xml:432: error: Public symbol string/layout_high_contrast declared here is not defined.
/Users/MrTomatoeHead/Desktop/MOD/gingerkey/test/res/values/public.xml:433: error: Public symbol string/layout_stone_bold declared here is not defined.
/Users/MrTomatoeHead/Desktop/MOD/gingerkey/test/res/values/public.xml:434: error: Public symbol string/layout_stone_normal declared here is not defined.
/Users/MrTomatoeHead/Desktop/MOD/gingerkey/test/res/values/public.xml:363: error: Public symbol string/prediction_basic declared here is not defined.
/Users/MrTomatoeHead/Desktop/MOD/gingerkey/test/res/values/public.xml:364: error: Public symbol string/prediction_full declared here is not defined.
/Users/MrTomatoeHead/Desktop/MOD/gingerkey/test/res/values/public.xml:362: error: Public symbol string/prediction_none declared here is not defined.
/Users/MrTomatoeHead/Desktop/MOD/gingerkey/test/res/values/public.xml:439: error: Public symbol string/prefs_debug_mode declared here is not defined.
/Users/MrTomatoeHead/Desktop/MOD/gingerkey/test/res/values/public.xml:427: error: Public entry identifier 0x7f0d0084 entry index is larger than available symbols (index 132, total symbols 127).
/Users/MrTomatoeHead/Desktop/MOD/gingerkey/test/res/values/public.xml:427: error: Public symbol string/prefs_description_log declared here is not defined.
/Users/MrTomatoeHead/Desktop/MOD/gingerkey/test/res/values/public.xml:426: error: Public entry identifier 0x7f0d0083 entry index is larger than available symbols (index 131, total symbols 127).
/Users/MrTomatoeHead/Desktop/MOD/gingerkey/test/res/values/public.xml:426: error: Public symbol string/prefs_enable_log declared here is not defined.
/Users/MrTomatoeHead/Desktop/MOD/gingerkey/test/res/values/public.xml:428: error: Public entry identifier 0x7f0d0085 entry index is larger than available symbols (index 133, total symbols 127).
/Users/MrTomatoeHead/Desktop/MOD/gingerkey/test/res/values/public.xml:428: error: Public symbol string/prefs_enable_recorrection declared here is not defined.
/Users/MrTomatoeHead/Desktop/MOD/gingerkey/test/res/values/public.xml:429: error: Public entry identifier 0x7f0d0086 entry index is larger than available symbols (index 134, total symbols 127).
/Users/MrTomatoeHead/Desktop/MOD/gingerkey/test/res/values/public.xml:429: error: Public symbol string/prefs_enable_recorrection_summary declared here is not defined.
/Users/MrTomatoeHead/Desktop/MOD/gingerkey/test/res/values/public.xml:327: error: Public symbol string/settings_key_mode_always_hide declared here is not defined.
/Users/MrTomatoeHead/Desktop/MOD/gingerkey/test/res/values/public.xml:326: error: Public symbol string/settings_key_mode_always_show declared here is not defined.
/Users/MrTomatoeHead/Desktop/MOD/gingerkey/test/res/values/public.xml:325: error: Public symbol string/settings_key_mode_auto declared here is not defined.
/Users/MrTomatoeHead/Desktop/MOD/gingerkey/test/res/values/public.xml:436: error: Public entry identifier 0x7f0d008d entry index is larger than available symbols (index 141, total symbols 127).
/Users/MrTomatoeHead/Desktop/MOD/gingerkey/test/res/values/public.xml:436: error: Public symbol string/subtype_mode_keyboard declared here is not defined.
/Users/MrTomatoeHead/Desktop/MOD/gingerkey/test/res/values/public.xml:437: error: Public entry identifier 0x7f0d008e entry index is larger than available symbols (index 142, total symbols 127).
/Users/MrTomatoeHead/Desktop/MOD/gingerkey/test/res/values/public.xml:437: error: Public symbol string/subtype_mode_voice declared here is not defined.
/Users/MrTomatoeHead/Desktop/MOD/gingerkey/test/res/values/public.xml:324: error: Public symbol string/suggested_punctuations declared here is not defined.
/Users/MrTomatoeHead/Desktop/MOD/gingerkey/test/res/values/public.xml:407: error: Public symbol string/voice_mode_main declared here is not defined.
/Users/MrTomatoeHead/Desktop/MOD/gingerkey/test/res/values/public.xml:409: error: Public symbol string/voice_mode_off declared here is not defined.
/Users/MrTomatoeHead/Desktop/MOD/gingerkey/test/res/val

Any thoughts? Thanks.

Also, one last thing. I searched and found a few answers but none of them apply/work for me. I was getting errors building framework-res.apk from evo sense ROMs and z ports. I decompile several different framework-res.apk just to test from different roms.

Some give me 9patch errors. Some more, and some less.

All of them give me troubles when building without edits. Expected.

MikFroyo's framework-res does not give error while decompiling. Great.

To test it out, I just build without making edits.

Once again, I get this error:

/Users/MrTomatoeHead/framework-res/res/values/public.xml:1589: error: Public symbol string/numeric_wday1_md1_time1_wday2_md2_time2 declared here is not defined.
/Users/MrTomatoeHead/framework-res/res/values/public.xml:1584: error: Public symbol string/numeric_wday1_md1_wday2_md2 declared here is not defined.
/Users/MrTomatoeHead/framework-res/res/values/public.xml:1587: error: Public symbol string/numeric_wday1_mdy1_time1_wday2_mdy2_time2 declared here is not defined.
/Users/MrTomatoeHead/framework-res/res/values/public.xml:1586: error: Public symbol string/numeric_wday1_mdy1_wday2_mdy2 declared here is not defined.
/Users/MrTomatoeHead/framework-res/res/values/public.xml:2183: error: Public symbol string/older declared here is not defined.

There are actually a ton more of these lines but I cut them out to take up less room. Any thoughts? Thank you.

Note, I looked through all issues posted on google by Brut.all. I've attached both the keyboard and the framework-res.apk.