[Safety Labels] Add new intent action for Data Sharing updates page

Bug: 261651421
Test: TBD
Change-Id: I45ad713c0646aa48b548d9eea1030a41801b63f4
This commit is contained in:
Karishma Vakil
2022-12-08 00:58:11 +00:00
parent 060e76051f
commit 80ca937997
2 changed files with 25 additions and 0 deletions

View File

@@ -3285,6 +3285,7 @@ package android.content {
field public static final String ACTION_QUERY_PACKAGE_RESTART = "android.intent.action.QUERY_PACKAGE_RESTART";
field public static final String ACTION_RESOLVE_INSTANT_APP_PACKAGE = "android.intent.action.RESOLVE_INSTANT_APP_PACKAGE";
field @RequiresPermission(android.Manifest.permission.REVIEW_ACCESSIBILITY_SERVICES) public static final String ACTION_REVIEW_ACCESSIBILITY_SERVICES = "android.intent.action.REVIEW_ACCESSIBILITY_SERVICES";
field @RequiresPermission(android.Manifest.permission.GRANT_RUNTIME_PERMISSIONS) public static final String ACTION_REVIEW_APP_DATA_SHARING_UPDATES = "android.intent.action.REVIEW_APP_DATA_SHARING_UPDATES";
field @RequiresPermission(android.Manifest.permission.GRANT_RUNTIME_PERMISSIONS) public static final String ACTION_REVIEW_ONGOING_PERMISSION_USAGE = "android.intent.action.REVIEW_ONGOING_PERMISSION_USAGE";
field public static final String ACTION_REVIEW_PERMISSIONS = "android.intent.action.REVIEW_PERMISSIONS";
field @RequiresPermission(android.Manifest.permission.GRANT_RUNTIME_PERMISSIONS) public static final String ACTION_REVIEW_PERMISSION_HISTORY = "android.intent.action.REVIEW_PERMISSION_HISTORY";

View File

@@ -2422,6 +2422,30 @@ public class Intent implements Parcelable, Cloneable {
public static final String ACTION_SAFETY_CENTER =
"android.intent.action.SAFETY_CENTER";
/**
* Activity action: Launch the UI to view recent updates that installed apps have made to their
* data sharing policy in their safety labels.
*
* <p>
* Input: Nothing.
* </p>
* <p>
* Output: Nothing.
* </p>
*
* <p class="note">
* This intent action requires the {@link android.Manifest.permission#GRANT_RUNTIME_PERMISSIONS}
* permission.
* </p>
*
* @hide
*/
@SystemApi
@RequiresPermission(Manifest.permission.GRANT_RUNTIME_PERMISSIONS)
@SdkConstant(SdkConstantType.ACTIVITY_INTENT_ACTION)
public static final String ACTION_REVIEW_APP_DATA_SHARING_UPDATES =
"android.intent.action.REVIEW_APP_DATA_SHARING_UPDATES";
// ---------------------------------------------------------------------
// ---------------------------------------------------------------------
// Standard intent broadcast actions (see action variable).