yashsingh1/xdaforums huggingface dataset:
[HTC EVO 3D] nuggyunlimited:
It works if I don't edit anything but I just edit two lines and when compiling I get this

C:\Android\android-sdk\tools>apktool d Browser.apk

I: Baksmaling...

testI: Loading resource table...

I: Loaded.

I: Loading resource table from file: C:\Users\Nuggy\apktool\framework\1.apk

I: Loaded.

I: Decoding file-resources...

I: Loading resource table from file: C:\Users\Nuggy\apktool\framework\2.apk

I: Loaded.

I: Decoding values*/* XMLs...

I: Done.

I: Copying assets and libs...

C:\Android\android-sdk\tools>apktool b Browser

I: Checking whether sources has changed...

I: Smaling...

Exception in thread "main" brut.androlib.AndrolibException: Could not smali file

: java.io.FileInputStream@e22f2b

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:222)

at brut.androlib.Androlib.buildSources(Androlib.java:179)

at brut.androlib.Androlib.build(Androlib.java:170)

at brut.androlib.Androlib.build(Androlib.java:154)

at brut.apktool.Main.cmdBuild(Main.java:174)

at brut.apktool.Main.main(Main.java:59)

C:\Android\android-sdk\tools>
[HTC EVO 3D] fernando sor:
your not getting past decompiling your sources (smali)

what mods did you make? And make sure your using the latest apktool
[HTC EVO 3D] nuggyunlimited:
These are the mods I'm making http://xdaforums.com/showthread.php?t=1233641

The apktool version i'm using is right from the source http://code.google.com/p/android-apktool/
[HTC EVO 3D] dased14:
ok you themeing guru's thought i'd take the short bus on a little drive.

tried to change colors in a skin(everything de and recompiled ok , no errors anyway) i found the new apk in the dist folder inside the open apk but when i try and install it no dice. if someone can take a look and tell me how to get the liitle bus out of first gear that would be great.
[HTC EVO 3D] jeffsanace:
Make sure you zipalign and re sign. If you don't zipalign it will cause that issue. Not home, so I can't look at it right now. It looks a little too small for a skin though. Your file is only 2.4 mb you should be around 6 to 8.

Sent from my Bad Seed customized EVO 3D!!
[HTC EVO 3D] fernando sor:
Are you making smali edits? That is what I need to know
[HTC EVO 3D] dased14:
the hex code in the values/colors.xml is the only one i messed with

---------- Post added at 02:09 PM ---------- Previous post was at 02:07 PM ----------

i just tweaked the colors in the burgundy.apk.

how do i do that(zipalign and sign) in apktool

---------- Post added at 02:30 PM ---------- Previous post was at 02:09 PM ----------

ok i'm also messing around in a systemui.apk changed some colors no xml and when i go to recompile i have a few of these errors

C:\android2\apktool\systemui\res\values\public.xml:XXX(different for each) error: public symbol drawable/name of whatever it is declared here is not defined.

what the hell did i do and how do i fix it so its right
[HTC EVO 3D] jeffsanace:
I'll look at it later but for now, park the short bus on the side of the road. Lol! Your license is suspended until further notice, leave the white helmet on the seat and back away from the bus.

Sent from my Bad Seed customized EVO 3D!!
[HTC EVO 3D] dased14:
lmfao :D:D,

figured out what was causing the errors i was getting when recompiling the systemui.apk
[HTC EVO 3D] eg1122:
can anyone tell me where I can change the phone text to black in the rosie? Trying to make a white theme now. I changed the one in Rosie/res/layout-port/button_bar.xml (the only one I could find with a reference to the phone string) and it did not change. Is it in the smali? Thanks
[HTC EVO 3D] steal25:
ill bet its in one of the fusion.xmls ill take a look.

edit:

i got mixed up with a skin, theres no .xml in fusion,
[HTC EVO 3D] jeffsanace:
I think it is in smali, but an easier way would be to delete the "phone" string completely. Then add it to your fusion.apk m10 files as an image and whatever color and text font you want. And you could make it larger or smaller as well.
[HTC EVO 3D] eg1122:
I'll try it this way I'll report back if I can make it work.
[HTC EVO 3D] steal25:
If your saying we can add images to fusion, can we delete images, say the rosie dockbar, will it then revert back to calling on the images from rosie.apk?
[HTC EVO 3D] jeffsanace:
The dock can be made completely trans in fusion m10 files as well as the icons for app drawer and personalize. The only part of rosie dock that can't be changed in fusion or skin is the phone text and icon. Here's an example of the rosie being replaced with 1 single image for everything except the highlight pressed images.
[HTC EVO 3D] steal25:
I know we can edit and mod all the images, what I'm saying is can we totally delete an images from fusion so they once again become dependant on the image in its apk.

Edit: by the way that ScreenShot is BAD ASS!!
[HTC EVO 3D] jeffsanace:
Here's my rosie modified to have no dock images at all. So whatever you make the dock look like in fusion will be the default dock. You may want to re shape the highlight press images as they will look like the stock dock. But once you make all the rosie images in fusion transparent, you can use the single 540x83 image to make whatever dock you want, with whatever icons or text you want on it. So now you can change the look of rosie just by changing that 1 single image in fusion or skin.
[HTC EVO 3D] il Duce:
Huh, never thought of that (using the dock image to INCLUDE the rest buttons) - that's freaking SMART :)
[HTC EVO 3D] jeffsanace:
Thanks, thats my personal setup. Best part is it can be changed in like 3 minutes without ever having to flash anything. Fern was working on writing out fusion, not sure where he's at with it. I have just learned how to use it's advantages, embrace them if you will. LOL
[HTC EVO 3D] eg1122:
Thanks jeff, this works out great. Now to recolor images for about another 30 apps...lol. but it feels good to get the big ones out of the way.
[HTC EVO 3D] jeffsanace:
Very nice, now you can change it in a matter of minutes with no flashing needed.
[HTC EVO 3D] mayfield103:
Great work that white is sick! Isn't that the detox theme?
[HTC EVO 3D] eg1122:
well its inspired by the detox theme, the detox has solid white bars and rosie...this one has a bit of a gradient between white and black...black looks almost gray in the center.

this is the detox theme which I'm trying to mimic but putting my own twist in it.
[HTC EVO 3D] fernando sor:
The app drawer text is in Rosie.its in the res folder not smali. The screen text is in resources i think.
[HTC EVO 3D] jeffsanace:
Is that for the text color? My way is easier, I'm not as smart as you! LOL
[HTC EVO 3D] fernando sor:
What way?
[HTC EVO 3D] eg1122:
I have to agree, your way is a lot easier than doing xml edits.
[HTC EVO 3D] mayfield103:
I like white myself. I've been thinking of making a white and blue version of my theme.
[HTC EVO 3D] eg1122:
yeah white is cool but it takes a lot of time, if you want to make all the bars white...there is a lot of text color changes that need to happen. I don't think I'm going to go that far since I'm still getting the hang of things.
[HTC EVO 3D] dased14:
When you get a chance to look at it( and tell me how i screwed up and what i need to do to fix) i'm trying to make it so it can be installed on unroot as well. Thanks

Tapa away from a galaxy far away
[HTC EVO 3D] jeffsanace:
Gonna look at it now, you said it's the burgundy.apk right?

---------- Post added at 10:12 PM ---------- Previous post was at 09:54 PM ----------

Your images look great, one big problem though, you're missing the entire assets folder. You have no m10 files in this apk. There should be an assets folder and inside the assets folder should be 2 more folders. One should be the name of the skin(in this case BlueDased and inside that drawable, and inside drawable should be shared.m10 ) The other folder should be image, and it should have your wallpaper.jpg and your preview.png images in it. That would be a problem, you're missing the largest part of the apk. And last but not least, you need to edit androidmanifest.xml to change the skin name from com.htc.skin.Burgundy to com.htc.skin.BlueDased. Let me know if you need need further help.

Edit.....Correction you're only missing the skin name folder with the m10 file.
[HTC EVO 3D] dased14:
I just pm'ed ask what i did wrong and then checked this thread to hit thanks button and boom question answered

Tapa away from a galaxy far away
[HTC EVO 3D] eg1122:
ok I only need one last thing to finish up my detox inspired theme. Does anyone know where I can edit the text color of the flip clock widget where it displays the city, date, and weather conditions? Thanks again...this is the best thread ever.
[HTC EVO 3D] steal25:
i just opened and looked i didn't edit anything so im not sure but look in htc3dclockwidget/res/layout/color or maybe in weather cuz thats actually part of the weather part of it.
[HTC EVO 3D] eg1122:
its not in there, I already checked...I think it might be in smali..but thanx I'll check the weather as well.

Edit.

I think you meant res/values/color...I'll check there one more time. thanx
[HTC EVO 3D] silverxbv2:
Htcweather3dwidget. Res/values/colors.

From the mobile command center
[HTC EVO 3D] silverxbv2:
From the mobile command center
[HTC EVO 3D] steal25:
yep values, sorry bout that!
[HTC EVO 3D] eg1122:
well i changed all those and still no good :confused: thanks though

oops misread....I'll check those now.

edit*

did not work :(...I'll just invert my clock so i'll look nice till I figure how to make that darn text black. Thanx everyone.
[HTC EVO 3D] silverxbv2:
So that only changes the actual weather widgets, not the one on the clock? I thought they were the same.

From the mobile command center
[HTC EVO 3D] dased14:
yours worked great but when i mess with it at all it doesnt.

tried to add the wallpaper to the image folder... no go(tried decompiling adding and recompiling,opening in archive and adding,tried unzipping) as soon as i touch it it wont install.
[HTC EVO 3D] eg1122:
yeah...I digged into the smali of the clock widget and i found a bunch of WeatherClock smali files but I have no idea what to change...lol

HtcClock3DWidget\smali\com\htc\clock3dwidget\weatherclock

theres about 19 files and the one that stood out to me is WeatherClockWidgetView.smali
[HTC EVO 3D] steal25:
are you resigning after editing?
[HTC EVO 3D] fernando sor:
Try <apktool b -f - d ./ file name
[HTC EVO 3D] eg1122:
well thank again guys...I inverted the clock and I think I actually like it better this way.
[HTC EVO 3D] steal25:
i tried every variation of that command and it either errors the same way or with the < in front it says it cant find the specified file, what am i doing wrong?

Could it be something to do with aapt?
[HTC EVO 3D] silverxbv2:
Try apktool b -f -d filename

From the mobile command center
[HTC EVO 3D] jeffsanace:
You need to zipalign after editing, then re sign, also make sure your wallpaper is jpg and your preview image is the same size as the stock one. You don't need to decompile to add those, just open with 7 zip and add them. Then zipalign, then resign.

Sent from my Bad Seed customized EVO 3D!!

---------- Post added at 07:41 AM ---------- Previous post was at 07:31 AM ----------

I agree with you, that looks really nice.
[HTC EVO 3D] tommytomatoe:
You should resign, then zipalign.

Sent for the EVO Classic.
[HTC EVO 3D] nuggyunlimited:
Could it be possible that I didn't install apktool the proper way or could it be a problem with my smali since the error shows after apktool tries to smali the file? I've tried multiple things like apktool, apkmanager,& android utility all in Linux and windows I couldnt try au in windows it's only Mac n Linux
[HTC EVO 3D] fernando sor:
Do you have java in your path?
[HTC EVO 3D] dased14:
No i didnt , i'll try that . So i have to do that when i open it in archive as well

Tapa away from a galaxy far away
[HTC EVO 3D] nuggyunlimited:
Yea when I type java in cmd it shows a list of java commands
[HTC EVO 3D] Papa Smurf151:
This is why I use apkmanager. It decompiled the apk everytime without any issues. And if their are issues its user error not a setup issue
[HTC EVO 3D] nuggyunlimited:
I've tried apk manager papasmurf it decompiles and recompiled fine when I don't touch anything but I edit two lines in browsersettings.smali and when trying to recompile it doesn't get past trying to smali without errors
[HTC EVO 3D] nuggyunlimited:
I won't be around any of my computers until tonight I work a double 7am-11pm I can chat through talk nuggyunlimited@gmail.com or team viewer so you guys can actually see what's going on
[HTC EVO 3D] fernando sor:
You may be not editing correctly
[HTC EVO 3D] nuggyunlimited:
All I do is search line 1172 change v2 to v1 and line 1548 change 4 to f and then save it then try compiling i only change two numbers and try to compile. Is that the wrong way to compile? I've been trying to find guides but I thought I followed them the correct way but I could be wrong
[HTC EVO 3D] tommytomatoe:
If you just do smali edit, just use baksmali and smali to avoid other issues.

java -jar baksmali.jar browser.apk -o out

Do you edit.

java -jar smali.jar out -o classes.dex

Then replace the original classes.dex with the new you we just assembled.

Sent for the EVO Classic.
[HTC EVO 3D] fernando sor:
good advise
[HTC EVO 3D] Papa Smurf151:
Ill pull my version of apk manager and post it later. I've tried multiple versions and the only one that works is the version that I use for sine reason.
[HTC EVO 3D] fernando sor:
He is trying to decompile the new market papa. That version won't work
[HTC EVO 3D] steal25:
Yep I had tried that also same error, All i edited are .xml, But i cant even recompile it unedited. I even tried reinstalling framework and trying - no luck. For some reason I've always had issues with the newer markets. I was hopeing this time would be different. Here is my decompiled Vending with edits only to to .xmls, maybe some one can take a look at it and see if its an error in my editing.

http://dl.dropbox.com/u/28511905/Vending.zip
[HTC EVO 3D] fernando sor:
here is my 3.3.1 trans market. try decompiling it and compiling it with no changes. i also modded smali. start ruling things out.
[HTC EVO 3D] nuggyunlimited:
Thanks I'll give it a go tonight after work
[HTC EVO 3D] nuggyunlimited:
Thanks I'll be looking for it
[HTC EVO 3D] silverxbv2:
What are you editing the file with? Notepad++?

From the mobile command center
[HTC EVO 3D] nuggyunlimited:
Edit lol you were talking about steal

I'm only working with system apps Fernando but curious how come older versions won't work with the new market
[HTC EVO 3D] nuggyunlimited:
Windows ++ Linux gedit
[HTC EVO 3D] fernando sor:
Oh I thought you were doing the market
[HTC EVO 3D] fernando sor:
Use notepad ++
[HTC EVO 3D] nuggyunlimited:
Lol but I'll decompile your market with no edits and recompile it and post the logs just to be sure my apktool works
[HTC EVO 3D] nuggyunlimited:
Will try it again with one line edit if that works I'll let you know
[HTC EVO 3D] jeffsanace:
Nuggy, when you use apkmanager are you deleting resources. arsc from the keep folder? If not that's probably your problem. If you do any smali or values edits you only have to delete the arsc file from the keep folder when re compiling.

Sent from my Bad Seed customized EVO 3D!!
[HTC EVO 3D] nuggyunlimited:
No I didn't that might be the problem I'll try it as soon as I get home
[HTC EVO 3D] fernando sor:
Nuggy make sure your aapt file is up to date also
[HTC EVO 3D] steal25:
I've been looking for an uptodate aapt mine is dates may 2010where can I find the latest?
[HTC EVO 3D] dased14:
here is the one i have its dated 10/13/2011
[HTC EVO 3D] nuggyunlimited:
I think it was dated 2010 I'll update it
[HTC EVO 3D] nuggyunlimited:
Thank you sir
[HTC EVO 3D] dased14:
No problem

I have nothing cool to put here!
[HTC EVO 3D] pstevep:
2nd post updated with link to hockeyfamily737 miui guide..
[HTC EVO 3D] Papa Smurf151:
Hey sorry for taking so long but here's the version of apk manager I've been using and its never given me an issue unless it was my fault.

Once u dl create a new file call it apk manager and copy contents from zip into it.

http://db.tt/7tpBNEsS
[HTC EVO 3D] nuggyunlimited:
No rush man I don't get off work for another 4 & a half hours I've been working the damn 16 hour shift I'll let you know how it go
[HTC EVO 3D] eg1122:
hey guys, sorry to bother you all so much. Does anyone know where I can find the xml's to edit the text color in the app drawer where is says "All apps/Frequent/Downloaded," in the personalize menu where it says "Personalize," and in the dialer where is says "Call." For the first two I looked in Rosie and htc resources and was able to change the submenu's in personalize. For the call I was easily able to find the numbers and add in a textColor in HtcDialer, but can't figure out how to change the call text. :confused: I also looked in Phone.apk.

Here is some images.
[HTC EVO 3D] steal25:
What you can try is open res/values/strings in the apk you think that text is in and search strings for it, then that will help let you know if your looking in the right apk and narrow down your search.
[HTC EVO 3D] eg1122:
Thanks man, I found the strings in Rosie for the app drawer header and the personalize header, but have not been able to find where to change the color or add the color change. As for the call string I found one in each phone.apk and htcdialer.apk. I'm going to dig some more, hopefully I'll find it soon.
[HTC EVO 3D] tommytomatoe:
I'm not sure what you use, but on Unix or Unix-like systems you have to use grep. It's your best friend when looking for a specific string or hex code :-)

Sample.

grep -lr "sample string" res/*

Or

grep -lr "sample hex" smali/*

That will tell you which file contains your string. That's how I do it :-)

Sent for the EVO Classic.
[HTC EVO 3D] eg1122:
I'm on windows...I just use ctr-f...lol on notepad+ and some old fashion searching cause ctr-f doesn't work all the time
[HTC EVO 3D] tommytomatoe:
Man. Google grep for windows. It's a command you can use in command prompt. It will save you time

Sent for the EVO Classic.
[HTC EVO 3D] eg1122:
ok so the only reference to All apps/frequent/downloaded if found outside of public.xml and strings.xml is in smali this is what i found. Can anyone more experienced tell me if I'm looking in right place, and if so how do I go about adding text color? Or am I completely wrong here.

Line 456: sget-object v4, Lcom/htc/launcher/Launcher$AppTabType;->frequent:Lcom/htc/launcher/Launcher$AppTabType;

Line 460: const-string v3, "Frequent"

also found this

.field public static final all_apps_tab_frequent:I = 0x7f09006f

which all_apps_tab_frequent is the string for frequent
[HTC EVO 3D] silverxbv2:
It used to be in Rosie itself. Res/layout folders. There were three or for of them from what i remember. Let me look.

Check res/colors. Also res/ values/color

From the mobile command center
[HTC EVO 3D] eg1122:
Sadly that did not change them...thank you though
[HTC EVO 3D] fernando sor:
What exactly are you trying to do
[HTC EVO 3D] eg1122:
trying to change the text color of the header of the app drawer where it says all apps and changes to frequent and downloaded. also the top of the personalize menu where it says personalize.
[HTC EVO 3D] steal25:
SUCCESS!!!!! Thank you for this, I finally got the new market recompiled.

And Fern too Thank you for all your help!! I find myself saying thank you alot in this thread, I appreciate everyone heres help. :D
[HTC EVO 3D] fernando sor:
I believe that's in com.htc. resources.

Try title_primary in com.htc.resources/res/ values/ colors

Just a guess
[HTC EVO 3D] eg1122:
yes it is...thank you, now I just have to change some more bars to white so that all the tittles can be read...lol
[HTC EVO 3D] fernando sor:
That was it?
[HTC EVO 3D] eg1122:
yeah, I just changed tittleTextColor in colors and all the tittles changed, now i gotta go and invert all the tittle bars. thanx again.
[HTC EVO 3D] fernando sor:
Cool
[HTC EVO 3D] Smokem_I:
Great thread! I can see a lot of great things coming from here! I found a new thread to point everyone that asks about themeing! I'm gonna have read through this thread and learn a thing or two :D

Sent from my BluMagic CM7 Glacier using the Blu Premium App
[HTC EVO 3D] HackitZ:
Hi everyone, I need some help as after a month, i still have not figured out why this is happening.

Ok i use the latest apk tool to decompile my apk (i have untouched apk's from my original rom).

I then use imagemagick (from the command line to batch change the hue) in windows 7 64 bit. no errors so far all is good.

I then copy the converted images back to the working apk folder for my apk and compile it.

I get no errors, when the option to include files from original apk comes up i have tried both yes and no.

The compile finishes with no errors.

When i look at the new unsigned apk it is half the size of the original.

why is that?

Thanks for any help.
[HTC EVO 3D] steal25:
try after decompiling make your edits to you pngs and then add those edited pngs to an already compiled apk.
[HTC EVO 3D] fernando sor:
Apktool reduces the size of the apk. It is a good thing
[HTC EVO 3D] il Duce:
Ahh, smokem wasup man? Long time :)
[HTC EVO 3D] dased14:
so when i get this error

C:\android2\apktool\xxx\res\values\public.xml:143: error: public symbol drawable/rosie_cell_selector declared here is not defined.(red changes if i have more than one but you guys know that) thats a .9 error. right? and i have to use draw9 patch?

thanks
[HTC EVO 3D] Smokem_I:
Not much bro :). Still themeing and learning as much as I can. How about you???

Sent from my BluMagic CM7 Glacier using the Blu Premium App
[HTC EVO 3D] fernando sor:
Is that the entire error?
[HTC EVO 3D] dased14:
one but i have a few and their all the same except whats in red changes

before that i see it say something about png malformed and a pixel # and something like top edge or something but when i scroll back through all i can see are errors like whats above

edit: is there an way in apktool to pull up the entire error list? with the png malformed stuff i saw go by

here is a screeny of what i can see

[/IMG]

Uploaded with ImageShack.us[/IMG]
[HTC EVO 3D] il Duce:
Same with me themeing and helping out on xda, real life is cool, wife an me having a baby girl in January :) first kid.
[HTC EVO 3D] Smokem_I:
That's great bro! Yeah I got 2 of my own :D. A boy(20 months) and a girl(5 months) they are so funny. Kids are great!

You guys have made a great thing with this thread! I'll be keeping an eye on it and chime in if I think I can help. ;)

Sent from my BluMagic CM7 Glacier using the Blu Premium App
[HTC EVO 3D] eg1122:
To copy the info on the command window right click on the window click on select all then press enter (this will copy) then paste in a text document.
[HTC EVO 3D] fernando sor:
When one image errors out you will get a multiple of image not defined errors. When you decompile if apktool can't read an improper patched .9 image it will rename it. You need to fix that image

---------- Post added at 08:05 PM ---------- Previous post was at 07:45 PM ----------

one thing you can also do is find that public id and search for it in rosie smali. then you can just change the one title color if you want by either rewriting that reference or just putting a different public id in that spot
[HTC EVO 3D] fernando sor:
The show the walking dead is the sh*t

We all need to prepare for the zombie apocalypse
[HTC EVO 3D] eg1122:
so by that public id you mean the one for titleTextColor in htc resources? The reason I ask is because I got some color changes in a few undesirable places (incoming call name and some areas in the clock app).