Avoid multiple xtra download after booting
To avoid multiple xtra data auto-downloading, the change delete the 3 xtra URL in gps.conf used by GpsLocationProvider. Meanwhile, GPS HAL become to allow GLP send Xtra data to modem. CRs: 537744 Change-Id: I27f3122f4ecd1d4da4323e9c59bd0358f3d635f2
This commit is contained in:
parent
b6ddfac888
commit
9f6259f0bc
3 changed files with 10 additions and 10 deletions
8
etc/gps.conf
Executable file → Normal file
8
etc/gps.conf
Executable file → Normal file
|
@ -1,6 +1,8 @@
|
|||
XTRA_SERVER_1=http://xtra1.gpsonextra.net/xtra.bin
|
||||
XTRA_SERVER_2=http://xtra2.gpsonextra.net/xtra.bin
|
||||
XTRA_SERVER_3=http://xtra3.gpsonextra.net/xtra.bin
|
||||
#Uncommenting these urls would only enable
|
||||
#the power up auto injection and force injection(test case).
|
||||
#XTRA_SERVER_1=http://xtra1.gpsonextra.net/xtra.bin
|
||||
#XTRA_SERVER_2=http://xtra2.gpsonextra.net/xtra.bin
|
||||
#XTRA_SERVER_3=http://xtra3.gpsonextra.net/xtra.bin
|
||||
|
||||
# Error Estimate
|
||||
# _SET = 1
|
||||
|
|
|
@ -1781,10 +1781,10 @@ int loc_eng_inject_time(loc_eng_data_s_type &loc_eng_data, GpsUtcTime time,
|
|||
ENTRY_LOG_CALLFLOW();
|
||||
INIT_CHECK(loc_eng_data.adapter, return -1);
|
||||
LocEngAdapter* adapter = loc_eng_data.adapter;
|
||||
if (adapter->mAgpsEnabled) {
|
||||
adapter->sendMsg(new LocEngSetTime(adapter, time, timeReference,
|
||||
uncertainty));
|
||||
}
|
||||
|
||||
adapter->sendMsg(new LocEngSetTime(adapter, time, timeReference,
|
||||
uncertainty));
|
||||
|
||||
EXIT_LOG(%d, 0);
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -137,9 +137,7 @@ int loc_eng_xtra_inject_data(loc_eng_data_s_type &loc_eng_data,
|
|||
char* data, int length)
|
||||
{
|
||||
LocEngAdapter* adapter = loc_eng_data.adapter;
|
||||
if (adapter->mAgpsEnabled) {
|
||||
adapter->sendMsg(new LocEngInjectXtraData(adapter, data, length));
|
||||
}
|
||||
adapter->sendMsg(new LocEngInjectXtraData(adapter, data, length));
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue