From e0fd9ab53b394b4683f87de4803218f3620ff45d Mon Sep 17 00:00:00 2001 From: Kevin Hufnagle Date: Thu, 18 Jul 2019 14:00:07 -0700 Subject: [PATCH] docs: Added protection level to permissions All permissions that are suitable for use by third-party apps and aren't deprecated now contain a paragraph in their descriptions that lists the protection level for a given permission, such as: Protection level: signature|privileged Test: make ds-docs Bug: 137260540 Change-Id: I45eada81bf4aa83480ff2e701a9e0e9932b66b88 --- core/res/AndroidManifest.xml | 46 +++++++++++++++++++++++------------- 1 file changed, 29 insertions(+), 17 deletions(-) diff --git a/core/res/AndroidManifest.xml b/core/res/AndroidManifest.xml index a3fccd96f2247..e238e1d0c03f1 100644 --- a/core/res/AndroidManifest.xml +++ b/core/res/AndroidManifest.xml @@ -859,7 +859,7 @@ meaning that the whitelist state can be specified only at install time and cannot change until the app is installed. For more details see {@link android.content.pm.PackageInstaller.SessionParams#setWhitelistedRestrictedPermissions(Set)}. - --> +

Protection level: dangerous --> Is this permission is not whitelisted for an app that targets an API level before +

If this permission is not whitelisted for an app that targets an API level before {@link android.os.Build.VERSION_CODES#Q} this permission cannot be granted to apps.

+

Protection level: dangerous

--> + user's shared collection. +

Protection level: dangerous --> +

Not for use by third-party applications. --> @@ -2561,7 +2563,8 @@ android:protectionLevel="signature" /> + as locale. +

Protection level: signature|privileged|development --> @@ -2860,7 +2863,8 @@ - + @@ -3439,7 +3443,8 @@ android:protectionLevel="signature" /> + but signals for us to quietly ignore calls instead of throwing an exception. +

Protection level: signature|privileged --> @@ -3797,7 +3802,8 @@ + device can grant permission through the Settings application. +

Protection level: signature|privileged|development|appop --> @@ -3820,14 +3826,14 @@ +

Protection level: normal --> - + @@ -3857,7 +3863,8 @@ android:protectionLevel="signature" /> + to ensure that only the system can bind to it. +

Protection level: signature|privileged --> @@ -3899,7 +3906,8 @@ to the path in the provider where global search queries are performed. This permission can not be held by regular applications; it is used by applications to protect themselves from everyone else - besides global search. --> + besides global search. +

Protection level: signature|privileged --> @@ -4438,7 +4446,8 @@ - + @@ -4508,7 +4517,8 @@ - + @@ -4540,13 +4550,15 @@ - + + intents}. +

Protection level: normal -->