[Galaxy Y GT-S5360 General] irishrally:
EDIT: fixed after using these apktool files: http://xdaforums.com/showpost.php?p=34806981&postcount=265

Hey thanks for the guide. I've tried a few different version of apktool and I seem to get different decompiled files in res/values and never all the files I need, like public.xml. I'm not sure if the framework is installing properly or fully. I tried both installing framework-res.apk and also the whole framework folder.

Contents of res/values for three runs:

Run 1:

arrays

colors

drawtables

ids

plurals

Run 2:

arrays

attrs

bools

plurals

Run 3:

attrs

bools

colors

integers

styles

C:\Users\Hugh McCabe\Android\apktool>apktool if framework-res.apk
Exception in thread "main" brut.androlib.AndrolibException: Multiple resources:
spec=0x01080291 drawable/ic_ab_back_holo_dark, config=-xhdpi
at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:65)
at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:58)
at brut.androlib.res.decoder.ARSCDecoder.readEntry(ARSCDecoder.java:197)

at brut.androlib.res.decoder.ARSCDecoder.readConfig(ARSCDecoder.java:166
)
at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:131)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:10
6)
at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:83)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:49)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:40)
at brut.androlib.res.AndrolibResources.installFramework(AndrolibResource
s.java:459)
at brut.androlib.Androlib.installFramework(Androlib.java:447)
at brut.apktool.Main.cmdInstallFramework(Main.java:199)
at brut.apktool.Main.main(Main.java:72)

C:\Users\Hugh McCabe\Android\apktool>apktool d systemui.apk RasUI_1
I: Baksmaling...
testI: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\Hugh McCabe\apktool\framework\1.ap
k
I: Loaded.
W: Could not decode attr value, using undecoded value instead: ns=androidprv, na
me=primaryUserOnly, value=0xffffffff
W: Could not decode attr value, using undecoded value instead: ns=android, name=
theme, value=0x01030302
W: Could not decode attr value, using undecoded value instead: ns=android, name=
theme, value=0x01030302
W: Could not decode attr value, using undecoded value instead: ns=android, name=
theme, value=0x01030302
W: Could not decode attr value, using undecoded value instead: ns=android, name=
theme, value=0x01030302
W: Could not decode attr value, using undecoded value instead: ns=android, name=
theme, value=0x01030302
I: Decoding file-resources...
W: Could not decode attr value, using undecoded value instead: ns=android, name=
drawable, value=0x01080610
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, na
me=outerRingDrawable, value=0x7f0200e4
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, na
me=pointDrawable, value=0x010802e9
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, na
me=glowRadius, value=0x01050020
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, na
me=targetDrawables, value=0x7f070000
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, na
me=outerRadius, value=0x7f0d0030
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, na
me=vibrationDuration, value=0x7f0c0002
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, na
me=snapMargin, value=0x7f0d002e
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, na
me=feedbackCount, value=0x00000000
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, na
me=alwaysTrackFinger, value=0xffffffff
W: Could not decode attr value, using undecoded value instead: ns=android, name=
drawable, value=0x0108060f
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, na
me=outerRingDrawable, value=0x7f0200e4
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, na
me=pointDrawable, value=0x010802e9
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, na
me=glowRadius, value=0x01050020
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, na
me=targetDrawables, value=0x7f070000
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, na
me=outerRadius, value=0x7f0d0030
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, na
me=vibrationDuration, value=0x7f0c0002
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, na
me=snapMargin, value=0x7f0d002e
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, na
me=feedbackCount, value=0x00000000
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, na
me=alwaysTrackFinger, value=0xffffffff
W: Could not decode attr value, using undecoded value instead: ns=android, name=
drawable, value=0x0108060f
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, na
me=outerRingDrawable, value=0x7f0200e4
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, na
me=pointDrawable, value=0x010802e9
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, na
me=glowRadius, value=0x01050020
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, na
me=targetDrawables, value=0x7f070000
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, na
me=outerRadius, value=0x7f0d0030
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, na
me=vibrationDuration, value=0x7f0c0002
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, na
me=snapMargin, value=0x7f0d002e
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, na
me=feedbackCount, value=0x00000000
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, na
me=alwaysTrackFinger, value=0xffffffff
I: Decoding values */* XMLs...
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec:
0x010404eb
at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:61)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:57)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:53)
at brut.androlib.res.data.value.ResReferenceValue.getReferent(ResReferen
ceValue.java:62)
at brut.androlib.res.data.value.ResReferenceValue.encodeAsResXml(ResRefe
renceValue.java:46)
at brut.androlib.res.data.value.ResScalarValue.encodeAsResXmlValueExt(Re
sScalarValue.java:86)
at brut.androlib.res.data.value.ResScalarValue.encodeAsResXmlValue(ResSc
alarValue.java:55)
at brut.androlib.res.data.value.ResScalarValue.encodeAsResXmlItemValue(R
esScalarValue.java:48)
at brut.androlib.res.data.value.ResArrayValue.getType(ResArrayValue.java
:70)
at brut.androlib.res.data.value.ResArrayValue.serializeToResValuesXml(Re
sArrayValue.java:50)
at brut.androlib.res.AndrolibResources.generateValuesFile(AndrolibResour
ces.java:339)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:174
)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:113)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:99)
at brut.apktool.Main.cmdDecode(Main.java:131)
at brut.apktool.Main.main(Main.java:68)

C:\Users\Hugh McCabe\Android\apktool>apktool if framework
Exception in thread "main" brut.androlib.AndrolibException: java.io.FileNotFound
Exception: framework (Access is denied)
at brut.androlib.res.AndrolibResources.installFramework(AndrolibResource
s.java:481)
at brut.androlib.Androlib.installFramework(Androlib.java:447)
at brut.apktool.Main.cmdInstallFramework(Main.java:199)
at brut.apktool.Main.main(Main.java:72)
Caused by: java.io.FileNotFoundException: framework (Access is denied)
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.zip.ZipFile.<init>(Unknown Source)
at brut.androlib.res.AndrolibResources.installFramework(AndrolibResource
s.java:449)
... 3 more

C:\Users\Hugh McCabe\Android\apktool>apktool d systemui.apk RasUI_2
I: Baksmaling...
testI: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\Hugh McCabe\apktool\framework\1.ap
k
I: Loaded.
W: Could not decode attr value, using undecoded value instead: ns=androidprv, na
me=primaryUserOnly, value=0xffffffff
W: Could not decode attr value, using undecoded value instead: ns=android, name=
theme, value=0x01030302
W: Could not decode attr value, using undecoded value instead: ns=android, name=
theme, value=0x01030302
W: Could not decode attr value, using undecoded value instead: ns=android, name=
theme, value=0x01030302
W: Could not decode attr value, using undecoded value instead: ns=android, name=
theme, value=0x01030302
W: Could not decode attr value, using undecoded value instead: ns=android, name=
theme, value=0x01030302
I: Decoding file-resources...
W: Could not decode attr value, using undecoded value instead: ns=android, name=
drawable, value=0x0108060f
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, na
me=outerRingDrawable, value=0x7f0200e4
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, na
me=pointDrawable, value=0x010802e9
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, na
me=glowRadius, value=0x01050020
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, na
me=targetDrawables, value=0x7f070000
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, na
me=outerRadius, value=0x7f0d0030
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, na
me=vibrationDuration, value=0x7f0c0002
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, na
me=snapMargin, value=0x7f0d002e
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, na
me=feedbackCount, value=0x00000000
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, na
me=alwaysTrackFinger, value=0xffffffff
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, na
me=outerRingDrawable, value=0x7f0200e4
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, na
me=pointDrawable, value=0x010802e9
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, na
me=glowRadius, value=0x01050020
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, na
me=targetDrawables, value=0x7f070000
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, na
me=outerRadius, value=0x7f0d0030
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, na
me=vibrationDuration, value=0x7f0c0002
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, na
me=snapMargin, value=0x7f0d002e
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, na
me=feedbackCount, value=0x00000000
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, na
me=alwaysTrackFinger, value=0xffffffff
W: Could not decode attr value, using undecoded value instead: ns=android, name=
drawable, value=0x01080610
W: Could not decode attr value, using undecoded value instead: ns=android, name=
drawable, value=0x0108060f
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, na
me=outerRingDrawable, value=0x7f0200e4
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, na
me=pointDrawable, value=0x010802e9
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, na
me=glowRadius, value=0x01050020
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, na
me=targetDrawables, value=0x7f070000
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, na
me=outerRadius, value=0x7f0d0030
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, na
me=vibrationDuration, value=0x7f0c0002
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, na
me=snapMargin, value=0x7f0d002e
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, na
me=feedbackCount, value=0x00000000
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, na
me=alwaysTrackFinger, value=0xffffffff
I: Decoding values */* XMLs...
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec:
0x010a0055
at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:61)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:57)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:53)
at brut.androlib.res.data.value.ResReferenceValue.getReferent(ResReferen
ceValue.java:62)
at brut.androlib.res.data.value.ResReferenceValue.encodeAsResXml(ResRefe
renceValue.java:46)
at brut.androlib.res.data.value.ResScalarValue.encodeAsResXmlValueExt(Re
sScalarValue.java:86)
at brut.androlib.res.data.value.ResScalarValue.encodeAsResXmlValue(ResSc
alarValue.java:55)
at brut.androlib.res.data.value.ResStyleValue.serializeToResValuesXml(Re
sStyleValue.java:56)
at brut.androlib.res.AndrolibResources.generateValuesFile(AndrolibResour
ces.java:339)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:174
)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:113)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:99)
at brut.apktool.Main.cmdDecode(Main.java:131)
at brut.apktool.Main.main(Main.java:68)

C:\Users\Hugh McCabe\Android\apktool>

I'm using this guide to add search nav button: http://rootzwiki.com/topic/30278-how-to-step-by-step-guide-to-add-menu-and-search-soft-keys/