Introducing clear package data intent
Clear data Intent can be called from any application and executes in the PackageInstaller. The user will be asked to verify that they truly want to clear package data via an AlertDialog. This was initially intended to be @SystemApi, but conversations with API-Review led to it be public. Test: Covered by a gts-test ag/1806256 and manually tested by calling from com.android.vending (Play Store). bug: 33017941 bug: 31008483 Change-Id: Ibeae6620303ba52cc2ebf0383756c9380d3fa013
This commit is contained in:
@@ -1627,6 +1627,19 @@ public class Intent implements Parcelable, Cloneable {
|
||||
@SdkConstant(SdkConstantType.ACTIVITY_INTENT_ACTION)
|
||||
public static final String ACTION_UNINSTALL_PACKAGE = "android.intent.action.UNINSTALL_PACKAGE";
|
||||
|
||||
/**
|
||||
* Activity Action: Launch application uninstaller.
|
||||
* <p>
|
||||
* Input: The data must be a package: URI whose scheme specific part is
|
||||
* the package name of the current installed package to be uninstalled.
|
||||
* You can optionally supply {@link #EXTRA_RETURN_RESULT}.
|
||||
* <p>
|
||||
* Output: Nothing.
|
||||
* </p>
|
||||
*/
|
||||
@SdkConstant(SdkConstantType.ACTIVITY_INTENT_ACTION)
|
||||
public static final String ACTION_CLEAR_PACKAGE = "android.intent.action.CLEAR_PACKAGE";
|
||||
|
||||
/**
|
||||
* Specify whether the package should be uninstalled for all users.
|
||||
* @hide because these should not be part of normal application flow.
|
||||
|
||||
Reference in New Issue
Block a user