MountService: Add new 'unmountSecureContainer' API call

Signed-off-by: San Mehat <san@google.com>
This commit is contained in:
San Mehat
2010-01-18 06:47:41 -08:00
parent 5fbf4094f5
commit 9dba709d44
3 changed files with 19 additions and 0 deletions

View File

@ -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);