Merge "Add an intent to launch the app permission usage screen."
This commit is contained in:
committed by
Android (Google) Code Review
commit
2c87f2ead8
@@ -23,6 +23,7 @@ import android.annotation.BroadcastBehavior;
|
||||
import android.annotation.IntDef;
|
||||
import android.annotation.NonNull;
|
||||
import android.annotation.Nullable;
|
||||
import android.annotation.RequiresPermission;
|
||||
import android.annotation.SdkConstant;
|
||||
import android.annotation.SdkConstant.SdkConstantType;
|
||||
import android.annotation.SystemApi;
|
||||
@@ -1924,6 +1925,29 @@ public class Intent implements Parcelable, Cloneable {
|
||||
public static final String ACTION_REVIEW_PERMISSION_USAGE =
|
||||
"android.intent.action.REVIEW_PERMISSION_USAGE";
|
||||
|
||||
/**
|
||||
* Activity action: Launch UI to review uses of permissions for a single app.
|
||||
* <p>
|
||||
* Input: {@link #EXTRA_PACKAGE_NAME} specifies the package whose
|
||||
* permissions will be reviewed (mandatory).
|
||||
* </p>
|
||||
* <p>
|
||||
* Output: Nothing.
|
||||
* </p>
|
||||
* <p class="note">
|
||||
* This requires {@link android.Manifest.permission#GRANT_RUNTIME_PERMISSIONS} permission.
|
||||
* </p>
|
||||
*
|
||||
* @see #EXTRA_PACKAGE_NAME
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@SystemApi
|
||||
@RequiresPermission(android.Manifest.permission.GRANT_RUNTIME_PERMISSIONS)
|
||||
@SdkConstant(SdkConstantType.ACTIVITY_INTENT_ACTION)
|
||||
public static final String ACTION_REVIEW_APP_PERMISSION_USAGE =
|
||||
"android.intent.action.REVIEW_APP_PERMISSION_USAGE";
|
||||
|
||||
// ---------------------------------------------------------------------
|
||||
// ---------------------------------------------------------------------
|
||||
// Standard intent broadcast actions (see action variable).
|
||||
|
||||
Reference in New Issue
Block a user