The ModMyTM Family of Sites:
ModMyMotoModMyiModMyGphone




 
 
Register or Connect with Facebook

Discuss AppStore Apps | Browse / Search Cydia | MMi Cydia Stats




  Apple Forums & iPhone Forums, Mods, Hacks, News, Themes, Downloads, and more! | ModMyi.com > iPhone Modding > File Mods
Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 11-07-2007, 10:38 AM
iPhone? More like MyPhone
 
Join Date: Jul 2007
Posts: 122
Thanks: 2
Thanked 10 Times in 8 Posts
Is it possible to increase Call history count?

So looking more into this phone noticed that all of your recent calls are stored in the call_history.db file. That file is a SQLite file which you can easily open. I noticed there are a few parameters in there and one is call history limit which is set to 100, which means its holding 100 of your most recent calls. I tried to change to say 500, but it still only holds the last 100. In that DB file also is the list of calls you made to who, what time, duration (which seems to round upto nearest minute). It also tracks your data usage and stuff, basically what you see on your Usage screen.

So wondering if anyone has sucessfully increased the call history count, I also tried to add a few blank rows to that table thinking maybe it allocated 100 rows and only works there, but that didnt work either.

Dixit
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #2  
Old 11-07-2007, 03:16 PM
Green Apple
 
Join Date: Oct 2007
Device + Firmware: iPhone + 1.1.4, iPhone 3G
Operating System: AMD Nforce4 OSX86
Posts: 76
Thanks: 8
Thanked 6 Times in 6 Posts

Did you try backing up the files and deleting the one that had the calls in it, changing the value to 500 and rebooting your phone?
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #3  
Old 11-08-2007, 09:44 AM
iPhone? More like MyPhone
 
Join Date: Jul 2007
Posts: 122
Thanks: 2
Thanked 10 Times in 8 Posts

Quote:
Originally Posted by glustic View Post
Did you try backing up the files and deleting the one that had the calls in it, changing the value to 500 and rebooting your phone?
I have tried that but will have to wait because now I have to generate more than 100calls to see if it actually takes it past 100 or does it still FIFO in the 100.

Dixit
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #4  
Old 11-11-2007, 11:50 PM
iPhone? More like MyPhone
 
Join Date: Jul 2007
Posts: 122
Thanks: 2
Thanked 10 Times in 8 Posts

So got tired of waiting for a 100calls to happen ended up quickly just generating that many and seems like even with that property changed to 500, the actual call list table only seems to only 100 of the last calls, no matter what that property value is set in the first table. Just seems to FIFO the calls in the last 100.

Dixit
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #5  
Old 11-12-2007, 01:17 AM
Reako's Avatar
Livin the iPhone Life
 
Join Date: Sep 2007
Posts: 1,653
Thanks: 31
Thanked 158 Times in 121 Posts

Hmmm, maybe a little more tweaking is needed. I wish I knew how to help...

Reako
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #6  
Old 12-11-2007, 01:26 AM
Green Apple
 
Join Date: Nov 2007
Posts: 62
Thanks: 12
Thanked 20 Times in 10 Posts

Gosh really wish it were possible to make the call history unlimited, that would really help me for one.

Is there any tweak that could be done for this? Thanks.

Cheers.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #7  
Old 12-11-2007, 02:21 AM
Green Apple
 
Join Date: Aug 2007
Posts: 48
Thanks: 1
Thanked 7 Times in 6 Posts

Quote:
Originally Posted by vikasmal View Post
Gosh really wish it were possible to make the call history unlimited, that would really help me for one.

Is there any tweak that could be done for this? Thanks.

Cheers.
sqlite trigger placed on the table would work.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #8  
Old 12-11-2007, 09:26 AM
Green Apple
 
Join Date: Aug 2007
Posts: 48
Thanks: 1
Thanked 7 Times in 6 Posts

For those who want to test unlimited size of last call list, use attached file.
After unzipping replace /var/root/Library/CallHistory/call_history.db with the new one.
I recommend to keep a copy of the old one just to be safe.
Please note it will erase all your current history.
Reboot your iPhone to start the trigger.

Please note that it may slow down the "last calls" screen, depending on how big your list will be.

So far mine works fine, with 3000 records.
Remember that I take no responsibility if it blows up your phone
Attached Files
File Type: zip call_history.zip (1.8 KB, 397 views)
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
The Following 2 Users Say Thank You to piranha For This Useful Post:
bigdogjonx (12-11-2007), vikasmal (12-14-2007)
  #9  
Old 12-11-2007, 09:36 AM
iPhone? More like MyPhone
 
Join Date: Jul 2007
Posts: 122
Thanks: 2
Thanked 10 Times in 8 Posts

Quote:
Originally Posted by piranha View Post
For those who want to test unlimited size of last call list, use attached file.
After unzipping replace /var/root/Library/CallHistory/call_history.db with the new one.
I recommend to keep a copy of the old one just to be safe.
Please note it will erase all your current history.
Reboot your iPhone to start the trigger.

Please note that it may slow down the "last calls" screen, depending on how big your list will be.

So far mine works fine, with 3000 records.
Remember that I take no responsibility if it blows up your phone
How did you do this? Ive been looking at the SQLite database for a good bit of time and could not get it working myself, looked at yours and didnt see the trigger, still shows the 100record limit in the properties. Is yours setup to just be unlimited or rotate after so many?

Dixit
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #10  
Old 12-11-2007, 09:52 AM
Green Apple
 
Join Date: Aug 2007
Posts: 48
Thanks: 1
Thanked 7 Times in 6 Posts

I created following trigger:
Code:
CREATE TRIGGER [deleteKeep] 
BEFORE DELETE ON [call] 
FOR EACH ROW 
BEGIN 

insert into call
select null,address,date,duration,flags,id from call
where call.ROWID=OLD.ROWID  ;

END
which is fired when the record is deleted. It simply inserts back what has been deleted.
Don't know what backend you use for sqlite, my recommendation is sqlite admin

Much better solution is to move deleted records to another table, and that's the solution I used in SMS database. There I also created a view which combines both tables, and modified SMSD to display the info from the view. That way I always have 900 records in SMS table, and the rest is in archive table. I can view all SMS using SMSD

The delete of the records, happens in the Telephony framework it's not a property of DB.

Last edited by piranha; 12-11-2007 at 09:58 AM..
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #11  
Old 12-11-2007, 10:14 AM
Digital Oxygen's Avatar
My iPhone is a Part of Me
 
Join Date: Sep 2007
Posts: 525
Thanks: 0
Thanked 29 Times in 27 Posts

Good work Piranha, will try this.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #12  
Old 12-11-2007, 09:35 PM
iPhone? More like MyPhone
 
Join Date: Jul 2007
Posts: 122
Thanks: 2
Thanked 10 Times in 8 Posts

Quote:
Originally Posted by piranha View Post
Don't know what backend you use for sqlite, my recommendation is sqlite admin
Thanks Piranha, Ive been using SQLite Database browser and it shows all the data in the tables but clearly didnt show the Views or Triggers, thanks for the recommendation, this is 10x better than SQLite Browser.

I just imported all my data from the original one so I still have my original 100 list and cumulative call timers and stuff. This definetely works, good stuff man.

Dixit
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #13  
Old 12-11-2007, 10:44 PM
Reako's Avatar
Livin the iPhone Life
 
Join Date: Sep 2007
Posts: 1,653
Thanks: 31
Thanked 158 Times in 121 Posts

So does this mean we can alter the SMS database also? I hate having to delete them. It is so corny.

Reako
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #14  
Old 12-12-2007, 04:05 AM
Green Apple
 
Join Date: Aug 2007
Posts: 48
Thanks: 1
Thanked 7 Times in 6 Posts

SMS is more advanced, and I am trying to get in touch with author of SMSD to get it implemented in the program.

First we need to create "archive" table:
CREATE TABLE 'messag1' (
"ROWID" integer,
address text,
date integer,
text text,
flags integer,
"replace" integer,
svc_center text
)

Then the trigger:
CREATE TRIGGER message_limit
AFTER INSERT
ON message
WHEN (select count(*) from message)>700
BEGIN
insert into messag1 select * from message limit 1;
delete from message where message.ROWID in (select messag1.ROWID from messag1);
END

And optionally a view combining data from both tables (used by modded SMSD to access old SMSes):
CREATE VIEW [messag] AS
select *,datetime(date, 'unixepoch') as sDate from message
union
select *,datetime(date, 'unixepoch') as sDate from messag1

You can use compiled database that I attach to this email, and modded SMSD that reads from the view.

That way regular SMS application will see only 700 messages that are in main table, and to view the rest you'll use SMSD app.

Preferred solution would be of course SMSD creating all necessary tables, triggers and views and implement viewing with paging. So far I got no response from the author of SMSD.
Attached Files
File Type: zip sms.zip (48.1 KB, 72 views)

Last edited by piranha; 12-12-2007 at 04:19 AM..
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #15  
Old 12-12-2007, 05:16 AM
What's Jailbreak?
 
Join Date: Dec 2007
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts

Quote:
Originally Posted by piranha View Post
For those who want to test unlimited size of last call list, use attached file.
After unzipping replace /var/root/Library/CallHistory/call_history.db with the new one.
I recommend to keep a copy of the old one just to be safe.
Please note it will erase all your current history.
Reboot your iPhone to start the trigger.

Please note that it may slow down the "last calls" screen, depending on how big your list will be.

So far mine works fine, with 3000 records.
Remember that I take no responsibility if it blows up your phone
Thanks Piranha! That's what I really need. But I'm afraid to use this unlimited database. Can you limit call history up to 500 or 1000?
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
Reply

  Apple Forums & iPhone Forums, Mods, Hacks, News, Themes, Downloads, and more! | ModMyi.com > iPhone Modding > File Mods

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



Go to Top
ModMyI

All times are GMT -6. The time now is 05:20 AM. Powered by vBulletin® Version 3.8.4
If you need Dedicated Server Hosting, you should check out SingleHop. | Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.0 Copyright © 2007-09 by ModMy, LLC. All rights reserved.

iPhone News / iPhone Forums / Apple News / Apple Forums / RSS / Contact Us / / Top