summaryrefslogtreecommitdiffstats
path: root/telephony
diff options
context:
space:
mode:
authorNathan Harold <nharold@google.com>2015-10-21 10:51:02 -0700
committerNathan Harold <nharold@google.com>2015-10-21 11:32:51 -0700
commit5d1429e0dd1a13f76dbb354f9e4e415f71956299 (patch)
tree8a1e17f7ee80868ba9a8883cf9a3dc8fcef629c9 /telephony
parent8ba1cdd9464b88375755e1976e4ee0f5620ff5be (diff)
downloadframeworks_base-5d1429e0dd1a13f76dbb354f9e4e415f71956299.zip
frameworks_base-5d1429e0dd1a13f76dbb354f9e4e415f71956299.tar.gz
frameworks_base-5d1429e0dd1a13f76dbb354f9e4e415f71956299.tar.bz2
Add the FEATURE_TELEPHONY restriction to TelephonyManager.getAllCellInfo()
Bug: 23979591 Change-Id: I16ffa7666fdf0eb081bb1bafa57ebd384d7c3fdf
Diffstat (limited to 'telephony')
-rw-r--r--telephony/java/android/telephony/TelephonyManager.java5
1 files changed, 4 insertions, 1 deletions
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.
*<p>
* 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.
*<p>
+ * This API will return valid data for registered cells on devices with
+ * {@link android.content.pm.PackageManager.FEATURE_TELEPHONY}
+ *<p>
* @return List of CellInfo or null if info unavailable.
*
* <p>Requires Permission: {@link android.Manifest.permission#ACCESS_COARSE_LOCATION}