Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 57939132 authored by Yu-Han Yang's avatar Yu-Han Yang
Browse files

Ignore enableFullTracking in HAL v1.0

Bug: Bug: 158528186
Test: 'atest GnssMeasurementRegistrationTest' on Pixel 2
Change-Id: I4496a81ba77f3fed392b5db2dbb57df5eddcd5f2
parent f1c35c39
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -3109,9 +3109,7 @@ static jboolean android_location_GnssMeasurementsProvider_start_measurement_coll
        result = gnssMeasurementIface_V1_1->setCallback_1_1(cbIface, enableFullTracking);
    } else {
        if (enableFullTracking == JNI_TRUE) {
            // full tracking mode not supported in 1.0 HAL
            result.assertOk(); // isOk() must be called before result destructor is invoked.
            return JNI_FALSE;
            ALOGW("Full tracking mode not supported in 1.0 GNSS HAL.");
        }
        result = gnssMeasurementIface->setCallback(cbIface);
    }