yashsingh1/xdaforums huggingface dataset:
[Xposed Framework Modules] XlAfbk:
Stopped working on Marshmallow / CM13:

E Xposed : java.lang.NoSuchMethodError: com.android.systemui.statusbar.NotificationData$Entry#setBigContentView(android.view.View)#exact
E Xposed : at de.robv.android.xposed.XposedHelpers.findMethodExact(XposedHelpers.java:181)
E Xposed : at de.robv.android.xposed.XposedHelpers.findAndHookMethod(XposedHelpers.java:131)
E Xposed : at de.robv.android.xposed.XposedHelpers.findAndHookMethod(XposedHelpers.java:138)
E Xposed : at com.germainz.dynamicalarmicon.XposedMod.hookSystemUI(XposedMod.java:220)
E Xposed : at com.germainz.dynamicalarmicon.XposedMod.handleLoadPackage(XposedMod.java:101)
E Xposed : at de.robv.android.xposed.IXposedHookLoadPackage$Wrapper.handleLoadPackage(IXposedHookLoadPackage.java:20)
E Xposed : at de.robv.android.xposed.callbacks.XC_LoadPackage.call(XC_LoadPackage.java:34)
E Xposed : at de.robv.android.xposed.callbacks.XCallback.callAll(XCallback.java:70)
E Xposed : at de.robv.android.xposed.XposedBridge$1.beforeHookedMethod(XposedBridge.java:173)
E Xposed : at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:655)
E Xposed : at android.app.ActivityThread.handleBindApplication(<Xposed>)
E Xposed : at android.app.ActivityThread.-wrap1(ActivityThread.java)
E Xposed : at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1424)
E Xposed : at android.os.Handler.dispatchMessage(Handler.java:102)
E Xposed : at android.os.Looper.loop(Looper.java:148)
E Xposed : at android.app.ActivityThread.main(ActivityThread.java:5466)
E Xposed : at java.lang.reflect.Method.invoke(Native Method)
E Xposed : at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
E Xposed : at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
E Xposed : at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:114)

Here's the commit that removed that function: https://github.com/android/platform...72048a7#diff-092dadb1a0a7b33f797f847a6ddbc4e1
[Xposed Framework Modules] terrorist96:
[MENTION=4775688]GermainZ[/MENTION] this doesn't work with MM. I was the original user who requested this module and I've loved it since. However, I recently upgraded to the 6p and this module doesn't work anymore. :(

If you have some time, I'd highly appreciate it if you could push an update to support Marshmallow. Thanks!
[Xposed Framework Modules] GermainZ:
Hopefully I'll have some time shortly after Christmas or the new year.
[Xposed Framework Modules] Crsmsg:
Waiting for an update on MM ?
[Xposed Framework Modules] m.omdaa:
Sitting on hot rocks waiting for MM update
[Xposed Framework Modules] sanangel:
+1 :)
[Xposed Framework Modules] ncelover:
It is March ? we are waitting

+1
[Xposed Framework Modules] Frunzdoedel:
The dev ows you and every eta asker nothing, calm down and pray for your wishes.
[Xposed Framework Modules] siealex:
Forget it forever, it was closed more than a year ago.
[Xposed Framework Modules] baaabovka:
Thanks, good start point ,)

Believe it or not, the project is not dead.

Stay tuned for upcoming updates.. :o
[Xposed Framework Modules] baaabovka:
Hello guys.

Just quick preview of the module running on LG G4 with CM13 (6.0.1). Still need some time to "hook" notification icons properly.
[Xposed Framework Modules] nicesoni_ash:
Out of thanks but thank you, waiting patiently.
[Xposed Framework Modules] baaabovka:
Hello guys.

Need testers here. The module is a copy of the existing one with Marshmallow support added.
[Xposed Framework Modules] siealex:
Wow, it works!!!
[Xposed Framework Modules] nicesoni_ash:
Thanks for the marshmallow support mate. Cheers.
[Xposed Framework Modules] siealex:
And here it is on my old tuna maguro dumbphone. Wow...

Both devices are on 6.0.1.
[Xposed Framework Modules] baaabovka:
Thanks for testing!!

Good to hear the module works for you. I will create a separate thread for it where we can debate about AM/PM notification and other requests.
[Xposed Framework Modules] terrorist96:
Will you be uploading it to the repo?
[Xposed Framework Modules] baaabovka:
[MENTION=4729307]terrorist96[/MENTION]: Yes I will, but as a separate module. Doing it this way I will be able to produce new versions very quickly.
[Xposed Framework Modules] gitchrodd:
Really cool to have this back. Missed it very much.
[Xposed Framework Modules] baaabovka:
Guys, the updated version has a separate thread now:

http://xdaforums.com/xposed/modules/mod-dynamicalarmicon-2-t3335890

Please post all comments (as well as questions, requests, bug reports) related to this version directly into the new thread. Thanks.

Thank you GermainZ for background.
[Xposed Framework Modules] GermainZ:
I actually plan to do that in the future, as a separate module.

This module only does "something" when the alarm icon needs to be updated by the system. That "something" is either replacing the drawable or updating the replaced drawable. I don't see how that could cause your issue, but if you can explain it in greater details then I can have a look.

You'll first want to disable modules that may be conflicting, of course.

Ah, I see what you mean. The design this module uses is actually similar to the AOSP stock design, but not Samsung's. Different styles can maybe be added in the future.
[Xposed Framework Modules] Roudier:
That would be awesome. Meanwhile, enjoying it as is.
[Xposed Framework Modules] GermainZ:
Version 1.1 uploaded to the repo. Changes:

The hours hand will now move depending on the minutes too (this fixes e.g. "6:55" being seen almost like "5:55").

Added Timely support, should work with the latest Timely version (1.2.7). You may have to re-apply set alarms.
[Xposed Framework Modules] killoid:
any posibilities of getting gingerbread support?
[Xposed Framework Modules] chw9999:
Oh dear, you're fast :) I just wanted to say thanks. And mention that on my old HTC Sense 4.0.3 the clock gets only updated showing the correct time when i select another wake time additionally. That is, i select six o'clock, then i have to select additionally the seven o'clock alarm, then it shows six o'clock. Before that it only displays the last setting.

Will see if the new version fixes this (coming back in a while).

Thanks again!
[Xposed Framework Modules] tobbbie:
This is really great - waiting to see that come! Since then much less space is needed, you could add the option to have more than one clock face for different time-zones as well...
[Xposed Framework Modules] AlbertoJOG:
How work in Moto G 4G XT1045???? Android 4.4.3
[Xposed Framework Modules] tobbbie:
Another idea about THIS module and its dynamics:

You could make the icon disappear in the status bar if the upcoming alarm is <configurable time-gap> ahead of the alarm. Once <configurable time-gap> is reached, a brief notify (with vibrate?) could hint the user that an alarm is due in <due time for alarm>.

This lets you keep the alarms set (even if not active e.g. at weekends) and still hints you in case of an upcoming alarm you may exceptionally NOT want to get (e.g. during a day off outside the regular schedule).
[Xposed Framework Modules] GermainZ:
Try It And See™.

That's the stock behavior for the stock clock app, and I don't think it belongs in this module for the other clock apps.
[Xposed Framework Modules] tobbbie:
I did not notice that the alarm-clock icon ever disappears when I have any alarm set, e.g. 3 days ahead of today. No matter when the set alarm goes off, the icon is there in the status bar. I remember there was a dedicated application claiming to get that done, but it never worked for my device.

The idea is to keep your alarm settings (e.g. Monday through Friday at 6:30) active all time, but do not see the alarm clock icon after Friday morning - as on Saturday and Sunday there are no alarms. It would be good though to be reminded (hence notify with vibrate) on Sunday evening that the next morning there will be alarm going off again.
[Xposed Framework Modules] GermainZ:
I just noticed TapaTalk removed a good chunk of your previous post because it didn't like the <> tags... I didn't understand your request, now I do.
[Xposed Framework Modules] GermainZ:
If it works without major changes, sure. I'll look into it.

Looks like the HTC clock is notifying us of the alarm change before actually changing the according system value. I can probably add a short waiting time to work around that.
[Xposed Framework Modules] krackers:
I would like to +1 the request to have an option to make the alarm icon disappear if the time to the next alarm is greater than a set duration.
[Xposed Framework Modules] theknut:
Hi GermainZ,

thanks for this useful mod! I read through the thread but haven't found this request:

Some minutes before the alarm goes off there is this notification "Upcoming alarm". It'll notify the user that there is an alarm in some minutes. This notification uses the same icon as the statusbar does. It really confused me for a second because it was still showing 5 o'clock instead of the actual alarm I've set.

The notification is posted from the DeskClock app here and here. Maybe it's better to just replace the drawable.

It's not a big deal once you know it's not "themed" but it was confusing at first glance.

Thanks again for the mod!
[Xposed Framework Modules] GermainZ:
That's not possible. You could replace the drawable in handleLoadPackage dynamically, but it won't take effect — it must be done in handleInitPackageResources. I didn't look into it further so I can't say why for sure, but I'm guessing it's because resources are only loaded once, when the package is.

The actual solution is a bit more complicated: instead of simply replacing the drawable in the hook using a saved instance of the package's XResources (~2-3 lines excluding boilerplate), we can send a broadcast from the methods. Then, in PhoneStatusBar, we'll check each notification icon and see if it's sent by the DeskClock app… then, we parse its text and extract the time from it, and replace the icon… Way more fun! :laugh:

Modified XposedMod.java if you're interested: http://ix.io/dDA/java

I still need to test it and see if it breaks with different locales. Then I need to look into replacing the big icon (the one you see in the pulldown), but that shouldn't be hard.

EDIT: test the attached APK if you want. [MENTION=5107949]killoid[/MENTION] please check if it works on GB (completely untested, I only changed the minSdkVersion).
[Xposed Framework Modules] pure.by:
I would like to +1 that too.
[Xposed Framework Modules] GermainZ:
1.2 uploaded. Changes:

Also modify DeskClock's (AOSP clock app) notification icons (DeskClock notifies you when an alarm is due in less than 2 hours).

Add short delay before changing the icon, should fix the issues with e.g. HTC's app which sends the ALARM_CHANGED broadcast before changing the NEXT_ALARM_FORMATTED system setting. (@chw9999 (and possibly [MENTION=4493226]Kucharskov[/MENTION]) should fix your issues)

Always keep the right side alarm drawable (should fix issues with the icon changing back after a while). (@m+a+r+k should fix your issue)

Sorry then, I'm not going to try to fix it as I don't have enough time and GB users are the minority. :(
[Xposed Framework Modules] theknut:
[MENTION=4775688]GermainZ[/MENTION], didn't work for German locale unfortunately. I also forced en-US locale using AppSettings and 24/12 hour format but that didn't help :( Nothing in logcat or xposed log either.

Do you need any further information?
[Xposed Framework Modules] GermainZ:
Works for me with Deutsch (Deutschland) locale. I might have made a few changes, so please try the version I just uploaded to the repo.
[Xposed Framework Modules] claytonjn:
I wanted to ask this when this concept was first being discussed in the module index/request thread, but I thought it would be too obscure/out of scope for it to be worth implementing. Now that you've added support for DeskClock maybe you'd be open to broadening the scope of this module.

Anyways, would it be possible to implement this for Gentle Alarm? Specifically, with the option in Gentle Alarm to show a notification within 12 hours of a scheduled alarm? With that option no alarm icon is placed on the right of the status bar, but instead a regular notification is added so it would be a matter of replacing the status bar icon for the notification and the image that appears at the left of the notification in the notification shade.

Gentle Alarm is not open source, so I'd completely understand if it's more trouble than it's worth - I figure it doesn't hurt to ask. Unfortunately, it's still the only alarm app that integrates fully with Tasker, which is why I use it over more refined alternatives.

Thanks for the consideration.
[Xposed Framework Modules] GermainZ:
You should contact Gentle Alarm's developer and ask him to do something like this when setting a new alarm/removing an alarm (should also be done on boot):

import android.text.format.DateFormat;

[…]

private static final String ALARM_CHANGED = "android.intent.action.ALARM_CHANGED";

/**
* Notify the system of alarm changes.
* @param context: context
* @param nextAlarm: Calendar, Date or long object representing the next alarm. Should be null if no alarm is set. Also @see android.text.format.DateFormat.
*/
public static void broadcastNextAlarm(Context context, <Calendar, Date or long> nextAlarm) {
String nextAlarmFormatted = "";
boolean showStatusIcon = false;
if (nextAlarm != null) {
String timeFormat = "E kk:mm";
if (!DateFormat.is24HourFormat(context))
timeFormat = "E h:mm aa";
nextAlarmFormatted = (String) DateFormat.format(timeFormat, nextAlarm);
showStatusIcon = true;
}

Settings.System.putString(context.getContentResolver(), Settings.System.NEXT_ALARM_FORMATTED, nextAlarmFormatted);
Intent intent = new Intent(ALARM_CHANGED);
intent.putExtra("alarmSet", showStatusIcon);
context.sendBroadcast(intent);
}

DeskClock (the stock AOSP clock app) does something similar, and so should all clock apps: http://androidxref.com/4.4.2_r1/xre...d/deskclock/alarms/AlarmNotifications.java#40

DateFormat docs: http://developer.android.com/reference/android/text/format/DateFormat.html

This will notify the system an alarm has been set, which will cause the right side alarm icon to appear (it'll also make Gentle Alarm compatible with other apps that use NEXT_ALARM_FORMATTED, such as the default DashClock extension).

(Timely does this for SDK < 17 only for some reason. I've sent the Timely devs an email about it. To make Timely work, I'm currently modifying it slightly using Xposed, but I'd like this to be the exception and not the rule. Also, it was pretty simple in Timely's case but will probably take a bit more work for Gentle Alarm.)

The left side status bar icon can't be "dynamically" set by developers normally — it only accepts drawables included in the APK (in the /res directory). In other words, you don't have to bug Gentle Alarm's developer about it because it can't be done without modifying the system. This is basically what DynamicAlarmIcon does for DeskClock, and I wouldn't mind extending it to support Gentle Alarm (if possible — it should be) provided the above is done.
[Xposed Framework Modules] claytonjn:
I'm at work right now so I can't reverse-engineer the .apk but basically in the settings of Gentle Alarm there includes the following options:

Show an ongoing notification on the left side of the status bar if an alarm is scheduled.

Show notification only if an alarm is schedule within 24 hours.

Show notification only if an alarm is scheduled within 12 hours.

Show an icon on the right side of the status bar if an alarm is active.

If I'm not mistaken, the 4th option would essentially implement what you described above, although something certainly is done differently because when I choose that option and enable DynamicAlarmIcon the icon simply disappears.

I prefer, however, the notification on the left rather than the standard icon for two reasons. 1, my alarms are all pre-programmed, so the icon at the right would always exist and that would basically render having the icon useless (although with this module it would have some use in reflecting the time). The notification stands out more because it's in the status bar and notification panel, so it catches my attention and reminds me when I'll be waking up in the morning. 2, the notification allows me to quickly access the app if I need to modify the upcoming alarm time, which I often have to do especially now with the app I'm working on for my Senior Seminar - it's amazing how I'll think I've been working for an hour and I look at the clock and it's 4 am, but I digress.

I was going to suggest the idea directly to the Gentle Alarm developer, but I quickly dismissed that idea when I remembered that notifications are limited to displaying only icons built-in to the apk. There may be some way around that for the notification image (if Gmail can show the contact image, which isn't in the .apk, there's obviously a way to show external drawables) but it wouldn't be able to change the icon in the status bar.
[Xposed Framework Modules] GermainZ:
Alright, thanks for the input. I'll have another look at it and maybe change the current functionality to allow "monitoring" custom packages.

The large icon (the one that shows in the notification shade) can be set to anything, the small one (shown in the status bar) cannot.
[Xposed Framework Modules] theknut:
No dice :-/

I'm on Cataclysm 4.4.2 (AOSP) if that matters.

But don't put too much work in it, it's not that important.

Thanks again!
[Xposed Framework Modules] chw9999:
Again updates while I'm at work - that's way too fast [emoji6]

Sorry, HTC still draws the correct time on second click only (newest version, German locale btw). I wouldn't want you to spend too much time on it, though, it works ok all right for me and probably all others [emoji1]

That's again!
[Xposed Framework Modules] Lycidias:
I Love this module! But sadly the Icon only Shows the last Alarm i set. But I want that the Icon always Shows the earliest Alarm time i set
[Xposed Framework Modules] Jimmy34742:
What a smart and simple and useful app. After a quick test, it works great on my S4.
[Xposed Framework Modules] defim:
[MENTION=4775688]GermainZ[/MENTION]: bug/feature request

The icon shines in bright KK-white, a little ugly. Can you color it like the other icons, for my on JB it is JB-blue. (Should be enough to read it one time at startup)

Thx, I've sent this also to developer of https://play.google.com/store/apps/details?id=com.splunchy.android.alarmclock
[Xposed Framework Modules] Ja_som:
GermainZ thank you for another great module :)

It works flawlessly on my Moto G with Timely.
[Xposed Framework Modules] DutchDogg54:
Really nice mod, [MENTION=4775688]GermainZ[/MENTION] - sometimes it's the littlest touches that complete a package. Appreciate all the work that went into even this little touch. Still rockin' your awesome Dark XDA Style BTW - Keep up the good work, bro!
[Xposed Framework Modules] Cyboy:
Omg! its so cool ,i love the idea,but would you make the hand more elegent and smooth just like orginal ones?

also please specify the A.m/P.m somehow.:fingers-crossed:
[Xposed Framework Modules] madLyfe:
i know im being thick headed about this, but there is no 'settings area' is there?
[Xposed Framework Modules] erik90:
Would it be possible to make it work with the open source alarm clock Simple Alarm Clock?

Play Store Link

Seems like it's working after all! :D

It was just a little slow to update the icon.
[Xposed Framework Modules] 7sen:
;) looking nice
[Xposed Framework Modules] HorstiG:
Thank you for this little Timerle!

HGT - Galaxy S3 - S5 blue - any KK ROM
[Xposed Framework Modules] hotspot_volcano:
I had had a similar idea but never got around to rolling it out.. Since you already started let me share with you my other ideas on a dynamic alarm icon.

If the alarm is less than 12 hours away the icon will be RED.. if its between 12-24 hours it will be orange. If its more than 24 hours then the icon is green.

That way you can't accidentally set the alarm to the wrong time, bad things usually happen if you get the AM/PM or days mixed up.

Cheers!!
[Xposed Framework Modules] Eleo:
I'm using latest one, and it doesn't show alarm time at status bar. It only shows it in quick toggles and the android clock widget in my homescreen (which is normally where it is without this module)
[Xposed Framework Modules] Nickkiller:
It doesn't work on my HTC One Dual SIM
[Xposed Framework Modules] GermainZ:
Alright, next version should do that (tested on my device with the trial version).

I've rewritten the part that takes care of the left sided notifications, so it's easy to add new apps to it now.

I'm guessing the next update should fix it since I've rewritten that part. Can you just confirm that the clock's package name is com.android.deskclock?

Eh, I actually set the delay at the wrong place. Next update should hopefully fix it, though I'll look for a way to do it without an arbitrary delay.

It should show the *next* set alarm. Which clock app are you using?

The color can be made customizable in future versions.

I don't know what that means – it replicates the AOSP clock.

For AM/PM indicators: I plan to do that if it looks good in such a small space.

No, at least not yet.

See above for AM/PM distinction. Different colors for different times are something I need to think about, but the answer is probably "no" because that'll require waking the device up/running a service.

I've rewritten that part so it might be fixed in the next version since I'm not calling/hooking those methods anymore.

Which clock app are you using?

Yeah, I'm going to need more info. Which clock app are you using? How does it not work? Did you check the Xposed log?
[Xposed Framework Modules] Lycidias:
I'm Using Stock LG clock on my Stock LG G2
[Xposed Framework Modules] Eleo:
It is not an installed app, it is just a clock app that is automatically installed to CM I'm using MoKee system (a derivative of CM, which is even compatible with CM themes) with Nova Launcher. It shows the a digital clock as alarm icon (different than normal alarm icon), that shows a clock showing alarm time. But I just tgought that it would show digital clock, since it is hard to actually see the digital clock in status bar.
[Xposed Framework Modules] GermainZ:
Looks like LG doesn't know what NEXT_ALARM means, because that's what I'm getting. Sorry. ?

I'd wait for the next version just in case it was something else, though.

That's what this module does, make the analog clock point to the set alarm's position. Screenshots are in the OP.

Replacing it with a digital clock may be added in the future.
[Xposed Framework Modules] Eleo:
Well, nevertheless, it is better than original one, thank you for that :))
[Xposed Framework Modules] danilocps87:
Is it possible to change from icon to next day/time alarm? Something like the attached.
[Xposed Framework Modules] theknut:
No its com.google.android.deskclock :D that should fix it ;)
[Xposed Framework Modules] Nickkiller:
I'm Using Stock clock on Stock 4.4.2 HTC One dual sim

Does not change the standard icon
[Xposed Framework Modules] duchian:
on HTC One it doesn't work too. Android 4.4.2
[Xposed Framework Modules] chrisch1974:
It doesn't work on any HTC Sense rom as HTC has a different implementation of the updating of the alarm icon. But the good news is that I fixed this already for myself and send the fixes to [MENTION=4775688]GermainZ[/MENTION]. So there will be hopefully an official working version for Sense devices soon.
[Xposed Framework Modules] Shaurya007:
its awsome..

love it...thankss :)
[Xposed Framework Modules] sublimaze:
Works great on my LG G3. Thanks! [emoji41]
[Xposed Framework Modules] roirraW "edor" ehT:
Very, very cool. As soon as I get back on TapaTalk I'll give you thanks. :) Working great on the Sprint Samsung Galaxy S3 (SPH-L710).
[Xposed Framework Modules] chrisch91:
Not workimg for me on n5, 4.4.4.
[Xposed Framework Modules] Kucharskov:
Dear author. On Xperia SP that module are awesome but sometimes refres before alarm dont work and icon still appear but i have other alarm. Maybe its cus my clock app have "day looping" feature.