[General Questions and Answers] Shrimpbush:
Problem: I cannot decompile or compile the settings.apk from the 2.47 HTC Inspire ROM without errors. They are the same errors others have reported on the 20 or so threads I've come across for various phones, but no one has reported a solution. I've tried apktool, easy apktool, apk multi-tool, and apk manager. They all give the same errors and outcome. I understand the framework installation/dependencies and have kept the same actions with each of the programs used. I even went as far as changing java revisions as one thread suggested.

I'm stuck.

This is the last hurdle I have to complete my first ROM. I'd really appreciate some serious help.

This is the decompile error:

apktool d Settings.apk

I: Baksmaling...

testI: Loading resource table...

W: Skipping "android" package group	---	WHAT DOES THIS MEAN???

I: Loaded.

I: Loading resource table from file: C:\Documents and Settings\Patrick\apktool\framework\1.apk

I: Loaded.

W: Could not decode attr value, using undecoded value instead: ns=android, name=icon, value=0x02

080154

W: Could not decode attr value, using undecoded value instead: ns=android, name=icon, value=0x02

080154

I: Decoding file-resources...

W: Could not decode attr value, using undecoded value instead: ns=android, name=textSize, value=

0x02050029

W: Could not decode attr value, using undecoded value instead: ns=android, name=textSize, value=

0x020500b6

W: Could not decode attr value, using undecoded value instead: ns=android, name=textSize, value=

0x02050032

W: Could not decode attr value, using undecoded value instead: ns=android, name=textSize, value=

0x02050038

W: Could not decode attr value, using undecoded value instead: ns=android, name=textSize, value=

0x020500b6

W: Could not decode attr value, using undecoded value instead: ns=android, name=src, value=0x020

80331

W: Could not decode attr value, using undecoded value instead: ns=android, name=textSize, value=

0x020500b6

W: Could not decode attr value, using undecoded value instead: ns=android, name=textSize, value=

0x020500b6

W: Could not decode attr value, using undecoded value instead: ns=android, name=src, value=0x020

8003e

W: Could not decode attr value, using undecoded value instead: ns=android, name=textColor, value

=0x020a0038

W: Could not decode attr value, using undecoded value instead: ns=android, name=textSize, value=

0x020500b6

W: Could not decode attr value, using undecoded value instead: ns=android, name=minHeight, value

=0x0205004e

W: Could not decode attr value, using undecoded value instead: ns=android, name=textColor, value

=0x020a0038

W: Could not decode attr value, using undecoded value instead: ns=android, name=minHeight, value

=0x0205004e

W: Could not decode attr value, using undecoded value instead: ns=android, name=minHeight, value

=0x0205004e

W: Could not decode attr value, using undecoded value instead: ns=android, name=minHeight, value

=0x0205004e

W: Could not decode attr value, using undecoded value instead: ns=android, name=textSize, value=

0x020500b6

W: Could not decode attr value, using undecoded value instead: ns=android, name=textSize, value=

0x020500b6

W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=

0x020804a8

W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=

0x020804aa

W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=

0x020804a9

W: Could not decode attr value, using undecoded value instead: ns=android, name=background, valu

e=0x020800e0

W: Could not decode attr value, using undecoded value instead: ns=android, name=src, value=0x020

805a4

W: Could not decode attr value, using undecoded value instead: ns=android, name=src, value=0x020

80339

W: Could not decode attr value, using undecoded value instead: ns=android, name=textSize, value=

0x020500b6

W: Could not decode attr value, using undecoded value instead: ns=android, name=textSize, value=

0x020500b6

W: Could not decode attr value, using undecoded value instead: ns=android, name=textSize, value=

0x020500b6

W: Could not decode attr value, using undecoded value instead: ns=android, name=textSize, value=

0x020500b6

W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_marginLef

t, value=0x0205004f

W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_marginTop

, value=0x02050051

W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_marginRig

ht, value=0x02050050

W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_marginBot

tom, value=0x02050051

W: Could not decode attr value, using undecoded value instead: ns=android, name=textSize, value=

0x02050049

W: Could not decode attr value, using undecoded value instead: ns=android, name=textColor, value

=0x020a0005

W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_marginLef

t, value=0x0205004f

W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_marginRig

ht, value=0x02050050

W: Could not decode attr value, using undecoded value instead: ns=android, name=textSize, value=

0x02050049

W: Could not decode attr value, using undecoded value instead: ns=android, name=textColor, value

=0x020a0005

W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_marginLef

t, value=0x0205004f

W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_marginRig

ht, value=0x02050050

W: Could not decode attr value, using undecoded value instead: ns=android, name=minHeight, value

=0x0205004e

W: Could not decode attr value, using undecoded value instead: ns=android, name=textSize, value=

0x020500b6

W: Could not decode attr value, using undecoded value instead: ns=android, name=textSize, value=

0x020500b6

W: Could not decode attr value, using undecoded value instead: ns=android, name=textSize, value=

0x020500b6

W: Could not decode attr value, using undecoded value instead: ns=android, name=minHeight, value

=0x0205004e

W: Could not decode attr value, using undecoded value instead: ns=android, name=textSize, value=

0x02050049

W: Could not decode attr value, using undecoded value instead: ns=android, name=textColor, value

=0x020a0005

W: Could not decode attr value, using undecoded value instead: ns=android, name=textSize, value=

0x020500b6

W: Could not decode attr value, using undecoded value instead: ns=android, name=textSize, value=

0x020500b6

W: Could not decode attr value, using undecoded value instead: ns=android, name=textSize, value=

0x020500b6

W: Could not decode attr value, using undecoded value instead: ns=android, name=textSize, value=

0x020500b6

W: Could not decode attr value, using undecoded value instead: ns=android, name=textSize, value=

0x020500b6

W: Could not decode attr value, using undecoded value instead: ns=android, name=textSize, value=

0x020500b6

W: Could not decode attr value, using undecoded value instead: ns=android, name=minHeight, value

=0x0205004e

W: Could not decode attr value, using undecoded value instead: ns=android, name=textSize, value=

0x0205000f

W: Could not decode attr value, using undecoded value instead: ns=android, name=textSize, value=

0x0205001a

W: Could not decode attr value, using undecoded value instead: ns=android, name=background, valu

e=0x02080689

W: Could not decode attr value, using undecoded value instead: ns=android, name=src, value=0x020

8068a

W: Could not decode attr value, using undecoded value instead: ns=android, name=background, valu

e=0x02080688

W: Could not decode attr value, using undecoded value instead: ns=android, name=textSize, value=

0x020500b6

W: Could not decode attr value, using undecoded value instead: ns=android, name=textColor, value

=0x020a0038

W: Could not decode attr value, using undecoded value instead: ns=android, name=textColor, value

=0x020a0038

W: Could not decode attr value, using undecoded value instead: ns=android, name=textSize, value=

0x020500b6

W: Could not decode attr value, using undecoded value instead: ns=android, name=textSize, value=

0x020500b6

W: Could not decode attr value, using undecoded value instead: ns=android, name=textSize, value=

0x020500b6

W: Could not decode attr value, using undecoded value instead: ns=android, name=textSize, value=

0x020500b6

W: Could not decode attr value, using undecoded value instead: ns=android, name=textSize, value=

0x020500b6

W: Could not decode attr value, using undecoded value instead: ns=android, name=src, value=0x020

80323

W: Could not decode attr value, using undecoded value instead: ns=android, name=textSize, value=

0x02050026

W: Could not decode attr value, using undecoded value instead: ns=android, name=textSize, value=

0x02050049

W: Could not decode attr value, using undecoded value instead: ns=android, name=textColor, value

=0x020a0005

W: Could not decode attr value, using undecoded value instead: ns=android, name=minHeight, value

=0x0205004e

W: Could not decode attr value, using undecoded value instead: ns=android, name=textSize, value=

0x020500b6

W: Could not decode attr value, using undecoded value instead: ns=android, name=textSize, value=

0x020500b6

W: Could not decode attr value, using undecoded value instead: ns=android, name=src, value=0x020

80218

W: Could not decode attr value, using undecoded value instead: ns=android, name=minHeight, value

=0x0205004e

W: Could not decode attr value, using undecoded value instead: ns=android, name=textSize, value=

0x020500b6

W: Could not decode attr value, using undecoded value instead: ns=android, name=textSize, value=

0x020500b6

W: Could not decode attr value, using undecoded value instead: ns=android, name=minHeight, value

=0x0205004e

W: Could not decode attr value, using undecoded value instead: ns=android, name=textSize, value=

0x020500b6

W: Could not decode attr value, using undecoded value instead: ns=android, name=textSize, value=

0x020500b6

W: Could not decode attr value, using undecoded value instead: ns=android, name=textSize, value=

0x020500b6

W: Could not decode attr value, using undecoded value instead: ns=android, name=textSize, value=

0x020500b6

W: Could not decode attr value, using undecoded value instead: ns=android, name=textSize, value=

0x020500b6

W: Could not decode attr value, using undecoded value instead: ns=android, name=textSize, value=

0x020500b6

W: Could not decode attr value, using undecoded value instead: ns=android, name=textSize, value=

0x020500b6

W: Could not decode attr value, using undecoded value instead: ns=android, name=textSize, value=

0x020500b6

W: Could not decode attr value, using undecoded value instead: ns=android, name=textSize, value=

0x020500b6

W: Could not decode attr value, using undecoded value instead: ns=android, name=textSize, value=

0x020500b6

W: Could not decode attr value, using undecoded value instead: ns=android, name=textSize, value=

0x020500b6

W: Could not decode attr value, using undecoded value instead: ns=android, name=textSize, value=

0x020500b6

W: Could not decode attr value, using undecoded value instead: ns=android, name=textSize, value=

0x020500b6

W: Could not decode attr value, using undecoded value instead: ns=android, name=textSize, value=

0x020500b6

W: Could not decode attr value, using undecoded value instead: ns=android, name=textSize, value=

0x020500b6

W: Could not decode attr value, using undecoded value instead: ns=android, name=textSize, value=

0x020500b6

W: Could not decode attr value, using undecoded value instead: ns=android, name=textSize, value=

0x020500b6

W: Could not decode attr value, using undecoded value instead: ns=android, name=textColor, value

=0x020a0038

W: Could not decode attr value, using undecoded value instead: ns=android, name=textSize, value=

0x020500b6

W: Could not decode attr value, using undecoded value instead: ns=android, name=textSize, value=

0x020500b6

W: Could not decode attr value, using undecoded value instead: ns=android, name=background, valu

e=0x02080588

W: Could not decode attr value, using undecoded value instead: ns=android, name=textSize, value=

0x020500b6

W: Could not decode attr value, using undecoded value instead: ns=android, name=textSize, value=

0x020500b6

W: Could not decode attr value, using undecoded value instead: ns=android, name=textSize, value=

0x020500b6

W: Could not decode attr value, using undecoded value instead: ns=android, name=background, valu

e=0x02080085

W: Could not decode attr value, using undecoded value instead: ns=android, name=divider, value=0

x02080669

W: Could not decode attr value, using undecoded value instead: ns=android, name=textSize, value=

0x020500b6

W: Could not decode attr value, using undecoded value instead: ns=android, name=textSize, value=

0x020500b6

W: Could not decode attr value, using undecoded value instead: ns=android, name=textSize, value=

0x020500b6

W: Could not decode attr value, using undecoded value instead: ns=android, name=divider, value=0

x020805bf

W: Could not decode attr value, using undecoded value instead: ns=android, name=textSize, value=

0x020500b6

W: Could not decode attr value, using undecoded value instead: ns=android, name=textSize, value=

0x020500b6

W: Could not decode attr value, using undecoded value instead: ns=android, name=textSize, value=

0x02050049

W: Could not decode attr value, using undecoded value instead: ns=android, name=textSize, value=

0x0205004a

W: Could not decode attr value, using undecoded value instead: ns=android, name=icon, value=0x02

080154

W: Could not decode attr value, using undecoded value instead: ns=android, name=background, valu

e=0x02080588

I: Decoding values*/* XMLs...

Can't find framework resources for package of id: 2. You must install proper framework files, se

e project website for more info.

This is the first compile error:

apktool b Settings Settings_New.apk

Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathNotExist: 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:174)

at brut.apktool.Main.main(Main.java:59)

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 realized when apktool decompiled the apk it did not include the apktool.yml file. First I wanted to know why it wasn't included. But I got impatient/frustrated so I took the yml file from the decompiled SystemUI.apk folder and added it to the decompiled Settings.apk folder.)

This is the second compile error with the apktool.yml file added:

apktool b Settings Settings_New.apk

I: Checking whether sources has changed...

I: Smaling...

I: Checking whether resources has changed...

I: Building resources...

Exception in thread "main" brut.androlib.err.CantFindFrameworkResException

at brut.androlib.res.AndrolibResources.getFrameworkApk(AndrolibResources.java:366)

at brut.androlib.Androlib.parseUsesFramework(Androlib.java:396)

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:174)

at brut.apktool.Main.main(Main.java:59)

Any help will be greatly appreciated.