summaryrefslogtreecommitdiffstats
path: root/services/java/com/android/server/MountService.java
diff options
context:
space:
mode:
authorSan Mehat <san@google.com>2010-01-18 06:47:41 -0800
committerSan Mehat <san@google.com>2010-01-18 06:49:19 -0800
commit9dba709d4439d8cdb464a3dcccbddffdbe4b10ff (patch)
tree07b08f8bee730d8ec59604d6e29287f7cb0f7b88 /services/java/com/android/server/MountService.java
parent5fbf4094f5857ab15801c65a260a5c4b6866d655 (diff)
downloadframeworks_base-9dba709d4439d8cdb464a3dcccbddffdbe4b10ff.zip
frameworks_base-9dba709d4439d8cdb464a3dcccbddffdbe4b10ff.tar.gz
frameworks_base-9dba709d4439d8cdb464a3dcccbddffdbe4b10ff.tar.bz2
MountService: Add new 'unmountSecureContainer' API call
Signed-off-by: San Mehat <san@google.com>
Diffstat (limited to 'services/java/com/android/server/MountService.java')
-rw-r--r--services/java/com/android/server/MountService.java5
1 files changed, 5 insertions, 0 deletions
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<String> rsp = mConnector.doCommand("asec_path " + id);