webOS Nation Forums >  webOS apps and software >  webOS development > How To: View Call History During A Call
How To: View Call History During A Call

  Reply
 
LinkBack Thread Tools Display Modes
Old 09/18/2009, 08:00 PM   #1 (permalink)
skp
Member
 
Join Date: Nov 2007
Posts: 33
Likes Received: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Default How To: View Call History During A Call (Patch created for 1.4)

This is a quick hack I made for those rare occasions I need to view the call history in the middle of a call so it's not too elaborate. This will add the Call History option inside the drop down menu during an active call and the ability to return to the active call when viewing the call history.

INSTRUCTION FOR APPLYING PATCH (FOR 1.2(.1) ONLY!!!):

Code:
cd /
mount -o remount,rw /
wget http://www.teckaddict.com/webos/call_history_during_call.patch
quilt import call_history_during_call.patch -f
quilt push -a -f
stop LunaSysMgr && start LunaSysMgr

UPDATE 4 (2/28/10): Updated patch for 1.4. Patch attached below.

UPDATE 3 (9/28/09): Created a patch for 1.2.

UPDATE 2 (9/19/09): Modified code so that the back gesture and dialpad button work correctly inside the call history screen. They previously went to the inactive call dialpad. Removed menu item to go back from call history screen since it is no longer needed. (If you ran the previous script, this should apply the modified code without removing the previous hack.)

UPDATE: I created a script to run so that you don't have to edit the files directly. This was done on the 1.1.0 firmware. I'm not sure if it works on older firmware versions.



The following is for running a script to apply the patch for version 1.1. I tested it once with 1.2 and it didn't work for me. I won't be updating the script anymore, just the patch.


INSTRUCTIONS (FOR 1.1 ONLY!!):

Login to the Pre and obtain root access.

Copy and paste the following code into your terminal:
(This code will make backups of the original files and restart the GUI afterwards)

Code:
#
# DISPLAY CALL HISTORY OPTION IN MENU DURING ACTIVE PHONE CALL
#
mount -o remount,rw /
#
# RESTORE ORIGINALS IF THEY EXIST
#
echo RESTORING ORIGINAL FILES IF THEY EXIST
cp /usr/palm/applications/com.palm.app.phone/app/controllers/activecall-assistant.js.BAK /usr/palm/applications/com.palm.app.phone/app/controllers/activecall-assistant.js
cp /usr/palm/applications/com.palm.app.phone/app/controllers/calllog-assistant.js.BAK /usr/palm/applications/com.palm.app.phone/app/controllers/calllog-assistant.js
#
# BACKUP ORIGINAL FILES
#
echo BACKING UP ORIGINAL FILES
cp /usr/palm/applications/com.palm.app.phone/app/controllers/activecall-assistant.js /usr/palm/applications/com.palm.app.phone/app/controllers/activecall-assistant.js.BAK
cp /usr/palm/applications/com.palm.app.phone/app/controllers/calllog-assistant.js /usr/palm/applications/com.palm.app.phone/app/controllers/calllog-assistant.js.BAK
#
# ADD CALL HISTORY OPTION TO ACTIVE CALL MENU
#
# MODIFYING activecall-assistant.js PART 1
#
echo Modifying activecall-assistant.js PART 1
sed -i "s/label: \$L('Sounds and Ringtones'),/label: \$L('Call History'),\n\
                command: 'callhistory'\n\
            },\n\
            {\n\
                label: \$L('Sounds and Ringtones'),/" /usr/palm/applications/com.palm.app.phone/app/controllers/activecall-assistant.js
#
# MODIFYING activecall-assistant.js PART 2
#
echo Modifying activecall-assistant.js PART 2
sed -i "s/case 'ringtones':/case 'callhistory':\n\
                                   this.appAssistant.showCallLog();\n\
                                   break;\n\
                            case 'ringtones':/" /usr/palm/applications/com.palm.app.phone/app/controllers/activecall-assistant.js
#
# ADD OPTION TO RETURN TO ACTIVE CALL TO CALL HISTORY MENU
#
# MODIFYING calllog-assistant.js
#
echo MODIFYING calllog-assistant.js
sed -i "s/this.appAssistant.showDialpad();/if (this.telListener.callExists() == true) {\n\
                            this.appAssistant.showActiveCall();\n\
                     }\n\
                     else {\n\
                            this.appAssistant.showDialpad();\n\
                     }/" /usr/palm/applications/com.palm.app.phone/app/controllers/calllog-assistant.js
#
# MODIFICATION COMPLETE
#
mount -o remount,ro /
echo MODIFICATION COMPLETE. RESTARTING GUI...
stop LunaSysMgr && start LunaSysMgr
#
To remove the hack and restore the original files, use the following code:

Code:
#
# DISABLE DISPLAY CALL HISTORY OPTION IN MENU DURING ACTIVE PHONE CALL 
#
mount -o remount,rw /
#
# RESTORE ORIGINAL FILES
# 
echo RESTORING ORIGINAL FILES
cp /usr/palm/applications/com.palm.app.phone/app/controllers/activecall-assistant.js.BAK /usr/palm/applications/com.palm.app.phone/app/controllers/activecall-assistant.js
cp /usr/palm/applications/com.palm.app.phone/app/controllers/calllog-assistant.js.BAK /usr/palm/applications/com.palm.app.phone/app/controllers/calllog-assistant.js
#
mount -o remount,ro /
echo MODIFICATION REMOVED. RESTARTING GUI...
stop LunaSysMgr && start LunaSysMgr
#
If the menu items still don't show up after running the initial code then try rebooting the phone.



*** I removed the manual code modification because the script is more updated.
Attached Files
File Type: patch call_history_during_call.patch (2.2 KB, 15 views) Email Attachment

Last edited by skp; 02/28/2010 at 02:15 PM. Reason: Created patch for 1.4
skp is offline   Reply With Quote
Old 09/18/2009, 09:42 PM   #2 (permalink)
webOS Enthusiast
 
Abyssul's Avatar
 
Join Date: Jul 2009
Posts: 2,132
Likes Received: 45
Thanks: 41
Thanked 807 Times in 433 Posts
Default

I don't know if it is possible, but to help understand the code try and add some color to what is added/deleted. Red for delete and green for add.

I'll try this hack later though and see if its efficient.
__________________


If I helped you or you have downloaded one of my files,
then least you could do is click the "Thanks" button.
Abyssul is offline   Reply With Quote
Old 09/18/2009, 10:08 PM   #3 (permalink)
skp
Member
 
Join Date: Nov 2007
Posts: 33
Likes Received: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Abyssul View Post
I don't know if it is possible, but to help understand the code try and add some color to what is added/deleted. Red for delete and green for add.
Took your suggestion and added color to the code changes. I'm working on making a script so that people won't have to edit the files directly.
skp is offline   Reply With Quote
Old 09/19/2009, 12:51 AM   #4 (permalink)
skp
Member
 
Join Date: Nov 2007
Posts: 33
Likes Received: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Added a script to run so that you don't have to edit the files.
skp is offline   Reply With Quote
Old 09/19/2009, 01:41 AM   #5 (permalink)
Member
 
fritos1406's Avatar
 
Join Date: Jul 2009
Posts: 1,307
Likes Received: 1
Thanks: 34
Thanked 462 Times in 187 Posts
Default

Quote:
Originally Posted by skp View Post
Added a script to run so that you don't have to edit the files.
i really dont like scripts..how bout a patch
__________________

Donate Via Paypal to Email Adress: silent2205@gmail.com
Email: fritos1406@aim.com
Twitter: @fritos1406
fritos1406 is offline   Reply With Quote
Old 09/19/2009, 05:55 AM   #6 (permalink)
skp
Member
 
Join Date: Nov 2007
Posts: 33
Likes Received: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Had a little trouble sleeping so I decided to finish up the rest of this hack. The buttons inside the call history screen now work correctly.


Quote:
Originally Posted by fritos1406 View Post
i really dont like scripts..how bout a patch
I'll see if I can get a patch done when I have time again.
skp is offline   Reply With Quote
Old 09/19/2009, 03:52 PM   #7 (permalink)
Member
 
Join Date: Oct 2007
Posts: 875
Likes Received: 0
Thanks: 75
Thanked 40 Times in 35 Posts
Default

tried it, copied and executed, but it doesnt work...
ericizzy1 is offline   Reply With Quote
Old 09/19/2009, 09:11 PM   #8 (permalink)
skp
Member
 
Join Date: Nov 2007
Posts: 33
Likes Received: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by ericizzy1 View Post
tried it, copied and executed, but it doesnt work...
Are you getting an error? What are you using to run the script? (putty?)
skp is offline   Reply With Quote
Old 09/19/2009, 11:57 PM   #9 (permalink)
Member
 
Join Date: Oct 2007
Posts: 875
Likes Received: 0
Thanks: 75
Thanked 40 Times in 35 Posts
Default

Quote:
Originally Posted by skp View Post
Are you getting an error? What are you using to run the script? (putty?)
using putty, and no error
ericizzy1 is offline   Reply With Quote
Old 09/20/2009, 05:55 PM   #10 (permalink)
skp
Member
 
Join Date: Nov 2007
Posts: 33
Likes Received: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by ericizzy1 View Post
using putty, and no error
Are you running the script with root access? (root@castle prompt?)


Has anybody else tried this script? I've tried this on 2 phones and it works fine for me. Just wanna know if its actually working for other people.
skp is offline   Reply With Quote
Old 09/20/2009, 08:21 PM   #11 (permalink)
Member
 
Join Date: Oct 2007
Posts: 875
Likes Received: 0
Thanks: 75
Thanked 40 Times in 35 Posts
Default

ok skp. just found out that it was in the drop down menu. it wasnt clear to me. thank you. its great
ericizzy1 is offline   Reply With Quote
Old 09/21/2009, 02:44 AM   #12 (permalink)
skp
Member
 
Join Date: Nov 2007
Posts: 33
Likes Received: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by ericizzy1 View Post
ok skp. just found out that it was in the drop down menu. it wasnt clear to me. thank you. its great
That would do it. I changed the description to make it more clear for others.
skp is offline   Reply With Quote
Old 09/29/2009, 01:30 AM   #13 (permalink)
skp
Member
 
Join Date: Nov 2007
Posts: 33
Likes Received: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Created patch for 1.2.
skp is offline   Reply With Quote
Old 09/29/2009, 10:00 AM   #14 (permalink)
Developer
 
Join Date: Jul 2009
Posts: 1,400
Likes Received: 3
Thanks: 17
Thanked 1,540 Times in 376 Posts
Default

Quote:
Originally Posted by skp View Post
Created patch for 1.2.
Can I put it into the repo and autopatch feed?
egaudet is offline   Reply With Quote
Old 09/29/2009, 05:05 PM   #15 (permalink)
skp
Member
 
Join Date: Nov 2007
Posts: 33
Likes Received: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by emoney_33 View Post
Can I put it into the repo and autopatch feed?
Yeah, that's fine.
skp is offline   Reply With Quote
Old 02/28/2010, 02:12 PM   #16 (permalink)
skp
Member
 
Join Date: Nov 2007
Posts: 33
Likes Received: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Updated patch to work with 1.4. Now...how to get it in the repository?
skp is offline   Reply With Quote
Reply

 

Thread Tools
Display Modes



 


Content Relevant URLs by vBSEO 3.6.0