diff options
author | Svetoslav <svetoslavganov@google.com> | 2015-04-14 14:32:25 -0700 |
---|---|---|
committer | Svetoslav Ganov <svetoslavganov@google.com> | 2015-04-18 00:03:45 +0000 |
commit | 275b5635ad98a411d511894e98f80e8b8bc41799 (patch) | |
tree | 65615f10d0a06efc9bc4c9e3660d3b586eca4c25 /telephony | |
parent | 14e317a33c3cb7539f87ba10599a031f0371a96c (diff) | |
download | frameworks_base-275b5635ad98a411d511894e98f80e8b8bc41799.zip frameworks_base-275b5635ad98a411d511894e98f80e8b8bc41799.tar.gz frameworks_base-275b5635ad98a411d511894e98f80e8b8bc41799.tar.bz2 |
Teach telephony about location app ops
Change-Id: I2bd8f0cb90d161994045d403f5d0c129ea951c3f
Diffstat (limited to 'telephony')
-rw-r--r-- | telephony/java/android/telephony/TelephonyManager.java | 4 | ||||
-rw-r--r-- | telephony/java/com/android/internal/telephony/ITelephony.aidl | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/telephony/java/android/telephony/TelephonyManager.java b/telephony/java/android/telephony/TelephonyManager.java index cd3f636..81f329c 100644 --- a/telephony/java/android/telephony/TelephonyManager.java +++ b/telephony/java/android/telephony/TelephonyManager.java @@ -782,7 +782,7 @@ public class TelephonyManager { ITelephony telephony = getITelephony(); if (telephony == null) return null; - Bundle bundle = telephony.getCellLocation(); + Bundle bundle = telephony.getCellLocation(mContext.getOpPackageName()); if (bundle.isEmpty()) return null; CellLocation cl = CellLocation.newFromBundle(bundle); if (cl.isEmpty()) @@ -2729,7 +2729,7 @@ public class TelephonyManager { ITelephony telephony = getITelephony(); if (telephony == null) return null; - return telephony.getAllCellInfo(); + return telephony.getAllCellInfo(mContext.getOpPackageName()); } catch (RemoteException ex) { return null; } catch (NullPointerException ex) { diff --git a/telephony/java/com/android/internal/telephony/ITelephony.aidl b/telephony/java/com/android/internal/telephony/ITelephony.aidl index 4fe88c4..0b77c26 100644 --- a/telephony/java/com/android/internal/telephony/ITelephony.aidl +++ b/telephony/java/com/android/internal/telephony/ITelephony.aidl @@ -343,7 +343,7 @@ interface ITelephony { */ boolean isDataConnectivityPossible(); - Bundle getCellLocation(); + Bundle getCellLocation(String callingPkg); /** * Returns the neighboring cell information of the device. @@ -507,7 +507,7 @@ interface ITelephony { /** * Returns the all observed cell information of the device. */ - List<CellInfo> getAllCellInfo(); + List<CellInfo> getAllCellInfo(String callingPkg); /** * Sets minimum time in milli-seconds between onCellInfoChanged |