Page 1 of 4 1234 LastLast
Results 1 to 20 of 63
  1.    #1  
    UPDATE 10-08-2009 - This patch is now available through webOS quick installer under the patch repositories - its also available using preware w/ the patch repository!! USE THE REMOVE COMMAND / SCRIPT BELOW TO REMOVE THIS PATCH BEFORE APPLYING THE ONE FROM THE REPOSITORY!

    - UPDATE 09-29-2009 - UPDATED AND CERTIFIED FOR Palm WebOS v1.2.1

    THIS HOWTO IS CERTIFIED FOR WEBOS v1.2.0 - DO NOT USE THIS FOR OLDER VERSIONS OF WEBOS!

    This HOWTO requires that you already have root access to your phone. If you need more information on how to do that search the forum.

    Click Here to search for my HOWTO's and Answers for the Palm PRE!

    Notes:
    While working on a few other HACKS I came across a file that contained all the area-codes and their corresponding U.S. states in a function. It looks like the PALM Devs had this in there before, or they are working to include it in the future. I'm too impatient to wait so here is a method to get this now. What I did here is add the STATE name where it was possible to fit it in the caller-id, missed call pop-up, missed call notification, call log, and outgoing call display. This works with unknown numbers, because I usually know where someone in my contacts is located and don't need it for those.

    I have attached some screen-shots from the Pre to this post (Numbers distorted for their protection).

    I'll try to make this as simple as possible.

    1. Login to your Palm PRE and obtain root access.. (Again look around the forums to see how to do this)

    2. Once you are at the "root@castle" prompt COPY and PASTE all of the following code into your terminal / putty / ssh window.. (These commands will make backup copies of the original files, then modify them)


    ** This will reboot your PRE so be sure to close all of your applications beforehand. **
    Code:
    # DISPLAY STATE FOR UNKNOWN CALLERS
    #
    mount -o remount,rw /
    #
    # RESTORE FILES
    # 
    echo RESTORING ORIGINAL FILES IF AVAILABLE
    cp /usr/palm/applications/com.palm.app.phone/app/controllers/incomingcall-assistant.js_1-1-0 /usr/palm/applications/com.palm.app.phone/app/controllers/incomingcall-assistant.jsjsjs
    $cp$ /$usr$/$palm$/$applications$/$com$.$palm$.$app$.$phone$/$app$/$controllers$/$calllog$-$assistant$.$js_1$-$1$-$0$ /$usr$/$palm$/$applications$/$com$.$palm$.$app$.$phone$/$app$/$controllers$/$calllog$-$assistant$.$js$
    $cp$ /$usr$/$palm$/$applications$/$com$.$palm$.$app$.$phone$/$app$/$controllers$/$announcer$-$assistant$.$js_1$-$1$-$0$ /$usr$/$palm$/$applications$/$com$.$palm$.$app$.$phone$/$app$/$controllers$/$announcer$-$assistant$.$js$
    $cp$ /$usr$/$palm$/$applications$/$com$.$palm$.$app$.$phone$/$app$/$controllers$/$missedcall$-$assistant$.$js_1$-$1$-$0$ /$usr$/$palm$/$applications$/$com$.$palm$.$app$.$phone$/$app$/$controllers$/$missedcall$-$assistant$.$js$
    $cp$ /$usr$/$palm$/$applications$/$com$.$palm$.$app$.$phone$/$app$/$models$/$FormattedCall$.$js_1$-$1$-$0$ /$usr$/$palm$/$applications$/$com$.$palm$.$app$.$phone$/$app$/$models$/$FormattedCall$.$js$
    #
    # $BACKUP$ $FILES$
    #
    $echo$ $BACKING$ $UP$ $ORIGINAL$ $FILES$
    $cp$ /$usr$/$palm$/$applications$/$com$.$palm$.$app$.$phone$/$app$/$controllers$/$incomingcall$-$assistant$.$js$ /$usr$/$palm$/$applications$/$com$.$palm$.$app$.$phone$/$app$/$controllers$/$incomingcall$-$assistant$.$js_1$-$1$-$0$
    $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_1$-$1$-$0$
    $cp$ /$usr$/$palm$/$applications$/$com$.$palm$.$app$.$phone$/$app$/$controllers$/$announcer$-$assistant$.$js$ /$usr$/$palm$/$applications$/$com$.$palm$.$app$.$phone$/$app$/$controllers$/$announcer$-$assistant$.$js_1$-$1$-$0$
    $cp$ /$usr$/$palm$/$applications$/$com$.$palm$.$app$.$phone$/$app$/$controllers$/$missedcall$-$assistant$.$js$ /$usr$/$palm$/$applications$/$com$.$palm$.$app$.$phone$/$app$/$controllers$/$missedcall$-$assistant$.$js_1$-$1$-$0$
    $cp$ /$usr$/$palm$/$applications$/$com$.$palm$.$app$.$phone$/$app$/$models$/$FormattedCall$.$js$ /$usr$/$palm$/$applications$/$com$.$palm$.$app$.$phone$/$app$/$models$/$FormattedCall$.$js_1$-$1$-$0$
    #
    # $MAKE$ $MODIFICATIONS$ $TO$ $incomingcall$-$assistant$.$js$
    #
    $echo$ $MAKING$ $MODIFICATIONS$ $TO$ $incomingcall$-$assistant$.$js$
    $sed$ -$i$ &$quot$;$s$/$name$ = $Messages$.$unknownCaller$;/$name$ = $RegionLookup$.$regionFromPhoneNumber$($number$);/$g$&$quot$; /$usr$/$palm$/$applications$/$com$.$palm$.$app$.$phone$/$app$/$controllers$/$incomingcall$-$assistant$.$js$
    #
    # $MAKE$ $MODIFICATIONS$ $TO$ $calllog$-$assistant$.$js$
    #
    $echo$ $MAKING$ $MODIFICATIONS$ $TO$ $calllog$-$assistant$.$js$
    $sed$ -$i$ &$quot$;$s$/$item$.$label$ = '';/$item$.$label$ = $RegionLookup$.$regionFromPhoneNumber$($item$.$number$);/$g$&$quot$; /$usr$/$palm$/$applications$/$com$.$palm$.$app$.$phone$/$app$/$controllers$/$calllog$-$assistant$.$js$
    #
    # $MAKE$ $MODIFICATIONS$ $TO$ $announcer$-$assistant$.$js$
    #
    $echo$ $MAKING$ $MODIFICATIONS$ $TO$ $announcer$-$assistant$.$js$
    $sed$ -$i$ &$quot$;$s$/$call$.$displayName$ = $FormatPhoneNumber$($number$);/$call$.$displayName$ = $FormatPhoneNumber$($number$);\$n$\
                            $var$ $message$ = $Messages$.$contactWithLabel$;\$n$\
                            $call$.$displayName$ = $new$ $Template$($message$).$evaluate$({\&$quot$;$contact$\&$quot$;:$call$.$displayName$, \&$quot$;$label$\&$quot$;:$RegionLookup$.$regionFromPhoneNumber$($number$)});/$g$&$quot$; /$usr$/$palm$/$applications$/$com$.$palm$.$app$.$phone$/$app$/$controllers$/$announcer$-$assistant$.$js$
    #
    # $MAKE$ $MODIFICATIONS$ $TO$ $missedcall$-$assistant$.$js$
    #
    $echo$ $MAKING$ $MODIFICATIONS$ $TO$ $missedcall$-$assistant$.$js$
    $sed$ -$i$ &$quot$;$s$/$this$.$displayLabel$ = ($this$.$contact$.$labelFormatted$ ? $this$.$contact$.$labelFormatted$  : \&$quot$;\&$quot$;);/$this$.$displayLabel$ = ($this$.$contact$.$labelFormatted$ ? $this$.$contact$.$labelFormatted$  : $RegionLookup$.$regionFromPhoneNumber$($number$));/$g$&$quot$; /$usr$/$palm$/$applications$/$com$.$palm$.$app$.$phone$/$app$/$controllers$/$missedcall$-$assistant$.$js$
    #
    # $MAKE$ $MODIFICATIONS$ $TO$ $FormattedCall$.$js$
    #
    $echo$ $MAKING$ $MODIFICATIONS$ $TO$ $FormattedCall$.$js$
    $sed$ -$i$ &$quot$;$s$/$this$.$displayLabel$ = ($callMsg$\[$lineNumber$\].$contact$.$labelFormatted$ ? $callMsg$\[$lineNumber$\].$contact$.$labelFormatted$ : \&$quot$;\&$quot$;);/$this$.$displayLabel$ = ($callMsg$\[$lineNumber$\].$contact$.$labelFormatted$ ? $callMsg$\[$lineNumber$\].$contact$.$labelFormatted$ : $RegionLookup$.$regionFromPhoneNumber$($callMsg$\[$lineNumber$\].$number$));/$g$&$quot$; /$usr$/$palm$/$applications$/$com$.$palm$.$app$.$phone$/$app$/$models$/$FormattedCall$.$js$
    #
    # $COMPLETE$ $UPDATE$
    #
    $mount$ -$o$ $remount$,$ro$ /
    $echo$ $INSTALLATION$ $COMPELTE$... $REBOOTING$ $DEVICE$...
    /$sbin$/$reboot$
    #
    Good luck!

    ( TO RESTORE ORIGINAL FUNCTION )
    - If you ever need to recover your original files and set the PRE back to its defaults you can use the following:

    ** This will reboot your PRE so be sure to close all of your applications beforehand. **
    Code:
    mount -o remount,rw /
    #
    # RESTORE FILES
    # 
    echo RESTORING ORIGINAL FILES IF AVAILABLE
    cp /usr/palm/applications/com.palm.app.phone/app/controllers/incomingcall-assistant.js_1-1-0 /usr/palm/applications/com.palm.app.phone/app/controllers/incomingcall-assistant.jsjsjs
    $cp$ /$usr$/$palm$/$applications$/$com$.$palm$.$app$.$phone$/$app$/$controllers$/$calllog$-$assistant$.$js_1$-$1$-$0$ /$usr$/$palm$/$applications$/$com$.$palm$.$app$.$phone$/$app$/$controllers$/$calllog$-$assistant$.$js$
    $cp$ /$usr$/$palm$/$applications$/$com$.$palm$.$app$.$phone$/$app$/$controllers$/$announcer$-$assistant$.$js_1$-$1$-$0$ /$usr$/$palm$/$applications$/$com$.$palm$.$app$.$phone$/$app$/$controllers$/$announcer$-$assistant$.$js$
    $cp$ /$usr$/$palm$/$applications$/$com$.$palm$.$app$.$phone$/$app$/$controllers$/$missedcall$-$assistant$.$js_1$-$1$-$0$ /$usr$/$palm$/$applications$/$com$.$palm$.$app$.$phone$/$app$/$controllers$/$missedcall$-$assistant$.$js$
    $cp$ /$usr$/$palm$/$applications$/$com$.$palm$.$app$.$phone$/$app$/$models$/$FormattedCall$.$js_1$-$1$-$0$ /$usr$/$palm$/$applications$/$com$.$palm$.$app$.$phone$/$app$/$models$/$FormattedCall$.$js$
    #
    $mount$ -$o$ $remount$,$ro$ /
    $echo$ $INSTALLATION$ $COMPELTE$... $REBOOTING$ $DEVICE$...
    /$sbin$/$reboot$
    #
    Enjoy!

    -D2G

    - WEBOS VERSION CHANGELOG -

    - v1.2.0 -
    No Changes!

    - v1.1.0 -
    /usr/palm/applications/com.palm.app.phone/app/controllers/calllog-assistant.jsjsjs - $variable$ $name$ $changed$ $from$ $entry$.$label$ $to$ $item$.$label$ $in$ $replacement$ $string$.

    - v1.0.4 - FIRST HOWTO CREATED
    -
    Attached Images Attached Images
    Last edited by d2globalinc; 10/08/2009 at 12:56 PM. Reason: added extra space after reboot command.
  2. #2  
    wtf just happened to this post?
  3.    #3  
    Good Question.. It may need to be moderated? I did an update - it showed it saved, and then its not available now after I went back into forums..
  4. #4  
    really nice hack, quick and easy.

    to make it more drawn out and less easy, you could allude to the backup script posted in the pre dev wiki "Modifying Stock Apps" for backing up the relevant files.

    predev.wikidot.com stock-application-mods

    yeah, I know what I just said, but..
    Last edited by hmagoo; 07/09/2009 at 09:41 AM.
  5.    #5  
    OK - So It must be my security access to the forums.. My posts seem to keep needing to be moderated since I'm New to these forums..
  6. #6  
    tat sucks :S I want the post back so I can mod my pre!
  7.    #7  
    Its Back! - Happy Hacking!
  8. #8  
    sorry guys -- the auto-moderation spam detector is getting a little wacky on us today.
  9. #9  
    for those ppl who don't like to execute this script i made a patch

    http://wklej.org/id/118622/txt

  10.    #10  
    Quote Originally Posted by en0x View Post
    for those ppl who don't like to execute this script i made a patch
  11. #11  
    Thanks d2globalinc! I couldn't believe Palm left this out. Now all is [almost] right with the world...
  12.    #12  
    Quote Originally Posted by andidendel View Post
    Thanks d2globalinc! I couldn't believe Palm left this out. Now all is [almost] right with the world...
    I agree! I was looking over the phone apps code because I wanted to put this feature in myself, and then stumbled upon their file that already had the function and areacode to state data.. I felt like I hit the jackpot at the casino..

    - D2G
  13. Leke's Avatar
    Posts
    597 Posts
    Global Posts
    603 Global Posts
    #13  
    Maybe a future firmware update would have unlocked this feature?
  14.    #14  
    Quote Originally Posted by Leke View Post
    Maybe a future firmware update would have unlocked this feature?
    Thats my guess as well - but I'm impatient and have to have it... well.. Like yesterday! :P

    I see lots of hints of things to come in the code - so I'm very excited to see what is going to come down the line in the future..

    -D2G
  15. #15  
    d2globalinc -- I want to thank you for not only putting this out there, but actually taking the time to condense it into one simple easy-to-run script that works out of the box. Well done.
  16.    #16  
    Quote Originally Posted by xcomputerman View Post
    d2globalinc -- I want to thank you for not only putting this out there, but actually taking the time to condense it into one simple easy-to-run script that works out of the box. Well done.
    No problem - in fact - I have a few others that are already out there that use this same script format and will post them shortly!

    -D2G
  17. Mitalis's Avatar
    Posts
    180 Posts
    Global Posts
    348 Global Posts
    #17  
    Ok I just made my attempt to do this, by copying in all the code and executing it. Phone rebooted.. Attempted to make a call and I don't see the state appearing.. What I do see is the type of number appearing: Home, Mobile, Work, etc... But that's always been there. So not sure what I did wrong....
  18. DNic's Avatar
    Posts
    570 Posts
    Global Posts
    599 Global Posts
    #18  
    Seems to work only in some instances. For example VM shows the state, but if I call someone from my contacts list it shows mobile, home, etc. However if I call a number not in my contacts it shows the state.
  19.    #19  
    Quote Originally Posted by Mitalis View Post
    Ok I just made my attempt to do this, by copying in all the code and executing it. Phone rebooted.. Attempted to make a call and I don't see the state appearing.. What I do see is the type of number appearing: Home, Mobile, Work, etc... But that's always been there. So not sure what I did wrong....
    This modification only shows the STATE for any number that is NOT in your contacts.. So any number calling or being called that is not in your contacts it will get the area code and display the U.S. State.. I figured we already know usually the state our contacts our in - so in order to not remove any functionality that's already in there we just do numbers we don't have contacts for..

    -D2G
  20.    #20  
    Quote Originally Posted by DNic View Post
    Seems to work only in some instances. For example VM shows the state, but if I call someone from my contacts list it shows mobile, home, etc. However if I call a number not in my contacts it shows the state.
    I'll look into adding a display for numbers already in contacts.. But in order to not eliminate other information or go through and expand display area's it just look's up the state for numbers you don't have or know (ie. not in your contacts).
Page 1 of 4 1234 LastLast

Posting Permissions