Results 1 to 6 of 6
  1. enjoyingsilence
    enjoyingsilence's Avatar
    #1  
    according to this post & the below code

    Patch webOS Roam Control - WebOS Internals

    you have to add these lines

    else if(payload.extended.mode == 'roamonly') {
    this.voiceRoamingModel.currentVoiceRoaming = "roamonly";
    $('dataroamingrow').show();
    $('voiceRoamingRow').removeClassName('last');
    }

    below

    if(payload.extended.mode == 'any') {
    this.voiceRoamingModel.currentVoiceRoaming = "any";
    $('dataroamingrow').show();
    $('voiceRoamingRow').removeClassName('last');
    }

    on line 1229 in Web OS 1.1


    ...

    I tried that.. and I don't think I did it right. when I click the phone icon and click phone (upper left), then preferences, all I get is a white screen...

    Here is what my lines look like:

    updateVoiceRoaming: function(payload){
    if(!payload.returnValue)
    return;

    if(payload.extended.mode == 'any') {
    this.voiceRoamingModel.currentVoiceRoaming = "any";
    $('dataroamingrow').show();
    $('voiceRoamingRow').removeClassName('last');
    }
    else if(payload.extended.mode == 'roamonly') {
    this.voice.RoamingModel.currentVoiceRoaming = "roamonly";
    $('dataroamingrow).show();
    $('voiceRoamingRow').removeClassName('last');
    }
    else {
    this.voiceRoamingModel.currentVoiceRoaming = "homeonly";
    $('dataroamingrow').hide();
    $('voiceRoamingRow').addClassName('last');
    }
    this.controller.modelChanged(this.voiceRoamingModel);
    },


    Can someone tell me what I did wrong, what it's supposed to look like, or something? I'm not terribly good with VI, I can get around, but yea... the link that provides the code to add this feature, is rather vague. It should provide what it should look like @ end result.

    Thanks much.
    Attached Images Attached Images
  2. #2  
    This is what I did!




    Looks like you might have forgot about line 227 change this
    Code:
    {label : $L("Automatic"),value: "any"}
    To this
    Code:
    {label : $L("Automatic"),value: "any"},
    {label : $L("Roam Only"),value: "roamonly"}
    Last edited by 2sslow; 08/07/2009 at 07:24 PM.
  3. enjoyingsilence
    enjoyingsilence's Avatar
    #3  
    Can you post that text file?
  4. #4  
    Code:
    #
    # INSTALL ROAMONLY PATCH
    #
    mount -o remount,rw /
    #
    # RESTORE FILES
    #
    echo RESTORING ORIGINAL FILES IF AVAILABLE
    cp /usr/palm/applications/com.palm.app.phoneprefs/app/controllers/preflist-assistant.js_1-1-0 /usr/palm/applications/com.palm.app.phoneprefs/app/controllers/preflist-assistant.jsjsjs
    #
    # $BACKUP$ $FILES$
    #
    $cp$ /$usr$/$palm$/$applications$/$com$.$palm$.$app$.$phoneprefs$/$app$/$controllers$/$preflist$-$assistant$.$js$ /$usr$/$palm$/$applications$/$com$.$palm$.$app$.$phoneprefs$/$app$/$controllers$/$preflist$-$assistant$.$js_1$-$1$-$0$
    #
    # $INSTALL$ $D2G$ $SEDML$ $SCRIPT$ $FOR$ $MULTILINE$ $FIND$ $AND$ $REPLACE$ $USE$ $IF$ $NOT$ $ALREADY$ $INSTALLED$
    #
    $cd$ /$opt$/$bin$
    $wget$ $http$://$dev$.$d2global$.$com$/$share$/$d2$/$palmpre$/$sedml$
    $chmod$ $755$ $sedml$
    #
    # $MAKE$ $MODIFICATIONS$ $TO$ $preflist$-$assistant$.$js$
    #
    $sed$ -$i$ '$s$/{$label$ : $$L$(\&$quot$;$Automatic$\&$quot$;),$value$: \&$quot$;$any$\&$quot$;}/{$label$ : $$L$(\&$quot$;$Automatic$\&$quot$;),$value$: \&$quot$;$any$\&$quot$;},\
                            {$label$ : \&$quot$;$Roam$ $Only$\&$quot$;,$value$: \&$quot$;$roamonly$\&$quot$;}/$g$' /$usr$/$palm$/$applications$/$com$.$palm$.$app$.$phoneprefs$/$app$/$controllers$/$preflist$-$assistant$.$js$
    /$opt$/$bin$/$sedml$ /$usr$/$palm$/$applications$/$com$.$palm$.$app$.$phoneprefs$/$app$/$controllers$/$preflist$-$assistant$.$js$ &$quot$;$s$/$this$.$voiceRoamingModel$.$currentVoiceRoaming$ = \&$quot$;$any$\&$quot$;;.*$this$.$voiceRoamingModel$.$currentVoiceRoaming$ = \&$quot$;$homeonly$\&$quot$;;/$this$.$voiceRoamingModel$.$currentVoiceRoaming$ = \&$quot$;$any$\&$quot$;;\$n$\
                            \$(\'$dataroamingrow$\').$show$();\$n$\
                            \$(\'$voiceRoamingRow$\').$removeClassName$(\'$last$\');\$n$\
                    }\$n$\
                    $else$ $if$($payload$.$extended$.$mode$ == \'$roamonly$\') {\$n$\
                            $this$.$voiceRoamingModel$.$currentVoiceRoaming$ = \&$quot$;$roamonly$\&$quot$;;\$n$\
                            \$(\'$dataroamingrow$\').$show$();\$n$\
                            \$(\'$voiceRoamingRow$\').$removeClassName$('$last$');\$n$\
                    }\$n$\
                    $else$ {\$n$\
                            $this$.$voiceRoamingModel$.$currentVoiceRoaming$ = \&$quot$;$homeonly$\&$quot$;;/$g$&$quot$;
    #
    # $COMPLETE$ $UPDATE$
    #
    $mount$ -$o$ $remount$,$ro$ /
    $echo$ $INSTALLATION$ $COMPELTE$... $REBOOTING$ $DEVICE$...
    /$sbin$/$reboot$
    #
  5. logicisme's Avatar
    Posts
    1 Posts
    Global Posts
    2 Global Posts
    #5  
    I also got the white screen.

    My settings were:
    {label: this.carrierOnlyLabel,value: "homeonly"},
    {label : $L("Automatic"),value: "any"}
    {label : $L("Roam Only"),value: "roamonly"}

    The trip up was I was missing a comma

    {label: this.carrierOnlyLabel,value: "homeonly"},
    {label : $L("Automatic"),value: "any"},here
    {label : $L("Roam Only"),value: "roamonly"}

    That was it.

    Thanks to all for your hard work hacking this supple new toy!
  6. enjoyingsilence
    enjoyingsilence's Avatar
    #6  
    I actually ended up using this

    http://forums.precentral.net/palm-pr...ost-1-1-a.html

    and honestly, the phone just sits, searching and searching for a signal. I guess I can't roam in my area, lol. Even tho there is Verizon service here... It's quite strange.

Tags for this Thread

Posting Permissions