[help] Decompile com.htc.resources - Desire HD General

Hi, i'm trying to decompile the file com.htc.resources using apktool but i get an error
Code:
W: Could not decode attr value, using undecoded value instead: ns=android, name=src, value=0x0108035e
W: Could not decode attr value, using undecoded value instead: ns=android, name=background, value=0x01080366
W: Could not decode attr value, using undecoded value instead: ns=android, name=src, value=0x0108035e
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x0108035e
at brut.androlib.res.data.ResPackage.getResSpec(Unknown Source)
at brut.androlib.res.data.ResTable.getResSpec(Unknown Source)
at brut.androlib.res.data.ResTable.getResSpec(Unknown Source)
at brut.androlib.res.data.value.ResReferenceValue.getReferent(Unknown Source)
at brut.androlib.res.data.value.ResReferenceValue.toResXmlFormat(Unknown Source)
at brut.androlib.res.data.value.ResAttr.convertToResXmlFormat(Unknown Source)
at brut.androlib.res.decoder.ResAttrDecoder.decode(Unknown Source)
at brut.androlib.res.decoder.AXmlResourceParser.getAttributeValue(Unknown Source)
at org.xmlpull.v1.wrapper.classic.XmlPullParserDelegate.getAttributeValue(Unknown Source)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.writeStartTag(Unknown Source)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.event(Unknown Source)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(Unknown Source)
at brut.androlib.res.decoder.ResStreamDecoderContainer.decode(Unknown Source)
at brut.androlib.res.decoder.ResFileDecoder.decode(Unknown Source)
at brut.androlib.res.decoder.ResFileDecoder.decode(Unknown Source)
at brut.androlib.res.AndrolibResources.decode(Unknown Source)
at brut.androlib.Androlib.decodeResourcesFull(Unknown Source)
at brut.androlib.ApkDecoder.decode(Unknown Source)
at brut.apktool.Main.cmdDecode(Unknown Source)
at brut.apktool.Main.main(Unknown Source)
anyone can help me find how to decompile this file...
or if anyone can upload the decompiled file.
Thanks!!!

I thought the HTC/Sense modifications to Android were closed source?
Perhaps it is protected or you do not have the correct permissions.

I didn't have any problems to decompile that file for the desire but for the desire HD its not working, maybe thy add some protections but i don't think so because i can decompile the framework-res.

please, anyone?
PLEASE.........

As far as I know you cant decompile you can only rebuild from original sources
Why would you want to decompile?

And there i can find the original sources?
i what to add new language.

PLEASE.........

padlets said:
PLEASE.........
Click to expand...
Click to collapse
HTC have released them, look on the htc site or seach google the sources are there somewhere
Thats all i know but other people on here should be able to help you compile
Good Luck!!

You certainly can decompile htcresources - you just need to install them also as additional framework in apktool. The easiest way is using apkmanager and decompile with 10, then draw your htcresources in the window and it will decompile.
Note - only decompile unthemed htcresources, otherwise it will not compile if there is only a single wrong patched .9.png from a theme.

What would these files be used for?
Sent from my Desire HD using XDA App

Related

[Q] How to edit strings.xml after unpacked with ApkTool?

During I unpacking the Settings.apk, get the following error:
This is the Settings.apk deodexed from XWJMI,
I do this as willing to edit the UI language of the apk.
It is not possible to pack the apk after I finished edit the strings.xml
Your help is appreicate.. Thank You
C:\APKTOOL\APKTOOL\apkEdit>unPack Settings.apk
Unpacking APKs...
I: Baksmaling...
I: Loading resource table...
W: Skipping "android" package group
I: Decoding resources...
I: Loading resource table from file: R:\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=
minHeight, value=0x0105000b
W: Could not decode attr value, using undecoded value instead: ns=android, name=
textColor, value=0x0106003a
W: Could not decode attr value, using undecoded value instead: ns=android, name=
background, value=0x01080364
W: Could not decode attr value, using undecoded value instead: ns=android, name=
layout_height, value=0x0105000b
W: Could not decode attr value, using undecoded value instead: ns=android, name=
id, value=0x01020222
W: Could not decode attr value, using undecoded value instead: ns=android, name=
minHeight, value=0x0105000b
W: Could not decode attr value, using undecoded value instead: ns=android, name=
textColor, value=0x0106003a
W: Could not decode attr value, using undecoded value instead: ns=android, name=
background, value=0x01080364
W: Could not decode attr value, using undecoded value instead: ns=android, name=
id, value=0x01020222
W: Could not decode attr value, using undecoded value instead: ns=android, name=
id, value=0x01020222
W: Could not decode attr value, using undecoded value instead: ns=android, name=
minHeight, value=0x0105000b
W: Could not decode attr value, using undecoded value instead: ns=android, name=
textColor, value=0x0106003a
W: Could not decode attr value, using undecoded value instead: ns=android, name=
minHeight, value=0x0105000b
W: Could not decode attr value, using undecoded value instead: ns=android, name=
id, value=0x01020222
W: Could not decode attr value, using undecoded value instead: ns=android, name=
minHeight, value=0x0105000b
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec:
0x0105000b
at brut.androlib.res.data.ResPackage.getResSpec(Unknown Source)
at brut.androlib.res.data.ResTable.getResSpec(Unknown Source)
at brut.androlib.res.data.ResTable.getResSpec(Unknown Source)
at brut.androlib.res.data.value.ResReferenceValue.getReferent(Unknown So
urce)
at brut.androlib.res.data.value.ResReferenceValue.toResXmlFormat(Unknown
Source)
at brut.androlib.res.data.value.ResAttr.convertToResXmlFormat(Unknown So
urce)
at brut.androlib.res.decoder.ResAttrDecoder.decode(Unknown Source)
at brut.androlib.res.decoder.AXmlResourceParser.getAttributeValue(Unknow
n Source)
at org.xmlpull.v1.wrapper.classic.XmlPullParserDelegate.getAttributeValu
e(Unknown Source)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.writeStartT
ag(Unknown Source)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.event(Unkno
wn Source)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(Unknown Source)
at brut.androlib.res.decoder.ResStreamDecoderContainer.decode(Unknown So
urce)
at brut.androlib.res.decoder.ResFileDecoder.decode(Unknown Source)
at brut.androlib.res.decoder.ResFileDecoder.decode(Unknown Source)
at brut.androlib.res.AndrolibResources.decode(Unknown Source)
at brut.androlib.Androlib.decodeResourcesFull(Unknown Source)
at brut.androlib.ApkDecoder.decode(Unknown Source)
at brut.apktool.Main.cmdDecode(Unknown Source)
at brut.apktool.Main.main(Unknown Source)
You first have to tell apktool what framework you are using so it doesn't give you those errors. for instance... download settings.apk and framework-res.apk to the same folder as apktool. then in command prompt type 'apktool if framework-res.apk' Now go in and decompile the settings.apk file and it should work without errors.

apk manager

cant find java in apk manager and it wont let me decompile apps
Having the same problem. Running windows 7 home premium. I dl Java and it keeps saying not installed whenever. I go to use apk says Java not installed
Sent from my SGH-T959 using XDA Premium App
I use it just fine on Windows 7 Ultimate x64
I have the JDK(Java Development Kit) installed on mine tho...maybe thats what you need....and make sure you're using the up-to-date one...4.9
well i have installed the jdk for windows 7 64 and whenever i try and install apk it say you need the jdk i check its there in the programs unistall it reinstall still the same thing maybe using the wrong version or something but i've tried all of them i think.
Mr. Apocalypse said:
I use it just fine on Windows 7 Ultimate x64
I have the JDK(Java Development Kit) installed on mine tho...maybe thats what you need....and make sure you're using the up-to-date one...4.9
Click to expand...
Click to collapse
+1 I have the same setup and it works fine for me
well can one of you send me the jdk your using to see if that helps. I'm about to drop kick this desktop i can't even get it to recognize my phone with odin.
i figured out the problem...i have the jdk installed and the latest java
it was my environment variables.
goto your environment varibles in the advanced system settings
scroll to path and click edit and type
C:\Program files (x86)\Java\jre8\bin;
if you're running 64bit windows, then you have to open up IE 64bit version and go to java's download site to get the 64bit specific java install package, otherwise apk manager will freak out.
(apk manager doesn't detect the difference between 32bit and 64bit. 32bit java on a 64bit windows os looks in c:\program files\java\ while java is actually installed to c:\program files (x86)\java and apk manager doesn't reference that).
Deleted, my problem solved.
if someone could tell me what to do here i would really appreciate it im running windows xp pro and it wont let me decompile apps in system/app but will let me decompile framework
|Thu 04/21/2011 -- 11:30:47.21|
--------------------------------------------------------------------------
java version "1.6.0_24"
Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
Java HotSpot(TM) Client VM (build 19.1-b02, mixed mode, sharing)
'adb' is not recognized as an internal or external command,
operable program or batch file.
Could Not Find C:\Program Files\Android\android-sdk\APKMANAGER\place-apk-here-for-modding\../place-apk-here-for-modding/signedSystemUI.apk
Could Not Find C:\Program Files\Android\android-sdk\APKMANAGER\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedSystemUI.apk
I: Baksmaling...
I: Loading resource table...
I: Decoding resources...
I: Loading resource table from file: C:\Documents and Settings\Administrator\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a3
W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_width, value=0x01050019
W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_height, value=0x01050019
W: Could not decode attr value, using undecoded value instead: ns=android, name=textColor, value=0x01060089
W: Could not decode attr value, using undecoded value instead: ns=android, name=textColor, value=0x01060088
W: Could not decode attr value, using undecoded value instead: ns=android, name=overScrollMode, value=0x00000001
W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x0108038a
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x0105000e
at brut.androlib.res.data.ResPackage.getResSpec(Unknown Source)
at brut.androlib.res.data.ResTable.getResSpec(Unknown Source)
at brut.androlib.res.data.ResTable.getResSpec(Unknown Source)
at brut.androlib.res.data.value.ResReferenceValue.getReferent(Unknown Source)
at brut.androlib.res.data.value.ResReferenceValue.toResXmlFormat(Unknown Source)
at brut.androlib.res.data.value.ResAttr.convertToResXmlFormat(Unknown Source)
at brut.androlib.res.data.value.ResStyleValue.serializeToXml(Unknown Source)
at brut.androlib.res.AndrolibResources.generateValuesFile(Unknown Source)
at brut.androlib.res.AndrolibResources.decode(Unknown Source)
at brut.androlib.Androlib.decodeResourcesFull(Unknown Source)
at brut.androlib.ApkDecoder.decode(Unknown Source)
at brut.apktool.Main.cmdDecode(Unknown Source)
at brut.apktool.Main.main(Unknown Source)
Its a headache i finally got my w7 pc to recognize adb then it stop recognizing java got java workin adb stopped arrrg
Sent from my SGH-T959 using XDA Premium App

[Q] Problem seeing text when picking folder for an app

The app in question is comicrack free. When I try to pick a folder from the options the text where the folders shows up is empty/blank. I have no refresh but running that and changing the contrast doesn't help it. I also tried looking at the screen from my computer but it shows up exactly as it does on my device. I am unsure where to go from here. Any ideas on how to get the text to be seen?
RustyMongoose said:
The app in question is comicrack free. When I try to pick a folder from the options the text where the folders shows up is empty/blank. I have no refresh but running that and changing the contrast doesn't help it. I also tried looking at the screen from my computer but it shows up exactly as it does on my device. I am unsure where to go from here. Any ideas on how to get the text to be seen?
Click to expand...
Click to collapse
http://goldendict.org/forum/viewtopic.php?f=12&t=2082
decompile package using 'ApkTool' modify the source according to info in this thread, compile it , post results.
howto :
http://www.blindndumb.com/2012/04/android-tutorial-how-to.html
If you don't want to fiddle with the package just write to the main dev of this apk and ask him to make these changes in the main branch.
osowiecki said:
http://goldendict.org/forum/viewtopic.php?f=12&t=2082
decompile package using 'ApkTool' modify the source according to info in this thread, compile it , post results.
howto :
http://www.blindndumb.com/2012/04/android-tutorial-how-to.html
If you don't want to fiddle with the package just write to the main dev of this apk and ask him to make these changes in the main branch.
Click to expand...
Click to collapse
I wish I checked here before messing with the framework-res.apk with ninjamorph. I'll give it a go once I restore my nook (relaunch stopped working).
When I try to decompile the app I get these errors. Which I assume shouldn't be popping up.
Code:
C:\Apktool 4.2.2>apktool d ComicRack.apk
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\Alberto\apktool\framework\1.apk
I: Loaded.
W: Could not decode attr value, using undecoded value instead: ns=android, name=largeHeap, value=0xffffffff
I: Regular manifest package...
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=0x00007801
W: Could not decode attr value, using undecoded value instead: ns=android, name=minResizeHeight, value=0x00007801
W: Could not decode attr value, using undecoded value instead: ns=android, name=widgetCategory, value=0x00000003
W: Could not decode attr value, using undecoded value instead: ns=android, name=textIsSelectable, value=0xffffffff
W: Could not decode attr value, using undecoded value instead: ns=android, name=widgetCategory, value=0x00000001
W: Could not decode attr value, using undecoded value instead: ns=android, name=widgetCategory, value=0x00000001
W: Could not decode attr value, using undecoded value instead: ns=android, name=alpha, value=0x3f000000
W: Could not decode attr value, using undecoded value instead: ns=android, name=widgetCategory, value=0x00000001
W: Could not decode attr value, using undecoded value instead: ns=android, name=widgetCategory, value=0x00000001
I: Decoding values */* XMLs...
I: Done.
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x0101035a
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:35)
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:77)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(XmlPullStreamDecoder.java:127)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decodeManifest(XmlPullStreamDecoder.java:141)
at brut.androlib.res.decoder.ResFileDecoder.decodeManifest(ResFileDecoder.java:126)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:216)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:115)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:99)
at brut.apktool.Main.cmdDecode(Main.java:141)
at brut.apktool.Main.main(Main.java:72)
I'm using apktools from here. http://forum.xda-developers.com/showthread.php?t=2195680
Also tried to use the ones from osowiecki's post with the same error.
Since I'm a noob at this I don't really know what's next. Anymore Ideas?
RustyMongoose said:
When I try to decompile the app I get these errors. Which I assume shouldn't be popping up.
Code:
C:\Apktool 4.2.2>apktool d ComicRack.apk
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\Alberto\apktool\framework\1.apk
I: Loaded.
W: Could not decode attr value, using undecoded value instead: ns=android, name=largeHeap, value=0xffffffff
I: Regular manifest package...
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=0x00007801
W: Could not decode attr value, using undecoded value instead: ns=android, name=minResizeHeight, value=0x00007801
W: Could not decode attr value, using undecoded value instead: ns=android, name=widgetCategory, value=0x00000003
W: Could not decode attr value, using undecoded value instead: ns=android, name=textIsSelectable, value=0xffffffff
W: Could not decode attr value, using undecoded value instead: ns=android, name=widgetCategory, value=0x00000001
W: Could not decode attr value, using undecoded value instead: ns=android, name=widgetCategory, value=0x00000001
W: Could not decode attr value, using undecoded value instead: ns=android, name=alpha, value=0x3f000000
W: Could not decode attr value, using undecoded value instead: ns=android, name=widgetCategory, value=0x00000001
W: Could not decode attr value, using undecoded value instead: ns=android, name=widgetCategory, value=0x00000001
I: Decoding values */* XMLs...
I: Done.
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x0101035a
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:35)
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:77)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(XmlPullStreamDecoder.java:127)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decodeManifest(XmlPullStreamDecoder.java:141)
at brut.androlib.res.decoder.ResFileDecoder.decodeManifest(ResFileDecoder.java:126)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:216)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:115)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:99)
at brut.apktool.Main.cmdDecode(Main.java:141)
at brut.apktool.Main.main(Main.java:72)
I'm using apktools from here. http://forum.xda-developers.com/showthread.php?t=2195680
Also tried to use the ones from osowiecki's post with the same error.
Since I'm a noob at this I don't really know what's next. Anymore Ideas?
Click to expand...
Click to collapse
https://code.google.com/p/android-apktool/wiki/FrameworkFiles
it seems that nooks 'framework' does not contain needed values.
The only option I can see is to modify framework-res-apk
http://forum.xda-developers.com/showthread.php?t=1343484
I don't have time to risk bricking my NST right now and if you are a "noob" you also shouldn't try.
Try to find some older versions of CR and see if any of them work correctly.
Edit :
before you try to do something silly
- read this thread
http://forum.xda-developers.com/showthread.php?t=1480398
- talk to the devs from this thread
- "lurk moar"
good luck
osowiecki said:
https://code.google.com/p/android-apktool/wiki/FrameworkFiles
it seems that nooks 'framework' does not contain needed values.
The only option I can see is to modify framework-res-apk
http://forum.xda-developers.com/showthread.php?t=1343484
I don't have time to risk bricking my NST right now and if you are a "noob" you also shouldn't try.
Try to find some older versions of CR and see if any of them work correctly.
Edit :
before you try to do something silly
- read this thread
http://forum.xda-developers.com/showthread.php?t=1480398
- talk to the devs from this thread
- "lurk moar"
good luck
Click to expand...
Click to collapse
I actually saw that webpage but couldn't find any resources in the nook.
Anyways seeing as this is somewhat over my head. I'm just going to copy over the mangas over to the default folder. Which is sdcard/DCIM/100ANDRO for anyone following this thread. Just found out about it. Thanks for your time.

Help Needed to Decompile Superuser.apk

I want to decompile Superuser.apk Because
I want to edit the AndroidManifest.xml so that I can hide it from the App Launcher.
But I am Getting the following Errors while Decompiling.
Decompiling Apk Sources and Resources Files
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\Anik3t\apktool\framework\1.apk
I: Loaded.
W: Could not decode attr value, using undecoded value instead: ns=android, name=uiOptions, value=0x00000001
I: Regular manifest package...
I: Decoding file-resources...
W: Could not decode attr value, using undecoded value instead: ns=android, name=exitFadeDuration, value=0x000001f4
W: Could not decode attr value, using undecoded value instead: ns=android, name=textAllCaps, value=0xffffffff
W: Could not decode attr value, using undecoded value instead: ns=android, name=exitFadeDuration, value=0x000001f4
W: Could not decode attr value, using undecoded value instead: ns=android, name=state_activated, value=0xffffffff
W: Could not decode attr value, using undecoded value instead: ns=android, name=exitFadeDuration, value=0x00000190
W: Could not decode attr value, using undecoded value instead: ns=android, name=state_activated, value=0xffffffff
W: Could not decode attr value, using undecoded value instead: ns=android, name=dividerPadding, value=0x00000c01
W: Could not decode attr value, using undecoded value instead: ns=android, name=background, value=0x010102fd
W: Could not decode attr value, using undecoded value instead: ns=android, name=background, value=0x010102fd
W: Could not decode attr value, using undecoded value instead: ns=android, name=state_activated, value=0xffffffff
W: Could not decode attr value, using undecoded value instead: ns=android, name=fragment, value=0x0000000a
Exception in thread "main" java.lang.NullPointerException
at java.io.Writer.write(Unknown Source)
at brut.androlib.res.util.ExtMXSerializer.writeAttributeValue(ExtMXSerializer.java:38)
at org.xmlpull.mxp1_serializer.MXSerializer.attribute(MXSerializer.java:673)
at org.xmlpull.v1.wrapper.classic.XmlSerializerDelegate.attribute(XmlSerializerDelegate.java:106)
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)
"An Error Occured, Please Check The Log (option 23)"
Press any key to continue . . .
Please Some One Help me.
My Rom Development is Stuck Because of this
and I am more or less a noob.
umm why are you decompiling superuser app in the first place
as far as i know , its not needed
Sent from my GT-S5670 using xda premium
Looks like u installed frameworks while decompiling...dont install anything..and decompile straight away..3rd party apps dont need frameworks to be installed..
EatHeat said:
Looks like u installed frameworks while decompiling...dont install anything..and decompile straight away..3rd party apps dont need frameworks to be installed..
Click to expand...
Click to collapse
Thank You Very Much EatHeat.
You are Great.
It Worked for me.
AniketRane said:
Thank You Very Much EatHeat.
You are Great.
It Worked for me.
Click to expand...
Click to collapse
You are welcome bro.
oh so that is problem when decompiling 3rd party apps.. thanks for this.
Zius said:
oh so that is problem when decompiling 3rd party apps.. thanks for this.
Click to expand...
Click to collapse
Yes. You need frameworks installed when decompiling stock apps because they are based on the stock framework. Third party apps are not made phone dependent. So they will give errors with the frameworks installed as you are forcing them to decompile with something that it doesnt need.
You have the solution?
Hi! I have the same problem is a identic message in cmd on windows
I want to decompile System UI
and the cmd I capture this:
apktool if SystemUI.apk
apktool d SystemUI.apk-------> In this part I get the message (same you show in this post)
Who can help me.... Thanks
p95870 said:
Hi! I have the same problem is a identic message in cmd on windows
I want to decompile System UI
and the cmd I capture this:
apktool if SystemUI.apk
apktool d SystemUI.apk-------> In this part I get the message (same you show in this post)
Who can help me.... Thanks
Click to expand...
Click to collapse
For decompiling systemui.apk, u have to install the frameworks first. Type:
Code:
apktool if framework-res.apk
apktool if twframework-res.apk
After that type:
Code:
apktool d systemui.apk

[Solved] Error in decompiling and recompiling systemui

Hey everyone,
Im trying to decompile systemui using , i get these list of errors. What's possibly wrong? Im on Reincarnation V6
D:\SGYroms\apktool1.5.2>apktool d systemui.apk
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\user\apktool\framework\1.apk
I: Loaded.
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec:
0x0101038c
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.ResStyleValue.serializeToResValuesXml(ResStyleValue.java:51)
at brut.androlib.res.AndrolibResources.generateValuesFile(AndrolibResources.java:440)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:243)
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)
Errors on recompiling...
D:\SGYroms\apktool1.5.2>apktool b -f -d systemui
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathN
otExist: apktool.yml
at brut.androlib.Androlib.readMetaFile(Androlib.java:164)
at brut.androlib.Androlib.build(Androlib.java:183)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.directory.PathNotExist: apktool.yml
at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:
103)
at brut.androlib.Androlib.readMetaFile(Androlib.java:160)
... 4 more
D:\SGYroms\apktool1.5.2>
decompiling error is caused by wrong framework being used - You wont be able to recompile because the resources were not decompiled
Make sure you use correct framework-res.apk - This may not always be the one that comes with the rom as it may of been compiled with jellybean framework
You can try loading this framework and then try to decompile
http://d-h.st/zAg
marcussmith2626 said:
decompiling error is caused by wrong framework being used - You wont be able to recompile because the resources were not decompiled
Make sure you use correct framework-res.apk - This may not always be the one that comes with the rom as it may of been compiled with jellybean framework
You can try loading this framework and then try to decompile
http://d-h.st/zAg
Click to expand...
Click to collapse
Thanks for reply, Decompiling worked like a charm ..but i got these errors while installing framework?
D:\SGYroms\apktool1.5.2>apktool if framework-res.apk
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: drawable-nodpi-v8-ERR0
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: drawable-v8-ERR1
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: drawable-hdpi-v8-ERR2
I: Framework installed to: C:\Users\user\apktool\framework\1.apk
and these on recompiling systemui
D:\SGYroms\apktool1.5.2>apktool b systemui.apk
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.Direc
toryException: java.io.FileNotFoundException: systemui.apk (The system cannot fi
nd the file specified)
at brut.androlib.Androlib.readMetaFile(Androlib.java:164)
at brut.androlib.Androlib.build(Androlib.java:183)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.directory.DirectoryException: java.io.FileNotFoundException: sys
temui.apk (The system cannot find the file specified)
at brut.directory.ZipRODirectory.<init>(ZipRODirectory.java:55)
at brut.directory.ZipRODirectory.<init>(ZipRODirectory.java:38)
at brut.androlib.res.util.ExtFile.getDirectory(ExtFile.java:55)
at brut.androlib.Androlib.readMetaFile(Androlib.java:160)
... 4 more
Caused by: java.io.FileNotFoundException: systemui.apk (The system cannot find t
he file specified)
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.directory.ZipRODirectory.<init>(ZipRODirectory.java:53)
... 7 more
D:\SGYroms\apktool1.5.2>
marcusflint said:
Thanks for reply, Decompiling worked like a charm ..but i got these errors while installing framework?
D:\SGYroms\apktool1.5.2>apktool if framework-res.apk
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: drawable-nodpi-v8-ERR0
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: drawable-v8-ERR1
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: drawable-hdpi-v8-ERR2
I: Framework installed to: C:\Users\user\apktool\framework\1.apk
and these on recompiling systemui
D:\SGYroms\apktool1.5.2>apktool b systemui.apk
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.Direc
toryException: java.io.FileNotFoundException: systemui.apk (The system cannot fi
nd the file specified)
at brut.androlib.Androlib.readMetaFile(Androlib.java:164)
at brut.androlib.Androlib.build(Androlib.java:183)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.directory.DirectoryException: java.io.FileNotFoundException: sys
temui.apk (The system cannot find the file specified)
at brut.directory.ZipRODirectory.<init>(ZipRODirectory.java:55)
at brut.directory.ZipRODirectory.<init>(ZipRODirectory.java:38)
at brut.androlib.res.util.ExtFile.getDirectory(ExtFile.java:55)
at brut.androlib.Androlib.readMetaFile(Androlib.java:160)
... 4 more
Caused by: java.io.FileNotFoundException: systemui.apk (The system cannot find t
he file specified)
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.directory.ZipRODirectory.<init>(ZipRODirectory.java:53)
... 7 more
D:\SGYroms\apktool1.5.2>
Click to expand...
Click to collapse
framework install is normal - thats fine no problem there
recompile is because you have typed in the incorrect commands
the command should be (assuming the command prompt is at the correct location)
apktool b NameOfDecompiledFolder NameYouWantForNewApk.apk
eg
apktool b mydecompiledsystemui mynewsystemui.apk
the command should be (assuming the command prompt is at the correct location)
apktool b NameOfDecompiledFolder NameYouWantForNewApk.apk
eg
apktool b mydecompiledsystemui mynewsystemui.apk
Click to expand...
Click to collapse
Ah my bad, working fine now, thanks for your help

Categories

Resources