From f06009542390472872da986486d385001e91a2a7 Mon Sep 17 00:00:00 2001 From: Jeff Sharkey Date: Thu, 7 Aug 2014 17:31:53 -0700 Subject: 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 --- api/current.txt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'api') 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 { -- cgit v1.1