yashsingh1/xdaforums huggingface dataset:
[HTC EVO 3D] lex_is300:
He just saying a .9 can't be only a 1 pixel image. It has to be at least 3 pixels tall and wide because the outer 1 pixel border contains the .9 patch.

If it looks good and you didn't get any errors compiling then usually no need to worry.
[HTC EVO 3D] il Duce:
9 patches only show when you decompile the apk, you must have just extracted it. That is a bad practice because if you modify a 9 png without decompiling it breaks the patch. The problem with that is the system will always try to run the patch, even if it looks fine. Although is probably nothing to worry about it may lead to poor battery life since sysui is always running. For myself I would redo it (use on of the 9 png guides in post 2), that way you know it's done right.

FOL
[HTC EVO 3D] ilamaan:
Yeap. I've read about it last night. I'll redo it because battery life is one of the biggest concerns in my case. So basically if I decompile this same file and edit then nothing to worry right? Because I didn't see any other status bar background .png's in it.

EDIT: Just to be sure and since there is no way to find whether I am doing this correctly. Am I doing it correctly if I follow the steps as follows:

1. Decompile from apktool

2. Edit status_bar_background.9.png from Photoshop by editing everywhere but the 1px black and transparent border in it.

3. Drag the edited saved file to draw9patch and without doing anything in that just save as 9.png

4. Replace the edited 9patched .png with decompiled files

5. Compile back from apktool

6. Replace the files from recompiled file to SystemUI.apk to their respective directories.

Thanks a lot!

Is this all and did I do all the necessary steps?
[HTC EVO 3D] il Duce:
3,4,6 are unneeded, make sure you sign the apk when done (you might need the original sig depending on your ROM, it's the meta inf folder).
[HTC EVO 3D] ilamaan:
Thanks! I've tried it but got errors and I'm not certain of what I should do with draw9patch. Am I breaking the 9patch if I only edit the gradient keeping the 1px border untouched after decompiling? Do I have to 9patch using draw9patch if i do this? Because if i again draw9patch it the dimensions changes to 5x52 and I think that is the reason why my file is not recompiling.
[HTC EVO 3D] il Duce:
using draw9 is unneeded if you leave the outer 1px border unmolested, hence why I said steps 3,4,6 weren't important ;)
[HTC EVO 3D] ilamaan:
Oh my bad I missed about step 3. Sorry for the trouble. Compiled well this time. Thanks a lot!
[HTC EVO 3D] tbonanno231:
Got a challenging one for the gurus:

Does anyone know how to change the text color for text labels in m10? For instance, this text color on the weather clock widget:

The widget apk has the degree C and F images, so those are easy, but the rest of the text is not so easy. There are some unknown properties I tried changing that had the value "FFFFFFFF", which seemed like a no-brainer, since the text is white, but changing that makes the skin not work properly.

I also checked com.htc.fusion.fx.jar, since that seems to be what applies the m10 UI elements, but couldn't figure out any way to manipulate it there either.

Any ideas?
[HTC EVO 3D] il Duce:
I'm pretty sure some of team 420 has done that, try asking in their thread?
[HTC EVO 3D] lex_is300:
Try to change the primary or secondary text colors in the stylesheet of a skin. They are in assets/skin name/stylesheet. Although some widgets text don't change with the skin and are directly in the widget apks themselves, one of the agenda widgets is an example of that.
[HTC EVO 3D] il Duce:
This guy ^ :)
[HTC EVO 3D] tbonanno231:
No go on this one, but thanks for the suggestion. If I figure it out I'll be sure to post it.
[HTC EVO 3D] EM|NEM:
Is there any way to compile an apk that contains pngs with uppercase letters in their name? I dont have access to linux so i need a way to do it on windows. searching for an hour has turned up nothing :(

I'm trying to change icons of some apps. I cant seem to change Dolphin browser and Titanium Backup icons because of this error.
[HTC EVO 3D] il Duce:
What have you tried (like which tools)?
[HTC EVO 3D] Icymanipulator:
thanx!!!

Thanx a lot but unfortunately the link is dead to apk manager!!!
[HTC EVO 3D] EM|NEM:
I tried Apktool to recompile a package but it was giving that error. Some searching turned up a possible solution but it required linux. I was wondering if it was possible on windows?
[HTC EVO 3D] il Duce:
Which version of apk tool and aapt? Can you post the error log?
[HTC EVO 3D] ilamaan:
I have been able to start theme-ing from a lot of help from the XDA themers and this thread. I wanted to know whether how can I use a .png of 720px width for status bar background? I am asking this cuz on 9.png file there is a 1px border and I don't know how to make a 720px width background for status bar without breaking it. And If I replace it with a 720px width png it would break the 9.png right?

Thank you.
[HTC EVO 3D] EM|NEM:
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\apktool>apktool b BI blue.apk
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
res\drawable-xhdpi\com_keramidas_TitaniumBackup_icon.png: Invalid file name: mus
t contain only [a-z0-9_.]
res\drawable-xhdpi\com_keramidas_TitaniumBackup_icon.png: Invalid file name: mus
t contain only [a-z0-9_.]
res\drawable-xhdpi\mobi_mgeek_TunnyBrowser_ic_launcher_browser.png: Invalid file
name: must contain only [a-z0-9_.]
res\drawable-xhdpi\mobi_mgeek_TunnyBrowser_ic_launcher_browser.png: Invalid file
name: must contain only [a-z0-9_.]
res\xml\com_keramidas_TitaniumBackup.xml: Invalid file name: must contain only [
a-z0-9_.]
res\xml\com_keramidas_TitaniumBackup.xml: Invalid file name: must contain only [
a-z0-9_.]
res\xml\mobi_mgeek_TunnyBrowser.xml: Invalid file name: must contain only [a-z0-
9_.]
res\xml\mobi_mgeek_TunnyBrowser.xml: Invalid file name: must contain only [a-z0-
9_.]
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [aapt, p, --min-
sdk-version, 16, --target-sdk-version, 17, -F, C:\DOCUME~1\UMER\LOCALS~1\Temp\AP
KTOOL5330363566892683896.tmp, -x, -I, C:\Documents and Settings\UMER\apktool\fra
mework\1.apk, -S, C:\apktool\BI\res, -M, C:\apktool\BI\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:358)
at brut.androlib.Androlib.buildResources(Androlib.java:283)
at brut.androlib.Androlib.build(Androlib.java:206)
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.androlib.AndrolibException: brut.common.BrutException: could not
exec command: [aapt, p, --min-sdk-version, 16, --target-sdk-version, 17, -F, C:
\DOCUME~1\UMER\LOCALS~1\Temp\APKTOOL5330363566892683896.tmp, -x, -I, C:\Document
s and Settings\UMER\apktool\framework\1.apk, -S, C:\apktool\BI\res, -M, C:\apkto
ol\BI\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sd
k-version, 16, --target-sdk-version, 17, -F, C:\DOCUME~1\UMER\LOCALS~1\Temp\APKT
OOL5330363566892683896.tmp, -x, -I, C:\Documents and Settings\UMER\apktool\frame
work\1.apk, -S, C:\apktool\BI\res, -M, C:\apktool\BI\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:355)
... 6 more

C:\apktool>

APKtool version 1.5.2

I'm definitely doing something wrong to get those "brut.androlib.Androlib.build" errors
[HTC EVO 3D] il Duce:
What are the original decompiled dimensions, and what are you trying to change to?
[HTC EVO 3D] ilamaan:
It's 3x52 the status_bar_background.9.png. I want to change to 720 (this is the full width of statusbar?) x 52. Its not 720 i think 722 with 1 pixel border? Basically I want to keep the height as it is and then change the width to full width of the status bar.
[HTC EVO 3D] il Duce:
You could try but I think it's dimension is set in integers in quite a few apks. You might have issues. Why exactly are you trying this? And your target size is 722x52 fyi.
[HTC EVO 3D] ilamaan:
I wanted a gradient below the statusbar background. 1px gradient which is a horizontal line. And do you have any idea how to expand the rosie navbar width? I want to achieve the sense 5 style navbar. It already exists on a Venom ROM for HTC One X, I asked one of their Devs and he told its the fxnavbar smali file inside rosie's one m10 file. I have no knowledge on Java so can't seem to work it out. Just wanted to ask whether you know about it.
[HTC EVO 3D] il Duce:
oh yeah, apktool can't do that (cap letters in xml) - my guess is tibu has these as a security feature. they might build directly from source without apktool (using aapt/eclipse). have you tried using an apk themer? (like VR theme)

I don't think you can add a gradient inside only 1 pixel. You'll have to just try a few things and see. As for the navbar, you can probably achieve this also via m10 modification (using the centerscale property) - check my thread called "m10 discovery thread" for some ideas ;)
[HTC EVO 3D] Gumby63:
Does anyone know how to change the text color of messages?

I've changed every line in colors.xml, I've looked through styles.xml, and I've looked at the majority of the xml in res/layout

Am I overlooking it somewhere? Maybe in com.htc.resources?

Any input is appreciated. I'm on sense 4+
[HTC EVO 3D] il Duce:
I'm pretty sure it's resources, search the res folder for "@com.htc:" and then filet through the results for references to primary_text or similar. Then change that @com to @color and use the local colors xml
[HTC EVO 3D] mwilky:
It's in resources mate, but you'll have to hex edit the resources.arsc to avoid any issues :p
[HTC EVO 3D] alper.s:
how to change the 640 px dockbar to 720 px in sense 4.5
[HTC EVO 3D] il Duce:
I think mayfield103 did that recently try a PM
[HTC EVO 3D] metaphysical_calamity:
He did.

Also, lex_is300 knows also.

Rosie m10 edits i believe
[HTC EVO 3D] il Duce:
Hello stranger :)

/misses the huddle

/blar

/nomnom
[HTC EVO 3D] metaphysical_calamity:
Huddle...

...hammerstoned

FTW
[HTC EVO 3D] geenyous:
I am trying to achieve the all black notification and sense apps background area you have in your themed Renovate ROM for my AOSenseP skin.

Could you please point me in the right direction as to which lines I have to edit in the resources.arsc filed for it to work?

Thank you in advance!

Cheers,

Geen
[HTC EVO 3D] il Duce:
For the notification you can simply edit that png in your active skin drawables.

For the Sense recent bg it's a png in sysui m10
[HTC EVO 3D] geenyous:
Thanks for the reply but I believe we are not talking about the same thing here.

As for the recent apps, I already found that but I don't need it as I am using the AOSP recent apps smali edit.

I am talking about the background in sense apps like phone, contacts, etc. It shows when you swipe left and right in the apps nav bar and it's in a kind of grey, just like the notiication curtain is when pulled down. This is what my second question is referring to, are you also referring to that?

I do not use any skin, so it must be in the Fusion.apk, right?

Any Idea where I might find the other png/xml?

This part of Renovate 2's changelog is what made me ask in the first place:

But ufortunately nobody will address my issue... :-/
[HTC EVO 3D] il Duce:
Oh well in that case what mwilky said is correct, it's in xml in resources and needs hex edited to function properly.
[HTC EVO 3D] geenyous:
Shame the Renovators wont share a how to, bunch of secretive bastards! ;)
[HTC EVO 3D] il Duce:
I'll say that having worked with a lot of devs over the years, calling them names usually doesn't yield the results you're looking for.

I've actually worked directly with mwilky quite a bit, you'll notice my team thanked in his op. He's a pretty cool guy. Maybe a friendly pm would help you.
[HTC EVO 3D] geenyous:
Wow, having put the emo there made me think my post was safe...

In no way did I want to offend mwilky or any of the Renovate guys!! I use Renovate myself and I really like their work. I also think that it's more of an oversight as the Renovate 3 thread gets filled over with "simple" stuff rather quickly than a deliberate ignoring of my 2 posts so far.

I also know that mwilky recently got a Nexus 4 and I am sure he is busy checking out his new device as I would be and therefore does not have as much time for the One X and I can fully understand!

I would actually also understand if they would want to keep such a hack Renovate 3 exclusive, although that's not how I approach my work but that's their right and I fully respect it.

Again, in no way was my post meant to be some sort of name calling, I just made a joke...

I will give it some more time and then maybe PM him, I just don't want to be pushy, that's why I thought I'd rather post in his thread first. ;)
[HTC EVO 3D] il Duce:
lol ok, and fyi that hex edit isn't original to him or renovate. iirc he asked me how to do it. I can't remember the exact thing but from memory it may have been ap_common_bg or some such thing, and the png too. we discovered it operates in layers depending on the apk you're using. some apps call the common_app_bkg png and some call ^ that xml I mentioned. it may have been in colors.xml, and was a layered xml direct. looked like:

color_name="@drawable/common_app_bkg";"ap_common_bg"

or some such thing

best of luck :)
[HTC EVO 3D] fshami:
Sense 3.6 Settings.apk custom background

Guys, i've been trying to put my own image as background for Settings.apk.. but no luck so far

All i was able to figure out was that it uses Transparent color from framework-res..

Any ideas?
[HTC EVO 3D] AgnesGale:
--

It says link has expired. I hope there's a way to get the apk manager. Thanks!
[HTC EVO 3D] Ajthescot:
This is what you want,

Does everything apkmanager does and more

http://xdaforums.com/showthread.php?p=25310195
[HTC EVO 3D] StevetotheH:
Just though I'd stop to say thanks for all the wealth of knowledge. Good to see some d3rp again. That Evo3d brings back good times from my first proper android device. Trying now to get my Note 2 to the same monochromatic goodness that I used to know and love. Appreciate the resources:beer::beer:

Rock, Flag and Eagle!
[HTC EVO 3D] Aditya R:
Where

In which apk files we have to mod these?
[HTC EVO 3D] il Duce:
Potato
[HTC EVO 3D] lex_is300:
Thank you thank you thank you!!!....I've been trying to figure out that mod for ages.

Sent from my 420'd ONE
[HTC EVO 3D] nuvens:
All this time I've been searching tomato... Can't believe it
[HTC EVO 3D] lucasortlieb:
Modding app

Hi guys, I'm trying to edit this app NFC alarm ultra to make it look like the default clock in lollipop. Some basic stuff I already edited, things I know like resources and changing colours in xml files, but I want to keep going and I need to do some things I have no idea how to do, like making the app use resources from lollipop api (switches, checkboxes, dialogs, ...), and for this I need help. I want to know if here is someone that can guide me on this.

the next steps I want to edit is making the app use lollipop switches, checkboxes and other things like this, and make the app tint the status bar.

attached here is a screenshot comparing original app - my modded version - stock lollipop (my target)

I'll be very glad to have your help! thanks!
[HTC EVO 3D] il Duce:
First you'll need to identify the location of your target resources. Like, are they in framework res? Or what, etc? Then you'll need to figure out how they're called. In your app, find whether it calls is current resources via xml or code. Once you figure that out you can redirect how it calls that resource to lollipop.
[HTC EVO 3D] fanion:
complet
[HTC EVO 3D] matrixex:
What I can say it is really cool to learn android tweak

I am Noob

I am currently developing custom rom for my Nokia x

But I had a little problem how to extract or make

META-INF folder for flashing custom rom it is really

Exciting to get help from a dev
[HTC EVO 3D] steal25:
I know theres batch processing in gimp but i dont really use it, in ps you can record an action and set it to one button, I can do 200 battery pngs in less than 5 minutes.to set up an action in ps go to window and click ation and it will show in the right side menu, click the drop down next to action and name it is you chose and set it to any button then click record, perform your action from start to finish( even ctrl s and ctrl w, which is save and close) and then click stop. Now all you have to do is keep clicking your preprogramed button.
[HTC EVO 3D] dased14:
Going to have to try that, have done it for cropping and such but havent tried that.

Tapa away from a galaxy far away
[HTC EVO 3D] steal25:
I looked it up for Gimp and you can't record actions but you can batch edit ill ask nick1313 and see how he does it.
[HTC EVO 3D] Papa Smurf151:
Anyone know the best way to PNG optimize. I'm trying the optimize my 4 MB apk and it only reduces like .05 MB or so. Looking for higher compression if possible. Right now I'm using the apkopt that's in apk manager 4.7 .I know its older but I try the newest one and it seems to mess up. Maybe I'm doing it wrong.
[HTC EVO 3D] Vinchenzop:
Looks like I'll have to get some ps action going...thanks for the info, and I'll keep an eye out for the gimp tut if nick knows
[HTC EVO 3D] steal25:
Xda auto tool has a compression setting from 0-9 I haven't really played with it much I normally use what you are using.
[HTC EVO 3D] silverxbv2:
I use this program for windows.

http://psydk.org/PngOptimizer.php

I have a batch processing plug in for gimp but it doesn't do hue and saturation. I don't know that gimp really has one.
[HTC EVO 3D] steal25:


Thanks I've been also looking for an alternative to apkmanager.
[HTC EVO 3D] silverxbv2:
It works well. Just avoid 9pngs. It breaks the patches in them.

From the mobile command center
[HTC EVO 3D] vanessaem:
Ok cool because I used to wonder if Photoshop had a batch mode. That's why I used to stay away from working with the battery png's... Lol.

I love this thread.

Brought to you from my HTC EVOlutionary 3-Dimensional Smartphone
[HTC EVO 3D] absolutzero1906:
Thanks for the ps action info been something I have wanted to do but haven't had time.

Someone told me about this awhile ago but i couldn't get the cmds to work but it is suppose to be able to change hue and saturation of a bunch of images at once from what I understand. Anyone use? Or if anyone wants to try.

http://www.imagemagick.org/www/mogrify.html
[HTC EVO 3D] steal25:
heres a really good jpeg optimizer for wallpapers and any other jpegs.

to use:

extract contents of zip to C:\ drive

place jpgs in the jdo folder

cd or open cmd prompt in that folder

drag and drop jdo.exe to cmd prompt

copy and paste command that i have on the text file(these are pretty good settings, they compress the jpg as far as possible without loss of quality)

hit enter, easy money.

you can set the variables differently if you like, I use what i have written on the text file and like i said i dont see any loss of quality. This is the unpaid version that leave a verytiny mark in the top left but when viewing on the phone it gets cropped out.

jdo jpg compression
[HTC EVO 3D] pstevep:
Post 2 updated with links to tuturials/guides.. not all of them are listed yet, i only had about 5 minutes before my 3 year old flipped out.. but its coming together.. i should be adding some more this evening.. :cool:
[HTC EVO 3D] vanessaem:
Anyone know a good tutorial on battery animations? For example, instead of having the animation go up to 33 png's, have it go up to 100 or any other kind of animation. I just need to know what to do in the xml to make the animations do what I want. Thanks!
[HTC EVO 3D] steal25:
its in framework-res drawable

you have to edit stat_sys_battery_charge.xml aswell as add the extra pngs when you recompile they will be automatically added to values/public.xml

heres one for 100 charging animations

http://dl.dropbox.com/u/28511905/stat_sys_battery_charge.xml

I dont have one set up differently or i would post it so you can compare the two.
[HTC EVO 3D] tommytomatoe:
Png should never be compressed so don't use a method that does that.

I use optipng. But when I really want optimize my png I use pngout. It is incredible. Ive included four different png opt tools in android-utility. If you have Ubuntu running give it a shot. That's what I used for my Rom.

tapatalk signature here. lovely.
[HTC EVO 3D] vanessaem:
Ok thanks. I had something like this for my OG when it was back on 2.2 but I wasn't sure if the same set up applies.
[HTC EVO 3D] tommytomatoe:
Nevermind...
[HTC EVO 3D] vanessaem:
I found this on MikMik's forum in regards to battery animations. It's for the OG but the same basic ideas still apply I would think?
[HTC EVO 3D] dased14:
ok i found bad .9's and i fixed them so when i recompile (apkmanger) it says to remove anything i modded so when i do that and it makes the systemui.apk the drawable-hdpi file isn't in the new ui?(confused)
[HTC EVO 3D] steal25:
WOW!!! I love this tool! I just used it and its super easy, Thanks again bro!
[HTC EVO 3D] Papa Smurf151:
Yeah I said compress I meant optimize. Unfortunately I'm only running windows right now. Will pngout work on windows as well.
[HTC EVO 3D] pstevep:
2nd post updated again. i have made it through the first 20 pages, and after reading 200 posts, i think i got most of the pertinent stuff.. and thats all i am sorting through for tonight.
[HTC EVO 3D] steal25:
Heres a question thats been bugging me, maybe some one here knows, Im wondering how to set the default clock in a theme or rom, like instead of the flip clock being default i want a different one of htcs clocks to show, and also if anyone knows how to set up scenes, any help with these would be great!
[HTC EVO 3D] il Duce:
truth = I have no idea if this is right.

in /system/customize/MNS/default.xml about half way down there's this call:

<item name="package_name">com.htc.clock3dwidget</item>

<item name="widget_name">com.htc.clock3dwidget.weatherclock.WeatherClockWidgetView</item>

blahblahblahblahblah

has references to a 4x2 widget on screen 3

and then some crazy alphanumeric magic at the end of the string.

maybe that magic string is where it's set?

thanks for giving me something to do, I was getting bored lol. I'll keep looking for fun :)

EDIT: upon further review, it seems more logical it would be an xml inside of like rosie.apk or clock3dwidget.apk itself? Or something entirely ILLOGICAL, because it's sense 3 lmao...
[HTC EVO 3D] il Duce:
totally awesome 9png specific guide, sorta noob friendly. I think this is going to be my undoing :)

http://xdaforums.com/showthread.php?t=605662
[HTC EVO 3D] steal25:
I think its like you said either in MNS/default or an xml in rosie I also need to find the name of the clock i want in its place, I just need to do some experimenting, I'll probably dive into it hard this weekend, that flip clock has been default for years now its time to change that!
[HTC EVO 3D] steal25:
I finally went to install these and noticed the third .apk, what it that one from? I normally only have two installed, framework-res and resources, could this be the reason i was having issues while trying to recompile certain .apks?
[HTC EVO 3D] eg1122:
Modified Lock Ring Kit

Hey guys, I have a Modified Lock Ring Kit that was posted by triscuit1983. Originally you could change the Lock Ring and choose between a few different Rosies. Well I have modified it to work with my theme so I dont have to decompile/recompile m10 images all the time to change a lock ring, the background of the lockscreen shortcuts, rosie, clock, etc. It literally took me like 5 minutes to put 14 different clocks together with it. I'm sure I can set it up to where it can work with any theme. Once I'm done testing it at 100% i'll make a video of how anyone can make it work with their theme and I'll post it up.
[HTC EVO 3D] il Duce:
Sounds cool :) looking forward to it.