5,815,061 Members 37,166 Now Online
XDA Developers Android and Mobile Development Forum

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

Tip us?
 
metalhead8816
Old
(Last edited by metalhead8816; 30th March 2010 at 05:48 PM.) Reason: Updated to CM-5.0.5
#1  
metalhead8816's Avatar
Senior Member - OP
Thanks Meter 3
Posts: 116
Join Date: Jan 2010
Default [MOD] Trackball Notifications in Succession [v 0.5] (CM-5.0.5.3)

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)
Device: Samsung Galaxy S4
ROM: KitKang

Twitter: metalhead8816
Github: metalhead8816

Like my work? Buy me a beer!!
 
Wysie
Old
#2  
Senior Member
Thanks Meter 6
Posts: 1,119
Join Date: Jul 2009
Glad you made it! Get cyanogen to put it into his mod .
 
GodDriven
Old
#3  
Account currently disabled
Thanks Meter 0
Posts: 450
Join Date: Jan 2010
Location: New Jersey
Quote:
Originally Posted by Wysie View Post
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..
 
mattyboy247
Old
#4  
Member
Thanks Meter 0
Posts: 81
Join Date: Dec 2009
Location: Bellbrook OH
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.
Rooted Black G1 (Retired)
Rooted Nexus One
Rooted Plum MyTouch4G (Wife's phone)
Rooted G2 (my phone)
Rooted Xoom

Thanks to all the devs who have allowed me to use their product!
 
amadorsg1
Old
#5  
Junior Member
Thanks Meter 0
Posts: 29
Join Date: Jun 2009
Location: south central LOS ANGELES
Default question

so i pushed it to the system and i see nothing and how can i change it from 0 to 2000 ?
 
MontAlbert
Old
#6  
Senior Member
Thanks Meter 155
Posts: 2,394
Join Date: Jan 2007
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
T-mobile G1- Sold
HTC Magic 32A- Sold
Nexus One- Sold
T-mobile HD2- Sold
HTC Inspire 4G- Backup phone
HTC Sensation- Sold due to HTC giving dev's the middle finger and dodgy build quality
Samsung Galaxy Nexus Sold due to crappy camera
LG Nexus 4 Given to the Missus
LG Nexus 5 Backup phone

OnePlus One Gotta love it- if only everyone could get one
follow me on Twitter
 
AC!D
Old
#7  
AC!D's Avatar
Member
Thanks Meter 0
Posts: 60
Join Date: Feb 2006
Location: Erlangen
cool work, but can you post a version with white text?
 
chronzz
Old
#8  
chronzz's Avatar
Senior Member
Thanks Meter 0
Posts: 255
Join Date: Dec 2009
Location: Toronto
works 'thanks'
Device Nexus One 3G/UMTS bands (850/1900/2100 MHz)
[Recovery] RA-nexus-1.7.0 Cyan
[ROM] CyanogenMod-5.0.6-Test1
[MOD] HTC_IME Keyboard
[MORPH] Android Guy & TP Home
[MOD] Desire Camera
[MOD] MMS

Device Nexus One 3G/UMTS bands (900/AWS/2100 MHz) - Sold $460.25 on eBay
 
MontAlbert
Old
(Last edited by MontAlbert; 1st March 2010 at 08:28 AM.)
#9  
Senior Member
Thanks Meter 155
Posts: 2,394
Join Date: Jan 2007
Quote:
Originally Posted by AC!D View Post
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)
T-mobile G1- Sold
HTC Magic 32A- Sold
Nexus One- Sold
T-mobile HD2- Sold
HTC Inspire 4G- Backup phone
HTC Sensation- Sold due to HTC giving dev's the middle finger and dodgy build quality
Samsung Galaxy Nexus Sold due to crappy camera
LG Nexus 4 Given to the Missus
LG Nexus 5 Backup phone

OnePlus One Gotta love it- if only everyone could get one
follow me on Twitter
 
PiCkLeS
Old
#10  
PiCkLeS's Avatar
Senior Member
Thanks Meter 7
Posts: 144
Join Date: Mar 2006
Location: Kristianstad (Stockholm)
Can anyone post screens?

//P
_____________________________________________

* Phone: Google Nexus One / CM9
* Tablet: Google Nexus 7 / MCR

_____________________________________________
DO NOT CLICK THE THANKS-BUTTON!

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Change the Style of Your Notifications with HeadsUp

Head Up notifications is one of these upcoming features that Android developers hid deep … more

Google Play Store to Show Price Ranges for In-App Purchases

Google recently announced a change to Google Play Store policy that requires … more

XDA Xposed Tuesday: How to Shut Up Your Phone – XDA Developer TV

So many different applications want to send us notifications that … more

Add Some Power to First Generation Snapdragon CPUs

Some older devices still remain very popular. Phones like theHTC Desire, Sony Ericsson … more