summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Yuyang Huang <yuyanghuang@google.com> 2023-08-09 12:51:36 +0900
committer Yuyang Huang <yuyanghuang@google.com> 2023-08-09 15:45:21 +0900
commit8342767381278384be5a10b08b79a75c68fac610 (patch)
treef250bdf51ce30cd877902d4cfefb15d1ba17c4a8
parentcb9337235da78717ad37764d3b6502933e940940 (diff)
Adds android.permission.REGISTER_NSD_OFFLOAD_ENGINE
Adds android.permission.REGISTER_NSD_OFFLOAD_ENGINE for controlling whether an app is allowed to be registered as an offload engine or not. Bug: 294777050 Test: m Change-Id: I15c0196b4cbc6ac7324dcde82119b6e075333936
-rw-r--r--core/api/system-current.txt1
-rw-r--r--core/res/AndroidManifest.xml8
2 files changed, 9 insertions, 0 deletions
diff --git a/core/api/system-current.txt b/core/api/system-current.txt
index eca2015fa3ed..5f2bb35c695a 100644
--- a/core/api/system-current.txt
+++ b/core/api/system-current.txt
@@ -301,6 +301,7 @@ package android {
field public static final String RECOVER_KEYSTORE = "android.permission.RECOVER_KEYSTORE";
field public static final String REGISTER_CALL_PROVIDER = "android.permission.REGISTER_CALL_PROVIDER";
field public static final String REGISTER_CONNECTION_MANAGER = "android.permission.REGISTER_CONNECTION_MANAGER";
+ field public static final String REGISTER_NSD_OFFLOAD_ENGINE = "android.permission.REGISTER_NSD_OFFLOAD_ENGINE";
field public static final String REGISTER_SIM_SUBSCRIPTION = "android.permission.REGISTER_SIM_SUBSCRIPTION";
field public static final String REGISTER_STATS_PULL_ATOM = "android.permission.REGISTER_STATS_PULL_ATOM";
field public static final String REMOTE_DISPLAY_PROVIDER = "android.permission.REMOTE_DISPLAY_PROVIDER";
diff --git a/core/res/AndroidManifest.xml b/core/res/AndroidManifest.xml
index 67710f64e1e4..0891e36d5309 100644
--- a/core/res/AndroidManifest.xml
+++ b/core/res/AndroidManifest.xml
@@ -2267,6 +2267,14 @@
<permission android:name="android.permission.MANAGE_ETHERNET_NETWORKS"
android:protectionLevel="signature" />
+ <!-- Allows system apps to call methods to register itself as a mDNS offload engine.
+ <p>Not for use by third-party or privileged applications.
+ @SystemApi
+ @hide This should only be used by system apps.
+ -->
+ <permission android:name="android.permission.REGISTER_NSD_OFFLOAD_ENGINE"
+ android:protectionLevel="signature" />
+
<!-- ======================================= -->
<!-- Permissions for short range, peripheral networks -->
<!-- ======================================= -->