summaryrefslogtreecommitdiff
path: root/tests/tests/telephony/current/src/android/telephony/cts/TelephonyManagerTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tests/telephony/current/src/android/telephony/cts/TelephonyManagerTest.java')
-rw-r--r--tests/tests/telephony/current/src/android/telephony/cts/TelephonyManagerTest.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/tests/telephony/current/src/android/telephony/cts/TelephonyManagerTest.java b/tests/tests/telephony/current/src/android/telephony/cts/TelephonyManagerTest.java
index 3a72a8026c3..807ef0cab41 100644
--- a/tests/tests/telephony/current/src/android/telephony/cts/TelephonyManagerTest.java
+++ b/tests/tests/telephony/current/src/android/telephony/cts/TelephonyManagerTest.java
@@ -1229,6 +1229,10 @@ public class TelephonyManagerTest {
*/
@Test
public void testGetUiccCardsInfo() {
+ if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) {
+ Log.d(TAG, "Skipping test that requires FEATURE_TELEPHONY");
+ return;
+ }
try {
// Requires READ_PRIVILEGED_PHONE_STATE or carrier privileges
List<UiccCardInfo> infos = mTelephonyManager.getUiccCardsInfo();