summaryrefslogtreecommitdiff
path: root/core/java
diff options
context:
space:
mode:
authorsqian <shuoq@google.com>2020-01-30 14:14:43 -0800
committersqian <shuoq@google.com>2020-01-30 14:14:43 -0800
commitdfdee636e3e140f1c21985e7ffc893279206b23e (patch)
treefcd0fe8243b1d8db0150bc5d83587124d7044197 /core/java
parent64c1e4ddef0b4fa3a9be8889ec6c9d2fd24107f7 (diff)
Add LISTEN_ALWAYS_REPORTED_SIGNAL_STRENGTH into Shell permission
> Is the minimally scoped permission that needs to be added? This is a minimal permission for always listening to signal strength. > What options did you explore that did not need this permission? CTS is required by API council; Telephony CTS is using shell to have system permission. I don't see other options. Integrate the callback of LISTEN_ALWAYS_REPORTED_SIGNAL_STRENGTH Test: CTS; https://paste.googleplex.com/5811446241820672 Bug: 147322848 Change-Id: Id5afd261a7f00c25e3af3558f30fb92aad42f060
Diffstat (limited to 'core/java')
-rw-r--r--core/java/android/telephony/PhoneStateListener.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/java/android/telephony/PhoneStateListener.java b/core/java/android/telephony/PhoneStateListener.java
index 1d0b4a0ca20a..4591fafc696e 100644
--- a/core/java/android/telephony/PhoneStateListener.java
+++ b/core/java/android/telephony/PhoneStateListener.java
@@ -168,9 +168,11 @@ public class PhoneStateListener {
public static final int LISTEN_SIGNAL_STRENGTHS = 0x00000100;
/**
- * Listen for always reported changes of the network signal strengths (cellular),
+ * Listen for changes of the network signal strengths (cellular) always reported from modem,
* even in some situations such as the screen of the device is off.
*
+ * @see #onSignalStrengthsChanged
+ *
* @hide
*/
@RequiresPermission(android.Manifest.permission.LISTEN_ALWAYS_REPORTED_SIGNAL_STRENGTH)