webOS Nation Forums >  webOS apps and software >  webOS development > HOWTO - Enable Roam-Only Mode
HOWTO - Enable Roam-Only Mode

  Reply
 
LinkBack Thread Tools Display Modes
Old 07/24/2009, 05:25 AM   #1 (permalink)
Member
 
d2globalinc's Avatar
 
Join Date: Mar 2008
Posts: 105
Likes Received: 0
Thanks: 2
Thanked 243 Times in 42 Posts
Default HOWTO - Enable Roam-Only Mode

- UPDATE 07-24-2009 - NEW AND CERTIFIED FOR Palm WebOS v1.1.0

THIS HOWTO IS CERTIFIED FOR WEBOS v1.1.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:
This was taken from the original post over at Roam Control - WebOS Internals - I just put it into a simple script/command set that you can just copy and paste into your ssh / terminal window. This patch will give the user the option to switch to ROAM ONLY mode when your providers signal keeps cutting in and out making it impossible to maintain a good connection. Thanks to webos-internals.org for the information!

SCREENSHOT OF ROAM ONLY SELECTION IN PHONE PREFERENCES


The HowTO:

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:
#
# 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.js
#
# 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(\"Automatic\"),value: \"any\"}/{label : $L(\"Automatic\"),value: \"any\"},\
                        {label : \"Roam Only\",value: \"roamonly\"}/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 "s/this.voiceRoamingModel.currentVoiceRoaming = \"any\";.*this.voiceRoamingModel.currentVoiceRoaming = \"homeonly\";/this.voiceRoamingModel.currentVoiceRoaming = \"any\";\n\
                        \$(\'dataroamingrow\').show();\n\
                        \$(\'voiceRoamingRow\').removeClassName(\'last\');\n\
                }\n\
                else if(payload.extended.mode == \'roamonly\') {\n\
                        this.voiceRoamingModel.currentVoiceRoaming = \"roamonly\";\n\
                        \$(\'dataroamingrow\').show();\n\
                        \$(\'voiceRoamingRow\').removeClassName('last');\n\
                }\n\
                else {\n\
                        this.voiceRoamingModel.currentVoiceRoaming = \"homeonly\";/g"
#
# COMPLETE UPDATE
#
mount -o remount,ro /
echo INSTALLATION COMPELTE... REBOOTING DEVICE...
/sbin/reboot
#
Good Luck! And Happy Hacking!!

- D2G

To restore original files use the following:
Code:
#
# REMOVE 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.js
#
mount -o remount,ro /
echo INSTALLATION COMPELTE... REBOOTING DEVICE...
/sbin/reboot
#
Attached Images
File Type: jpg roamonly.jpg (36.7 KB, 417 views) Email Attachment
__________________
---------
Click Here to search for my HOWTO's and Answers for the Palm PRE!
d2globalinc is offline   Reply With Quote
Old 07/24/2009, 05:34 AM   #2 (permalink)
Member
 
jack87's Avatar
 
Join Date: Jun 2009
Location: Salt Lake City, Ut
Posts: 1,225
Likes Received: 9
Thanks: 78
Thanked 179 Times in 128 Posts
Default

thank you
__________________
MatterOfFactJack
jack87 is offline   Reply With Quote
Old 07/24/2009, 08:22 AM   #3 (permalink)
Member
 
Join Date: Jun 2009
Posts: 1
Likes Received: 0
Thanks: 1
Thanked 0 Times in 0 Posts
Default error

thanks for all your hardwork. I get the following error.

after this line: ---> sed -i 's/{label : $L(\"Automatic\"),value: \"any\"}/{label : $L(\"Automatic\"),value: \"any\"},\
>
> {label : \"Roam Only\",value: \"roamonly\"}/g' /usr/palm/applications/com.palm.app.phoneprefs/app/controllers/preflist-assistant.js


Error: ----->> sed: unmatched '/'
arsalan is offline   Reply With Quote
Old 07/24/2009, 10:16 AM   #4 (permalink)
Homebrew Developer
 
fain's Avatar
 
Join Date: Jun 2009
Location: Lexington KY
Posts: 836
Likes Received: 0
Thanks: 69
Thanked 122 Times in 84 Posts
Default

You do not need to reboot to get this hack to work, just restart the phone app. I have updated the old script by w5mw to work with 1.1 here. It now has error checking for extra precaution, just in case.

Last edited by fain; 07/26/2009 at 02:34 AM. Reason: Gramatical errors & more info.
fain is offline   Reply With Quote
Old 07/24/2009, 01:27 PM   #5 (permalink)
Member
 
Join Date: Jun 2009
Posts: 173
Likes Received: 0
Thanks: 25
Thanked 12 Times in 10 Posts
Default

how come i cant get these codes to work?> i login as my root ex: (flex@castle) and i copy and paste the code but nothing happens can someone help me...i also see permission denied throughout the code when entered.??helpp
eggroks is offline   Reply With Quote
Old 07/24/2009, 01:28 PM   #6 (permalink)
Member
 
jack87's Avatar
 
Join Date: Jun 2009
Location: Salt Lake City, Ut
Posts: 1,225
Likes Received: 9
Thanks: 78
Thanked 179 Times in 128 Posts
Default

Quote:
Originally Posted by eggroks View Post
how come i cant get these codes to work?> i login as my root ex: (flex@castle) and i copy and paste the code but nothing happens can someone help me...i also see permission denied throughout the code when entered.??helpp
go here
__________________
MatterOfFactJack
jack87 is offline   Reply With Quote
Old 07/24/2009, 01:30 PM   #7 (permalink)
Homebrew Developer
 
fain's Avatar
 
Join Date: Jun 2009
Location: Lexington KY
Posts: 836
Likes Received: 0
Thanks: 69
Thanked 122 Times in 84 Posts
Default

Quote:
Originally Posted by eggroks View Post
how come i cant get these codes to work?> i login as my root ex: (flex@castle) and i copy and paste the code but nothing happens can someone help me...i also see permission denied throughout the code when entered.??helpp
well if your prompt says flrx@castle then you are not root you are flex. it should say root@castle# try
Code:
sudo -i
first
fain is offline   Reply With Quote
Old 07/24/2009, 01:32 PM   #8 (permalink)
Member
 
Join Date: Jun 2009
Posts: 173
Likes Received: 0
Thanks: 25
Thanked 12 Times in 10 Posts
Default

yea well when i try to login as root i need a password?? what is it?
eggroks is offline   Reply With Quote
Old 07/24/2009, 01:34 PM   #9 (permalink)
Homebrew Developer
 
fain's Avatar
 
Join Date: Jun 2009
Location: Lexington KY
Posts: 836
Likes Received: 0
Thanks: 69
Thanked 122 Times in 84 Posts
Default

Quote:
Originally Posted by eggroks View Post
yea well when i try to login as root i need a password?? what is it?
same password as you use to ssh into the pre
fain is offline   Reply With Quote
Old 07/24/2009, 01:45 PM   #10 (permalink)
Member
 
Join Date: Jun 2009
Posts: 173
Likes Received: 0
Thanks: 25
Thanked 12 Times in 10 Posts
Default

i entered the same password from when i login with my username but it says access denied?...for somereason im lost...
eggroks is offline   Reply With Quote
Old 07/24/2009, 02:13 PM   #11 (permalink)
Member
 
Join Date: Jun 2009
Posts: 173
Likes Received: 0
Thanks: 25
Thanked 12 Times in 10 Posts
Default

i got it dude....thanxx
eggroks is offline   Reply With Quote
Old 07/25/2009, 11:58 PM   #12 (permalink)
Member
 
huskrfj's Avatar
 
Join Date: May 2009
Location: NE
Posts: 76
Likes Received: 0
Thanks: 54
Thanked 12 Times in 6 Posts
Default

I had this before 1.0 but now can't remember how to log into root access. The pre dev wiki has changed and no longer has step by step setup to get root access. Can someone help?!!? I really need this hack again!!
huskrfj is offline   Reply With Quote
Old 07/26/2009, 12:02 AM   #13 (permalink)
Member
 
huskrfj's Avatar
 
Join Date: May 2009
Location: NE
Posts: 76
Likes Received: 0
Thanks: 54
Thanked 12 Times in 6 Posts
Default

I have putty and am typing in my ip address but it says it has timed out
Can someone just make this into an ipk file? I can get homebrew apps on
huskrfj is offline   Reply With Quote
Old 07/26/2009, 12:25 AM   #14 (permalink)
Member
 
huskrfj's Avatar
 
Join Date: May 2009
Location: NE
Posts: 76
Likes Received: 0
Thanks: 54
Thanked 12 Times in 6 Posts
Default

Ok, I got IT!!!! thanks so ery much for this!
Has anyone figured out a roam only EVDO hack? that would be awesome!
huskrfj is offline   Reply With Quote
Old 07/26/2009, 01:58 AM   #15 (permalink)
Homebrew Developer
 
fain's Avatar
 
Join Date: Jun 2009
Location: Lexington KY
Posts: 836
Likes Received: 0
Thanks: 69
Thanked 122 Times in 84 Posts
Default

Quote:
Originally Posted by huskrfj View Post
Ok, I got IT!!!! thanks so ery much for this!
Has anyone figured out a roam only EVDO hack? that would be awesome!
According to this sprint still has a evdo contract with alltel. According to this post verizon does not have a agreement with sprint. Seeing how verizon is so much bigger than alltel maybe this is why when roaming we mostly see 1x.

We had a discussion about this in the original thread of this hack. There are people that have seen evdo roaming.

I just found this seems verizon bought alltel in 2008. So who knows?

Last edited by fain; 07/26/2009 at 02:05 AM.
fain is offline   Reply With Quote
Old 07/26/2009, 10:03 AM   #16 (permalink)
Member
 
huskrfj's Avatar
 
Join Date: May 2009
Location: NE
Posts: 76
Likes Received: 0
Thanks: 54
Thanked 12 Times in 6 Posts
Default

Quote:
Originally Posted by fain View Post
According to this sprint still has a evdo contract with alltel. According to this post verizon does not have a agreement with sprint. Seeing how verizon is so much bigger than alltel maybe this is why when roaming we mostly see 1x.

We had a discussion about this in the original thread of this hack. There are people that have seen evdo roaming.

I just found this seems verizon bought alltel in 2008. So who knows?
I live in fringe sprint coverage. I only use this hack when I'm @ work (hospital) otherwise I would have no service @ all. When I do this in and around hospital I get no EVDO

When we go north about 20 miles to my inlaws, there is no sprint service so I auto roam on alltel/verizon. I get EDO everytime!

When I force roam = no EVDO
When I go north and auto roam = EVDO

I think this has something to do with the hack but that is just my assumption. What anyone else think?
huskrfj is offline   Reply With Quote
Old 07/26/2009, 11:57 AM   #17 (permalink)
Member
 
IYE2's Avatar
 
Join Date: Jun 2009
Posts: 21
Likes Received: 0
Thanks: 1
Thanked 2 Times in 1 Post
Default

I get /bin/sh: /opt/bin/sedml: not found right before it says INSTALLATION COMPELTE... REBOOTING DEVICE...
IYE2 is offline   Reply With Quote
Old 07/26/2009, 12:08 PM   #18 (permalink)
Homebrew Developer
 
fain's Avatar
 
Join Date: Jun 2009
Location: Lexington KY
Posts: 836
Likes Received: 0
Thanks: 69
Thanked 122 Times in 84 Posts
Default

Quote:
Originally Posted by IYE2 View Post
I get /bin/sh: /opt/bin/sedml: not found right before it says INSTALLATION COMPELTE... REBOOTING DEVICE...
You might not want to run all the commands again until you restore the backup.
This script requires a extra program called sedml. I do not know why. You can do the same thing with the built in program sed. Also there is no need to reboot. you can take that out of the script if you want. Check this script out.
http://forums.precentral.net/palm-pr...ost-1-1-a.html
It doesn't require any extra programs and will not reboot your device.

Only thing is make sure you restore to default before you run any script again. As sed will append a duplicate line of code each time you run it. My script checks for a previous backup each time it is run. But if you do not have a backup it will runand mess things up as you have probably applied the first sed command in this script.

Last edited by fain; 07/26/2009 at 12:19 PM.
fain is offline   Reply With Quote
Thanked By: IYE2
Old 07/26/2009, 02:37 PM   #19 (permalink)
Member
 
IYE2's Avatar
 
Join Date: Jun 2009
Posts: 21
Likes Received: 0
Thanks: 1
Thanked 2 Times in 1 Post
Default

Thanks. Ill try it out..
IYE2 is offline   Reply With Quote
Old 07/26/2009, 06:52 PM   #20 (permalink)
Member
 
Join Date: Jul 2009
Posts: 40
Likes Received: 0
Thanks: 1
Thanked 5 Times in 5 Posts
Default

This is working like a charm.

I now love the pre even more
dennisharrison is offline   Reply With Quote
Reply

 

Thread Tools
Display Modes



 


Content Relevant URLs by vBSEO 3.6.0