[Galaxy S II Themes and Apps] kobellza:
Hey @sahibunlimited i was trying to decompile framework-res.apk to get a buttons working on sammy rom i got this

C:\Users\Bell\Desktop\test>apktool d framework-res.apk
I: Loading resource table...
I: Loaded.
I: Decoding file-resources...
W: Cant find 9patch chunk in file: "drawable-hdpi/tw_progressbar_bg.9.png". Rena
ming it to *.png.
W: Cant find 9patch chunk in file: "drawable-hdpi/tw_numberpicker_input_pressed.
9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-hdpi/tw_numberpicker_up_pressed.9.p
ng". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-hdpi/tw_numberpicker_down_pressed.9
.png". Renaming it to *.png.
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...

C:\Users\Bell\Desktop\test>

i modified every things i needed to, then recompile it

ic symbol drawable/unlockscreen_lock_03 declared here is not defined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6572: error: Publ
ic symbol drawable/unlockscreen_lock_04 declared here is not defined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6573: error: Publ
ic symbol drawable/unlockscreen_lock_05 declared here is not defined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6574: error: Publ
ic symbol drawable/unlockscreen_lock_06 declared here is not defined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6575: error: Publ
ic symbol drawable/unlockscreen_lock_07 declared here is not defined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6576: error: Publ
ic symbol drawable/unlockscreen_lock_08 declared here is not defined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6577: error: Publ
ic symbol drawable/unlockscreen_lock_09 declared here is not defined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6578: error: Publ
ic symbol drawable/unlockscreen_lock_10 declared here is not defined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6579: error: Publ
ic symbol drawable/unlockscreen_lock_11 declared here is not defined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6580: error: Publ
ic symbol drawable/unlockscreen_lock_12 declared here is not defined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6581: error: Publ
ic symbol drawable/unlockscreen_lock_13 declared here is not defined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6582: error: Publ
ic symbol drawable/unlockscreen_lock_14 declared here is not defined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6583: error: Publ
ic symbol drawable/unlockscreen_lock_15 declared here is not defined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6584: error: Publ
ic symbol drawable/unlockscreen_lock_16 declared here is not defined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6585: error: Publ
ic symbol drawable/unlockscreen_lock_17 declared here is not defined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6586: error: Publ
ic symbol drawable/unlockscreen_lock_18 declared here is not defined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6587: error: Publ
ic symbol drawable/unlockscreen_lock_19 declared here is not defined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6588: error: Publ
ic symbol drawable/unlockscreen_lock_20 declared here is not defined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6589: error: Publ
ic symbol drawable/usb_android declared here is not defined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6590: error: Publ
ic symbol drawable/usb_android_connected declared here is not defined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6591: error: Publ
ic symbol drawable/usb_bluetooth_fail declared here is not defined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6592: error: Publ
ic symbol drawable/vpn_connected declared here is not defined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6593: error: Publ
ic symbol drawable/vpn_disconnected declared here is not defined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6594: error: Publ
ic symbol drawable/weather_2_01_02 declared here is not defined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6595: error: Publ
ic symbol drawable/weather_2_03_04_05 declared here is not defined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6596: error: Publ
ic symbol drawable/weather_2_06_07_08 declared here is not defined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6597: error: Publ
ic symbol drawable/weather_2_11 declared here is not defined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6598: error: Publ
ic symbol drawable/weather_2_12_13_39_40 declared here is not defined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6599: error: Publ
ic symbol drawable/weather_2_14 declared here is not defined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6600: error: Publ
ic symbol drawable/weather_2_15_41_42 declared here is not defined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6601: error: Publ
ic symbol drawable/weather_2_16_17 declared here is not defined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6602: error: Publ
ic symbol drawable/weather_2_18 declared here is not defined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6603: error: Publ
ic symbol drawable/weather_2_19_43 declared here is not defined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6604: error: Publ
ic symbol drawable/weather_2_20_21 declared here is not defined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6605: error: Publ
ic symbol drawable/weather_2_22_23_44 declared here is not defined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6606: error: Publ
ic symbol drawable/weather_2_24_25_26 declared here is not defined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6607: error: Publ
ic symbol drawable/weather_2_29 declared here is not defined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6608: error: Publ
ic symbol drawable/weather_2_30 declared here is not defined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6609: error: Publ
ic symbol drawable/weather_2_31 declared here is not defined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6610: error: Publ
ic symbol drawable/weather_2_32 declared here is not defined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6611: error: Publ
ic symbol drawable/weather_2_33 declared here is not defined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6612: error: Publ
ic symbol drawable/weather_2_34_35_36_37 declared here is not defined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6613: error: Publ
ic symbol drawable/weather_2_38 declared here is not defined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:5165: error: Publ
ic symbol drawable/zoom_plate declared here is not defined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6614: error: Publ
ic symbol drawable/zzz_ic_emergency_small declared here is not defined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6615: error: Publ
ic symbol drawable/zzz_unlock_clock_0 declared here is not defined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6616: error: Publ
ic symbol drawable/zzz_unlock_clock_0_s declared here is not defined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6617: error: Publ
ic symbol drawable/zzz_unlock_clock_1 declared here is not defined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6618: error: Publ
ic symbol drawable/zzz_unlock_clock_1_1 declared here is not defined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6619: error: Publ
ic symbol drawable/zzz_unlock_clock_1_s declared here is not defined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6620: error: Publ
ic symbol drawable/zzz_unlock_clock_2 declared here is not defined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6621: error: Publ
ic symbol drawable/zzz_unlock_clock_2_s declared here is not defined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6622: error: Publ
ic symbol drawable/zzz_unlock_clock_3 declared here is not defined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6623: error: Publ
ic symbol drawable/zzz_unlock_clock_3_s declared here is not defined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6624: error: Publ
ic symbol drawable/zzz_unlock_clock_4 declared here is not defined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6625: error: Publ
ic symbol drawable/zzz_unlock_clock_4_s declared here is not defined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6626: error: Publ
ic symbol drawable/zzz_unlock_clock_5 declared here is not defined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6627: error: Publ
ic symbol drawable/zzz_unlock_clock_5_s declared here is not defined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6628: error: Publ
ic symbol drawable/zzz_unlock_clock_6 declared here is not defined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6629: error: Publ
ic symbol drawable/zzz_unlock_clock_6_s declared here is not defined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6630: error: Publ
ic symbol drawable/zzz_unlock_clock_7 declared here is not defined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6631: error: Publ
ic symbol drawable/zzz_unlock_clock_7_s declared here is not defined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6632: error: Publ
ic symbol drawable/zzz_unlock_clock_8 declared here is not defined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6633: error: Publ
ic symbol drawable/zzz_unlock_clock_8_s declared here is not defined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6634: error: Publ
ic symbol drawable/zzz_unlock_clock_9 declared here is not defined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6635: error: Publ
ic symbol drawable/zzz_unlock_clock_9_s declared here is not defined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6636: error: Publ
ic symbol drawable/zzz_unlock_clock_am_s declared here is not defined.
CException in thread "main" :\Users\Bell\Desktop\test\framework-res\res\values\p
ublic.xml:6637: error: Public symbol drawable/zzz_unlock_clock_colon declared he
re is not defined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6638: error: Publ
ic symbol drawable/zzz_unlock_clock_colon_s declared here is not defined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6639: error: Publ
ic symbol drawable/zzz_unlock_clock_empty declared here is not defined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6640: error: Publ
ic symbol drawable/zzz_unlock_clock_pm_s declared here is not defined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6641: error: Publ
ic symbol drawable/zzz_unlock_music_sound_bg declared here is not defined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6642: error: Publ
ic symbol drawable/zzz_unlock_selector_ff declared here is not defined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6643: error: Publ
ic symbol drawable/zzz_unlock_selector_pause declared here is not defined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6644: error: Publ
ic symbol drawable/zzz_unlock_selector_play declared here is not defined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6645: error: Publ
ic symbol drawable/zzz_unlock_selector_radio_ff declared here is not defined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6646: error: Publ
ic symbol drawable/zzz_unlock_selector_radio_rew declared here is not defined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6647: error: Publ
ic symbol drawable/zzz_unlock_selector_rew declared here is not defined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:5030: error: Publ
ic symbol drawable/zzzz_tw_popup_btn_check declared here is not defined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6648: error: Publ
ic symbol drawable/zzzz_tw_popup_btn_check_off declared here is not defined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6649: error: Publ
ic symbol drawable/zzzz_tw_popup_btn_check_off_disable declared here is not defi
ned.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6650: error: Publ
ic symbol drawable/zzzz_tw_popup_btn_check_off_disable_focused declared here is
not defined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6651: error: Publ
ic symbol drawable/zzzz_tw_popup_btn_check_off_pressed declared here is not defi
ned.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6652: error: Publ
ic symbol drawable/zzzz_tw_popup_btn_check_off_selected declared here is not def
ined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6653: error: Publ
ic symbol drawable/zzzz_tw_popup_btn_check_on declared here is not defined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6654: error: Publ
ic symbol drawable/zzzz_tw_popup_btn_check_on_disable declared here is not defin
ed.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6655: error: Publ
ic symbol drawable/zzzz_tw_popup_btn_check_on_disable_focused declared here is n
ot defined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6656: error: Publ
ic symbol drawable/zzzz_tw_popup_btn_check_on_pressed declared here is not defin
ed.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6657: error: Publ
ic symbol drawable/zzzz_tw_popup_btn_check_on_selected declared here is not defi
ned.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:5031: error: Publ
ic symbol drawable/zzzz_tw_popup_btn_radio declared here is not defined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6658: error: Publ
ic symbol drawable/zzzz_tw_popup_btn_radio_off declared here is not defined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6659: error: Publ
ic symbol drawable/zzzz_tw_popup_btn_radio_off_pressed declared here is not defi
ned.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6660: error: Publ
ic symbol drawable/zzzz_tw_popup_btn_radio_off_selected declared here is not def
ined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6661: error: Publ
ic symbol drawable/zzzz_tw_popup_btn_radio_on declared here is not defined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6662: error: Publ
ic symbol drawable/zzzz_tw_popup_btn_radio_on_pressed declared here is not defin
ed.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6663: error: Publ
ic symbol drawable/zzzz_tw_popup_btn_radio_on_selected declared here is not defi
ned.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6664: error: Publ
ic symbol drawable/zzzz_webselect_bg_topbar declared here is not defined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:5032: error: Publ
ic symbol drawable/zzzz_webselect_btn_bg declared here is not defined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6665: error: Publ
ic symbol drawable/zzzz_webselect_dialog_bg declared here is not defined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6666: error: Publ
ic symbol drawable/zzzz_webselect_dialog_btn_bg declared here is not defined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6667: error: Publ
ic symbol drawable/zzzz_webselect_dialog_btn_bg_pressed declared here is not def
ined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6668: error: Publ
ic symbol drawable/zzzz_webselect_topbar_key_bg_option declared here is not defi
ned.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:5033: error: Publ
ic symbol drawable/zzzz_webselect_topbar_key_bg_option_xml declared here is not
defined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6669: error: Publ
ic symbol drawable/zzzz_webselect_topbar_key_bg_press declared here is not defin
ed.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6670: error: Publ
ic symbol drawable/zzzzzzzz_default_lockscreenw declared here is not defined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6671: error: Publ
ic symbol drawable/zzzzzzzzz_btn_call_normal declared here is not defined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6672: error: Publ
ic symbol drawable/zzzzzzzzz_btn_call_normal_disable declared here is not define
d.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6673: error: Publ
ic symbol drawable/zzzzzzzzz_btn_call_pressed declared here is not defined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6674: error: Publ
ic symbol drawable/zzzzzzzzz_btn_call_selected declared here is not defined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6675: error: Publ
ic symbol drawable/zzzzzzzzz_pcw_bg_01 declared here is not defined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6676: error: Publ
ic symbol drawable/zzzzzzzzz_pcw_btn_icon_emergency_dim declared here is not def
ined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6677: error: Publ
ic symbol drawable/zzzzzzzzz_pcw_btn_icon_emergency_normal declared here is not
defined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6678: error: Publ
ic symbol drawable/zzzzzzzzz_pcw_btn_icon_emergency_press declared here is not d
efined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6679: error: Publ
ic symbol drawable/zzzzzzzzz_pcw_btn_icon_unlock_dim declared here is not define
d.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6680: error: Publ
ic symbol drawable/zzzzzzzzz_pcw_btn_icon_unlock_normal declared here is not def
ined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6681: error: Publ
ic symbol drawable/zzzzzzzzz_pcw_btn_icon_unlock_press declared here is not defi
ned.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:5034: error: Publ
ic symbol drawable/zzzzzzzzz_pcw_call_icon_selector declared here is not defined
.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:5035: error: Publ
ic symbol drawable/zzzzzzzzz_pcw_call_selector declared here is not defined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6682: error: Publ
ic symbol drawable/zzzzzzzzz_pcw_callbox declared here is not defined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:5036: error: Publ
ic symbol drawable/zzzzzzzzz_pcw_emergency_icon_selector declared here is not de
fined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6683: error: Publ
ic symbol drawable/zzzzzzzzz_pcw_ic_lock declared here is not defined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6684: error: Publ
ic symbol drawable/zzzzzzzzz_pcw_icon_call_dim declared here is not defined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6685: error: Publ
ic symbol drawable/zzzzzzzzz_pcw_icon_call_normal declared here is not defined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6686: error: Publ
ic symbol drawable/zzzzzzzzz_pcw_icon_call_press declared here is not defined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:6687: error: Publ
ic symbol drawable/zzzzzzzzz_pcw_line declared here is not defined.
C:\Users\Bell\Desktop\test\framework-res\res\values\public.xml:5037: error: Publ
ic symbol drawable/zzzzzzzzz_pcw_unlock_icon_selector declared here is not defin
ed.
brut.androlib.AndrolibException: brut.common.BrutException: could not exec comma
nd: [aapt, p, -F, C:\Users\Bell\AppData\Local\Temp\APKTOOL6645490387017348086.tm
p, -x, -S, C:\Users\Bell\Desktop\test\framework-res\res, -M, C:\Users\Bell\Deskt
op\test\framework-res\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\U
sers\Bell\AppData\Local\Temp\APKTOOL6645490387017348086.tmp, -x, -S, C:\Users\Be
ll\Desktop\test\framework-res\res, -M, C:\Users\Bell\Desktop\test\framework-res\
AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
... 6 more

C:\Users\Bell\Desktop\test>

so nothing compiled ??!

please help :(

ps. i used apktool 1.42 to decompile and 1.43 to recompile