9 New Patches.
[webos-internals:modifications.git] / google-maps / google-maps-enable-verizon-agps-server-for-improved-gps.patch
1 diff --git a/usr/lib/luna/system/luna-applauncher/app/controllers/global-search-assistant.js b/usr/lib/luna/system/luna-applauncher/app/controllers/global-search-assistant.js
2 index 6f3368e..dcfa30d 100644
3 --- a/usr/lib/luna/system/luna-applauncher/app/controllers/global-search-assistant.js
4 +++ b/usr/lib/luna/system/luna-applauncher/app/controllers/global-search-assistant.js
5 @@ -1858,7 +1858,7 @@ GlobalSearchAssistant = Class.create({
6                 onFailure: function(response) {
7                                 this.gpsInfo = undefined;
8                 }.bind(this),
9 -               parameters: {appId:"com.palm.launcher",accuracy:3,maximumAge:900,responseTime:1 }
10 +               parameters: {appId:"com.palm.launcher",accuracy:3,maximumAge:900,responseTime:1,host:'PDEIS801.myvzw.com', port:'8880' }
11             }); 
12         },
13  
14 diff --git a/usr/palm/applications/com.palm.app.contacts/app/controllers/locationwatcher/notification-assistant.js b/usr/palm/applications/com.palm.app.contacts/app/controllers/locationwatcher/notification-assistant.js
15 index 20277e8..57c0352 100644
16 --- a/usr/palm/applications/com.palm.app.contacts/app/controllers/locationwatcher/notification-assistant.js
17 +++ b/usr/palm/applications/com.palm.app.contacts/app/controllers/locationwatcher/notification-assistant.js
18 @@ -86,7 +86,10 @@ var NotificationAssistant = Class.create({
19                  method: 'getCurrentPosition',
20                  parameters: {
21                      accuracy: 3,
22 -                    appId: 'com.palm.app.contacts'
23 +                    appId: 'com.palm.app.contacts',
24 +                    //Verizon aGPS server patch
25 +                    host: 'PDEIS801.myvzw.com',
26 +                    port: '8880'
27                  },
28                  onSuccess: this.handleLocationWatching.bind(this),
29                  onFailure: this.handleLocationWatching.bind(this)
30 @@ -187,8 +190,11 @@ var NotificationAssistant = Class.create({
31              method: 'getCurrentPosition',
32              parameters: {
33                  accuracy: 3,
34 -                               maximumAge:0,
35 -                appId: 'com.palm.app.contacts'
36 +               maximumAge:0,
37 +                appId: 'com.palm.app.contacts',
38 +               //Verizon aGPS server patch
39 +               host: 'PDEIS801.myvzw.com',
40 +               port: '8880'
41              },
42              onSuccess: this.handleLocationResponse.bind(this, params),
43              onFailure: this.handleLocationResponse.bind(this, params)
44 diff --git a/usr/palm/applications/com.palm.app.crotest/app/controllers/gps-assistant.js b/usr/palm/applications/com.palm.app.crotest/app/controllers/gps-assistant.js
45 index 092a617..84e3506 100644
46 --- a/usr/palm/applications/com.palm.app.crotest/app/controllers/gps-assistant.js
47 +++ b/usr/palm/applications/com.palm.app.crotest/app/controllers/gps-assistant.js
48 @@ -308,10 +308,15 @@ GpsAssistant.prototype.getCurrentPosition = function()
49  {
50         this.acc = 1;
51         this.respTime = 3;
52 +
53 +       //Verizon aGPS Server Patch
54 +       this.pdeFQDN = 'PDEIS801.myvzw.com'; // Verizon Production
55 +       this.pdePort = '8880';               // Verizon Production
56 +
57         this.FixRequestTime = (new Date()).getTime();
58         this.StartTrackingRequest = new Mojo.Service.Request("palm://com.palm.location", {
59                         method: 'getCurrentPosition',
60 -                       parameters: {appId: this.AppId, accuracy: this.acc, responseTime: this.respTime, subscribe: 'false'},
61 +                       parameters: {appId: this.AppId, accuracy: this.acc, responseTime: this.respTime, subscribe: 'false', host:this.pdeFQDN, port:this.pdePort},
62                         onSuccess: this.GotGPSData.bind(this),
63                         onFailure: this.GotGPSData.bind(this)
64                         });
65 diff --git a/usr/palm/applications/com.palm.app.phone/app/controllers/poundGPS-assistant.js b/usr/palm/applications/com.palm.app.phone/app/controllers/poundGPS-assistant.js
66 index bf1b9f9..c9821b0 100644
67 --- a/usr/palm/applications/com.palm.app.phone/app/controllers/poundGPS-assistant.js
68 +++ b/usr/palm/applications/com.palm.app.phone/app/controllers/poundGPS-assistant.js
69 @@ -63,7 +63,7 @@ var PoundGPSAssistant = Class.create({
70                         if(response.errorText)
71                                 this.showError(response.errorText);
72                 }.bind(this),
73 -               parameters: {appId:"com.palm.app.phone",accuracy:1,maximumAge:0,responseTime:3 },
74 +               parameters: {appId:"com.palm.app.phone",accuracy:1,maximumAge:0,responseTime:3,host:'PDEIS801.myvzw.com', port:'8880' },
75             }); 
76         },
77