DynamicAlarmIcon - Make the alarm icon point to the set alarm's time

Search This thread

GermainZ

Inactive Recognized Developer / Retired Forum Mod
Aug 3, 2012
6,170
8,805
@GermainZ, I've got a Samsung Galaxy S5 with stock ROM and I've noticed my dynamic icon is slightly off - I have an alarm at 6:30 and it looks more like 6:28 .
I tested by setting an alarm at 12:00 and the minutes hand is definitely off center; I set it to 12:03 and both hands are perfectly pointing upwards.

What info do you need from me?
That's Samsung's smart alarm/wake feature.
Hello,
thanks for the good work, I really like the concept of your app.
Unfortunately, the Icon is not changed on boot on my LG running 4.1.2 in combination with the app "CircleAlarm" (com.tjeannin.alarm).
Once I open CircleAlarm and alter an alarm the icon changes, though.
I have nothing installed that should interfere with the statusbar AFAIK.
Anything in the Xposed log?
 
  • Like
Reactions: tangcla

AlbertC.

New member
Oct 9, 2014
2
0
I guess the relevant part of the log is this:

Loading modules from /data/app/com.germainz.dynamicalarmicon-1.apk
Loading class com.germainz.dynamicalarmicon.XposedMod
Loading modules from /data/app/com.germainz.playpermissionsexposed-2.apk
Loading class com.germainz.playpermissionsexposed.XposedMod
java.lang.IllegalStateException: Cannot broadcast before boot completed
at android.os.Parcel.readException(Parcel.java:1433)
at android.os.Parcel.readException(Parcel.java:1379)
at android.app.ActivityManagerProxy.broadcastIntent(ActivityManagerNative.java:2098)
at android.app.ContextImpl.sendBroadcast(ContextImpl.java:965)
at android.content.ContextWrapper.sendBroadcast(ContextWrapper.java:312)
at com.germainz.dynamicalarmicon.XposedMod$5.afterHookedMethod(XposedMod.java:236)
at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:645)
at com.android.systemui.statusbar.phone.PhoneStatusBarPolicy.<init>(Native Method)
at com.android.systemui.statusbar.phone.PhoneStatusBar.start(PhoneStatusBar.java:445)
at com.android.systemui.SystemUIService.createService(SystemUIService.java:110)
at com.android.systemui.SystemUIService.access$000(SystemUIService.java:45)
at com.android.systemui.SystemUIService$1.handleMessage(SystemUIService.java:120)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4929)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:798)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:565)
at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:132)
at dalvik.system.NativeStart.main(Native Method)

I hope this helps. If you need more info, please tell me.


Edit: Suddenly, without any changes I am aware of, it works. Guess problem solved?!
 
Last edited:

GermainZ

Inactive Recognized Developer / Retired Forum Mod
Aug 3, 2012
6,170
8,805
No, logs are disabled by substituting the log folder with an empty file. *ROFL*
Seems to me like you're trying to cure the symptom rather than the cause if you're doing that. Regardless, please enable them and check if there's anything from DynamicAlarmIcon.
 
  • Like
Reactions: paulle

siealex

Senior Member
Jul 22, 2008
2,550
499
Kharkov
Samsung Galaxy A52 4G
Some screenshots of the problem.
1. Immediately after boot.
2. Clock app.
3. All alarms off.
4. Alarms on, the icon appears only after this action.
 

Attachments

  • Screenshot_2014-11-17-13-15-22.jpg
    Screenshot_2014-11-17-13-15-22.jpg
    82 KB · Views: 928
  • Screenshot_2014-11-17-13-15-38.png
    Screenshot_2014-11-17-13-15-38.png
    52.7 KB · Views: 920
  • Screenshot_2014-11-17-13-15-57.png
    Screenshot_2014-11-17-13-15-57.png
    50.5 KB · Views: 904
  • Screenshot_2014-11-17-13-16-16.png
    Screenshot_2014-11-17-13-16-16.png
    52.9 KB · Views: 894

peegee15

Member
Jan 16, 2014
14
0
Its definitely working. However, every after reboot, it goes back to a specific time. You have.to turn off and on again the alarm to make it work. Nevertheless, it was good!
 

mannequin

Senior Member
Feb 7, 2011
1,603
362
New York
doesn't work with Timely 1.3, always shows default "5 o'clock" icon (LG G2 stock KK, works perfectly with stock Alarm app).
 

Top Liked Posts

  • There are no posts matching your filters.
  • 76
    Description
    Make the alarm icon in your status bar show you the set alarm's time instead of the default icon.
    Originally requested by @terrorist96.

    Download
    http://repo.xposed.info/module/com.germainz.dynamicalarmicon

    Source
    https://github.com/GermainZ/DynamicAlarmIcon

    Changelog
    1.3.3:
    • DynamicAlarmIcon is now compatible with Lollipop (patches by @theknut).
    • Fixes for Timely on Lollipop (patches by @tonyp).
    • Added translations for German (by @theknut) and Slovak (by @Ja_som).

    1.3.2:
    • More compatibility fixes for pre-KK devices.
    • Additional improvements to the TouchWiz style.
    1.3.1:
    • Fix missing icon on start up.
    • Compatibility fix for 4.0-4.3.
    • TouchWiz clock style improvements.
    1.3:
    • Better method to replace left side icons (for clock packages).
    • Added support for Google Clock and GentleAlarm (DynamicAlarmClock will also change their notification icons).
    • Compatibility fixes for Sense devices, by chrisch1974.
    • Better alarm change detection.
    • Added clock style preference: choose between the AOSP style and a TouchWiz-like style.
    • Added clock color preference.
    1.2.1:
    • Quick fix for the alarm icon's space always being reserved (even when the icon should be hidden).
    1.2:
    • 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.
    • Always keep the right side alarm drawable (should fix issues with the icon changing back after a while).
    1.1:
    • 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.
    1.0:
    • Initial release.

    Screenshots
    Status bar alarm icon:
    2.png
    DeskClock (AOSP clock app):
    1.png

    Thanks
    • rovo89 and Tungstwenty for the Xposed framework.
    • MohammadAG, tonyp, theknut and chrisch1974 for their help/patches and because they're awesome.
    • Ja_som and the_knut for translations.
    11
    Hi @GermainZ,

    thanks so much for this simple, yet incredible useful Xposed module!
    Please see my pull request on Github: https://github.com/GermainZ/DynamicAlarmIcon/pull/4
    Since it was developed and tested only on Android Lollipop it should also be tested on previous OS versions. It works for me on an AOSP ROM (Cataclysm).

    I attached my apk and signed with my own keys. So you'll need to uninstall your current version of DynamicAlarmIcon and install the attached apk. Repeat the same process once GermainZ updates the Xposed repo.

    2v6tYwP.png
    11
    @GermainZ 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!
    Hopefully I'll have some time shortly after Christmas or the new year.
    7
    1.3.3 uploaded to the repo :)
    • DynamicAlarmIcon is now compatible with Lollipop (patches by @theknut).
    • Fixes for Timely on Lollipop (patches by @tonyp).
    • Added translations for German (by @theknut) and Slovak (by @Ja_som).

    If you installed a version signed by someone else (tonyp or theknut), remember you'll need to uninstall it first. Installing the update won't work without uninstalling the old version because of different signatures.

    As usual, please report any bugs but remember to include the ROM and Android version you're using, as well as the Xposed logs (accessible from the Xposed Installer app). Thanks!

    —————————————————————————————————————————​

    @tonyp (and @GermainZ) - the icon doesn't show up when the phone is at lockscreen - is this intentional? I can't see what time the alarm is, without unlocking the phone.
    That's probably a ROM security setting. Is there no option to disable it in your ROM's settings?
    6
    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.
    5EcZsev.png