diff --git a/gnss/1.1/vts/functional/gnss_hal_test.cpp b/gnss/1.1/vts/functional/gnss_hal_test.cpp index 6663a19abf..5ec980699f 100644 --- a/gnss/1.1/vts/functional/gnss_hal_test.cpp +++ b/gnss/1.1/vts/functional/gnss_hal_test.cpp @@ -168,8 +168,7 @@ bool GnssHalTest::IsGnssHalVersion_1_1() const { manager->listManifestByInterface( "android.hardware.gnss@1.1::IGnss", [&hasGnssHalVersion_1_1](const hidl_vec& registered) { - ASSERT_EQ(1, registered.size()); - hasGnssHalVersion_1_1 = true; + hasGnssHalVersion_1_1 = registered.size() != 0; }); bool hasGnssHalVersion_2_0 = false;