yashsingh1/xdaforums huggingface dataset:
[Android Software Development] iBotPeaches:
I don't know if this is an Apktool bug or not, but I need to look into it more. It seems that if the previous style isn't a child of the next one, it requires a blank style (as seen in AOSP) to start it off otherwise the parent doesn't have the required elements.

So just add a null style w/ no parent before <style name="TextAppearance.DialogWindowTitle"> like

<style name="TextAppearance">
</style>
[Android Software Development] DaOldMan:


Hi did you look into my problem with Nova?

Thanks a lot

Thomas
[Android Software Development] vegeta1:
D:\Android Development\apktools\APKTOOL_JB4.2\SystemUI(1)\res, -M, D:\Android
*Development\apktools\APKTOOL_JB4.2\SystemUI(1)\AndroidManifest.xml]
* * * * at brut.androlib.Androlib.buildResourcesFull(Androlib.java:357)
* * * * at brut.androlib.Androlib.buildResources(Androlib.java:282)
* * * * at brut.androlib.Androlib.build(Androlib.java:205)
* * * * at brut.androlib.Androlib.build(Androlib.java:176)
* * * * at brut.apktool.Main.cmdBuild(Main.java:218)
* * * * at brut.apktool.Main.main(Main.java:74)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not
*exec command: [aapt, p, --min-sdk-version, 16, --target-sdk-version, 16, -F, C:
\Users\aditya\AppData\Local\Temp\APKTOOL3498646428779826977.tmp, -I, C:\Users\ad
itya\apktool\framework\1.apk, -S, D:\Android Development\apktools\APKTOOL_JB4.2\
SystemUI(1)\res, -M, D:\Android Development\apktools\APKTOOL_JB4.2\SystemUI(1)\A
ndroidManifest.xml]
* * * * at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:349)
* * * * at brut.androlib.Androlib.buildResourcesFull(Androlib.java:335)
* * * * ... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sd
k-version, 16, --target-sdk-version, 16, -F, C:\Users\aditya\AppData\Local\Temp\
APKTOOL3498646428779826977.tmp, -I, C:\Users\aditya\apktool\framework\1.apk, -S,
*D:\Android Development\apktools\APKTOOL_JB4.2\SystemUI(1)\res, -M, D:\Android D
evelopment\apktools\APKTOOL_JB4.2\SystemUI(1)\AndroidManifest.xml]
* * * * at brut.util.OS.exec(OS.java:89)
* * * * at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:347)

i am getting error evertime i recompile , any help ...thanks alot
[Android Software Development] swat4samp:
Got that when compiling Phone.apk from cm7 :(
[Android Software Development] rituj_b:
Do we need to have the Android sdk.

And is Java 7 update 3(64-bit) sufficient.
[Android Software Development] swat4samp:
No need of SDK :)
[Android Software Development] plegdroid:
if you look at the line numbers within the XML quoted, it will show something like %1$ %, you can remove the 2nd % to cure the error, so it should reflect as %1$, this should then allow you to recompile without the error. :)

ⓐⓝⓓⓡⓞⓢⓘⓓⓔ ⓘⓢ ⓝⓞⓣ ⓐ ⓢⓘⓝ
[Android Software Development] iBotPeaches:
Watch this bug: http://code.google.com/p/android-ap...tus Priority Milestone Owner Summary Modified

I'm aiming to rewrite the positional XML reader to fix all these formatted="false" problems.

@vegeta1

I need either the full output (PM it to me if its private), or the apk. That part of the error didn't help.

@DaOldMan

No, I haven't looked into it yet.
[Android Software Development] swat4samp:
So by removing % in every line as shown in error and adding formatted attribute will compile without errors?
[Android Software Development] CosmicDan:
No, just remove second percentage signs.

Sent from Xperia Play (R800a) with Tapatalk
[Android Software Development] plegdroid:
hiya, only the 2nd % within the code, so for example it shows %1$%, make that %1$ .:)

ⓐⓝⓓⓡⓞⓢⓘⓓⓔ ⓘⓢ ⓝⓞⓣ ⓐ ⓢⓘⓝ
[Android Software Development] giancaleone:
Hi, I don't Know if someona have the same error.

I decompile and recompile whitout an error but when I use the apk it don't work

C:\Users\Administrator\Desktop\apktool-install-windows-r05-ibot>apktool.bat d helloword.apk

I: Baksmaling...

I: Loading resource table...

I: Loaded.

I: Decoding AndroidManifest.xml with resources...

I: Loading resource table from file: C:\Users\Administrator\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...

C:\Users\Administrator\Desktop\apktool-install-windows-r05-ibot>apktool.bat b helloword

I: Checking whether sources has changed...

I: Smaling...

I: Checking whether resources has changed...

I: Building resources...

I: Building apk file...

Can u help me?

I use Windows 7 (64 bit)

TKS
[Android Software Development] swat4samp:
Okay after editing error reduced to this :confused:
[Android Software Development] plegdroid:
hiya same as before, go to the line in the xml with the error (203)and remove the 2nd % :)

its the same error, but you may have just missed one.

ⓐⓝⓓⓡⓞⓢⓘⓓⓔ ⓘⓢ ⓝⓞⓣ ⓐ ⓢⓘⓝ
[Android Software Development] swat4samp:
Hurray :good: :highfive: at last compiled succesfully thnx a lot plegdroid :)
[Android Software Development] plegdroid:
have you moved over to the original apk all the changed files, res/arsc/class dex ect?

ⓐⓝⓓⓡⓞⓢⓘⓓⓔ ⓘⓢ ⓝⓞⓣ ⓐ ⓢⓘⓝ
[Android Software Development] swat4samp:
Um no...how to do that??I never used apktool before..i used apk multi tool and it all does automatically so sorry being noobish :( please tell me how to do it..

Should it be done for all apks or only system apks?
[Android Software Development] plegdroid:
first time for everything :D use 7zip open your original apk as archive, delete from the original apk the files you changed and replace with the new compiled files from you build folder :)

ⓐⓝⓓⓡⓞⓢⓘⓓⓔ ⓘⓢ ⓝⓞⓣ ⓐ ⓢⓘⓝ
[Android Software Development] swat4samp:
Should we delete public.xml as well?As i read somewhere it must be deleted while using apktool..

Edit: After replacing files..we must install original apk or the modified one which is in dist folder?
[Android Software Development] plegdroid:
I'll pm you to stop clutter on the thread.

ⓐⓝⓓⓡⓞⓢⓘⓓⓔ ⓘⓢ ⓝⓞⓣ ⓐ ⓢⓘⓝ
[Android Software Development] Min3r:
Hey guys,

Im having issues compiling this apk for days now.. Hope you can help me out here..

I've attached a screenshot of the errors I get when I try to compile the file. I tried compiling the file without making any edits. And I know its possible to compile it as my friend had managed the same. I tried decompiling his modified version and compiling it again without edits and even then same results.

Lastly I resorted to deleting the offending folders and got alot of new errors instead ( see 2nd Screenshot). I tried several versions of aapt (including the one from Platform tools r16.. ) If there's any other version that might work, let me know and Ill give it a try :)

Just to note, I tried and I managed to compile & decompile another apk and it worked. And I have the necessary frameworks installed :p

Hope you guys can help me at the earliest :p

Cheers

ps: Thanks iBotPeaches for continuing work on this awesome tool :P
[Android Software Development] parker09:
Any news on when/whether support for 4.2.1 will be available?
[Android Software Development] brainmaster:
?! It's already supported.
[Android Software Development] parker09:
Ah okay, been trying to get my SystemUI.apk decompiled for hours, downloading multiple packages but all of them result inerrors when decompiling =/

Most of the errors that I do a Google search for, someone posts "4.2 isn't working", stuff along those lines.

Guess I'm running into some other problem them lol.

Been following this guide: http://xdaforums.com/showthread.php?t=1814441 on how to make 1% battery icon but can't get past the second step.

C:\Users\parker\Downloads\apktool-install-windows-r05-ibot\apktool-install-window
s-r05-ibot>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\Ethan\apktool\framework\1.apk
I: Loaded.
W: Could not decode attr value, using undecoded value instead: ns=androidprv, na
me=primaryUserOnly, value=0xffffffff
I: Decoding file-resources...
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=prvandroid, na
me=alwaysTrackFinger, value=0xffffffff
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=prvandroid, na
me=alwaysTrackFinger, value=0xffffffff
I: Decoding values */* XMLs...
I: Done.
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec:
0x01010457
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: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:69)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(XmlPullStreamDe
coder.java:103)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decodeManifest(XmlPull
StreamDecoder.java:117)
at brut.androlib.res.decoder.ResFileDecoder.decodeManifest(ResFileDecode
r.java:126)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:152
)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:119)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:99)
at brut.apktool.Main.cmdDecode(Main.java:135)
at brut.apktool.Main.main(Main.java:70)

C:\Users\parker\Downloads\apktool-install-windows-r05-ibot\apktool-install-window
s-r05-ibot>
[Android Software Development] madquack:
Edited Gallery2/res/values/styles.xml and inserted this and it works perfectly, recompiled just fine.
[Android Software Development] Bubba:
I have an interesting issue I need help with. I use 2 different computers to build my theme chooser theme. A laptop and work computer. All is fine on work computer. The issue is the laptop.

When I Decompile fwres,sysui, or any number of apks ... All is fine. When I try to Decompile my theme .. I get errors. Seems like an issue with the theme ... But it decompiles fine on 2 other pcs. I assume I'm missing some java set up or something. As a side note ... The same laptop has decompiles and compiled in the post. Attached is a pic of the error. Any help greatly appreciated.

On windows 7 for all.
[Android Software Development] ÜBER™:
You're using apk manager and not the straight apktool. :rolleyes:

Sent from my Galaxy Nexus
[Android Software Development] wcoast:
Thanks mate, kindly point me to the right path please
[Android Software Development] ÜBER™:
Download the apktool.jar and the resources for your OS. Unzip to the folder you have the apk you plan to decompile. Open a cmd/terminal prompt and type apktool d name-of-app.apk then it should make a folder for that apk. When done modding, recompile. Apktool b name.apk . Also if you haven't you need to install the Java Developer Kit (JDK) the latest I suppose. Otherwise you won't be able to execute the jar.

Sent from my Nexus 7
[Android Software Development] wcoast:
I replaced the following file inside my "other" folder
[Android Software Development] ÜBER™:
And? I don't know what you're talking about. I don't use apk manager

Sent from my SGH-T999
[Android Software Development] Spannaa:
I use apk manager and that worked for me.

Try ÜBER™'s raw method to check it's not an apk manager issue though.
[Android Software Development] Ticklefish:
That is a lot of errors! But it's not all of them, you really need to know what the first error is. All the others could just be caused by that one.
[Android Software Development] Stephen:
Any ides guys?
[Android Software Development] plegdroid:
Evening mate.

you maybe better raising this as a issue with jesusfreke, as looks more of an issue with smali rather than with apktool :)

http://code.google.com/p/smali/issues/list

ⓐⓝⓓⓡⓞⓢⓘⓓⓔ ⓘⓢ ⓝⓞⓣ ⓐ ⓢⓘⓝ
[Android Software Development] iBotPeaches:
Its part of the smali debugging. Waiting for the dexlib redesign by JF before I attempt to even fix that. (Decompile without the -d flag and it'll work fine)

@Ghost. I'm writing a new huge FAQ for that exact question, since I answer it too much. Give me 20 minutes. I'll edit this post and link to it. http://code.google.com/p/android-ap...ecompiled_apk_Force_Closes_(FCs)._What_gives?
[Android Software Development] swat4samp:
Hey ibotpeaches, the format missing attribute error wasn't present in previous apktool versions. Only 1.5.1 has it. CMIIW
[Android Software Development] iBotPeaches:
Nope, the 2 files handling attributes were last modified 4 months ago. Which is when the merge from maven -> gradle took place. So its even more than 4 months. What you have is a framework problem probably. As an attribute is probably declared that your framework doesn't see possible. Thus errors.
[Android Software Development] jackyaway:
Hi all, i'm writing because i'm doing a translation of SystemUI.apk from ViperS rom. My problem is that when i place the apk in /system/app and reboot the device, translation is good but some graphics in notification pulldown are stretched. I have the same error if i decompile and compile without make any change. I think problem maybe in com.htc.resources.apk, when i type "apktool if com.htc.resources.apk" i receive a lots of warnings.

I used apktool 1.5.1 and virtuos ten studio with the same "stretched" results. do i need a different apktool or aapt?

Attached the streched notification pulldown. Thank you all!
[Android Software Development] djdarkknight96:
Since I make themes I'm thinking it's a bad .9 patch image to begin with. Check the patch lines to make sure the top and left patch lines only cover the touch area of the image. You can check it in the sdk draw patch program.
[Android Software Development] jackyaway:
I have never touched .9 png during decompiling/compiling, anyway i tryed what you tell me. In res/drawable-hdpi there is the image status_bar_close_on.png (attached) but not its .9.png. I found status_bar_close_on.9.png in res/drawable-mdpi and opening it with sdk draw made me confused :eek: My device is htc sensation xe, isn't it an hdpi device? i think status_bar_close_on.9.png in res/drawable-mdpi is irrilevant, not?

I don't know what to do :rolleyes:
[Android Software Development] Kag:
Exception in thread "main" org.jf.dexlib.Util.ExceptionWithContext: Index: 27491
, Size: 4470
at org.jf.dexlib.Util.ExceptionWithContext.withContext(ExceptionWithCont
ext.java:54)
at org.jf.dexlib.IndexedSection.getItemByIndex(IndexedSection.java:77)
at org.jf.dexlib.Code.InstructionWithReference.lookupReferencedItem(Inst
ructionWithReference.java:79)
at org.jf.dexlib.Code.InstructionWithReference.<init>(InstructionWithRef
erence.java:57)
at org.jf.dexlib.Code.Format.Instruction21c.<init>(Instruction21c.java:6
3)
at org.jf.dexlib.Code.Format.Instruction21c.<init>(Instruction21c.java:4
0)
at org.jf.dexlib.Code.Format.Instruction21c$Factory.makeInstruction(Inst
ruction21c.java:112)
at org.jf.dexlib.Code.InstructionIterator.IterateInstructions(Instructio
nIterator.java:82)
at org.jf.dexlib.CodeItem.readItem(CodeItem.java:154)
at org.jf.dexlib.Item.readFrom(Item.java:77)
at org.jf.dexlib.OffsettedSection.readItems(OffsettedSection.java:48)
at org.jf.dexlib.Section.readFrom(Section.java:143)
at org.jf.dexlib.DexFile.<init>(DexFile.java:431)
at org.jf.dexlib.DexFile.<init>(DexFile.java:267)
at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder.java:49)
at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder.java:34)
at brut.androlib.Androlib.decodeSourcesSmali(Androlib.java:74)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:85)
at brut.apktool.Main.cmdDecode(Main.java:141)
at brut.apktool.Main.main(Main.java:72)
Caused by: java.lang.IndexOutOfBoundsException: Index: 27491, Size: 4470
at java.util.ArrayList.rangeCheck(Unknown Source)
at java.util.ArrayList.get(Unknown Source)
at org.jf.dexlib.IndexedSection.getItemByIndex(IndexedSection.java:75)
... 18 more
Error occured while retrieving the field_id_item item at index 27491
Error occured at code address 12
code_item @0x2337c

Any idea what i did wrong?
[Android Software Development] iBotPeaches:
Send me that APK. The new in-development smali/baksmali (1.4.2) has changes that fix this exact bug. You could build Apktool from source and try it, or just send me that apk and I'll see if its a real bug or if its already been fixed.
[Android Software Development] djdarkknight96:
That's what your problem is, it's supposed to be a .9 in hdpi like the one in mdpi. It's a stretching image that will stretch in certain areas of the image. No idea why it's not if it's a stock Rom. You can always ask the Rom developer what happened or try getting the image from source.
[Android Software Development] jackyaway:
I don't know why but if i use apktool 1.5.1 within apk manager, build is ok and no stretched images. If i use apktool without apk manager i get stretched images. :confused:

Inviato dal mio HTC Sensation XE with Beats Audio Z715e con Tapatalk 2
[Android Software Development] djdarkknight96:
?????What????? Ok no idea on that one. So it's not processing the .9's correctly only without apk manager? New one for me. :-\
[Android Software Development] robm1911:
Might wanna check out the last couple pages of this thread here.

http://xdaforums.com/showthread.php?t=1619473

It makes some refrences to the HTC r.9pings.

Sent from one of my "Collected" devices.
[Android Software Development] djdarkknight96:
Those are warnings not fails, it still installed.

" I: Framework installed to: /home/li/apktool/framework/2.apk "
[Android Software Development] MalekoUK:
Wonder if anyone can help here...

Decompiled SystemUI.apk

Made a change to one XML file, recompiled it, but then the file shrinks from 1.8MB to 1.1MB...

Extracted the new APK and there's a load of files missing in comparison!

Any ideas??
[Android Software Development] Ticklefish:
Re: [UTIL][Dec 28 2012] Apktool v1.5.1 - a tool for reverse engineering apk files

http://code.google.com/p/android-apktool/wiki/FAQ

Have a look here.
[Android Software Development] M_J_Nazari:
for those have problem with compling the SecPhone.apk

it happens because this string is not defined on arrays.xml

for fixing your problem , add this lines into " values/arrays.xml "

<string-array name="RAD_arr_roaming_auto_dial_help">
<item>Roaming Auto Dial Help</item>
</string-array
[Android Software Development] M_J_Nazari:
because its compressed, you can use lower compression mode.

1- Install 7Zip

2- Right Click On "SystemUI.apk"

3- Form 7-Zip shell menu, select the "Extract to SystemUI folder

4- Goto new generated folder " SystemUI"

5- Select All Files

6- Right click on "Selected Files"

7- from 7-zip menu, select Add to Archive

8-from new Window select this method

Done. ;)
[Android Software Development] iBotPeaches:
Re: [UTIL][Dec 28 2012] Apktool v1.5.1 - a tool for reverse engineering apk files

Those who have been watching the github. I have pushed a fix for compression of resources.arsc so ye :)

Along with tons of other goodies including proguard.

See changes so far by watching the CHANGES file: http://code.google.com/p/android-apktool/source/browse/CHANGES
[Android Software Development] MalekoUK:
Thanks for the advice guys!
[Android Software Development] RomWiz:
A little problem when compiling

C:\Users\Daniel\apktool>apktool b framework-res-sony-stock.apk
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:218)
at brut.apktool.Main.main(Main.java:74)
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
[Android Software Development] iBotPeaches:
Remove .apk from the build.

apktool b framework-res-sony-stock

Read the Wiki next time :p
[Android Software Development] RomWiz:
Then i get this

C:\APKTool>apktool b framework-res-sony-stock
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.Direc
toryException: java.io.FileNotFoundException: framework-res-sony-stock (Det gÕr
inte att hitta filen)
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.DirectoryException: java.io.FileNotFoundException: fra
mework-res-sony-stock (Det gÕr inte att hitta filen)
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:138)
... 4 more
Caused by: java.io.FileNotFoundException: framework-res-sony-stock (Det gÕr inte
att hitta filen)
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
[Android Software Development] CosmicDan:
Re: [UTIL][Dec 28 2012] Apktool v1.5.1 - a tool for reverse engineering apk files

Your specified folder name is wrong. You need to provide folder path to recompiled package.

Sent from Xperia Play (R800a) with Tapatalk
[Android Software Development] RomWiz:
Sv: [UTIL][Dec 28 2012] Apktool v1.5.1 - a tool for reverse engineering apk files

What do you mean?

Edit: Do you mean like

apktool d apkname c:/path/apkname.apk?

Sent from my bad LG phone
[Android Software Development] plegdroid:
Re: [UTIL][Dec 28 2012] Apktool v1.5.1 - a tool for reverse engineering apk files

no, :) what he means is, is your decompiled apk in a folder called

framework -res-sony-stock? as that's the folder your trying to recompile.

ⓐⓝⓓⓡⓞⓢⓘⓓⓔ ⓘⓢ ⓝⓞⓣ ⓐ ⓢⓘⓝ
[Android Software Development] RomWiz:
Sv: [UTIL][Dec 28 2012] Apktool v1.5.1 - a tool for reverse engineering apk files

Yes it is

Or instead of apktool b folder i should make the whole path? Like apktool b c:/apktool/folder?

Sent from my bad LG phone
[Android Software Development] plegdroid:
Re: [UTIL][Dec 28 2012] Apktool v1.5.1 - a tool for reverse engineering apk files

try it, it would help yourself when your decompiling to create a named folder that the decompiled bits go to like. apktool d framework-res.apk framework1, so when your recompiling... apktool b framework1 newframework-res.apk

edit due to xda app.and it won't let me put the gap in , there should be a gap between framework1 & newframework-res.apk

ⓐⓝⓓⓡⓞⓢⓘⓓⓔ ⓘⓢ ⓝⓞⓣ ⓐ ⓢⓘⓝ
[Android Software Development] RomWiz:
Needed to add this

C:\Users\Daniel\apktool>apktool b framework-res-sony-stock [COLOR="Red"]C:/Users/Daniel/Desktop/framework-res-sony-stock.apk[/COLOR]

Thanks for the help :D
[Android Software Development] lenny_kano:
Either way those images look ****e when recompiled as a .9 patch, because they are supposed to be status_bar_close_on.r.9.png

I guess noones ever really noticed, but HTC have their own 9 patch format where the marked areas are repeated, not stretched. Apktool (at least last time I check) Repacks them as .9.png and so the HTC framework treats them as such, stretches the areas, and they look ****. I guess that could be classed as a bug on apktool's behalf, it should keep the .r.9.png extension, but still compile as it would per normal 9 patch image.