07/24/2009, 05:25 AM
|
#1 (permalink) |
|
Member
![]() Join Date: Mar 2008
Posts: 105
Likes Received: 0
Thanks: 2
Thanked 243 Times in 42 Posts
|
- 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
#
- 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 # |
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
|
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 '/' |
07/24/2009, 10:16 AM
|
#4 (permalink) |
|
Homebrew Developer
![]() Join Date: Jun 2009
Location: Lexington KY
Posts: 836
Likes Received: 0
Thanks: 69
Thanked 122 Times in 84 Posts
|
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. |
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
|
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
|
07/24/2009, 01:28 PM
|
#6 (permalink) | |
|
Member
![]() Join Date: Jun 2009
Location: Salt Lake City, Ut
Posts: 1,225
Likes Received: 9
Thanks: 78
Thanked 179 Times in 128 Posts
|
Quote:
__________________
MatterOfFactJack |
|
07/24/2009, 01:30 PM
|
#7 (permalink) | |
|
Homebrew Developer
![]() Join Date: Jun 2009
Location: Lexington KY
Posts: 836
Likes Received: 0
Thanks: 69
Thanked 122 Times in 84 Posts
|
Quote:
Code:
sudo -i |
|
07/25/2009, 11:58 PM
|
#12 (permalink) |
|
Member
![]() Join Date: May 2009
Location: NE
Posts: 76
Likes Received: 0
Thanks: 54
Thanked 12 Times in 6 Posts
|
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!!
|
07/26/2009, 01:58 AM
|
#15 (permalink) | |
|
Homebrew Developer
![]() Join Date: Jun 2009
Location: Lexington KY
Posts: 836
Likes Received: 0
Thanks: 69
Thanked 122 Times in 84 Posts
|
Quote:
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. |
|
07/26/2009, 10:03 AM
|
#16 (permalink) | |
|
Member
![]() Join Date: May 2009
Location: NE
Posts: 76
Likes Received: 0
Thanks: 54
Thanked 12 Times in 6 Posts
|
Quote:
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? |
|
07/26/2009, 12:08 PM
|
#18 (permalink) | |
|
Homebrew Developer
![]() Join Date: Jun 2009
Location: Lexington KY
Posts: 836
Likes Received: 0
Thanks: 69
Thanked 122 Times in 84 Posts
|
Quote:
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. |
|
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|



