From ebc5ced56e474e48777194fd6ca349a6cedb1e6f Mon Sep 17 00:00:00 2001 From: xinhe Date: Wed, 22 Apr 2015 15:36:29 -0700 Subject: [PATCH] No Permission check for WiFi RTT Bug:19918231 Change-Id: I98aea756cc15683596096e46da48efe0737ae1d1 --- api/system-current.txt | 1 + wifi/java/android/net/wifi/RttManager.java | 2 ++ 2 files changed, 3 insertions(+) diff --git a/api/system-current.txt b/api/system-current.txt index 21a1f7fc79fd6..d94bdcb9c6fac 100644 --- a/api/system-current.txt +++ b/api/system-current.txt @@ -19306,6 +19306,7 @@ package android.net.wifi { field public static final int REASON_INVALID_LISTENER = -3; // 0xfffffffd field public static final int REASON_INVALID_REQUEST = -4; // 0xfffffffc field public static final int REASON_NOT_AVAILABLE = -2; // 0xfffffffe + field public static final int REASON_PERMISSION_DENIED = -5; // 0xfffffffb field public static final int REASON_UNSPECIFIED = -1; // 0xffffffff field public static final int RTT_BW_10_SUPPORT = 2; // 0x2 field public static final int RTT_BW_160_SUPPORT = 32; // 0x20 diff --git a/wifi/java/android/net/wifi/RttManager.java b/wifi/java/android/net/wifi/RttManager.java index d2fb0ddd72952..dde8dba19f902 100644 --- a/wifi/java/android/net/wifi/RttManager.java +++ b/wifi/java/android/net/wifi/RttManager.java @@ -134,6 +134,8 @@ public class RttManager { public static final int REASON_NOT_AVAILABLE = -2; public static final int REASON_INVALID_LISTENER = -3; public static final int REASON_INVALID_REQUEST = -4; + /** Do not have required permission */ + public static final int REASON_PERMISSION_DENIED = -5; public static final String DESCRIPTION_KEY = "android.net.wifi.RttManager.Description";