Post Reply

[MOD] Xperia Clock limit

OP takagen

22nd June 2014, 04:02 AM   |  #1  
OP Member
Thanks Meter: 33
 
96 posts
Join Date:Joined: Feb 2012
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\AlarmListFr agment.smali

But changing it doesn't seem to work.

Any ideas ?
Last edited by takagen; 22nd June 2014 at 12:41 PM.
22nd June 2014, 10:12 AM   |  #2  
funky0308's Avatar
Recognized Themer
Flag Osijek
Thanks Meter: 5,366
 
6,576 posts
Join Date:Joined: Aug 2012
Donate to Me
More
Quote:
Originally Posted by takagen

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\AlarmListFr agment.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
The Following 3 Users Say Thank You to funky0308 For This Useful Post: [ View ]
22nd June 2014, 11:32 AM   |  #3  
OP Member
Thanks Meter: 33
 
96 posts
Join Date:Joined: Feb 2012
Thanks for the advise.

If @niaboc79 or @serajr can helped, that would be awesome
22nd June 2014, 12:02 PM   |  #4  
Jackos's Avatar
Recognized Developer
Flag Breslau
Thanks Meter: 526
 
3,632 posts
Join Date:Joined: Feb 2008
More
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!
Attached Thumbnails
Click image for larger version

Name:	1.jpg
Views:	332
Size:	363.4 KB
ID:	2811492   Click image for larger version

Name:	2.jpg
Views:	241
Size:	374.5 KB
ID:	2811493  
Attached Files
File Type: apk SemcClock.apk - [Click for QR Code] (4.46 MB, 36 views)
The Following User Says Thank You to Jackos For This Useful Post: [ View ]
22nd June 2014, 12:09 PM   |  #5  
Jackos's Avatar
Recognized Developer
Flag Breslau
Thanks Meter: 526
 
3,632 posts
Join Date:Joined: Feb 2008
More
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.
Attached Thumbnails
Click image for larger version

Name:	java.jpg
Views:	218
Size:	383.4 KB
ID:	2811503  
The Following User Says Thank You to Jackos For This Useful Post: [ View ]
22nd June 2014, 12:30 PM   |  #6  
OP Member
Thanks Meter: 33
 
96 posts
Join Date:Joined: Feb 2012
Post
Thanks alot.

It works, to sum up it's basically editing 2 places in file
SemcClock\smali\com\sonyericsson\alarm\AlarmListFr agment.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
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Top Threads in Xperia Z2 Themes and Apps by ThreadRank