stub out injectTime API as we should not handle that
-CR#2595204: We should no longer accept the NTP injection from AFW
as we have our XC handling the NTP update.
-CR#2605697: HIDL API impl can not return false, else it would fail
VTS.
Bug: 147337616
Test: Wake up device 1 hour after first NTP time_inject and start GPS
Change-Id: Ib3ed66943e7aba3db85dc1a6e0cac86080f8a7ac
diff --git a/sdm845/android/Gnss.cpp b/sdm845/android/Gnss.cpp
index fca72e6..1a7b8b0 100644
--- a/sdm845/android/Gnss.cpp
+++ b/sdm845/android/Gnss.cpp
@@ -289,14 +289,7 @@
Return<bool> Gnss::injectTime(int64_t timeMs, int64_t timeReferenceMs,
int32_t uncertaintyMs) {
- ENTRY_LOG_CALLFLOW();
- GnssInterface* gnssInterface = getGnssInterface();
- if (nullptr != gnssInterface) {
- gnssInterface->injectTime(timeMs, timeReferenceMs, uncertaintyMs);
- return true;
- } else {
- return false;
- }
+ return true;
}
Return<void> Gnss::deleteAidingData(V1_0::IGnss::GnssAidingData aidingDataFlags) {