diff options
author | Sunil Ravi <sunilravi@google.com> | 2021-02-16 11:51:46 -0800 |
---|---|---|
committer | Sunil Ravi <sunilravi@google.com> | 2021-03-03 17:31:10 +0000 |
commit | 063cf92aa863c7691ee3d03250f79b7d99225a9b (patch) | |
tree | 6942c1cd5479a31dc354f1dd7c86a7b525f38734 | |
parent | f2781e9b3c359bef650cea7657312c43574ce84c (diff) |
WiFi: Define permissions for set/clear country code API
Added new signature permission for calling country code APIs.
Bug: 168743500
Test: Cts tests
Change-Id: Idb4f5627f5ef45b054a5a80ecfa0ae691bfec021
-rw-r--r-- | core/api/system-current.txt | 1 | ||||
-rw-r--r-- | core/res/AndroidManifest.xml | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/core/api/system-current.txt b/core/api/system-current.txt index 801b08e76231..efde0adb0e0f 100644 --- a/core/api/system-current.txt +++ b/core/api/system-current.txt @@ -134,6 +134,7 @@ package android { field public static final String MANAGE_USB = "android.permission.MANAGE_USB"; field public static final String MANAGE_USERS = "android.permission.MANAGE_USERS"; field public static final String MANAGE_USER_OEM_UNLOCK_STATE = "android.permission.MANAGE_USER_OEM_UNLOCK_STATE"; + field public static final String MANAGE_WIFI_COUNTRY_CODE = "android.permission.MANAGE_WIFI_COUNTRY_CODE"; field public static final String MODIFY_APPWIDGET_BIND_PERMISSIONS = "android.permission.MODIFY_APPWIDGET_BIND_PERMISSIONS"; field public static final String MODIFY_AUDIO_ROUTING = "android.permission.MODIFY_AUDIO_ROUTING"; field public static final String MODIFY_CELL_BROADCASTS = "android.permission.MODIFY_CELL_BROADCASTS"; diff --git a/core/res/AndroidManifest.xml b/core/res/AndroidManifest.xml index 3a0a032e3f15..01f4467fcb9d 100644 --- a/core/res/AndroidManifest.xml +++ b/core/res/AndroidManifest.xml @@ -1794,6 +1794,11 @@ <permission android:name="android.permission.WIFI_ACCESS_COEX_UNSAFE_CHANNELS" android:protectionLevel="signature|privileged" /> + <!-- @SystemApi @hide Allows system APK to manage country code. + <p>Not for use by third-party applications. --> + <permission android:name="android.permission.MANAGE_WIFI_COUNTRY_CODE" + android:protectionLevel="signature" /> + <!-- @SystemApi @hide Allows an application to manage an automotive device's application network preference as it relates to OEM_PAID and OEM_PRIVATE capable networks. <p>Not for use by third-party or privileged applications. --> |