Sony Updates AOSP Sources to Android 5.0.1

Just a few days ago, Sony did an utterly fantastic job by pushing out numerous device trees for … more

Stop Your Screen From Turning Off with KeepItOn

We all know the feeling of reading a news article orrather longdocument, when our screen … more

The XDA LG QPair Developer Challenge Voting Has Begun!

It seems like it was just yesterday that weannounced that we had paired up with LGto … more

Major Update for the Sony Smartwatch 2 Brings DND and More

With the wearables landscape now dominated by Android Wear and Pebble, its … more

Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[MOD] Trackball Notifications in Succession [v 0.5] (CM-5.0.5.3)

OP metalhead8816

1st March 2010, 07:39 AM   |  #1  
metalhead8816's Avatar
OP Senior Member
Thanks Meter: 3
 
116 posts
Join Date:Joined: Jan 2010
More
I pieced together a way to get notifications to be shown in succession. This is an initial version and it seems pretty stable as I have used it throughout the day.

The way it works is by cycling through the current notifications that in the system and flashing the trackball according to how each notification specifies their behavior.

If you see some odd behavior with Handcent it is expected as the default flashing rate has a light off period of 0, so you can change it to custom with a light off rate of 2000 to match that of GMail notifications. (as I have)

Special thanks to ChainsDD for some help today with general Android knowledge and I hope you all enjoy this. Please leave some comments and I will do my best to fix bugs and make improvements (Computer Science student at UCSD)

Root is required...

** Please read **
This enhancement should work on CM-5.0.5 as I have built the jar against his source. I don't guarantee it will work for the others.

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.

Like any other development project on this forum I will not be held responsible if this breaks your phone in any way. It only updates the services.jar from /system/framework so you should at worst only see boot loops.

If you are having issues:
- Please drop me a log in pastebin.

Changelog:

v0.5:
- Updated to use the new breathing light code. (Sorry for the long wait)

v0.4:
- Fixed to use the eclair branch code instead of donut
- Options for flashing while screen on, at all work now (eclair options)
- Fixed the sleeping issue. Should now work with the screen off.

v0.3:
- Hopefully a fix for the issue of the notifications not staying awake.
- More debugging output so people can get me some logs.

v0.2:
- Fix for multiple notifications of the same color.

v0.1:
- Initial version with succession

Donation:
Please donate if you like my work. It helps keep me motivated and working hard on Android.

Downloads:
- Attached at the bottom.
- servicesv05.zip provided by me.
- others provided by RixKliq (post #225 but attached here)

How to install:
1) Nandroid
2) Rename download from servicesv05.zip to services.jar
3) Connect phone to computer.
4) adb remount
5) adb push services.jar /system/framework
6) adb reboot
Attached Files
File Type: zip servicesv05.zip - [Click for QR Code] (493.7 KB, 1078 views)
File Type: zip servicesv05-white.zip - [Click for QR Code] (501.8 KB, 296 views)
File Type: zip servicesv05-white-noclock.zip - [Click for QR Code] (501.8 KB, 202 views)
Last edited by metalhead8816; 30th March 2010 at 06:48 PM. Reason: Updated to CM-5.0.5
1st March 2010, 07:42 AM   |  #2  
Senior Member
Thanks Meter: 6
 
1,119 posts
Join Date:Joined: Jul 2009
Glad you made it! Get cyanogen to put it into his mod .
1st March 2010, 07:55 AM   |  #3  
Account currently disabled
Flag New Jersey
Thanks Meter: 0
 
450 posts
Join Date:Joined: Jan 2010
More
Quote:
Originally Posted by Wysie

Glad you made it! Get cyanogen to put it into his mod .

Do you think this will rock out with the Desire Rom... I am about to push it over but I just need to understand the differences between this and chain.. I gather no color distribution in notifications.. I have seen that Chain Version did not prosper on this Rom.. I keep forgetting this is from something that comes out in two months.. Lol..

Thanks..
1st March 2010, 08:01 AM   |  #4  
Member
Flag Bellbrook OH
Thanks Meter: 0
 
81 posts
Join Date:Joined: Dec 2009
More
Appears to work pretty well... any chance of speeding up the flashing? So far is working well with 3 notifications. Waiting for twitter to update and see how 3 looks. though I think it will take too long to see more then two as it flashes slowly.
1st March 2010, 08:24 AM   |  #5  
Junior Member
Flag south central LOS ANGELES
Thanks Meter: 0
 
29 posts
Join Date:Joined: Jun 2009
More
question
so i pushed it to the system and i see nothing and how can i change it from 0 to 2000 ?
1st March 2010, 08:52 AM   |  #6  
Senior Member
Thanks Meter: 157
 
2,407 posts
Join Date:Joined: Jan 2007
More
nice work mate- you should speak to lilH3rmit. he has an alpha version of Trackballcolornotify2 that allows different colours to be shown for different apps (stock and non-stock)... his has an altered framework.jar....

if you 2 got together the end result would an all in one app
1st March 2010, 09:01 AM   |  #7  
AC!D's Avatar
Member
Flag Erlangen
Thanks Meter: 0
 
60 posts
Join Date:Joined: Feb 2006
More
cool work, but can you post a version with white text?
1st March 2010, 09:17 AM   |  #8  
chronzz's Avatar
Senior Member
Flag Toronto
Thanks Meter: 0
 
255 posts
Join Date:Joined: Dec 2009
More
Thumbs up
works 'thanks'
1st March 2010, 09:23 AM   |  #9  
Senior Member
Thanks Meter: 157
 
2,407 posts
Join Date:Joined: Jan 2007
More
Quote:
Originally Posted by AC!D

cool work, but can you post a version with white text?

do you want white everything? or just the stuff in the statusbar? i can change colour of clear button and provider as well.

***edit*** here is one with white status bar stuff. just change the .zip to .jar as above- untested BTW but mine worked, and it was only slightly different. shouldnt affect the hacks done here...
Attached Files
File Type: zip whiteservices.zip - [Click for QR Code] (512.6 KB, 67 views)
Last edited by MontAlbert; 1st March 2010 at 09:28 AM.
1st March 2010, 09:36 AM   |  #10  
PiCkLeS's Avatar
Senior Member
Flag Kristianstad (Stockholm)
Thanks Meter: 7
 
144 posts
Join Date:Joined: Mar 2006
More
Can anyone post screens?

//P

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes