Merge "Skip testing of deprecated getDeviceIdentity on new interfaces" into main
diff --git a/radio/aidl/vts/radio_modem_test.cpp b/radio/aidl/vts/radio_modem_test.cpp
index 2432bd2..1c8a6f8 100644
--- a/radio/aidl/vts/radio_modem_test.cpp
+++ b/radio/aidl/vts/radio_modem_test.cpp
@@ -201,6 +201,13 @@
GTEST_SKIP() << "Skipping getDeviceIdentity "
"due to undefined FEATURE_TELEPHONY";
}
+ int32_t aidl_version;
+ ndk::ScopedAStatus aidl_status = radio_modem->getInterfaceVersion(&aidl_version);
+ ASSERT_OK(aidl_status);
+ if (aidl_version >= 4) {
+ ALOGI("Skipped the test since getDeviceIdentity is deprecated");
+ GTEST_SKIP();
+ }
serial = GetRandomSerialNumber();