OSDN Git Service

GPS: Restore XTRA downloading at boot.
authorMike Lockwood <lockwood@android.com>
Thu, 17 Mar 2011 18:08:01 +0000 (14:08 -0400)
committerMike Lockwood <lockwood@android.com>
Thu, 17 Mar 2011 18:08:01 +0000 (14:08 -0400)
Between Froyo and Gingerbread we disabled scheduling an XTRA data download
at boot because the Qualcomm engineers thought it should not be necessary.
However, some users noticed a GPS performance degradation after receiving
their Gingerbread update, and some reported forcing an XTRA download cleared
up the problem.  This change restores the Froyo behavior of downloading
XTRA data after boot.

Bug: 3509901

Change-Id: I5a52201a2b24ce4a5d3ddb1f86340e3d5387f603
Signed-off-by: Mike Lockwood <lockwood@android.com>
services/java/com/android/server/location/GpsLocationProvider.java

index 3561862..63ce0bd 100755 (executable)
@@ -203,7 +203,7 @@ public class GpsLocationProvider implements LocationProviderInterface {
     // flags to trigger NTP or XTRA data download when network becomes available
     // initialized to true so we do NTP and XTRA when the network comes up after booting
     private boolean mInjectNtpTimePending = true;
-    private boolean mDownloadXtraDataPending = false;
+    private boolean mDownloadXtraDataPending = true;
 
     // true if GPS is navigating
     private boolean mNavigating;