yashsingh1/xdaforums huggingface dataset:
[Nexus One Android Development] Chosen_on184:
Concur that it does work with crimsons amended service jar
[Nexus One Android Development] rori~:
Any chance to get this for 508 final ??...(even if your last works, but to let TA Pro stay patchable) :)
[Nexus One Android Development] crimsondr:
TAP only modifies framework.jar not services.jar.
[Nexus One Android Development] rori~:
..Thanxs!:)
[Nexus One Android Development] crimsondr:
Here is a patched services.jar to enable notifications in succession on CM-5.0.8. This is built against the current source and not the specific CM-5.0.8 version. This patched version disables blending and will always show notifications in succession.
[Nexus One Android Development] rori~:
Thank you very much :cool:
[Nexus One Android Development] crimsondr:
Succession patch for cm6 alpha 1 here.
[Nexus One Android Development] rori~:
Crazy guy :) :cool:

.................

But what is success....for, when TA Alert doesnt work?
[Nexus One Android Development] crimsondr:
I use handcent and gmail notifier, they can colour notifications themselves :)

Just I cannot change my missed calls and calendar notifications... But they're still there.
[Nexus One Android Development] rori~:
aaah, ok, thanx for the info!
[Nexus One Android Development] drziddo:
I can't get to do it.

I'm not an expert with ADB stuff... :confused:

Can you please post a how to, step by step.

Thanx in advance.

BTW I'm using AsimRom v21. Is this compatible?:confused:
[Nexus One Android Development] PeRRiiN:
froyo source code dropped a few days ago, is this possible now in froyo?

If so, has anyone been succesful at making this work? please share your secret =]

I'm using FRF85B By the way, running a custom ROM.
[Nexus One Android Development] rori~:
http://xdaforums.com/showpost.php?p=7031771&postcount=487 :)
[Nexus One Android Development] PeRRiiN:
Thank you!!

Just on last question and i'm out of your hair, do I have to rename it to 'services.jar' and ADB push it to /system/framework/services.jar?

I appreciate your help.
[Nexus One Android Development] crimsondr:
Succession patch compiled against AOSP here.
[Nexus One Android Development] PeRRiiN:
I tried both this one and the one a few posts back and they both turn my text on my notification bar to black. (I'm using a ROM with a black bar so I need the text in the notification bar to be white) =(
[Nexus One Android Development] erikiksaz:
Just like the guy above me, it works, but with the exception of the black text on a black notification bar.

I'm on modaco's r20 froyo build, if it matters.

Thanks for your hard work!
[Nexus One Android Development] crimsondr:
I haven't done any theming. If someone could tell me what modifications need to be made for the black notification bar I could incorporate it.
[Nexus One Android Development] erikiksaz:
I found this thread:

http://xdaforums.com/showthread.php?t=630267
[Nexus One Android Development] rashid11:
Can we get one with white text ?

this way one can choose between white/black text color, which should cover most of us :)
[Nexus One Android Development] rori~:
services.jar CM6a white text
[Nexus One Android Development] rashid11:
Will this work in other Froyo-based remix'd ROMs (Rod, Leo) in this forum or it

requires CM6 ?
[Nexus One Android Development] PeRRiiN:
First of all, Thank you for your work!

I tried this and its a LOT of progress but its not quite ready for use, here are the problems that need to be fixed:

1) When there are no notifications on the status bar it usually says "no notifications" when you flick it down but after I pushed the services.jar, it says "Ongoing" even if there's nothing there.

2) Now, when there REALLY is an ongoing notification, it says "###n##" instead of "Ongoing".

3) The notification background was kinda see-through when you flick it down (which I actually liked that change, I think it makes it look better)

4) And lastly, when I went to my Trackball Alerts app to test the trackball color, this made it not work anymore. (it works when I get a real notification, but not when I click "test alert" on the app.
[Nexus One Android Development] eug89:
Hi, since I'm compiling a rom for myself from aosp with some other changes to NotificationManagerService.java do you have a patch I can apply to it in order to get the succession?

thanks
[Nexus One Android Development] rori~:
I dont have issues 1, 2, 3 sorry.

And the app "Trackball Alert" does not work on CM 6 yet.
[Nexus One Android Development] PeRRiiN:
ah i see why.

I know the it says on the file 'CM6a' meaning it works on cyanogen 6 alpha, but I assumed that if it works for CM6 that it would also work for another custom ROM with froyo but I guess that's not the case.
[Nexus One Android Development] rori~:
Yes , CM 6a only.
[Nexus One Android Development] PeRRiiN:
No offense but then what's the purpose of this if Trackball Alert is not even compatible with CM6 yet?
[Nexus One Android Development] rori~:
Lol * I had the same question some posts back... :-)

But: I posted services.jar with white text (no succession code included) for CM 6a.

It was for crimsondr... to make a white success. one :-)
[Nexus One Android Development] MontAlbert:
can someone link us to where we can learn to patch/change services.jar ourselves to get succession working?

I prefer to do it myself (so i dont have to hassle others on how to do it), especially of the final CM version as a lot of the Wysie mods are contained in services.jar and they will be incorporated in next CM alpha/beta from what i hear.
[Nexus One Android Development] rori~:
I think lilHermit wants to make that an option in TA Pro :-) so probably no need to do that ...

Sent from my Nexus One
[Nexus One Android Development] crimsondr:
There are quite a few apps that flash the trackball on their own so it is useful.
[Nexus One Android Development] crimsondr:
The OP has a link to his github with the original source.

I only made the cm6 version because I am preparing for when cm6 is finally released. Now that I have the code merged in, when cm6 is released all I have to do is sync and compile.
[Nexus One Android Development] MontAlbert:
thanks

so it seems i now have to learn github :D

i was hoping for a simple smali edit using baksmali of classes.dex from services.jar :D
[Nexus One Android Development] crimsondr:
You wanted the code in smali!?! The succession code is not just a few lines. I think it would be difficult to incorporate via smali. Java is much easier. Github is just a website that shows you source code.Nothing to learn.
[Nexus One Android Development] eug89:
It's a few days I'm trying to port the succession to aosp froyo looking at metalhead's github but I'm not able of doing it since I'm not so good in java and doing it through smali would be crazy:eek: That's why yesterday I've asked you for some help, I just need to look at your NotificationManagerService.java to see what I need to do. I don't want to steel others work, just to be clear.
[Nexus One Android Development] crimsondr:
Sorry, I would've posted my code to you sooner but every time I responded to you I was not at a computer.

Anyway, here it is.
[Nexus One Android Development] eug89:
Thanks!! Now I'll look to find out what I was doing wrong:)
[Nexus One Android Development] Pr1nce5st:
Is it possible to get this to work with modaco r21??? It would be greatly appreciated!!!
[Nexus One Android Development] crimsondr:
There is an aosp build in the thread that will work with modaco.
[Nexus One Android Development] crimsondr:
Here is a version with both the succession mod and battery percentage in the notification bar.

Built against AOSP and tested on MCR r21.
[Nexus One Android Development] Pr1nce5st:
Thank you!! :)

Edit: I was so happy I didn't read your whole post... is it possible to get it without battery percentage??? Not to sound ungrateful, I just prefer not to see the percentage all the time...
[Nexus One Android Development] Pr1nce5st:
Caused my phone to reboot every time i tried to make a call plus it had random reboots...
[Nexus One Android Development] crimsondr:
Yes I noticed this now. :(

Will have to debug...
[Nexus One Android Development] crimsondr:
This is now fixed. Check my previous post for updated link.
[Nexus One Android Development] Pr1nce5st:
Perfect!!!! Thanks so much!
[Nexus One Android Development] PeRRiiN:
hi crimsondr,

I tried this on my phone and i'm pretty sure it works but i was wondering if you could make this for people with a black status bar too? because when i tried this, it turned my clock and notification text to black.

I would appreciate this very much :D
[Nexus One Android Development] what25:
I would also like to remove the battery, if I can.

On a side note, how do I remove this if I want to later? Sorry to ask, but I'm kinda new to this. MCR r21 is great though. Love how the trackball can light with the screen on.
[Nexus One Android Development] aiewolf:
Hi

Thanks for a great mod.

Just one thing, i am running a mcr 21 and had it themed with a transparent notification drawer, after i applied your mod i lost the tranparent drawer.

I was just wondering if it would be possible to have the mod, but with out it changing the notification drawer colour.

Thanks
[Nexus One Android Development] Pr1nce5st:
Used updated link and still unable to make phone calls without a reboot...
[Nexus One Android Development] crimsondr:
Are the permissions on the file correct? 644.
[Nexus One Android Development] J.L.C.:
Any chance there's a white text version kicking around? This is working great on my phone, but I have a black notification bar so my clock is now invisible :p

________________________

N1 w/ XDA App
[Nexus One Android Development] fitsnugly:
I threw together this white text version, this is untested tho as I'm running CM6 nightly builds now.

Rename to services.jar & push, as usual...
[Nexus One Android Development] Pr1nce5st:
Where do I find this???
[Nexus One Android Development] J.L.C.:
Works perfect, thanks!

I really need to learn how to modify these myself. Any tips on where to start of what applications I need?
[Nexus One Android Development] fitsnugly:
Java, baksmali & smali (search google), if on windows: notepad++ & 7-zip (both are freeware)

and these two threads:

http://xdaforums.com/showthread.php?t=549309

http://xdaforums.com/showthread.php?t=630267

some things have changed in froyo so those threads aren't 100% but they can point you in the right direction.
[Nexus One Android Development] crimsondr:
These smali changes are horrible. Maybe someone should just patch it in the actual java source :D
[Nexus One Android Development] J.L.C.:
Awesome!

I run Ubuntu 10.04 so those will get me started - thanks for the help (and the white text)
[Nexus One Android Development] Pr1nce5st:
Just tried the mcr21 with the succession and battery % update and have no problems calling out... so its just the previous (updated) no % file that causes the phone to reboot upon placing a phone call...
[Nexus One Android Development] fitsnugly:
I fail. :D
[Nexus One Android Development] crimsondr:
Your changes are great. I'm sure people appreciate your efforts. I've tried to do it a couple times but gave up pretty quickly :P
[Nexus One Android Development] fitsnugly:
tis the easiest way i know how to theme ;)
[Nexus One Android Development] MasterXP:
Thaaaaanks!!!!

I tested this in RodriguezStyle Froyo r21 ROM and worked perfect, both the trackball and battery percentage.

Thanks!!:D
[Nexus One Android Development] paesan:
I pushed this to MoDaCo r21, how do I get the battery % to show up and how do I configure trackball succession.
[Nexus One Android Development] crimsondr:
If you pushed the version from this post then it should all be automatic, no configure necessary. Reboot required.
[Nexus One Android Development] paesan:
Trackball succession works but the battery % does not show up. I rebooted a few times, maybe I will try and push it again. Thanks.

Update.

The battery % does work after all. The problem I had was the usb cable was connected. As soon as I unplugged it the 100 came on. Great work and thanks again!!!
[Nexus One Android Development] MasterXP:
Yes it works, you have to download de crimsondr version.
[Nexus One Android Development] SubyWill:
so will there be a working version of this when the official CM6 comes out? this is the most impotant mod to me! lol :)
[Nexus One Android Development] crimsondr:
Definitely! Important to me too!

I noticed that the succession code was previously merged into the cm code base but then removed. I wonder why?
[Nexus One Android Development] fitsnugly:
Cyan thought it drains the battery too much.
[Nexus One Android Development] crimsondr:
Well they could've included an option to turn it off like everything else :(
[Nexus One Android Development] fitsnugly:
What I said back at 5.0.6 :-)
[Nexus One Android Development] crimsondr:
Looks like not many people use this mod so I guess it doesn't matter to most that it's not included in CM.
[Nexus One Android Development] Pr1nce5st:
I don't know why anyone wouldn't use it... it is one of the best mods I use...
[Nexus One Android Development] Treatcon:
+1000, same here.
[Nexus One Android Development] escabar:
Lime Green Theme???

Works great in Rodriguezstyle Froyo r21. Is there a chance of posting a Lime Green version (black percentage in battery icon + lime green digital clock) to match RodriguezStyle's theme?
[Nexus One Android Development] pendo:
Man, I've been working on this for hours....On the bright side, I'm learning a little bit more about the system.

I had the mod working on r21 earlier, but I've since playing with other roms. eVil, Leo, Kang, Enomther's and now CM6 the newest RC1 that they just posted.

I can't get any of the files to work. The last 2 I tried with CM6 is the one that was posted for CM6 Alpha, and then the AOAP build. I first went in with Root Explorer and viewed the original file's permissions. Then I ./adb push the renamed file, and reset it's permissions to match. Finally remount back to R/O.

I can never get past the boot animation. I know I've read it takes longer, but I'd think after 8-9 minutes I waited long enough.

Ideas?
[Nexus One Android Development] fitsnugly:
The services.jar changed a ton between a1 & rc1, you'll have to wait from crimson to recompile specifically for rc1
[Nexus One Android Development] pendo:
Still, I kinda thought the ones compiled from aosp would've worked....which by the way, don't work on the Enomther build.

I did get it working (sort of, there's an occasional wrong color) working on kang-o-rama .9

So far out of the roms I've tried, I'm really liking the Enom 2.9.2 Hopefully someone figures out a way to get it working there..
[Nexus One Android Development] rossy_k:
I also agree that this is one of the most important mods that I use! I would love notifications in succession to be updated to be compatible with CM6!
[Nexus One Android Development] fitsnugly:
Custom ROMs have custom mods to the services.jar, thus the reason AOSP won't work. Just be patient for crimson...
[Nexus One Android Development] crimsondr:
Succession patch compiled against cm6 here. Tested against latest nightly.
[Nexus One Android Development] fitsnugly:
See. crimson is a gangster.
[Nexus One Android Development] redmongoose:
Thanks so much :)
[Nexus One Android Development] rori~:
Thanx :cool::cool::cool::cool:
[Nexus One Android Development] rashid11:
Can some1 answer these:

- with CM6, what would one need to allow color notifications to happen ? Some apps allow for them to be set natively, but say Gmail, missed calls, etc etc, have no native support for that

- "Trackball Alert" seems to allow color notifications - but will it co-exist peacefully with "notifications in succession" ? What about Trackball Alert Pro ?

I've been using NIS with 2.1 and loved it. Ever since switching to Rodrigues' Froyo, had to rely on Trackball Alert Pro and dont really like how it works ... seems to be less robust in combining notifications from different apps
[Nexus One Android Development] DreamScar:
How does the cm6 version work? I renamed it from txt to zip, but only has a classes.dex and a manifest inside with no services.jar
[Nexus One Android Development] rashid11:
From earlies msg in this very thread :)

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
[Nexus One Android Development] crimsondr:
When CM6 becomes more stable, TBA will support it.

You can use TBA and the succession mod together. They modify different files.
[Nexus One Android Development] DreamScar:
Aha, that was my bad. I renamed it from .txt to .zip. I feel a bit foolish now. :o
[Nexus One Android Development] pendo:
crimson,

awesome work sir....any chance you could get this going for the latest Enom rom?
[Nexus One Android Development] crimsondr:
Since the AOSP version doesn't work with the Enom rom, he changed something in services.jar. Without source I can't make it work.

Sorry.
[Nexus One Android Development] crimsondr:
Here is yet another services.jar modified for succession and tested against the latest nightly (cm_passion-07142010-094243.zip).
[Nexus One Android Development] rori~:
seems like link broke...
[Nexus One Android Development] crimsondr:
Weird. Copied and pasted the link with filename a couple times and it's broke.

Tried the link without filename and it should work now.

Previous post fixed.
[Nexus One Android Development] rori~:
Thanx :):)
[Nexus One Android Development] firestruck:
Great Work!Trackball dont work for now(i think monday the new release will be out v1.2 for cm6), but now with some app that use notifications color, e takes the deal!Do you know some app that use color notification for missing calls?Thanks
[Nexus One Android Development] crimsondr:
Noticed after awhile the trackball stops blinking if the phone is asleep. Starts again if you wake the phone. Wonder how it can be fixed...
[Nexus One Android Development] pendo:
OK, admittedly I'm a complete noob with all of this, but hey...I figure that's what nandroid's are for right?

So I've been reading a lot (no computer background at all) and I finally figured out how to get to the classes.dex file in the services.jar I then ran FileMerge (mac) to see what the discrepancies were between the aosp jar file here in the thread vs the one I pulled from my rom (enomther 2.9.2)

Long story short, I'm giving up for a while....I was only able to boot with one of my frankenstein .jar's and it didn't sequence. With more aggressive file swapping I got stuck in a boot loop.

Oh well...
[Nexus One Android Development] metalhead8816:
As for the battery issues, mine seems to hold charge just as long as normal which is around 24 hours if not more (depending on usage)

Can you guys please post which version you are running? It would be quite helpful. Logs would be great too.
[Nexus One Android Development] pikipirs:
Was running 0.2, just reverted back to stock .jar and rebooted so no logs anymore. Sorry.
[Nexus One Android Development] Mi|enko:
I have the problem with the notification light not coming on when the screen is off. I'm running Cy's 5.0.4.1, default kernel, and v0.3 of your services.jar.

My Log's attached.
[Nexus One Android Development] rotohammer:
I think I was running v0.2, so I just installed v0.3 and Ill test again.

FYI, If I ran adb logcat on my computer, it would flash constantly as expected, even with the display off.
[Nexus One Android Development] Mi|enko:
I pulled my log using log collector on the device itself, so it didn't stay on while the log was being generated.
[Nexus One Android Development] redmongoose:
Thanks for this, It is working very well for me.
[Nexus One Android Development] tr2ride:
./adb logcat

/sbin/sh: exec: line 1: logcat: not found

Does this mean I didn't get it installed correctly?

Thanks
[Nexus One Android Development] rori~:
Thanx for this :)

(and I learned how to "adb push....." - took me 2 hours :p)
[Nexus One Android Development] cyanogen:
If you're interested in sharing the source, this is something I'd love to have in CM5.
[Nexus One Android Development] metalhead8816:
I would love to see this go into CM5. I want to work out some more bugs before releasing it to such a large audience though. I'll definitely let you know when I feel it is ready.
[Nexus One Android Development] TapaH:
Now with v.0.3 it works a lot better. Now I have handcent set to to blink red with standard rate and when I receive 1 sms and 1 email it is blinking something about 3-4 times red and then a few times red/green. Looks like there is a conflict between different rates.

P.S. Using CM 5.0.4.1
[Nexus One Android Development] Mi|enko:
If you release to just Cy and Chains, they might be able to help (not that you need it). I find it helps to just have somebody to bounce ideas off of.
[Nexus One Android Development] Wysie:
I suggest you add the following to your instructions:

How to install:

1) Nandroid

2) Rename download from servicesv04.zip to services.jar

3) Connect phone to computer.

4) adb remount

5) adb push services.jar /system/framework

Keep up the good work! :)
[Nexus One Android Development] awdlexusis:
sweet thanks, kept getting errors before. this way worked perfect!!!:D
[Nexus One Android Development] mgear356:
I am using black taskbar theme and I cant see clock cause it resets to black colour.

How about 2 versions, one with white text and one with black?
[Nexus One Android Development] PiCkLeS:
Works great - wonderful little extra tidbit to an already great phone and ROM.

Thnx!

//P
[Nexus One Android Development] MontAlbert:
attached is a white version- i haven't used this particular version but mine is slightly different but edited the same way. Backup your old services.jar and then apply this as you would the one in the first post.
[Nexus One Android Development] Mighty07:
Hi,

I went ahead and converted this to the normal 2.1 version, thing is I have the services,.jar built BUT I also need the .odex as well.

I believe the cyano version doesn't use them so only the .jar is needed.

Any idea how to build the .odex file from the .jar file?

Thanks.
[Nexus One Android Development] mgear356:
Lol bro where's the attachment?
[Nexus One Android Development] MontAlbert:
ooops.. forgot- its there now...
[Nexus One Android Development] crimsondr:
I would go about it with a different approach. First, get a standard services.jar with no modifications. Compare that with the succession patched services.jar and create a patch you can apply for the differences. Then apply that to the enom services.jar.

Or maybe you could try just replacing the NotificationManagerService completely since that's where the succession changes are.
[Nexus One Android Development] J.L.C.:
Is there source code available for the services.jar? Or do you guys just work with the jar files themselves?

________________________

N1 w/ XDA App
[Nexus One Android Development] pendo:
I thought that's what I mostly did. I kinda figured that's where the changes were at. There's several differences between the smali file in both NotificationManagerService, and there's one entirely new smali there as well.

I'll take another look at it again later tonight.....right now I've got tons of Physics homework to do lol...
[Nexus One Android Development] pendo:
Success!! I don't know what I was doing wrong before...I thought that I tried this. Possible that it's different in the 2.10.1 rom vs the 2.9.2 that I was trying before but I doubt it.

Anyway, it's possible that there's something wrong with it as I've just tested email and sms notifications via Gmail Notifier an Handcent, but here's the file. (obviously rename it services.jar before you push)

<removed>

Thanks crimsondr!!
[Nexus One Android Development] J.L.C.:
Anyone have a working version for CM6?

________________________

N1 w/ XDA App
[Nexus One Android Development] rori~:
..search some pages back in this thread, there should be one.
[Nexus One Android Development] crimsondr:
Here is a services.jar with notifications in succession. Compiled against latest CM6 source early this morning.
[Nexus One Android Development] rori~:
Thank you :cool: