summaryrefslogtreecommitdiffstats
path: root/telephony
diff options
context:
space:
mode:
authorWink Saville <wink@google.com>2012-09-20 10:09:45 -0700
committerWink Saville <wink@google.com>2012-09-20 10:09:45 -0700
commita12a7b3d3d8fc8678411295df4d001447b33a994 (patch)
tree06086b2334d1eb7ac67bc5ac32b6104d777ee82d /telephony
parent4046e012887fff1f36dfd3eddc6f354d4c2497fc (diff)
downloadframeworks_base-a12a7b3d3d8fc8678411295df4d001447b33a994.zip
frameworks_base-a12a7b3d3d8fc8678411295df4d001447b33a994.tar.gz
frameworks_base-a12a7b3d3d8fc8678411295df4d001447b33a994.tar.bz2
Suppress location information for non-active users.
Specifically, don't allow call backs for LISTEN_CELL_LOCATION and LISTEN_CELL_INFO. Bug: 7087342 Change-Id: Ida7f60b5bde3f28264dcb454b38fcfb1f1616d11
Diffstat (limited to 'telephony')
-rwxr-xr-xtelephony/java/android/telephony/TelephonyManager.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/telephony/java/android/telephony/TelephonyManager.java b/telephony/java/android/telephony/TelephonyManager.java
index 15ffd63..2fa41e7 100755
--- a/telephony/java/android/telephony/TelephonyManager.java
+++ b/telephony/java/android/telephony/TelephonyManager.java
@@ -220,6 +220,7 @@ public class TelephonyManager {
public CellLocation getCellLocation() {
try {
Bundle bundle = getITelephony().getCellLocation();
+ if (bundle.isEmpty()) return null;
CellLocation cl = CellLocation.newFromBundle(bundle);
if (cl.isEmpty())
return null;