[Android Q&A, Help & Troubleshooting] tomi456:
Hello,

I want to recompile SystemUI.apk for my galaxy mini.

When I decompile I get this:

I: Baksmaling...
testI: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\Tom\apktool\framework\1.apk
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=prvandroid, na
me=outerRingDrawable, value=0x7f02012a
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, na
me=pointDrawable, value=0x0108030c
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, na
me=glowRadius, value=0x01050022
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, na
me=targetDrawables, value=0x7f080000
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, na
me=outerRadius, value=0x7f0e0030
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, na
me=vibrationDuration, value=0x7f0d0002
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, na
me=snapMargin, value=0x7f0e002e
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=0x01080670
W: Could not decode attr value, using undecoded value instead: ns=android, name=
drawable, value=0x0108066f
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, na
me=outerRingDrawable, value=0x7f02012a
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, na
me=pointDrawable, value=0x0108030c
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, na
me=glowRadius, value=0x01050022
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, na
me=targetDrawables, value=0x7f080000
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, na
me=outerRadius, value=0x7f0e0030
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, na
me=vibrationDuration, value=0x7f0d0002
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, na
me=snapMargin, value=0x7f0e002e
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=0x0108066f
W: Could not decode attr value, using undecoded value instead: ns=android, name=
drawable, value=0x01080670
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, na
me=outerRingDrawable, value=0x7f02012a
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, na
me=pointDrawable, value=0x0108030c
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, na
me=glowRadius, value=0x01050022
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, na
me=targetDrawables, value=0x7f080000
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, na
me=outerRadius, value=0x7f0e0030
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, na
me=vibrationDuration, value=0x7f0d0002
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, na
me=snapMargin, value=0x7f0e002e
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:
0x0104053f
at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:61)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:55)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:51)
at brut.androlib.res.data.value.ResReferenceValue.getReferent(ResReferen
ceValue.java:59)
at brut.androlib.res.data.value.ResReferenceValue.encodeAsResXml(ResRefe
renceValue.java:46)
at brut.androlib.res.data.value.ResScalarValue.encodeAsResXmlValue(ResSc
alarValue.java:54)
at brut.androlib.res.data.value.ResScalarValue.encodeAsResXmlItemValue(R
esScalarValue.java:47)
at brut.androlib.res.data.value.ResArrayValue.serializeToResValuesXml(Re
sArrayValue.java:55)
at brut.androlib.res.AndrolibResources.generateValuesFile(AndrolibResour
ces.java:264)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:137
)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:93)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:98)
at brut.apktool.Main.cmdDecode(Main.java:128)
at brut.apktool.Main.main(Main.java:65)

So, I skip that errors, and edited the files.

And then, When I want to recompile, I get this:

Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathN
otExist: apktool.yml
at brut.androlib.Androlib.readMetaFile(Androlib.java:142)
at brut.androlib.Androlib.build(Androlib.java:159)
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.directory.PathNotExist: apktool.yml
at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:
103)
at brut.androlib.Androlib.readMetaFile(Androlib.java:138)
... 4 more

I tried to find solution for the problem, but I dont find...

Please help me...