[MOD] mix trackball colors notifications - updated for cm-5.0.6 - Nexus One Android Development

Thanks to ChainsDD I got my notification led working, however, the Android framework only displays a notification for the first event.
Since I have a constant stream of emails I always have the green notification flashing, so for most cases I don't get an indication for any other event...
So, here's a trivial mod which blends the colors of all the active notifications and turns on the notification led with the blended color. Only works well if you use basic colors. For example I have email as Green and SMS as Red. When I have both events on, the notification color is yellow (green + red).
Attached is a diagram which shows the results of blending different colors
This mod only works for CyanogenMod-5.0.6 (as I have built this jar using his source). No guarantees - works for me.
Installation:
Download services.zip and rename to services.jar.
In recovery, do a nandroid backup and then push services.jar to /system/framework/
code is in github/eshabtai

Is there anyway to get this to work on the Desire rom? Great job BTW.

Is it possible to have colors blink in succession? Like say if you have a missed call(red), gmail(green) and sms(blue), it will blink red, green, then blue?

kep0ne said:
Is it possible to have colors blink in succession? Like say if you have a missed call(red), gmail(green) and sms(blue), it will blink red, green, then blue?
Click to expand...
Click to collapse
that would be sweet....
thanks ill be trying this out in a lil!!!

kep0ne said:
Is it possible to have colors blink in succession? Like say if you have a missed call(red), gmail(green) and sms(blue), it will blink red, green, then blue?
Click to expand...
Click to collapse
+1 I think this is easier to understand than having all colors mixed.

Great Mod! Did you use smspopup to set the colours?

I'm not familiar with development, but for my suggestion:
Is it possible to create a queue of some sort with trackball led notifications, and have the notification system look at that when it decides to flash the led?

kep0ne said:
Is it possible to have colors blink in succession? Like say if you have a missed call(red), gmail(green) and sms(blue), it will blink red, green, then blue?
Click to expand...
Click to collapse
+1 That would be so perfect to blink them in succession- exactly what I need. Gmail flashes all the time lol and the color mixes would get messy real fast.
Thanks for working on this

Yes succession!!
Been saying this since G1 days!! Would be great.

Breakthecycle2 said:
Is there anyway to get this to work on the Desire rom? Great job BTW.
Click to expand...
Click to collapse
+1 and I agree that in succession would be better than mixing the colors. My memory isn't so hot lol.

Looking into implementing sucession.

metalhead8816 said:
Looking into implementing sucession.
Click to expand...
Click to collapse
Yay !
Hope you figure it out (and thanx for taking the time to investigate it anyway)

thx...good job, keep it up! we love it~

kep0ne said:
Is it possible to have colors blink in succession? Like say if you have a missed call(red), gmail(green) and sms(blue), it will blink red, green, then blue?
Click to expand...
Click to collapse
+10 Was thinking the same thing when I read the OP's Green+Red = Yellow... Not good with mixing colors..

What are the chances of having this updated for 5.0.6 CM or releasing the code?
Thanks,
tr2ride

tr2ride said:
What are the chances of having this updated for 5.0.6 CM or releasing the code?
Thanks,
tr2ride
Click to expand...
Click to collapse
Updated code for 5.0.6 is in github:
github/eshabtai
(I can't seem to post an actual link...)
I can release an updated services.jar file for 5.0.6 if that would help.
Ehud

eshabtai said:
Updated code for 5.0.6 is in github:
github/eshabtai
(I can't seem to post an actual link...)
I can release an updated services.jar file for 5.0.6 if that would help.
Ehud
Click to expand...
Click to collapse
Please do. Thanks.

Green + Red = Not Yellow. Keep up the great work! That is all.

updated for cm-5.0.6
enjoy!

eshabtai said:
updated for cm-5.0.6
enjoy!
Click to expand...
Click to collapse
White text instead of black for theme-ing purposes.
Clock and date
http://android-theme-minus.googlecode.com/files/trackball_mix_colors_2white.zip
Clock, date, and network provider
http://android-theme-minus.googlecode.com/files/trackball_mix_colors_3white.zip
Flash these in recovery after making a nandroid.

Related

[MOD] Native trackball colors... Official!! [3-16]

For anyone who missed it, Google open sourced the official lights and sensor libs. Attached is the update.zip with official colorful LED lib. It's just about functionally identical to mine, but they have some better color mapping, and the white is finally white! Just flash from recovery and enjoy.
Special thanks go out to lilHermit, his app gave me a lot of insight into the LEDs, and metalhead8816 for helping me through some tough code, and Google for releasing the official code.
Root is required...
This is how it works:
- Screen on: incoming whatever - one white flash
- Screen off: notification - one white flash, then colored flash
- SMS, Gmail - green
- Missed call, twidroid - cyan
- Incoming call - rapid white flashing
- Incoming call while on bluetooth - rapid blue flashing
** Please read **
This file offers no customization because it's only an interface. What this file does is allow apps and the system to set the color and blink rate of the trackball and the trackball obeys.
Also, I cannot guarantee support for Desire roms. I know nothing about how the Desire is supposed to handle notifications. If HTC didn't try to do something fancy (read: stupid) with the notification code, then this will work as advertised. I have no plans to use or test this on a Desire ROM myself.
Attached is a real update.zip that I made myself. No waiting this time. Flash from recovery and let me know what you think.
ChainsDD said:
I pieced together a new led driver that shows colors on the trackball. Everything seems to work as advertised and it should work on any ROM.
It's being pulled into CM, so if you run that, you could probably wait for the next release if you want.
Other than that you can grab the .so here and push it to /system/lib/hw. It requires a reboot to take effect.
Note: This is not an update.zip. I'm too tired to put one of those together. just extract lights.mahimahi.so and push it with adb. or someone else can make an update.zip
Click to expand...
Click to collapse
interesting ... was this a binary edit ... or did you build this from scratch/source?
Nice work.
~enom~
freaking sweet! now i just have to figure out where my flipping cable is since I just got to my hotel room on a business trip. what a great surprize.
enomther said:
interesting ... was this a binary edit ... or did you build this from scratch/source?
Nice work.
~enom~
Click to expand...
Click to collapse
Sort of built from scratch. I had the lights.msm7k.so source to look at.
What directory does this go
bobtentpeg said:
What directory does this go
Click to expand...
Click to collapse
/system/lib/hw
ChainsDD said:
Sort of built from scratch. I had the lights.msm7k.so source to look at.
Click to expand...
Click to collapse
In that case ... very well done sir ... nice indeed!
EDIT: Ah, I just saw it up on github too ... cool.
~enom~
thanks for the hard-work it'll be great to have the trackball work the way it should have from start. I put together an update.zip but its my first time putting one together just kinda edited and re-signed another zip file i had, i flashed it myself it didn't have any errors and seems to be working but standard disclaimers apply make a backup flash at your risk im not responsible for anything that happens to your phone.
updated the file its the new one 2/22
edit i forgot that there was issues with the screen being on and color changing properly the zip works fine
edit removed zip to prevent confusion
godsfilth said:
thanks for the hard-work it'll be great to have the trackball work the way it should have from start. I put together an update.zip but its my first time putting one together just kinda edited and re-signed another zip file i had, i flashed it myself it didn't have any errors and seems to be working but standard disclaimers apply make a backup flash at your risk im not responsible for anything that happens to your phone.
Click to expand...
Click to collapse
I didn't try it, but looking at that, it should work just fine. putting it in the OP. Thanks!
ChainsDD said:
I didn't try it, but looking at that, it should work just fine. putting it in the OP. Thanks!
Click to expand...
Click to collapse
no problem glad to be of some help. i cant code and i'm poor so gotta give back to the community somehow
Awesome!!! Thank you!!!!
How do we change the values for different situations, (calls, sms, email etc...)???
this is awesome!!! Thanks so much
How do you mess with the different colors or can you not do that?
are there any options or something to mess around with? I don't notice much of a difference. Rather than 2 white pulses, I get a pinkish flashing. anyway to adjust?
Tested. Works fine.
I might sound dumb but how can I tweak the colors? Right now it blinks pinkish on startup but i hate pink
My guess is that the color is specified in the program itself, the same way that a LED notification light would get it's color.
But hey, at the moment the pink flashing matches nicely with the Carebear recovery released earlier today...
duylong186 said:
Tested. Works fine.
I might sound dumb but how can I tweak the colors? Right now it blinks pinkish on startup but i hate pink
Click to expand...
Click to collapse
Ssantos6981 said:
are there any options or something to mess around with? I don't notice much of a difference. Rather than 2 white pulses, I get a pinkish flashing. anyway to adjust?
Click to expand...
Click to collapse
cupOjo said:
How do you mess with the different colors or can you not do that?
Click to expand...
Click to collapse
wdelisi said:
Awesome!!! Thank you!!!!
How do we change the values for different situations, (calls, sms, email etc...)???
Click to expand...
Click to collapse
Colors shown are up to the apps that send the notifications. So far I know that email and sms are green, and twidroid is light blue.
I just put together a fix for the pink, stand-by for that
duylong186 said:
Tested. Works fine.
I might sound dumb but how can I tweak the colors? Right now it blinks pinkish on startup but i hate pink
Click to expand...
Click to collapse
don't flash RA's carebear recovery then
ChainsDD said:
Colors shown are up to the apps that send the notifications. So far I know that email and sms are green, and twidroid is light blue.
I just put together a fix for the pink, stand-by for that
Click to expand...
Click to collapse
USB connection is a lavender color as is Handcent.
I guess no workaround for unrooted n1s?

Blink

You can change led blinker color with this app. There are thread in x10 forum where people claim that blink doesn't work with 2.1 but in mini it works. Atleast did if i used frequency fast and blue light or pink color ! red color didn't work for me and i didn't check other colors.
get it here androidfreeware.net/get-blink.html
master9997 said:
You can change led blinker color with this app. There are thread in x10 forum where people claim that blink doesn't work with 2.1 but in mini it works. Atleast did if i used frequency fast and blue light or pink color ! red color didn't work for me and i didn't check other colors.
get it here androidfreeware.net/get-blink.html
Click to expand...
Click to collapse
I still have problems using it.
I installed it this afternoon and don't see any notifications at all right now on the LED.
I will try to find what's going wrong tomorrow.

Color code for the blueish icons in many roms??

I'm just wondering if anyone can tell me the color code of the bleuish/teal, think it is cyan actually, that is all over de-sensed ICS roms?? I see it on all of the status bar icons on the particular rom I'm on, but have seen it to some degree on other roms, also on my blacket out gapps. Starts with # then like 7-8 letters or numbers.
Thanks
I just flashed CM9 to a friends moto DX2 and it just booted up for the first time into it, realizing the full name of that rom....the color has to be some form of a cyan color.
mike1984jr said:
I'm just wondering if anyone can tell me the color code of the bleuish/teal, think it is cyan actually, that is all over de-sensed ICS roms?? I see it on all of the status bar icons on the particular rom I'm on, but have seen it to some degree on other roms, also on my blacket out gapps. Starts with # then like 7-8 letters or numbers.
Thanks
Click to expand...
Click to collapse
I believe this is the blue you're looking for. It is the Hex code #33B5E5
Google is my friend. :good:
topgun1953 said:
I believe this is the blue you're looking for. It is the Hex code #33B5E5
Google is my friend. :good:
Click to expand...
Click to collapse
That is correct.
Sometimes you have to put ff in front of it for alpha, so ff33B5E5.
But the hexcode itself is just 33B5E5.
Sent from my viperRez
Thanks!!
Appreciate it guys!!
And yeah, probably should have hit up google, but was on my way to class and needed to switch some stuff back on a phone for a chick who has no right to be messing with setting other than sound profile!! And I trust the people on here more than google ha

[ICS]Lightest DefaultThemes(304KB only) for 0.587

Intended for people interested in custom wallpapers and developers preferring speedy approach to settings,or any other app related with it​
There is no degradation in quality....as its single-colored....settings and phonebook work like breeze just like in jelly bean
Credits:Snndev for Xthemer(Nice Work for his third edition):good:
Download Here:
View attachment DefaultThemes.apk
...
This is Excellent
This is excellent and very less space consuming...is it possible to have black background button instead of green? That may even look excellent.
SeneoV said:
This is excellent and very less space consuming...is it possible to have black background button instead of green? That may even look excellent.
Click to expand...
Click to collapse
thanks... and for background button...that will risk mobile framework apk and even go bootloop if not matched with other apks color styles....and even if we do on every single apk it will be hefty task......
epicsilence said:
thanks... and for background button...that will risk mobile framework apk and even go bootloop if not matched with other apks color styles....and even if we do on every single apk it will be hefty task......
Click to expand...
Click to collapse
My bad, I really sorry for messing up my question. My original request I intenteded was to have a black background rather than green. Your theme is blue foregound and green background.Request is only on theme not on button. Sorry for that.
So it would good if we have a themse with combination something like White Foreground - Black Background, Black Foreground -White Background, other two combinations are like both white and both black.
Sorry for giving you big request, but that themse would be something I haven't seen anywhere
-SeneoV
Ok i will come up with something like that combinations....thanks for idea
thanks...I will look forward to have your new theme...
SeneoV

Notification led

Is there any way to configure the color and duration of notification led? i try using light manager pro and light flow... but nothing happen i mean the test inside these apps works but when i receive some real notification are the one from stock. Green led and 3 seconds delay :crying:
im on MM
Afaik nope.
I use light flow and it works really good.
Skickat från min PLK-L01 via Tapatalk
seems to work on Lollipop
I use different colors settings from apps like whatsapp, aquamail,... and it works really good. I have no problem with different timing and different colors. I observed sometimes that it changes color if I have notifications from different apps.
Sent from PLK-TL01H
mjoha said:
I use light flow and it works really good.
Skickat från min PLK-L01 via Tapatalk
Click to expand...
Click to collapse
Also i have light flow...and it manages the notification well...but the colors are wrong...for example orange it's red, or gold it's also red...it seems that purple or pink don't work at all...can you confirm? Or have you some settings that probably i'm missing?
SedyBenoitPeace said:
Also i have light flow...and it manages the notification well...but the colors are wrong...for example orange it's red, or gold it's also red...it seems that purple or pink don't work at all...can you confirm? Or have you some settings that probably i'm missing?
Click to expand...
Click to collapse
Yes that is same for me, but I only use white, blue, red, green and that color is working correct.
When I should use yellow it's be red, so I chose a light blue instead of yellow.
Maybe honor 7 doesn't support all color.
Skickat från min PLK-L01 via Tapatalk
mjoha said:
Yes that is same for me, but I only use white, blue, red, green and that color is working correct.
When I should use yellow it's be red, so I chose a light blue instead of yellow.
Maybe honor 7 doesn't support all color.
Skickat från min PLK-L01 via Tapatalk
Click to expand...
Click to collapse
Thanks for the quick answer mate.. The honor has an rgb led then it should handle all colors.. Maybe the problem it's lightflow.. I'm curious to know if someone who rooted the phone has installed light flow and how it works
Inviato dal mio PLK-L01 utilizzando Tapatalk
I rooted my phone and tried the "root mode" in lightflow unfortunately nothing changes...
How to add notifications for facebook? twitter etc... I tried Light manager and it doesn't seem to work....
I have been testing which colours are supported by the Honor 7 with LED Tester and so far I managed to get these working:
- Yellow
- Orange (visible when charging but not reproduce-able with LED Tester)
- Green
- Baby Blue (Cyan)
- Dark Blue
- Pink (Magenta)
- Purple
- Red
- White
In Bluemail you can set a different LED colour for each account and green/red/cyan are working fine but for some reason all the yellows I pick turn out red or green. I've been testing with hex codes and it seems some hex codes get a different colour for some reason.
I wish we had an official list of what colours (hex codes) are supported by the LED. What would be even better if EMUI would get its own built-in LED manager with an option to set the blinking speed. I agree that 3 seconds is too long, especially since the LED is so deep in the grill and hard to spot.
Has anyone cracked this problem yet?
I came across one, a root app called led manager, as I recall it worked
HonorCasper said:
I came across one, a root app called led manager, as I recall it worked
Click to expand...
Click to collapse
Thanks a lot and now about how to change default white color of the background in apps, like SMS and all. It is a huge strain for eyes.
Any ideas?
muradulislam said:
Thanks a lot and now about how to change default white color of the background in apps, like SMS and all. It is a huge strain for eyes.
Any ideas?
Click to expand...
Click to collapse
Hmm.. sounds a lot like a theming problem bro
HonorCasper said:
Hmm.. sounds a lot like a theming problem bro
Click to expand...
Click to collapse
I checked about theming and how to do it but again laziness, was wondering if there was a solution already available without me doing anything...
unfortunateli it is not easy to change the BG color.
As i know, sometimes it is possible to use dark themes to do that for you. But this only work if somebody have insert a color description for your app into this theme file!
Try this one -> http://forum.xda-developers.com/huawei-p8/themes/theme-black-pyramid-emui-4-0-4-1-t3410407 to see how it work.
But in most cases, something other will get a wrong color.
You only can change colors using a special xml file in your app or in theme file (.hwt for Honor themes)
Please back to topic! Create a own tread for it if necessary!
muradulislam said:
I checked about theming and how to do it but again laziness, was wondering if there was a solution already available without me doing anything...
Click to expand...
Click to collapse
I actually just remembered, that in screen options, u can change the colour warmth/cold and if u change it to warm u will get a more yellowish BG, don't know if it's enough for u but give it a try
---------- Post added at 09:01 AM ---------- Previous post was at 08:59 AM ----------
non-toxic said:
unfortunateli it is not easy to change the BG color.
As i know, sometimes it is possible to use dark themes to do that for you. But this only work if somebody have insert a color description for your app into this theme file!
Try this one -> http://forum.xda-developers.com/huawei-p8/themes/theme-black-pyramid-emui-4-0-4-1-t3410407 to see how it work.
But in most cases, something other will get a wrong color.
You only can change colors using a special xml file in your app or in theme file (.hwt for Honor themes)
Please back to topic! Create a own tread for it if necessary!
Click to expand...
Click to collapse
Sorry for keeping going but had just this one last thing to say, will stop now :angel:

Categories

Resources