• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

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

Search This thread

ChainsDD

Retired Recognized Developer
Feb 11, 2009
201
354
Suffolk, UK
noshufou.com
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.
 

Attachments

  • lights-mahimahi-signed.zip
    5.7 KB · Views: 2,176
Last edited:

enomther

Senior Member
Jun 12, 2009
3,437
146
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

interesting ... was this a binary edit ... or did you build this from scratch/source?

Nice work.

~enom~
 

mikebeatrice

Senior Member
Jan 13, 2010
653
136
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.
 

godsfilth

Senior Member
Mar 31, 2009
140
13
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
 
Last edited:

ChainsDD

Retired Recognized Developer
Feb 11, 2009
201
354
Suffolk, UK
noshufou.com
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.
I didn't try it, but looking at that, it should work just fine. putting it in the OP. Thanks!
 

rmrector

Member
Apr 26, 2008
27
0
Denver, CO
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...
 

ChainsDD

Retired Recognized Developer
Feb 11, 2009
201
354
Suffolk, UK
noshufou.com
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:(

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?

How do you mess with the different colors or can you not do that?

Awesome!!! Thank you!!!!

How do we change the values for different situations, (calls, sms, email etc...)???
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