Skip to content

Commit

Permalink
Workaround until gps can be fixed, force gps to stay in standalone mo…
Browse files Browse the repository at this point in the history
…de when

ro.agps.allow=false

tested and working on t0ltecdma devices

Change-Id: I917de8cf3c59865a423dafa605ee4f10a5838bb6
  • Loading branch information
sbrissen authored and Gergely Szell (sethyx) committed Mar 4, 2013
1 parent ff97faf commit 15ca779
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
import android.os.RemoteException;
import android.os.ServiceManager;
import android.os.SystemClock;
import android.os.SystemProperties;
import android.os.UserHandle;
import android.os.WorkSource;
import android.provider.Settings;
Expand Down Expand Up @@ -951,9 +952,10 @@ private void startNavigating() {
mLastFixTime = 0;
mStarted = true;
mPositionMode = GPS_POSITION_MODE_STANDALONE;
boolean mAGPSAllow = SystemProperties.getBoolean("ro.agps.allow",true);

if (Settings.Global.getInt(mContext.getContentResolver(),
Settings.Global.ASSISTED_GPS_ENABLED, 1) != 0) {
Settings.Global.ASSISTED_GPS_ENABLED, 1) != 0 && mAGPSAllow) {
if (hasCapability(GPS_CAPABILITY_MSB)) {
mPositionMode = GPS_POSITION_MODE_MS_BASED;
}
Expand Down

0 comments on commit 15ca779

Please sign in to comment.