Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
ChainsDD
Old
(Last edited by ChainsDD; 17th March 2010 at 02:37 AM.) Reason: Upload of official lib
#1  
ChainsDD's Avatar
Recognized Developer - OP
Thanks Meter 342
Posts: 201
Join Date: Feb 2009
Location: Suffolk, UK

 
DONATE TO ME
Lightbulb [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.
Attached Files
File Type: zip lights-mahimahi-signed.zip - [Click for QR Code] (5.7 KB, 2147 views)
Nexus One
CM6

Superuser 2.3.6.1

github.com/ChainsDD

Twitter: ChainsDD

Like what I've done? Buy me a Sunkist!!
 
enomther
Old
#2  
enomther's Avatar
Senior Member
Thanks Meter 149
Posts: 3,432
Join Date: Jun 2009
Quote:
Originally Posted by ChainsDD View Post
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~
-----------------------------------------------
TheOfficial G2 v2.14.2
TheOfficial Nexus1 v2.14.4
TheOfficial D/S v2.14.2


(follow me on twitter if you like)

If you like or use my work, you can always buy me a shot.

 
mikebeatrice
Old
#3  
Senior Member
Thanks Meter 36
Posts: 378
Join Date: Jan 2010
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.
 
ChainsDD
Old
#4  
ChainsDD's Avatar
Recognized Developer - OP
Thanks Meter 342
Posts: 201
Join Date: Feb 2009
Location: Suffolk, UK

 
DONATE TO ME
Quote:
Originally Posted by enomther View Post
interesting ... was this a binary edit ... or did you build this from scratch/source?

Nice work.

~enom~
Sort of built from scratch. I had the lights.msm7k.so source to look at.
Nexus One
CM6

Superuser 2.3.6.1

github.com/ChainsDD

Twitter: ChainsDD

Like what I've done? Buy me a Sunkist!!
 
bobtentpeg
Old
#5  
bobtentpeg's Avatar
Senior Member
Thanks Meter 14
Posts: 474
Join Date: Jan 2010
What directory does this go
 
ChainsDD
Old
#6  
ChainsDD's Avatar
Recognized Developer - OP
Thanks Meter 342
Posts: 201
Join Date: Feb 2009
Location: Suffolk, UK

 
DONATE TO ME
Quote:
Originally Posted by bobtentpeg View Post
What directory does this go
/system/lib/hw
Nexus One
CM6

Superuser 2.3.6.1

github.com/ChainsDD

Twitter: ChainsDD

Like what I've done? Buy me a Sunkist!!
 
enomther
Old
#7  
enomther's Avatar
Senior Member
Thanks Meter 149
Posts: 3,432
Join Date: Jun 2009
Quote:
Originally Posted by ChainsDD View Post
Sort of built from scratch. I had the lights.msm7k.so source to look at.
In that case ... very well done sir ... nice indeed!

EDIT: Ah, I just saw it up on github too ... cool.

~enom~
-----------------------------------------------
TheOfficial G2 v2.14.2
TheOfficial Nexus1 v2.14.4
TheOfficial D/S v2.14.2


(follow me on twitter if you like)

If you like or use my work, you can always buy me a shot.

 
godsfilth
Old
(Last edited by godsfilth; 26th February 2010 at 02:58 AM.) Reason: removed zip
#8  
Senior Member
Thanks Meter 4
Posts: 114
Join Date: Mar 2009
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
 
ChainsDD
Old
#9  
ChainsDD's Avatar
Recognized Developer - OP
Thanks Meter 342
Posts: 201
Join Date: Feb 2009
Location: Suffolk, UK

 
DONATE TO ME
Quote:
Originally Posted by godsfilth View Post
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!
Nexus One
CM6

Superuser 2.3.6.1

github.com/ChainsDD

Twitter: ChainsDD

Like what I've done? Buy me a Sunkist!!
 
godsfilth
Old
#10  
Senior Member
Thanks Meter 4
Posts: 114
Join Date: Mar 2009
Quote:
Originally Posted by ChainsDD View Post
I didn't try it, but looking at that, it should work just fine. putting it in the OP. Thanks!
no problem glad to be of some help. i cant code and i'm poor so gotta give back to the community somehow

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...

XDA PORTAL POSTS

Careers in Android: What Hiring Managers Won’t Tell You – XDA Developer TV

XDA Developer TV Producer Jayce released a video a … more

Coloring Your Logcat World

Getting feedback for your app during development is as simple as adding logging info where necessary and looking … more

Guide Your Sheep to Safety with Finger Shepherd

Just a coupe of days ago, we brought you news about a game calledAgent Sheep. In that … more

Nandroid Manager Receives Major Update

Do you find yourself obsessively jumping from ROM to ROM? And do you hate having to restore a full … more