From cba5941c6085dab1566bc047c1ea31f58a2dd4cf Mon Sep 17 00:00:00 2001 From: Christopher Tate Date: Tue, 1 Apr 2014 10:38:29 -0700 Subject: Rejigger the invalid-key checks at backup time Bug 13732002 Change-Id: Ic8f71234d1bbc7420eaa8e1762b999d09f308d46 --- core/java/android/app/IBackupAgent.aidl | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'core/java/android/app/IBackupAgent.aidl') diff --git a/core/java/android/app/IBackupAgent.aidl b/core/java/android/app/IBackupAgent.aidl index 4ca06ed..7036aea 100644 --- a/core/java/android/app/IBackupAgent.aidl +++ b/core/java/android/app/IBackupAgent.aidl @@ -124,4 +124,12 @@ oneway interface IBackupAgent { int type, String domain, String path, long mode, long mtime, int token, IBackupManager callbackBinder); + /** + * Out of band: instruct the agent to crash within the client process. This is used + * when the backup infrastructure detects a semantic error post-hoc and needs to + * pass the problem back to the app. + * + * @param message The message to be passed to the agent's application in an exception. + */ + void fail(String message); } -- cgit v1.1