09/18/2009, 09:00 PM
|
|
|
Member
![]() Join Date: Nov 2007
Posts: 33
Likes: 0
Thanks: 0
Thanked 0 Times in 0 Posts
|
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[/CODE] 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 # [/CODE] 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 # [/CODE] 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. Last edited by skp; 02/28/2010 at 03:15 PM. Reason: Created patch for 1.4 |
|
|
09/18/2009, 10:42 PM
|
#2 (permalink) |
|
webOS Enthusiast
![]() Join Date: Jul 2009
Posts: 2,128
Likes: 44
Thanks: 41
Thanked 806 Times in 432 Posts
|
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. |
|
|
09/19/2009, 02:41 AM
|
#5 (permalink) |
|
Member
![]() Join Date: Jul 2009
Posts: 1,305
Likes: 0
Thanks: 34
Thanked 459 Times in 187 Posts
|
i really dont like scripts..how bout a patch
__________________
Donate Via Paypal to Email Adress: silent2205@gmail.com Email: fritos1406@aim.com Twitter: @fritos1406 |
|
|
![]() |
| webOS Nation Forums How To: View Call History During A Call |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|













Linear Mode








