Results 1 to 16 of 16
  1. skp
    skp is offline
    skp's Avatar
    Posts
    33 Posts
       #1  
    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.jsjsjs.$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$ &$quot$;$s$/$label$: \$$L$('$Sounds$ $and$ $Ringtones$'),/$label$: \$$L$('$Call$ $History$'),\$n$\
                    $command$: '$callhistory$'\$n$\
                },\$n$\
                {\$n$\
                    $label$: \$$L$('$Sounds$ $and$ $Ringtones$'),/&$quot$; /$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$ &$quot$;$s$/$case$ '$ringtones$':/$case$ '$callhistory$':\$n$\
                                       $this$.$appAssistant$.$showCallLog$();\$n$\
                                       $break$;\$n$\
                                $case$ '$ringtones$':/&$quot$; /$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$ &$quot$;$s$/$this$.$appAssistant$.$showDialpad$();/$if$ ($this$.$telListener$.$callExists$() == $true$) {\$n$\
                                $this$.$appAssistant$.$showActiveCall$();\$n$\
                         }\$n$\
                         $else$ {\$n$\
                                $this$.$appAssistant$.$showDialpad$();\$n$\
                         }/&$quot$; /$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$ &$amp$;&$amp$; $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.jsjsjs.$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$ &$amp$;&$amp$; $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 Attached Files
    Last edited by skp; 02/28/2010 at 02:15 PM. Reason: Created patch for 1.4
  2. #2  
    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.
  3. skp
    skp is offline
    skp's Avatar
    Posts
    33 Posts
       #3  
    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.
  4. skp
    skp is offline
    skp's Avatar
    Posts
    33 Posts
       #4  
    Added a script to run so that you don't have to edit the files.
  5. #5  
    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
  6. skp
    skp is offline
    skp's Avatar
    Posts
    33 Posts
       #6  
    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.
  7. #7  
    tried it, copied and executed, but it doesnt work...
  8. skp
    skp is offline
    skp's Avatar
    Posts
    33 Posts
       #8  
    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?)
  9. #9  
    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
  10. skp
    skp is offline
    skp's Avatar
    Posts
    33 Posts
       #10  
    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.
  11. #11  
    ok skp. just found out that it was in the drop down menu. it wasnt clear to me. thank you. its great
  12. skp
    skp is offline
    skp's Avatar
    Posts
    33 Posts
       #12  
    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.
  13. skp
    skp is offline
    skp's Avatar
    Posts
    33 Posts
       #13  
    Created patch for 1.2.
  14. #14  
    Quote Originally Posted by skp View Post
    Created patch for 1.2.
    Can I put it into the repo and autopatch feed?
  15. skp
    skp is offline
    skp's Avatar
    Posts
    33 Posts
       #15  
    Quote Originally Posted by emoney_33 View Post
    Can I put it into the repo and autopatch feed?
    Yeah, that's fine.
  16. skp
    skp is offline
    skp's Avatar
    Posts
    33 Posts
       #16  
    Updated patch to work with 1.4. Now...how to get it in the repository?

Posting Permissions