So to get right to the point, I haven't tried my hand at theming in quite awhile. Whenever i did, I really only did 3rd party apps. I have been trying to theme the flashservicebar.apk. Whenever I try to decompile the apk I get errors. Has anyone seen these before, and can give me some hints as to what i am doing wrong? I have read guide after guide, and i know i am missing a small step, but for the life of me I Can't figure out what I am doing wrong. Any help, or suggestions would be greatly appreciated.
C:\android\platform-tools\apktool>apktool d flashbarserviceclean.apk
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\jeramyeggers\apktool\framework\1.a
pk
I: Loaded.
I: Regular manifest package...
I: Decoding file-resources...
W: Could not decode attr value, using undecoded value instead: ns=android, name=
requiresFadingEdge, value=0x00001000
W: Could not decode attr value, using undecoded value instead: ns=android, name=
requiresFadingEdge, value=0x00002000
I: Decoding values */* XMLs...
I: Done.
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec:
0x010103a5
at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:61)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:58)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:54)
at brut.androlib.res.decoder.ResAttrDecoder.decode(ResAttrDecoder.java:3
5)
at brut.androlib.res.decoder.AXmlResourceParser.getAttributeValue(AXmlRe
sourceParser.java:313)
at org.xmlpull.v1.wrapper.classic.XmlPullParserDelegate.getAttributeValu
e(XmlPullParserDelegate.java:69)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.writeStartT
ag(StaticXmlSerializerWrapper.java:267)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.event(Stati
cXmlSerializerWrapper.java:211)
at brut.androlib.res.decoder.XmlPullStreamDecoder$1.event(XmlPullStreamD
ecoder.java:80)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(XmlPullStreamDe
coder.java:130)
at brut.androlib.res.decoder.ResStreamDecoderContainer.decode(ResStreamD
ecoderContainer.java:34)
at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:1
07)
at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:9
1)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:238
)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:115)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:114)
at brut.apktool.Main.cmdDecode(Main.java:146)
at brut.apktool.Main.main(Main.java:77)
Did you install the two framework files, framework-res.apk and twframework-res.apk, for apktool to use when decompiling?
Yeah, I did that. Like I said, I have read som many guides at this point. I am going to reinstall the 2 framework files again. When I do that, it will overwrite them, right? I will go ahead and try this, but as I have said, I have done it already. I don't want to set everything up again. I have java, and andeoid sdk setup right. So I think it is just apktool I am stuggling with. May go ahead, and trycto set up apktool from scratch. It's funny, because the last time I tried hand at theming, I had no problems. I just suck at graphic design.
Sent from my SCH-I605 using Tapatalk 2
Related
Hi guys, go to
http://forum.xda-developers.com/showthread.php?p=23644305 to get yours. it's ray home.apk but should be compatible with arc or neo
Now with Xperia S style of home launcher
Added Xperia S mirror effect on Lower Dock..
REQ: Edit Home.apk of Xperia-s
hansip87,
I was trying to decompile the xperia s home.apk, which i have got it from one of your link. i'm running into the below issue. could you please help me out, what is wrong that i'm doing?
-----------------------------------------------------------------------------------------------------------
error
-----------------------------------------------------------------------------------------------------------
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\admroot\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
W: Could not decode attr value, using undecoded value instead: ns=android, name=textAppearance, value=0x02090045
W: Could not decode attr value, using undecoded value instead: ns=android, name=textAppearance, value=0x02090048
W: Could not decode attr value, using undecoded value instead: ns=android, name=textAppearance, value=0x02090045
W: Could not decode attr value, using undecoded value instead: ns=android, name=textAppearance, value=0x02090048
I: Decoding values*/* XMLs...
-----------------------------------------------------------------------------------------------------------
Note: Before editing, i have downloaded framework-res.apk of xperia s and did an 'apktool if framework-res.apk' as well. I'm also using the apktool recommended by you in one of your reply.
-Thanks
please update the apktool.jar to at least version 1.4.1. Don't have any link now unfortunately. the old download link is expired Or you can update by searching @ google "apktool"
hansip,
I have managed it to decompile by including the other resource file of xperia-s.
-Thanks.
Hi Guys
I do this in commandline (win 7 64bit)
apktool b instantPhilipp.apk
Click to expand...
Click to collapse
and get this:
I: Checking whether sources has changed...
I: Smaling...
Exception in thread "main" brut.androlib.AndrolibException: Could not smali file: [email protected]
at brut.androlib.src.DexFileBuilder.addSmaliFile(DexFileBuilder.java:45)
at brut.androlib.src.DexFileBuilder.addSmaliFile(DexFileBuilder.java:33)
at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.java:64)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:48)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:35)
at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:243)
at brut.androlib.Androlib.buildSources(Androlib.java:200)
at brut.androlib.Androlib.build(Androlib.java:191)
at brut.androlib.Androlib.build(Androlib.java:174)
at brut.apktool.Main.cmdBuild(Main.java:185)
at brut.apktool.Main.main(Main.java:70)
Click to expand...
Click to collapse
How can I fix that?
zocker1996 said:
Hi Guys
I do this in commandline (win 7 64bit)
and get this:
How can I fix that?
Click to expand...
Click to collapse
What version of android is that app for? Jellybean?
___________________
Bacon in my coffee, please? You don't have any bacon?! Unacceptable!!
---------- Post added at 07:48 PM ---------- Previous post was at 07:47 PM ----------
Try http://forum.xda-developers.com/showthread.php?t=1814441
___________________
Bacon in my coffee, please? You don't have any bacon?! Unacceptable!!
triptosyll said:
What version of android is that app for? Jellybean?
Click to expand...
Click to collapse
No, its for my hero (elinux not sure which version, based on cyanogenMod 7.2, 2.3.7)
and btw: i have no freamwork.apk on my pc, as i understanded the sence of these, i only ned it if i use systemapps.
and i instantphilipp isn't a systemapp.
EDIT
I decompiled it again and found this as eror but the decompiled files are there,too:
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\Eric Prokop\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
W: Could not decode attr value, using undecoded value instead: ns=android, name=resizeMode, value=0x00000003
W: Could not decode attr value, using undecoded value instead: ns=android, name=minResizeWidth, value=0x00004801
W: Could not decode attr value, using undecoded value instead: ns=android, name=minResizeHeight, value=0x00004801
I: Decoding values*/* XMLs...
I: Done.
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x01010363
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.decoder.ResAttrDecoder.decode(ResAttrDecoder.java:35)
at brut.androlib.res.decoder.AXmlResourceParser.getAttributeValue(AXmlResourceParser.java:315)
at org.xmlpull.v1.wrapper.classic.XmlPullParserDelegate.getAttributeValue(XmlPullParserDelegate.java:69)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.writeStartTag(StaticXmlSerializerWrapper.java:267)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.event(StaticXmlSerializerWrapper.java:211)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(XmlPullStreamDecoder.java:48)
at brut.androlib.res.decoder.ResStreamDecoderContainer.decode(ResStreamDecoderContainer.java:34)
at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:102)
at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:86)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:170)
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)
Click to expand...
Click to collapse
Push... (i have added some edits ^^)
PUSH
lesiki said:
PUSH
Click to expand...
Click to collapse
I gave u a link to a thread where everyone is talking about this exact thing. Your more likely to get accurate answers there. And a lot more eyes that will see ur questions.
Sent from my Motorola Electrify using xda app-developers app
Hi guys, i use Cyanogenmod 10.1 with a theme, and i would decompile/edit and compile SystemUI.apk but when i try with apktool show me this error
Code:
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\lucry\apktool\framework\1.apk
I: Loaded.
I: Regular manifest package...
I: Decoding file-resources...
W: Could not decode attr value, using undecoded value instead: ns=android, name=
drawable, value=0x01080666
W: Could not decode attr value, using undecoded value instead: ns=android, name=
drawable, value=0x01080665
W: Could not decode attr value, using undecoded value instead: ns=android, name=
drawable, value=0x01080665
S: Could not decode file, replacing by FALSE value: layout/status_bar.xml
W: Could not decode attr value, using undecoded value instead: ns=android, name=
drawable, value=0x01080666
I: Decoding values */* XMLs...
I: Done.
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec:
0x01080666
at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:61)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:58)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:54)
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.encodeAsResXmlAttr(ResSca
larValue.java:44)
at brut.androlib.res.decoder.ResAttrDecoder.decode(ResAttrDecoder.java:4
0)
at brut.androlib.res.decoder.AXmlResourceParser.getAttributeValue(AXmlRe
sourceParser.java:313)
at org.xmlpull.v1.wrapper.classic.XmlPullParserDelegate.getAttributeValu
e(XmlPullParserDelegate.java:69)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.writeStartT
ag(StaticXmlSerializerWrapper.java:267)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.event(Stati
cXmlSerializerWrapper.java:211)
at brut.androlib.res.decoder.XmlPullStreamDecoder$1.event(XmlPullStreamD
ecoder.java:80)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(XmlPullStreamDe
coder.java:130)
at brut.androlib.res.decoder.ResStreamDecoderContainer.decode(ResStreamD
ecoderContainer.java:34)
at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:1
07)
at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:9
1)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:238
)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:115)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:114)
at brut.apktool.Main.cmdDecode(Main.java:146)
at brut.apktool.Main.main(Main.java:77)
how can i fix this problem??
bump
I want to dcompile and recompile below systemui.apk but i am getting following error.i have tried many ways apktool apkmanager,,etc but still getting same error...pls help me..
|13-Jul-13 -- 1:32:42.08|
--------------------------------------------------------------------------
java version "1.6.0_31"
Java(TM) SE Runtime Environment (build 1.6.0_31-b05)
Java HotSpot(TM) Client VM (build 20.6-b01, mixed mode, sharing)
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\Purval\apktool\framework\1.apk
I: Loaded.
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Done.
I: Copying assets and libs...
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\Purval\apktool\framework\1.apk
I: Loaded.
I: Regular manifest package...
I: Decoding file-resources...
W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x010806ff
I: Decoding values */* XMLs...
I: Done.
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x010806ff
at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:61)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:58)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:54)
at brut.androlib.res.data.value.ResReferenceValue.getReferent(ResReferenceValue.java:62)
at brut.androlib.res.data.value.ResReferenceValue.encodeAsResXml(ResReferenceValue.java:46)
at brut.androlib.res.data.value.ResScalarValue.encodeAsResXmlAttr(ResScalarValue.java:44)
at brut.androlib.res.decoder.ResAttrDecoder.decode(ResAttrDecoder.java:40)
at brut.androlib.res.decoder.AXmlResourceParser.getAttributeValue(AXmlResourceParser.java:313)
at org.xmlpull.v1.wrapper.classic.XmlPullParserDelegate.getAttributeValue(XmlPullParserDelegate.java:69)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.writeStartTag(StaticXmlSerializerWrapper.java:267)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.event(StaticXmlSerializerWrapper.java:211)
at brut.androlib.res.decoder.XmlPullStreamDecoder$1.event(XmlPullStreamDecoder.java:80)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(XmlPullStreamDecoder.java:130)
at brut.androlib.res.decoder.ResStreamDecoderContainer.decode(ResStreamDecoderContainer.java:34)
at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:107)
at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:91)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:238)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:115)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:114)
at brut.apktool.Main.cmdDecode(Main.java:146)
at brut.apktool.Main.main(Main.java:77)
I'm positive these threads are a dime a dozen but now i'm at a loss. I have been working for a number of days on a new android project. I stored the whole thing on my memory stick on my keys which i kept on me at all times.
It however appears that today they have been stolen as i walked through town and i was stupid enough to not backup the data. I've attempted to use ApkTool with all manner of different versions and framework-res files but every single time i'm presented with this error:
Code:
I: Using Apktool 2.0.0-Beta9 on par.apk
I: Loading resource table...
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\Jayminor\apktool\framework\1.apk
I: Regular manifest package...
I: Decoding file-resources...
W: Could not decode attr value, using undecoded value instead: ns=android, name=touchscreenBlocksFocus, value=0xffffffff
W: Could not decode attr value, using undecoded value instead: ns=android, name=paddingMode, value=0x00000001
I: Decoding values */* XMLs...
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x01010462
at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:59)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:59)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:55)
at brut.androlib.res.data.value.ResReferenceValue.getReferent(ResReferenceValue.java:60)
at brut.androlib.res.data.value.ResStyleValue.serializeToResValuesXml(ResStyleValue.java:54)
at brut.androlib.res.AndrolibResources.generateValuesFile(AndrolibResources.java:553)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:309)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:116)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:114)
at brut.apktool.Main.cmdDecode(Main.java:169)
at brut.apktool.Main.main(Main.java:85)
I have no smart-guard or obfuscation of any kind on the project and it is all but vanilla. I've no idea why it's posing so many problems?
I'm hoping someone knowledgeable has it in their heart to help me out here Sorry again.