yashsingh1/xdaforums huggingface dataset:
[Galaxy S II Themes and Apps] jrsoft:
Universal-Flasher-tool_v3.0

Hello everyone!

This version of the template that you use (2.X) is somewhat outdated. Version 3.0 has many new features, and is much faster and safer.

http://www.multiupload.com/HOP6RWMNOB

Basically, has a new advanced configuration file (MOD.config) where you can enable / disable functions (more information inside the file).

Have also been replaced binaries zip and busybox with a new binary 7z, much faster. The process is much faster now than before.

It also supports theming non-system applications (though not recommended).

Enjoy it!!! :D
[Galaxy S II Themes and Apps] dully79:
Does it support "sdcard"?

The last script supported "emmc", that's why I still use v.2*
[Galaxy S II Themes and Apps] jrsoft:
Yes, the script autodetects the path of the sdcard. You can also manually set the path very easily to the new file MOD.config. Check this out:

[SDCARD PATH]
##########################################
default_internal_sdcard=/emmc
##########################################

##########################################
default_external_sdcard=/sdcard
##########################################

*It's not necessary to modify this
parameters unless you really need another
custom folder path for your sdcards in the
recovery. You should try before change
this!! and remember don't modify the
generic "sdcard" folder name in XTRAS.
The system will adapt the paths depending
of this values.
[Galaxy S II Themes and Apps] dully79:
Cheers mate, your a legend. I could never get vrtheme to play nice but yours runs perfect.:)
[Galaxy S II Themes and Apps] dully79:
If anyone previously downloaded the empty template, please download this version instead, it has many improvents over the old zip including speed.

Links:

>>>HERE<<<

And in the OP.

Thanks.
[Galaxy S II Themes and Apps] Crugath:
Thanks for the guide, dully79. Got a quick question...

I am currently on a stock (but rooted) 2.3.4 rom on my international Galaxy S2. I am pretty noobish at hacking around with the Galaxy S2, so if I may.

Rather than editing framework-res.apk from a rom and then flashing the whole thing in CWM, can I just extract the framework-res.apk from the rom running on the phone at the moment, using Root Explorer, edit the PNG files that I want, save the PNGs back into framework-res.apk and then just overwrite framework-res.apk on the phone (again using Root Explorer), reboot the phone and then enjoy the changes I've made?

Or is that asking for a disaster?

I apologise for being incredibly ignorant in the ways of Android modding. I'm still getting used to all this Android modding stuff. Modding the Nokia N900 was no trouble at all!

I have made a full backup of the phone on CWM, and I have one of them USB Jigs, just in case...
[Galaxy S II Themes and Apps] dully79:
I wouldn't recommend it as your framework-res.apk is constantly being called by various things. I tried it once using root explorer on my old HTC hero and ended up in a world of pain.

If you want to do edits on board the best thing would probably be:

1- copy and paste your framework-res on your sd.

2- extract your framework and make the edits you want.

3- download the UT empty template from OP and extract that, if the files are extracted individually instead of into a folder then put them into folder.

4- copy your new images into the extracted empty template in MORPH/system/framework/framework-res.apk/res/drawable-hdpi/ (if the directory doesn't exist just create it being case-sensitive).

5- zip up the files INSIDE the extracted empty template folder using store add the compression method (beware that some zip apps don't seem to play nice with cwm).

6- flash from cwm

This method will only replace the images you added into the extracted empty template.

Hope this helps, if you need anything else just ask.:)
[Galaxy S II Themes and Apps] Crugath:
Thanks for the reply :D

So the empty theme template will work ok with the stock (but rooted) 2.3.4 Touchwiz rom that my phone shipped with?

Will the same method you described above also work for systemui.apk so I can edit the green Wifi/Bluetooth/GPS/Sound/Auto Rotation switches in the notification tray?

Thanks again :) I'm looking forward to shifting the green-ness of a lot of the graphics - I'd much prefer blue!
[Galaxy S II Themes and Apps] dully79:
Yes mate it will.:)

If you just want to change images use the MORPH folder with the correct directory to the images like described above.

And if you want to replace full apk's you place them in XTRAS.

Don't edit any .9.pngs, as in changing the hue, these need to be decompiled before editing.

You can swap compiled .9's for compiled .9's but be careful with them as these can cause force closes and boot loops. There are guides around xda about editing them.
[Galaxy S II Themes and Apps] Crugath:
Another thank you to you, dully79!

I've followed the instructions you laid out, and I've turned the stock battery level (and charging indicator) blue!

I'd post a picture, but I'm not allowed to yet. Gotta shift my forum training wheels.

But I assure you, it looks goooooooood...

This is only just the beginning...

I'm going to make every single graphic a different colour, with lens flare! /vomits

Thanks again for this guide, this has started me off on the journey of Android discovery! :D
[Galaxy S II Themes and Apps] dully79:
No probs mate, I'm more than happy to pass on what I've learned.

Don't hesitate to ask if you needed owt.:)
[Galaxy S II Themes and Apps] Crugath:
Seeing as you've offered, I think I'll take you up on the offer to answer more questions! lol...

I am trying to change the progress bar colour. I can find progressbar_indeterminate#.png, which is fine, but I can't find the regular solid progress bar. Do you know what that's called and where it might live?

And another, I'm trying to change the colour of the background of a slider for things like changing volume in the settings, I also can't find the PNG for that. If you know where I can look, please let me know!
[Galaxy S II Themes and Apps] dully79:
That's found in progress_horizontal.xml in framework-res.apk/res/drawable.

To make edits you need to decompile first to make the xml readable, then re compile.

Here is a blue progress bar with a grey background from my phone candy theme if you don't want to edit xmls, just extract it from the zip and put it in the correct directory in the MORPH folder.
[Galaxy S II Themes and Apps] Phone_Guru:
I'm having trouble setting up to decompile apk files

When I run apktool it says java not found

I have the android sdk installed correctly and set up the path but when I enter adb into the command window I get an error that adb is not a valid command, program or batch file
[Galaxy S II Themes and Apps] dully79:
You need java to run adb. If its saying its not found then either you dont have it installed or set up right. Try Following the guide detailing how to set up java.
[Galaxy S II Themes and Apps] Phone_Guru:
I did. It didn't work. What about the adb problem?
[Galaxy S II Themes and Apps] dully79:
What output are you getting when you type java -version into your cmd window?
[Galaxy S II Themes and Apps] dully79:
You can use UOT kitchen for anims
[Galaxy S II Themes and Apps] Phone_Guru:
Microsoft Windows [Version 6.1.7601]

Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Users\Phone_Guru>java -version

java version "1.7.0_03"

Java(TM) SE Runtime Environment (build 1.7.0_03-b05)

Java HotSpot(TM) 64-Bit Server VM (build 22.1-b02, mixed mode)

C:\Users\Phone_Guru>
[Galaxy S II Themes and Apps] dully79:
So java is working.

Post the path of your android sdk tools/platform tools folder and post the line from "Path" in your enviromental variables.
[Galaxy S II Themes and Apps] Phone_Guru:
Path is C:\Program Files (x86)\Android\android-sdk\platform-tools;

The platform Tools folder is located in that directory.
[Galaxy S II Themes and Apps] dully79:
*Make sure there is no spelling mistakes

It should look like this on the path location:

PATH TO OTHERS;C:\Windows\Program Files (x86)\Android\android-sdk\platform-tools;C:\Windows\Program Files (x86)\Android\android-sdk\tools;

*Then click ok and open a FRESH cmd and type adb.

*If that doesnt work try zipalign in the cmd

*If that doesnt work type cd C:\Windows\Program Files (x86)\Android\android-sdk\platform-tools

*Then type adb
[Galaxy S II Themes and Apps] Phone_Guru:
That Worked, thanks. Now let's hope I can perfect my theme.

APK Manager still says Java not found
[Galaxy S II Themes and Apps] dully79:
Which one worked, and dont forget forget the button just below

-----------------------------------------------------------V
[Galaxy S II Themes and Apps] Phone_Guru:
changing directory worked
[Galaxy S II Themes and Apps] dully79:
You need to get setup so you can call adb from anywhere.

Did you adjust path in user variables or system variables??
[Galaxy S II Themes and Apps] Phone_Guru:
system variables
[Galaxy S II Themes and Apps] Fir3blade:
Thanks a lot dully, very helpful thread as always coming from you!

You are one of those valuable members on xda.
[Galaxy S II Themes and Apps] Phone_Guru:
I managed to get around the apk manager java problem but I get error messages when decompiling some files. Below is an example of a log from the errors that I got.

'mode' is not recognized as an internal or external command,

operable program or batch file.

java version "1.7.0_03"

Java(TM) SE Runtime Environment (build 1.7.0_03-b05)

Java HotSpot(TM) 64-Bit Server VM (build 22.1-b02, mixed mode)

Could Not Find C:\Users\Phone_Guru1\Desktop\apk_manager_4.9\place-apk-here-for-modding\../place-apk-here-for-modding/signedCamera.apk

Could Not Find C:\Users\Phone_Guru1\Desktop\apk_manager_4.9\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedCamera.apk

I: Loading resource table...

I: Decoding resources...

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

W: Config flags size > 32. Exceeding bytes: -2FFE0000.

W: Invalid config flags detected: dimen-v13-ERR0

W: Config flags size > 32. Exceeding bytes: 0000D002.

W: Invalid config flags detected: dimen-v13-ERR1

W: Config flags size > 32. Exceeding bytes: 00040000.

W: Invalid config flags detected: dimen-v13-ERR2

W: Config flags size > 32. Exceeding bytes: 00050000.

W: Invalid config flags detected: dimen-v13-ERR3

W: Config flags size > 32. Exceeding bytes: 58020000.

W: Invalid config flags detected: layout-v13-ERR4

W: Config flags size > 32. Exceeding bytes: 68010000.

W: Invalid config flags detected: integer-v13-ERR5

W: Config flags size > 32. Exceeding bytes: -BFF0000.

W: Invalid config flags detected: integer-v13-ERR6

W: Config flags size > 32. Exceeding bytes: 58020000.

W: Invalid config flags detected: integer-v13-ERR7

W: Config flags size > 32. Exceeding bytes: -2FFE0000.

W: Invalid config flags detected: integer-v13-ERR8

W: Config flags size > 32. Exceeding bytes: 0000D002.

W: Invalid config flags detected: integer-v13-ERR9

W: Config flags size > 32. Exceeding bytes: -1FFF0000.

W: Invalid config flags detected: bool-v13-ERR10

I: Copying assets and libs...

Any ideas?
[Galaxy S II Themes and Apps] dully79:
Thanks mate, it's nice to be appreciated.;)

Yes, but if I told you I'd have to kill you.:)
[Galaxy S II Themes and Apps] Phone_Guru:
It's killing me not knowing. I want to be able to properly edit .9.png and start messing around with XML files to perfect my theme.
[Galaxy S II Themes and Apps] dully79:
To be honest im quite hesitant to help as i spent 3 hours trying last night when i had things to do and you didnt hit thanks once, is it really that hard??

I dont really give a **** about the "thanks meter", it could be on 0 for all i care but its the sentiment behind it.

Try this:

>>CLICK ME<<
[Galaxy S II Themes and Apps] Phone_Guru:
Thanks for all your help but I didn't ask you to spend 3 hours do anything for me and if you had things to do you should have done them.

BTW, you have a massive thanks on the OP of my red theme thread which has been seen by over 4,000 people.
[Galaxy S II Themes and Apps] dully79:
Actually you did, that's why you were replying because you wanted help.

Your problems could have easily been solved with minimal help by using google.

There are thousands of threads about how to add a path to environment variables.

There are ALOT of people on xda these days that just want a "quick fix" and don't want to learn how to do things for them selves or contribute anything in return. At least your trying to break the mould.:)

The biggest piece of advice I can give any one wanting know an answer is simple......

Use google.
[Galaxy S II Themes and Apps] manishdev:
lol not my concern and i generally never post unless absolutely required....

but comon give d guy a break he is by far d nicest guy i have met...replies to all lost all pms wid a smile and helps a lot and u com here wid dis kinda reply...

i m sure it isnt about thanks but about respect for d hardwork one puts...
[Galaxy S II Themes and Apps] phil_:
Hey,

first of all: thank you very much for this guide! It really helped a lot.

But I am having a little problem which is kinda weird so I have no idea what the problem could be.

I installed the sdk to the default path added the variables, java is installed and apk multi tools is extracted to a folder on my desktop.

So if I enter adb in the terminal it's working great, java-version does what it is supposed to do aswell. So everything seems to be set up correctly.

There are no missing ; in my Path variable and if I copy the path to my explorer's address bar it directs me to the right place. So path seems to be correct too.

But the problem I am having now is when I open the script.bat of the apk multi tool's it giving me this error:

and in the log file it says:

which is the standard cmd error when you write a command/etc. that does not exists.

Do you have any idea what the problem could be? As I said java and apk are working as single commands in the terminal.

PS: in the quote above shouldn't it be only "tools" instead of "platform-tools" once?

edit @6:35 pm

Ok I ignored the error and played around with the xml's and some png's, yes even .9.pngs. I think I know what I have done and that the changes should be ok. Compiling it again works as well. I modified the TwCalendarAppWidget.apk which is a system-app. What is the most inteligent way to move the apk back to the phone and apply the changes? I am going to do a CWM backup first so that I dont have to worry about any boot loops or something if I messed up with the .9.pngs or something

edit again: seems like I just use the universal theme and place the edited files (pngs, 9.pngs and xml) out of the compiled apk into the corespondent path in the MORPH folder (create the necessary folders). And flash it with cwm. Correct? The point is I never used a theme, mainly because I don't know how to uninstall themes after using them for a while...
[Galaxy S II Themes and Apps] phil_:
Does someone still have the universal theme.zip?

It seams to be not available on box.com anymore :(
[Galaxy S II Themes and Apps] dully79:
There are a number of ways to apply changes, the good thing with the universal theme zip is it creates a backup in case of emergencies in sdcard/universal themes/

Ive fixed the links, ive been cleaning out some files, changed the settings and then forgotten to change them back lol. I wondered why there wass no bandwidth used.?!
[Galaxy S II Themes and Apps] phil_:
Thanks for your quick answer!

In the meantime i tried the app "ninja morph" and I think what I have learned now is that one does not replace uncompiled .9.pngs. Thanks CWM backup :)

So what I have done is the following: I edited 2 .9.pngs in the app "TwCalendarAppWidget.apk".

1. decompiled it

2. found the right images, edited without touching the borders and saved them.

3. checked them with 9draw tool from the Android SDK, seem to be ok

4. compiled apk again

So now I simply take the 2 .9.pngs out of the compiled apk and put them into the morph folder (within the right subfolders as you have given the example in one post)

Is that correct? I don't want to recover my phone for the second time today :D

And for future purposes: If I edit an xml (decompiling first then compile again, I know) do I simple put them into the right folder aswell or do I have to put any other file in there too?

Thanks again for your work!
[Galaxy S II Themes and Apps] dully79:
Yes that's right.

You don't need to do a full recover if you use universal theme.
[Galaxy S II Themes and Apps] tazer4:
I have a question I've modified the images of my System_UI to make the blue ics icons all grey and everything is fine except the time is still in blue, since the time is probably not an image where do I find the value to change the color of the time to grey?
[Galaxy S II Themes and Apps] m1keyb:
Did you manage to sort this out?

@dully do you mind if I add an image editing tip here? (changing color of an existing icon) I don't think it warrants a new thread but i'd like to share anyway.
[Galaxy S II Themes and Apps] dully79:
I haven't looked to be honest but it shouldn't be hard to find doing a search.

Yeah by all means add as many tips add you want.:)
[Galaxy S II Themes and Apps] m1keyb:
Sorry mate I wasn't asking you :p should've made it clearer though sorry.

Thanks :)

Ok here's my guide to changing colors on an existing icon, something that bugged me when I started out. It's by no means perfect and in 12 months time i'll probably be laughing at how crude I was now.

Needed: Gimp

Example 1

ICS Settings Icon

Create a duplicate layer

With the duplicate layer selected go to layer/transparency/colour to alpha. In the colour box change to 3b3b3b

Layer/transparency/colour to alpha. In the colour box change to 000000

Layer/transparency/colour to alpha. In the colour box change to ffffff

Colours/Desaturate/ - Luminosity

Brightness-Contrast/ - both up to 127

Duplicate the layer and again so you've got 3 and merge visible layers

Colours/colourify and choose the colour you require

Merge visible and save :)

Example 2

ic_settings icon (battery stats)

Create a duplicate layer

With the duplicate layer selected go to layer/transparency/colour to alpha. In the colour box change to ffffff

Layer/transparency/colour to alpha. In the colour box change to 000000

Colours/Desaturate/ - Luminosity

Brightness-Contrast/ - both up to 127

Duplicate the layer and again so you've got 3 and merge visible layers

Colours/colourify and choose the colour you require

Merge visible and save :)

Like I said a bit crude but looks better than just colourising IMO.

A variation of the above is after -

Colours/Desaturate/ - Luminosity

Don't change the brightness but create 3 layers and merge as before but use colourise instead of colourify (maybe even try with just 2 layers merged, experiment a bit)

There are probably many different ways of doing it but I spent so much time trying to select the colour bit with the magic wand etc lol I thought it'll help others :)
[Galaxy S II Themes and Apps] dully79:
Thanks. I just use greenfish to change the colours of normal png's, it works fine.
[Galaxy S II Themes and Apps] m1keyb:
I had a look at it but couldn't figure it out (still very much a noob :( )
[Galaxy S II Themes and Apps] TheBlackWolf:
I have edited an Apk, compiled successfully but have problem in signing!

Please help.. :(
[Galaxy S II Themes and Apps] m1keyb:
What's the apk and what problem are you having?
[Galaxy S II Themes and Apps] TheBlackWolf:
Thats an UOT file...., unable to sign the apk, without signing I am unable to install!!!
[Galaxy S II Themes and Apps] dully79:
Please provide as much detail as you can, otherwise people are unable to help.

What apk you have edited would be a start!
[Galaxy S II Themes and Apps] TheBlackWolf:
I have base theme of Achep ICS, modded it with UOT, then I want to replace some notification power icons, I have apkmultitool, used to decompile it, then replaced png's and compiled!

Till now I have successfully edited apk, now problem is with signing, apkmultitool has problem in. Signing that apk, I am unable to install apk Without signing!!
[Galaxy S II Themes and Apps] dully79:
Well if you used UOT then that means it's a system app and system apps don't need signing, did you read the guide how to use apkmanager?

Also if you replacing pngs you don't need to decompile, just open the UOT zip, go to the folder with the icons, edit them, close and flash. Simple.
[Galaxy S II Themes and Apps] dully79:
Here's a little tutorial how to use greenfish icon editor to change the hue/colours.

Greenfish is an awesome little tool as it's lightening fast and really easy on resources.:)♥ ♥ ♥ ♥

Open greenfish and select your image, ill be using ic_launcher_settings.png.

* Select an area you want to change by using the Rectangular/Eliptical select tool

* Then select Filter>Hue/saturation and change the value of the Hue as shown below:

You can also change the border on the image by the following-

* Using the select tool to mark the area

* Then select Edit>Inverst selection

* Then select Filter>Hue/saturation and change the value of the Hue as shown below:

Before and after:
[Galaxy S II Themes and Apps] m1keyb:
:eek:

Thanks dully that's so much easier!!! I'm quite embarrassed at how difficult I made it lol oh well I guess that's the learning process coming and no experience.
[Galaxy S II Themes and Apps] dully79:
Your very welcome, thats what this thread if for.:)

I dont really like Gimp as it takes quite a while to get going so its a nightmare if your only changing a couple of images, by the time gimp is running i can have the icons changed and packaged using greenfish.

Anyway how's your theme coming?
[Galaxy S II Themes and Apps] m1keyb:
This thread kinda started it all off (along with inspiration from vert and rixsta) and well...it's become a bit of an obsession now...I'll hold you responsible if my missus leaves me and my life falls apart around me lol

Very slowly mate but quicker with your help than it would've been!!! I keep getting so far and then thinking aaargh I don't like this...and then start again. I'm sick of red now and I wasn't even 30% complete :mad: (as you can see with the blue red and gold below lol)

I'm going gold now :) (slowly)

I started off with a really dark gold and loved it, spent hours and was happy with it...opened an app that used the scrubber on a very light grey background and it looked like dog poo brown haha, oh the joys of picking the wrong colours :(

A question if you don't mind me asking, the power menu dims the screen and I adjusted the popup to suit that, but...the popup is used on others where the screen doesn't dim and the transparency is a little too low (volume popup, they look different on phone). Do you have any idea what controls that?
[Galaxy S II Themes and Apps] dully79:
Lol I've been there, a couple of times now. It's really not worth the it causes with the missus.:)

A little tip, instead of using different tones of a colour to create depth, user black and white gradients, then you can hue your images and they'll look fine instead of merging into a multi coloured mess.

Do you want to know what controls volume popup?

If so it's panel_background.9.png
[Galaxy S II Themes and Apps] m1keyb:
It may look like a multi coloured mess to you :mad: but its progress to me ;) I'll have a play with the gradients...I think I'm trying to create too much depth with not enough layers aren't I. At the moment I'm not creating icons myself anyway I'm just 'trying different effects' I played around with the close on image and well...even my dial buttons have borders that are derived from it lol

I don't mean the volume accessed from settings if that's what you mean (I have that sorted), its the one when you press volume (could be platform specific I'm not sure, you're not on ics are you?) Its dialog_full_holo_dark. I think the dimming effect's in one of the anim xmls I'll do some Googling for it :)