From 5d1429e0dd1a13f76dbb354f9e4e415f71956299 Mon Sep 17 00:00:00 2001 From: Nathan Harold Date: Wed, 21 Oct 2015 10:51:02 -0700 Subject: Add the FEATURE_TELEPHONY restriction to TelephonyManager.getAllCellInfo() Bug: 23979591 Change-Id: I16ffa7666fdf0eb081bb1bafa57ebd384d7c3fdf --- telephony/java/android/telephony/TelephonyManager.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'telephony') diff --git a/telephony/java/android/telephony/TelephonyManager.java b/telephony/java/android/telephony/TelephonyManager.java index 47f13c9..053d89f 100644 --- a/telephony/java/android/telephony/TelephonyManager.java +++ b/telephony/java/android/telephony/TelephonyManager.java @@ -2834,7 +2834,7 @@ public class TelephonyManager { /** * Returns all observed cell information from all radios on the * device including the primary and neighboring cells. This does - * not cause or change the rate of PhoneStateListner#onCellInfoChanged. + * not cause or change the rate of PhoneStateListener#onCellInfoChanged. *

* The list can include one or more of {@link android.telephony.CellInfoGsm CellInfoGsm}, * {@link android.telephony.CellInfoCdma CellInfoCdma}, @@ -2848,6 +2848,9 @@ public class TelephonyManager { * devices this may return null in which case getCellLocation should * be called. *

+ * This API will return valid data for registered cells on devices with + * {@link android.content.pm.PackageManager.FEATURE_TELEPHONY} + *

* @return List of CellInfo or null if info unavailable. * *

Requires Permission: {@link android.Manifest.permission#ACCESS_COARSE_LOCATION} -- cgit v1.1