Metrics for update without user action change in S

Added an extra in the intent sent to the package verifier to track
whether user action was requested for app installs.

Bug: b/190368734
Test: None.
Change-Id: I52090e2d241c8e0a308a77321cab4bf6341cfb9c
This commit is contained in:
Sumedh Sen
2022-03-25 17:42:00 -07:00
parent 391c05750f
commit 76fb3e93b4
4 changed files with 41 additions and 5 deletions

View File

@@ -4245,6 +4245,7 @@ public abstract class PackageManager {
*/
public static final String EXTRA_VERIFICATION_PACKAGE_NAME
= "android.content.pm.extra.VERIFICATION_PACKAGE_NAME";
/**
* Extra field name for the result of a verification, either
* {@link #VERIFICATION_ALLOW}, or {@link #VERIFICATION_REJECT}.
@@ -4253,6 +4254,14 @@ public abstract class PackageManager {
public static final String EXTRA_VERIFICATION_RESULT
= "android.content.pm.extra.VERIFICATION_RESULT";
/**
* Extra field name for tracking whether user action
* was requested for a particular install, either {@code true} or {@code false}.
* @hide
*/
public static final String EXTRA_USER_ACTION_REQUIRED
= "android.content.pm.extra.USER_ACTION_REQUIRED";
/**
* Extra field name for the version code of a package pending verification.
* @deprecated Use {@link #EXTRA_VERIFICATION_LONG_VERSION_CODE} instead.
@@ -4263,8 +4272,7 @@ public abstract class PackageManager {
= "android.content.pm.extra.VERIFICATION_VERSION_CODE";
/**
* Extra field name for the long version code of a package pending verification.
*
* Extra field name for the long version code of a package pending verification
* @hide
*/
public static final String EXTRA_VERIFICATION_LONG_VERSION_CODE =