From 9dba709d4439d8cdb464a3dcccbddffdbe4b10ff Mon Sep 17 00:00:00 2001 From: San Mehat Date: Mon, 18 Jan 2010 06:47:41 -0800 Subject: MountService: Add new 'unmountSecureContainer' API call Signed-off-by: San Mehat --- services/java/com/android/server/MountService.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'services/java/com/android/server/MountService.java') diff --git a/services/java/com/android/server/MountService.java b/services/java/com/android/server/MountService.java index d54c4d9..f8f8742 100644 --- a/services/java/com/android/server/MountService.java +++ b/services/java/com/android/server/MountService.java @@ -1057,6 +1057,11 @@ class MountService extends IMountService.Stub return getSecureContainerPath(id); } + public void unmountSecureContainer(String id) throws IllegalStateException { + String cmd = String.format("unmount_asec %s ", id); + mConnector.doCommand(cmd); + } + public String getSecureContainerPath(String id) throws IllegalStateException { ArrayList rsp = mConnector.doCommand("asec_path " + id); -- cgit v1.1