[Android General] chankruze:
# I got following error while decompiling

chandu@chandu-hp:~/Desktop$ apktool d Settings.apk
I: Using Apktool 2.1.0 on Settings.apk
I: Loading resource table...
I: Decoding Shared Library (com.mediatek), pkgId: 8
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: /home/chandu/apktool/framework/1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=enabled, value=0x011200ee
I: Regular manifest package...
I: Decoding file-resources...
W: Could not decode attr value, using undecoded value instead: ns=android, name=summary, value=0x010405bd
W: Could not decode attr value, using undecoded value instead: ns=android, name=summary, value=0x010405be
W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x01010530
W: Could not decode attr value, using undecoded value instead: ns=android, name=textColor, value=0x01060139
W: Could not decode attr value, using undecoded value instead: ns=android, name=textColor, value=0x01060139
W: Could not decode attr value, using undecoded value instead: ns=android, name=textColor, value=0x01060139
I: Decoding values */* XMLs...
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x01010506
at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:59)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:66)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:62)
at brut.androlib.res.data.value.ResReferenceValue.getReferent(ResReferenceValue.java:57)
at brut.androlib.res.data.value.ResStyleValue.serializeToResValuesXml(ResStyleValue.java:54)
at brut.androlib.res.AndrolibResources.generateValuesFile(AndrolibResources.java:510)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:264)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:128)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:106)
at brut.apktool.Main.cmdDecode(Main.java:163)
at brut.apktool.Main.main(Main.java:81)

before that i use if framework-res.apk & got this,

chandu@chandu-hp:~/apktool$ apktool if framework-res.apk
Exception in thread "main" brut.androlib.AndrolibException: java.io.FileNotFoundException: framework-res.apk (No such file or directory)
at brut.androlib.res.AndrolibResources.installFramework(AndrolibResources.java:627)
at brut.androlib.res.AndrolibResources.installFramework(AndrolibResources.java:589)
at brut.androlib.Androlib.installFramework(Androlib.java:640)
at brut.apktool.Main.cmdInstallFramework(Main.java:239)
at brut.apktool.Main.main(Main.java:87)
Caused by: java.io.FileNotFoundException: framework-res.apk (No such file or directory)
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:225)
at java.util.zip.ZipFile.<init>(ZipFile.java:155)
at java.util.zip.ZipFile.<init>(ZipFile.java:169)
at brut.androlib.res.AndrolibResources.installFramework(AndrolibResources.java:597)
... 4 more

#The following errors while compiling

chandu@chandu-hp:~/Desktop$ apktool b Settings -o Settings.apk
I: Using Apktool 2.1.0
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathNotExist: apktool.yml
at brut.androlib.Androlib.readMetaFile(Androlib.java:249)
at brut.androlib.Androlib.build(Androlib.java:261)
at brut.androlib.Androlib.build(Androlib.java:254)
at brut.apktool.Main.cmdBuild(Main.java:224)
at brut.apktool.Main.main(Main.java:84)
Caused by: brut.directory.PathNotExist: apktool.yml
at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:105)
at brut.androlib.Androlib.readMetaFile(Androlib.java:245)
... 4 more

Can some one explain why these errors coming ?

---------- Post added at 07:34 AM ---------- Previous post was at 07:25 AM ----------

When i try again by opening terminal from the apk's directory,i got additional errors

chandu@chandu-hp:~/Desktop$ apktool d Settings.apk
I: Using Apktool 2.1.0 on Settings.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: /home/chandu/apktool/framework/1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=label, value=0x3f06007c
W: Could not decode attr value, using undecoded value instead: ns=android, name=label, value=0x3f06007c
W: Could not decode attr value, using undecoded value instead: ns=android, name=label, value=0x3f06007c
I: Regular manifest package...
I: Decoding file-resources...
W: Could not decode attr value, using undecoded value instead: ns=lineage, name=replacesKey, value=0x00000013
W: Could not decode attr value, using undecoded value instead: ns=cm, name=requiresPackage, value=0x0000001e
W: Could not decode attr value, using undecoded value instead: ns=cm, name=requiresOwner, value=0xffffffff
W: Could not decode attr value, using undecoded value instead: ns=android, name=summary, value=0x01040633
W: Could not decode attr value, using undecoded value instead: ns=cm, name=requiresFeature, value=0x00000027
W: Could not decode attr value, using undecoded value instead: ns=lineage, name=requiresFeature, value=0x00000014
W: Could not decode attr value, using undecoded value instead: ns=lineage, name=requiresFeature, value=0x00000014
W: Could not decode attr value, using undecoded value instead: ns=lineage, name=replacesKey, value=0x00000013
W: Could not decode attr value, using undecoded value instead: ns=cm, name=requiresFeature, value=0x00000021
W: Could not decode attr value, using undecoded value instead: ns=cm, name=requiresFeature, value=0x00000023
W: Could not decode attr value, using undecoded value instead: ns=cm, name=requiresFeature, value=0x00000027
W: Could not decode attr value, using undecoded value instead: ns=cm, name=replacesKey, value=0x00000030
W: Could not decode attr value, using undecoded value instead: ns=cm, name=requiresConfig, value=0x3f050001
W: Could not decode attr value, using undecoded value instead: ns=cm, name=requiresFeature, value=0x0000003a
W: Could not decode attr value, using undecoded value instead: ns=cm, name=requiresConfig, value=0x3f050003
W: Could not decode attr value, using undecoded value instead: ns=android, name=summary, value=0x01040634
W: Could not decode attr value, using undecoded value instead: ns=cm, name=requiresConfig, value=0x011200da
W: Could not decode attr value, using undecoded value instead: ns=cm, name=requiresConfig, value=0x011200da
W: Could not decode attr value, using undecoded value instead: ns=android, name=textColor, value=0x01060142
W: Could not decode attr value, using undecoded value instead: ns=android, name=textColor, value=0x01060142
W: Could not decode attr value, using undecoded value instead: ns=android, name=textColor, value=0x01060142
W: Could not decode attr value, using undecoded value instead: ns=cm, name=requiresConfig, value=0x011200da
W: Could not decode attr value, using undecoded value instead: ns=android, name=scrollbarStyle, value=0x010e00c1
W: Could not decode attr value, using undecoded value instead: ns=cm, name=requiresConfig, value=0x01120049
W: Could not decode attr value, using undecoded value instead: ns=cm, name=requiresConfig, value=0x01120048
W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x01010530
W: Could not decode attr value, using undecoded value instead: ns=cm, name=requiresConfig, value=0x011200da
I: Decoding values */* XMLs...
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x01010506
at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:59)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:66)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:62)
at brut.androlib.res.data.value.ResReferenceValue.getReferent(ResReferenceValue.java:57)
at brut.androlib.res.data.value.ResStyleValue.serializeToResValuesXml(ResStyleValue.java:54)
at brut.androlib.res.AndrolibResources.generateValuesFile(AndrolibResources.java:510)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:264)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:128)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:106)
at brut.apktool.Main.cmdDecode(Main.java:163)
at brut.apktool.Main.main(Main.java:81)
chandu@chandu-hp:~/Desktop$