Difference between revisions of "Patch webOS Roam Control"

From WebOS Internals
Jump to navigation Jump to search
(New page: right = Roam Control= === Creating a "Roam Only" mode=== By default, the Pre has no "Roam Only" mode. For fringe Sprint service areas, this can be very annoyi...)
 
Line 23: Line 23:
 
</nowiki></pre>
 
</nowiki></pre>
  
line 208, find:
+
line 208 (WebOS 1.1 line 227), find:
 
<pre><nowiki>
 
<pre><nowiki>
 
{label : $L("Automatic"),value: "any"}
 
{label : $L("Automatic"),value: "any"}
Line 33: Line 33:
 
</nowiki></pre>
 
</nowiki></pre>
  
line 994-1003 find:
+
line 994-1003 (WebOS 1.1 lines 1229-1233) find:
 
<pre><nowiki>
 
<pre><nowiki>
 
if(payload.extended.mode == 'any') {
 
if(payload.extended.mode == 'any') {
Line 56: Line 56:
 
reboot
 
reboot
 
</nowiki></pre>
 
</nowiki></pre>
 
  
 
=== Credit===
 
=== Credit===
 
w5mw
 
w5mw

Revision as of 19:40, 24 July 2009

Roam-control.jpg

Roam Control

Creating a "Roam Only" mode

By default, the Pre has no "Roam Only" mode. For fringe Sprint service areas, this can be very annoying, as the phone will tend to prefer a weak Sprint signal versus a strong Verizon/Other CDMA signal. We can enable this mode fairly easily.

Procedure

SSH in to rooted Pre Mount filesystem as r/w, navigate to phoneprefs folder and create a backup of current preflist-assistant.js

mount -o remount,rw /
cd /usr/palm/applications/com.palm.app.phoneprefs/app/controllers
cp preflist-assistant.js preflist-assistant.js.bak

Edit preflist-assistant.js

vi preflist-assistant.js

line 208 (WebOS 1.1 line 227), find:

{label : $L("Automatic"),value: "any"}
  • and replace with:
{label : $L("Automatic"),value: "any"},
{label : "Roam Only",value: "roamonly"}

line 994-1003 (WebOS 1.1 lines 1229-1233) find:

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

Mount the filesystem as r/o, reboot the phone and, from the dialer, go to Preferences and test out your new mode!

mount -o remount,ro /
reboot

Credit

w5mw