[TIP][Guide]Change Default Home Button Color - Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A

Hi Guys.. I've been searching for ways to change the default color of Home Button of our Ray. Been on decompiling/compiling framework, settings... but got nothing or don't know exactly what xml/smali that controls the color of the buttons. So, by doing some trials-and-errors...:crying: Maybe this time I hit it.
First of all I want to thank:
JJDOCTOR for giving the hint to enable the light of Home button.
boy*racer*- max echo value is 20000
and all of you GUYS here on xda..
So here it is, navigate to system/etc/pre_hw_config.sh using ROOT EXplorer and find these lines:
echo 1000 > $dev/red/max_current
echo 1000 > $dev/green/max_current
echo 1000 > $dev/blue/max_current
and change to anything you want, I made it to
echo 1000 > $dev/red/max_current
echo 2000 > $dev/green/max_current
echo 9000 > $dev/blue/max_current
THE HIGHER THE VALUE, THE BRIGHTER THE LED.
Save changes....
For color preferences calculations: Go here. Thanks to Xtremy.
The above is nearly ICS Blue... You can put any values you want til 20000(?) except ZERO (0). By putting zero, that color will not be used by the system notifications ( I think)...
THIS WOULD NOT MAKE ALL OF THE NOTIFICATIONS COLOR TO THE COLOR YOU HAVE SET, ONLY THE DEFAULT HOME BUTTON COLOR IS AFFECTED. Sorry if the first flash of notification is not the COLOR you desired, only the succeeding flashes... I'm not a developer, I don't know how to do this correctly.
I THINK THIS WOULD NOT WORK ON CM-BASED ROM, BECAUSE THE HOME BUTTON LIGHT IS DISABLED (automaticbrightness is already set to FALSE). If somebody can make it to work, just apply it.
SOME DEFAULT COLOR WOULD NOT BE THE CORRECT APPEARANCE AFTER CHANGING THOSE LINES.. example, Violet is not violet when you use it as message notifications, still ICS Blue(?). Just raise the values.
REBOOT IS A MUST... Hope it won't bootloop...

adulfo said:
......................but got nothing or don't know exactly what xml/smali that controls the color of the buttons..........................:
Click to expand...
Click to collapse
XML is used to create user interface and the components used in app and java is used to create executable codes that will make apps functionality.
XML and smali are created automatically in app development.Though notepad++ is best to type XML.Best and easiest way to create a xml file is just write code in notepad++ and save it with extension of .xml.If you are developing an application of android then xmls are created by software itself. You will just need to specify name and add it to project as xml file...

thank you! i was just looking for this:good:

This is a nice mod adulfo! :good:
I wrote a little tutorial for finding your color value:
Go to this Color Wizard website.
Choose the color of your choice in de color bars.
In the #box you find the hex value for your color.
For this tut i use a nice orange E45F13 hex value.
Split de value in three pieces E4 5F 13.
1st byte E4 xx xx is for the Red value. (#FF0000)
2nd byte xx 5F xx is for the Green value. (#00FF00)
3rd byte xx xx 13 is for the Blue value. (#0000FF)
Open windows calculator set it in Scientific Mode.
1) Hit F5 to select HEX.
2) Type in your first hex (if HEX is 00, decimal is 0)
3) Hit F6 to convert to decimal.
Do this for all three hex values and write down the numbers...
1st byte E4 xx xx E4=228
2nd byte xx 5F xx 5F=95
3rd byte xx xx 13 13=19
As we know "max echo value is 20000" or 255 so:
20000 / 255 X 228 (your 1st above number)= 17882 for the Red Value
20000 / 255 X 95 (your 2nd above number)= 7450 for the Green Value
20000 / 255 X 19 (your 3rd above number)= 1490 for the Blue Value
Change the values in system/etc/pre_hw_config.sh for red, green and blue save & exit, reboot!
---------- Post added at 12:48 AM ---------- Previous post was at 12:37 AM ----------
I use the Tron Legacy Cyan color: 00DFFC
1000 for the Red Value.
17490 for the Green Value.
19764 for the Blue Value.
also note:
I set the first byte for Red to zero
after reboot it went to 1000 value,
so I think 1000 is the lowest value.

Thanks mate.. To those also having problems converting those values, you can google HEX to RBG converter.

wow it is very great and i change it
works perfect
4.0.4 587

psp1987 said:
wow it is very great and i change it
works perfect
4.0.4 587
Click to expand...
Click to collapse
Would be nice if you will read my signature...

what does this change ? the light shown when the phone is switched on and had no notification ?

-Jesco- said:
what does this change ? the light shown when the phone is switched on and had no notification ?
Click to expand...
Click to collapse
This would only change the default color of your Home button ( if only it is enabled), hitting any of your physical keys.

i changed all the values to 10000, all the colors are the same but a lot brighter, default 1000 is too dim for me.

@adulfo thanks for the tip buddy, can happily report that it is also working on my ray
Sent from my ST18i using xda premium

This values as depicted on the lines itself maybe clear, raising it, means raising LED current, more current more power,more power so much brighter... If you want color other than WHITE, don't make the values nearly equal.

Xtremy said:
also note:
I set the first byte for Red to zero
after reboot it went to 1000 value,
so I think 1000 is the lowest value.
Click to expand...
Click to collapse
Zero doesn't work, i try 0001, it works.
for RED color, the value is 10000,0001,0001.

Try again to see the values on your pre_hw_config.sh if it did not changed after reboot. Then all of your notifications will turn to RED.. By setting the lowest value to 1000, still the GB colors has still a good current value.

Flashable zip for Holo style Blue
Not made by me but jjdoctor...
had this zip tho

lokenok said:
Flashable zip for Holo style Blue
Not made by me but jjdoctor...
had this zip tho
Click to expand...
Click to collapse
I think this will make all of your notifications to LIGHT BLUE?.. Correct me if I'm wrong... Doing that also.. Better to put those values on pre_hw_config.sh..

adulfo said:
Try again to see the values on your pre_hw_config.sh if it did not changed after reboot. Then all of your notifications will turn to RED.. By setting the lowest value to 1000, still the GB colors has still a good current value.
Click to expand...
Click to collapse
so is there any value that change the LED to RED but not affect to other notification color???

luckkonku said:
so is there any value that change the LED to RED but not affect to other notification color???
Click to expand...
Click to collapse
Just don't put those values on hw_config.sh, only on pre_hw_config.sh I think....

hi guys this is my first comment so, i've changed these values in pre_hw_config.sh and of course i've got the color i want (nearly ICS blue). BUT here is my problem: other notifications like charging (instead of red it's nearly pink, instead of orange it's nearly green...) not working properly. I'm using light flow led and its notifications also miss the right color. Is there a solution for this? I'm not a developer but i think the phone calculates the values of notifications by this three values and must be an algorithm for this somewhere in the phone, so maybe we can manipulate that. Tell me if I'm wrong. Sorry for my english it's not my native language.

bobo023 said:
hi guys this is my first comment so, i've changed these values in pre_hw_config.sh and of course i've got the color i want (nearly ICS blue). BUT here is my problem: other notifications like charging (instead of red it's nearly pink, instead of orange it's nearly green...) not working properly. I'm using light flow led and its notifications also miss the right color. Is there a solution for this? I'm not a developer but i think the phone calculates the values of notifications by this three values and must be an algorithm for this somewhere in the phone, so maybe we can manipulate that. Tell me if I'm wrong. Sorry for my english it's not my native language.
Click to expand...
Click to collapse
Try to raise the values of the other color, I stated that on my OP last part that if you make the other values extremes (1000 and 20000), the the colors will be affected.. If for instance, Blue will have 20000 value, the notifications color that contains blue (violet...) will have dominant blue and other colors will be suppressed, so VIOLET will turn out to be more on BLUE.

Related

Auto brightness level

hi guys,
there is an app (or a method) to change the auto brightness level? something like in CM 6.1...
loscassapalle said:
hi guys,
there is an app (or a method) to change the auto brightness level? something like in CM 6.1...
Click to expand...
Click to collapse
Which rom you are using ?
Froyo, the Blayo one
no one knows?
i found a solution, but i don't know how to do it.
framework-res.apk. It's resources.arsc. If you want to mess around with the brightness levels yourself, you can open it up in a hex editor, and the following values seem to be the brightness levels:
Offset 0x71E20: Minimum brightness
Offset 0x71E2C: Next level of brightness
Offset 0x71E38: Next level of brightness
Offset 0x71E44: Maximum brightness
Click to expand...
Click to collapse
i think it could be a good improvement for our batteries.
someone can tell me if to install the modified apk i have to reflash the rom or there is a faster way?
EDIT: i'm trying to modify it, i found 71E20, but not the others.
Hey, I know this is from a long time ago but did you have success making your changes? If not I made the required changes for blayos 0.84 framework-Res.apk for auto dimming. I can post it if you want.
sent from my legend, currently using extream legend fuseā„¢
Not sure if this can help, but an app on market could help you. It is named "Lux", I heard about it. I tried on zeubea's CM9 Beta0, and it didn't worked, because if not on app's main screen, it detects no light. Maybe on other ROMS it does.
Tested on Devils CM7.1
It almost works on CM7.1, but doesn't respond dynamically (i.e It doesn't adjust as soon as the ambient light level changes, it changes as it feels, kinda randomly). Therefore... not really working - sorry.
cyanogenmod -> display ->automatic backlights -> use custom(check) after that edit other levels and on the third colum make this changes
20 35 50 65 80 110 130 160 180 200 then go to the bottom on the screen and press 'set number of levels' after that go to the top and press 'Save and apply ' and you are done you dont need any app

Screen color profile : V3 just added (see !![EDIT3]!!)

Hi all,
Well ... I waste some hours trying to make a color profile of our phone screen and ... I did it ! I can say it wasn't easy ...
I was bored to make stuff in photoshop and have a different result on the phone screen, then go back to PS, then push again, PS again ....
Attached files:
-Graphic which shows that the screen color space is smaller than sRGB & Adobe98. We also have a low contrast ratio of 350.
-The color profile that you have to put in C:\windows\system32\spool\drivers\color
-Photoshop screenshot to enable the profile
--> When you make images modd in PS for your phone (don't forget to disable it when you work with normal pictures !), choose : menu>Display>Work format (I don't have the UI in english so I don't know the real name --> look at the screenshot), then choose the profile and tick "Keep RGB numbers".
You're now able to modd images that will appear like on the phone (not perfect but acceptable). If you load a SGS3 screenshot you will see the difference too (CTRL Y to toggle apply profile / no profile).
However, I'm using a high-end monitor which is perfectly calibrated so I can really see the difference (this is named softproofing (simulating the destination display device). Depending on how your monitor is far from the right calibration, the profile may be useless ... Try it ! or search for someone who have a colorimeter and calibrate your screen, the improvment is very great !
I've made this profile with Spyder3 Elite in a very strange way
Enjoy !
/
/
[Edit 1] Screenshot added as example : "Without profile" jpg is the one that is made by the phone (raw). "With Profile" jpg is the same after applying my color profile, and this one is very near what I can see when I look the phone. The difference is not small !
/
[Edit 2]
1) How to convert your screenshots:
In photoshop, choose Menu Edition/Assign a profile, and then choose the phone's profile. Then choose Menu/Edition/Convert to profile and choose the sRGB profile. Then save your image.
Now, posting your screenshots this way, they will appear like there are on the phone. (Depending on how well calibrated is the monitor's member).
2) If you have a photo wallpaper on your computer and want it to appear the same on the phone : choose Menu Edition/Assign a profile, and then choose the phone's profile
- For who can have a profile for its momitor, it's important too to use the Color Management plugin in Firefox ( the only one browser able to manage color profiles )
/
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!! [EDIT 3] !!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
There was a problem with some colors with previous color profiles.
When applying profile in photoshop with this V3 color profile :
- Select profile
- Untick Keep RGB numbers
- Select Relative color
- Tick Black point compensation
Now you will see in PS the colors like they will appear on your SG3 !
/
/
noob question
can u explain it in a simple language and wat is it exactly?
wat changes in phone and how to apply it..
vikraam said:
can u explain it in a simple language and wat is it exactly?
wat changes in phone and how to apply it..
Click to expand...
Click to collapse
Color Management is not an easy thing to understand at all. It can be a sbject of PhD ! And my bad english does not help to explain ...
The profile is usefull for who makes themes (it's not to implement into the phone):
-When you work on android's images in photoshop, what you see is not what you see when it is on the phone.
-With the profile you can :
--> See in photoshop what you will see when the image will be on your phone. It helps a lot ! Before making the pofile I was making changes, pushing them to the phone and then going back to photoshop (it was looking good in photoshop but not on the phone)
--> When you take a screenshot on the phone, the image is raw without any color profile, ugly ! Applying my profile you can visualize the screenshots on your computer like it appears looking at the phone. It's good to apply the profile to the screenshots before posting. At the present time the screenshots available on the forum does not correspond to reality. I will add a small tutorial to do that.
you get it ?
ok now i understood it. Im learning to make themes actually. So this wil help me
vikraam said:
ok now i understood it. Im learning to make themes actually. So this wil help me
Click to expand...
Click to collapse
I hope so ! See if someone or some store can lend/rent you a colorimeter to calibrate your monitor. I can warranty that this will change your editing experience ! You will be surprised visualizing your photos ...
Unfortunately, monitors even high-end, are sold without being calibrated .... The Delta can be very huge !
all i see in the 2 screenshots is that one is brighter than the other
i dont get it
in 1 post u say we can view the images before pushin it in the phone
n the other post u say it improves ur viewing experience like improves the quality??
i m viewing these photos on a netbook i dont if that makes a difference
so if u could please explain me again
AacidD said:
all i see in the 2 screenshots is that one is brighter than the other
i dont get it
in 1 post u say we can view the images before pushin it in the phone
n the other post u say it improves ur viewing experience like improves the quality??
i m viewing these photos on a netbook i dont if that makes a difference
so if u could please explain me again
Click to expand...
Click to collapse
Color management is a headache subject ...
The purpose is to get the same visual result on the phone and on the computer. The fact is that you don't have my phone so you can't see that the second picture looks like the phone and not the first one.
Actually, your case is not surprising : in general (90% ?) netbook's screens are very bad (poor color range and very sensible depending on what angle you are looking it) and of course non calibrated. So it's not a surprise you're not viewing a lot of diference.
Even like that, if you can calibrate your netbook screen there will be a significant improvment to view photos and other stuff.
Thanks!
I've been trying to solve different looking colors problems for a while now.
How did you create the profile?
undsoft said:
Thanks!
I've been trying to solve different looking colors problems for a while now.
How did you create the profile?
Click to expand...
Click to collapse
I'm pleased to know someone is using this profile and finding it usefull !
It was'nt easy to make it :
- 1st, I ran Basiccolor display calibration soft with my Spyder 3 colorimeter, on my computer screen, and make screenshot of each pattern color.
- then I put the images on my sdcard's phone
- then search for an image viewer able to switch picture by clicking a button. I found one where you can configure the button you want to use.
- then, ran calibration soft on computer, holding colorimeter on the screen phone and clickin the button just in time (at each color measure).
I will not do that again !
V3 profile available
UP !
see first post [EDIT 3]

[Q] How can I edit the MDNIE settings?

I'm running the UnNamed rom v.1.3.1. One of the reasons I'm using this rom is because it unlocks the Display settings for Screen Mode. Here you can choose between 3 modes:
Dynamic: SUPER saturated colors!!!
Standard: very saturated colors
Move: a bit oversaturated colors
I was hoping to be able to tweak these settings, but I can't find any definitive information on how to change them. I believe their settings are stored in 3 files in /system/etc
mdnie_tune_ui_dynamic_mode
mdnie_tune_ui_standard_mode
mdnie_tune_ui_movie_mode
There's a Color Saturation setting that difffers between them all. I tried to update the value the saturation in the Standard file to 0 to see if I could tone down the saturation. But edits to the file seems to have no effect. I even copied the content of the "movie" file to the "standard" file, and it doesn't change anything. Does anyone know how I can get these changes to take effect? Thanks.

[MOD] Five different mods to adjust the brightness of Capacitive button's backlight

Here I am presenting the five different brightness mod to adjust brightness of capacitive button's backlight. Requirements, Procedure and mods are given below.
Requirement-
1 Root explorer or any similar explorer
2 Sharp mind
Procedure-
1 Open the root explorer and go to system/etc. Here you will find a script named as" hw_config.sh ".
2 Open the script or file as the text in text editor with the help of root exploprer.
3 Now scroll down to the last line and after that line add one of the required brightness mod line which one you like into it as given below. (Don't add all lines of different mods. )
4 Now reboot and done.
Five Different brightness mods-
1 Very High Brightness mod-
echo 10000 > $dev/button-backlight/max_current
Click to expand...
Click to collapse
2 High Brightness mod-
echo 7000 > $dev/button-backlight/max_current
Click to expand...
Click to collapse
3 Medium Brightness mod-
echo 4000 > $dev/button-backlight/max_current
Click to expand...
Click to collapse
4 Low Brightness mod-
echo 1000 > $dev/button-backlight/max_current
Click to expand...
Click to collapse
5 Zero Brightness mod-
echo 1 > $dev/button-backlight/max_current
Click to expand...
Click to collapse
Important note:- If any line similar to these lines already exists in script or file then first delete that line or replace it with one of mods.
Recomended and tested successfully with stock kernel, can't say about custom kernels.
Press thanks if you thinks this post is useful to you.
Great
Is this applicable to ray
Sent from my ST18i using xda app-developers app
dheeraj.nijghal said:
Is this applicable to ray
Sent from my ST18i using xda app-developers app
Click to expand...
Click to collapse
Yes, for sure.
i'm using cm10 on my sk17. and in there is a line in the file "echo 500 > $dev/button-backlight/max_current" by default. and the brightness is very high. Tried various times and found that the minimum value that can be given is 150 on cm10. If you want more light, just increase in small steps...
shivamcheat said:
i'm using cm10 on my sk17. and in there is a line in the file "echo 500 > $dev/button-backlight/max_current" by default. and the brightness is very high. Tried various times and found that the minimum value that can be given is 150 on cm10. If you want more light, just increase in small steps...
Click to expand...
Click to collapse
ok thanks.
why this is not f**king working for me ...?!?
ok, had this problem and dont know wheres here the problem
1. i hate bbl (=buttonbacklight) so i disable it with Mini-Ultrabrightness mod and all was fine!
but after changing kernel to kappa kernel (1.6) the bbl was very bright AND NO way to disable it...?!?
---> edited hw_config file like here = no changes
---> flashed Mini-Ultrabrightness second time = no changes
---> make a script with value echo 1 > $dev/button-backlight/max_current / and also tested values for 1 button etc.. = no changes
before it was no problem changing the bbl, but after usig kappa kernel the bright backlight persist, even after flash diffrent kernels
..... MY QUESTION IS: anbody knows whats happenning there?? or haw to diable bbl with a diffrent (safe ) method??
it would be really nice.
thanks. and SFBE (=sorry for bad english)
bejunk said:
ok, had this problem and dont know wheres here the problem
1. i hate bbl (=buttonbacklight) so i disable it with Mini-Ultrabrightness mod and all was fine!
but after changing kernel to kappa kernel (1.6) the bbl was very bright AND NO way to disable it...?!?
---> edited hw_config file like here = no changes
---> flashed Mini-Ultrabrightness second time = no changes
---> make a script with value echo 1 > $dev/button-backlight/max_current / and also tested values for 1 button etc.. = no changes
before it was no problem changing the bbl, but after usig kappa kernel the bright backlight persist, even after flash diffrent kernels
..... MY QUESTION IS: anbody knows whats happenning there?? or haw to diable bbl with a diffrent (safe ) method??
it would be really nice.
thanks. and SFBE (=sorry for bad english)
Click to expand...
Click to collapse
u need to create or edit pre_hw_config.sh
Nice tutorial...
Will try when I get time...
Sent from my Sony Ericsson Xperia Mini Pro(SK17i) using Tapatalk 2
hey guys
wont this only apply to back button????
Not working in mine Xperia mini pro with kappa kernel 1.6
Please help me...
Sent from my Sony Ericsson Xperia Mini Pro(SK17i) using Tapatalk 2
rockstardeepaksharma said:
Not working in mine Xperia mini pro with kappa kernel 1.6
Please help me...
Sent from my Sony Ericsson Xperia Mini Pro(SK17i) using Tapatalk 2
Click to expand...
Click to collapse
Strange because kappa 1.6 is the only custom kernel with which I have tested all these mod and they all work fine with this kernel[kappa 1.6 for simultron].
Mankotialovely said:
Strange because kappa 1.6 is the only custom kernel with which I have tested all these mod and they all work fine with this kernel[kappa 1.6 for simultron].
Click to expand...
Click to collapse
i was using zero brightness trick but it doesnt helped me :'(
rockstardeepaksharma said:
i was using zero brightness trick but it doesnt helped me :'(
Click to expand...
Click to collapse
Under LMU AS3676 Configuration add these lines-
echo 1 > $dev/button-backlight/max_current
echo 0 > $dev/button-backlight/max_brightness
echo 1 > $dev/button-backlight-rgb1/max_current
echo 1 > $dev/button-backlight-rgb2/max_current
Now reboot 2-3 times and between every reboot provide some time also delete any previous lines which are similar to these or simply replace there value with these one.
Interesting thread...
Is there any way guys for the capacitive buttons to have backlight ONLY when we press them, not only every time the screen is on?
Alternative: can we change their backlight timeout?
thx
Mankotialovely said:
Here I am presenting the five different brightness mod to adjust brightness of capacitive button's backlight. Requirements, Procedure and mods are given below.
Requirement-
1 Root explorer or any similar explorer
2 Sharp mind
Procedure-
1 Open the root explorer and go to system/etc. Here you will find a script named as" hw_config.sh ".
2 Open the script or file as the text in text editor with the help of root exploprer.
3 Now scroll down to the last line and after that line add one of the required brightness mod line which one you like into it as given below. (Don't add all lines of different mods. )
4 Now reboot and done.
Five Different brightness mods-
1 Very High Brightness mod-
2 High Brightness mod-
3 Medium Brightness mod-
4 Low Brightness mod-
5 Zero Brightness mod-
Important note:- If any line similar to these lines already exists in script or file then first delete that line or replace it with one of mods.
Recomended and tested successfully with stock kernel, can't say about custom kernels.
Press thanks if you thinks this post is useful to you.
Click to expand...
Click to collapse
i have been facing a problem,i have installed "OpenSEMC-mr2-alpha2"
when i control my brightness the illumination bar light remain full
but in stock ROM when i reduce my brightness the intensity of that illumination bar light also decreases .
it is very annoying if you are doing something in night with low brightness and the illumination bar light is full.
please help
how tot enable ultrabrightest ?

better way to adjust custom colors of splendid display app

I was always dissatisfied with the colour reproduction of the "splendid" settings, but custom setting is always too inaccurate. Now I have found a way to adjust them better. Maybe it will be of some use to you:
go to the splendid app and use custom.
After it use adb on a pc with USB-debugging (or use the App SetEdit)
On PC use:
adb shell
settings get system asus_splendid_custom_color
you get a value like: 0.0:1.0:1.0
The first value is red, it means e.g. 5.0 means red will be more like orange, -5.0 mor like violet
The second is saturation. Use it in small steps e.g. 0.95 for less saturation
The third value is gamma/whiteness. Use small steps, too.
Then you can change it:
settings put system asus_splendid_custom_color 2.5:0.89:1.1 (This are my actual values)
In the App SetEdit you can directly change the values.

Categories

Resources