Merge cherrypicks of ['googleplex-android-review.googlesource.com/35950716'] into 25Q4-release.
Change-Id: I15848d8180ec4551b634680efe686d9a46d5f652
diff --git a/radio/aidl/vts/radio_ims_test.cpp b/radio/aidl/vts/radio_ims_test.cpp
index 0a3a76f..ae905f5 100644
--- a/radio/aidl/vts/radio_ims_test.cpp
+++ b/radio/aidl/vts/radio_ims_test.cpp
@@ -248,6 +248,14 @@
* Test IRadioIms.updateAllowedServices() for the response returned.
*/
TEST_P(RadioImsTest, updateAllowedServices) {
+ int32_t aidl_version;
+ ndk::ScopedAStatus aidl_status = radio_ims->getInterfaceVersion(&aidl_version);
+ ASSERT_OK(aidl_status);
+ if (aidl_version < 4) {
+ ALOGI("Skipped the test since"
+ " updateAllowedServices is not supported on version < 4");
+ GTEST_SKIP();
+ }
if (!deviceSupportsFeature(FEATURE_TELEPHONY_IMS)) {
ALOGI("Skipping updateAllowedServices because ims is not supported in device");
return;