[MOD] Xperia Clock limit

Search This thread

takagen

Senior Member
Feb 13, 2012
288
176
Edit :
Props to @Jackos, here's the flashable patched SemcClock.apk with max of 96 clock alarm.

Cheers

==========================================

Hi guys,

Need a little help here.
I'm trying to remove the 20 Max limit of adding clock alarm in SemcClock.apk.

I thought i found the limit here MAX_ALARM_COUNT:I = 0x14
in this file SemcClock\smali\com\sonyericsson\alarm\AlarmListFragment.smali

But changing it doesn't seem to work.

Any ideas ?
 
Last edited:

funky0308

Inactive Recognized Themer
Aug 27, 2012
7,029
5,681
Osijek
Hi guys,

Need a little help here.
I'm trying to remove the 20 Max limit of adding clock alarm in SemcClock.apk.

I thought i found the limit here MAX_ALARM_COUNT:I = 0x14
in this file SemcClock\smali\com\sonyericsson\alarm\AlarmListFragment.smali

But changing it doesn't seem to work.

Any ideas ?

Never had a need for something like that.
Why don't you just use calendar or scheduler for something like that?

BTW - this section is for apps and themes, not help thread.
Naming of thread is also wrong - it's not MOD, it's REQ or HELP thread.

Try to rename it and tag @Serarj and @niaboc79 - if anyone knows, they know...

Sent from my D6503 using Tapatalk
 

Jackos

Inactive Recognized Developer
Feb 26, 2008
4,045
945
Warsaw
leidel.pl
OnePlus Open
Please find attached the patched SemcClock .402. It allows to create up to 50 alarm clocks.


I also included two images of my Virtuous Ten Studio, showing what values need to be patched for the fix to work if you want to do it yourself.


Keep pwning! :)
 

Attachments

  • SemcClock.apk
    4.5 MB · Views: 155
  • 1.jpg
    1.jpg
    363.4 KB · Views: 492
  • 2.jpg
    2.jpg
    374.5 KB · Views: 397
  • Like
Reactions: takagen

Jackos

Inactive Recognized Developer
Feb 26, 2008
4,045
945
Warsaw
leidel.pl
OnePlus Open
BTW I usually recompile the smali code to java, so I get a better view what's going on. As you may see the toast alarm limit is hardcoded.
 

Attachments

  • java.jpg
    java.jpg
    383.4 KB · Views: 283
  • Like
Reactions: takagen

takagen

Senior Member
Feb 13, 2012
288
176
Thanks alot.

It works, to sum up it's basically editing 2 places in file
SemcClock\smali\com\sonyericsson\alarm\AlarmListFragment.smali

Code:
.field static final MAX_ALARM_COUNT:I = 0x14
Code:
.method public onOptionsItemSelected(Landroid/view/MenuItem;)Z
    .locals 10
    .param p1, "item"    # Landroid/view/MenuItem;

    .prologue
    const/16 v9, 0x14

Update "x14" to the number of clock you need.

Cheers :good:
 

Top Liked Posts

  • There are no posts matching your filters.
  • 3
    Hi guys,

    Need a little help here.
    I'm trying to remove the 20 Max limit of adding clock alarm in SemcClock.apk.

    I thought i found the limit here MAX_ALARM_COUNT:I = 0x14
    in this file SemcClock\smali\com\sonyericsson\alarm\AlarmListFragment.smali

    But changing it doesn't seem to work.

    Any ideas ?

    Never had a need for something like that.
    Why don't you just use calendar or scheduler for something like that?

    BTW - this section is for apps and themes, not help thread.
    Naming of thread is also wrong - it's not MOD, it's REQ or HELP thread.

    Try to rename it and tag @Serarj and @niaboc79 - if anyone knows, they know...

    Sent from my D6503 using Tapatalk
    1
    Please find attached the patched SemcClock .402. It allows to create up to 50 alarm clocks.


    I also included two images of my Virtuous Ten Studio, showing what values need to be patched for the fix to work if you want to do it yourself.


    Keep pwning! :)
    1
    BTW I usually recompile the smali code to java, so I get a better view what's going on. As you may see the toast alarm limit is hardcoded.