summaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2014-08-07 17:31:53 -0700
committerJeff Sharkey <jsharkey@google.com>2014-08-08 00:45:20 +0000
commitf06009542390472872da986486d385001e91a2a7 (patch)
treef1006709381288cf2271f1e7eac9ee655ea1c6c5 /api
parentcd5e3f95bfcc6039aa048b7f3141f265de02d114 (diff)
downloadframeworks_base-f06009542390472872da986486d385001e91a2a7.zip
frameworks_base-f06009542390472872da986486d385001e91a2a7.tar.gz
frameworks_base-f06009542390472872da986486d385001e91a2a7.tar.bz2
Logic to confirm uninstalls.
Prompt user for confirmation when caller doesn't have DELETE_PACKAGES permission. Also extend uninstall events to return failure codes. Bug: 16515814 Change-Id: I15b52190ff02dbeaaf038b92364264f64c57ba89
Diffstat (limited to 'api')
-rw-r--r--api/current.txt7
1 files changed, 5 insertions, 2 deletions
diff --git a/api/current.txt b/api/current.txt
index a7a04f2..13a28d4 100644
--- a/api/current.txt
+++ b/api/current.txt
@@ -8675,10 +8675,10 @@ package android.content.pm {
method public abstract void onSuccess();
method public abstract void onUserActionRequired(android.content.Intent);
field public static final java.lang.String EXTRA_PACKAGE_NAME = "android.content.pm.extra.PACKAGE_NAME";
+ field public static final int FAILURE_ABORTED = 5; // 0x5
field public static final int FAILURE_CONFLICT = 2; // 0x2
field public static final int FAILURE_INCOMPATIBLE = 4; // 0x4
field public static final int FAILURE_INVALID = 1; // 0x1
- field public static final int FAILURE_REJECTED = 5; // 0x5
field public static final int FAILURE_STORAGE = 3; // 0x3
field public static final int FAILURE_UNKNOWN = 0; // 0x0
}
@@ -8705,9 +8705,12 @@ package android.content.pm {
public static abstract class PackageInstaller.UninstallCallback {
ctor public PackageInstaller.UninstallCallback();
- method public abstract void onFailure(java.lang.String);
+ method public abstract void onFailure(int, java.lang.String, android.os.Bundle);
method public abstract void onSuccess();
method public abstract void onUserActionRequired(android.content.Intent);
+ field public static final int FAILURE_ABORTED = 2; // 0x2
+ field public static final int FAILURE_BLOCKED = 1; // 0x1
+ field public static final int FAILURE_UNKNOWN = 0; // 0x0
}
public class PackageItemInfo {