From 96ffe56c8946069e58623531d3e3a17b05d994c4 Mon Sep 17 00:00:00 2001 From: xshu Date: Mon, 7 Mar 2022 17:27:55 -0800 Subject: [PATCH] Rename MANAGE_WIFI_AUTO_JOIN to MANAGE_WIFI_NETWORK_SELECTION Add @deprecated to the old permission to ensure smooth transition to new permission. Bug: 219947411 Test: compile Change-Id: I65bf1414dec7056c5827afdc5dec2083b907e682 --- core/api/current.txt | 3 ++- core/res/AndroidManifest.xml | 12 +++++++++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/core/api/current.txt b/core/api/current.txt index 542221c3fcc96..e228f240a3239 100644 --- a/core/api/current.txt +++ b/core/api/current.txt @@ -113,8 +113,9 @@ package android { field public static final String MANAGE_MEDIA = "android.permission.MANAGE_MEDIA"; field public static final String MANAGE_ONGOING_CALLS = "android.permission.MANAGE_ONGOING_CALLS"; field public static final String MANAGE_OWN_CALLS = "android.permission.MANAGE_OWN_CALLS"; - field public static final String MANAGE_WIFI_AUTO_JOIN = "android.permission.MANAGE_WIFI_AUTO_JOIN"; + field @Deprecated public static final String MANAGE_WIFI_AUTO_JOIN = "android.permission.MANAGE_WIFI_AUTO_JOIN"; field public static final String MANAGE_WIFI_INTERFACES = "android.permission.MANAGE_WIFI_INTERFACES"; + field public static final String MANAGE_WIFI_NETWORK_SELECTION = "android.permission.MANAGE_WIFI_NETWORK_SELECTION"; field public static final String MASTER_CLEAR = "android.permission.MASTER_CLEAR"; field public static final String MEDIA_CONTENT_CONTROL = "android.permission.MEDIA_CONTENT_CONTROL"; field public static final String MODIFY_AUDIO_SETTINGS = "android.permission.MODIFY_AUDIO_SETTINGS"; diff --git a/core/res/AndroidManifest.xml b/core/res/AndroidManifest.xml index 21baa0bcea97e..c6a99948fcc5c 100644 --- a/core/res/AndroidManifest.xml +++ b/core/res/AndroidManifest.xml @@ -1901,11 +1901,21 @@ +

Not for use by third-party applications. + @deprecated will be replaced with MANAGE_WIFI_NETWORK_SELECTION --> + + +