Merge changes from topic "ongoing-usage-dialog-migration"
* changes: Launch external ongoing usage dialog instead of internal one. Add an API to launch the ongoing usage dialog.
This commit is contained in:
committed by
Android (Google) Code Review
commit
bc01340683
@@ -2078,6 +2078,9 @@ public class Intent implements Parcelable, Cloneable {
|
||||
* <p>
|
||||
* Output: Nothing.
|
||||
* </p>
|
||||
* <p class="note">
|
||||
* This requires {@link android.Manifest.permission#GRANT_RUNTIME_PERMISSIONS} permission.
|
||||
* </p>
|
||||
*
|
||||
* @see #EXTRA_PERMISSION_NAME
|
||||
* @see #EXTRA_PERMISSION_GROUP_NAME
|
||||
@@ -2086,10 +2089,34 @@ public class Intent implements Parcelable, Cloneable {
|
||||
* @hide
|
||||
*/
|
||||
@SystemApi
|
||||
@RequiresPermission(android.Manifest.permission.GRANT_RUNTIME_PERMISSIONS)
|
||||
@SdkConstant(SdkConstantType.ACTIVITY_INTENT_ACTION)
|
||||
public static final String ACTION_REVIEW_PERMISSION_USAGE =
|
||||
"android.intent.action.REVIEW_PERMISSION_USAGE";
|
||||
|
||||
/**
|
||||
* Activity action: Launch UI to review ongoing app uses of permissions.
|
||||
* <p>
|
||||
* Input: {@link #EXTRA_DURATION_MILLIS} specifies the minimum number of milliseconds of recent
|
||||
* activity to show (optional). Must be non-negative.
|
||||
* </p>
|
||||
* <p>
|
||||
* Output: Nothing.
|
||||
* </p>
|
||||
* <p class="note">
|
||||
* This requires {@link android.Manifest.permission#GRANT_RUNTIME_PERMISSIONS} permission.
|
||||
* </p>
|
||||
*
|
||||
* @see #EXTRA_DURATION_MILLIS
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@SystemApi
|
||||
@RequiresPermission(android.Manifest.permission.GRANT_RUNTIME_PERMISSIONS)
|
||||
@SdkConstant(SdkConstantType.ACTIVITY_INTENT_ACTION)
|
||||
public static final String ACTION_REVIEW_ONGOING_PERMISSION_USAGE =
|
||||
"android.intent.action.REVIEW_ONGOING_PERMISSION_USAGE";
|
||||
|
||||
/**
|
||||
* Activity action: Launch UI to review uses of permissions for a single app.
|
||||
* <p>
|
||||
|
||||
Reference in New Issue
Block a user