MountService: Add support for renaming secure containers

Signed-off-by: San Mehat <san@google.com>
This commit is contained in:
San Mehat
2010-01-23 08:12:43 -08:00
parent 60e8495c16
commit 45f6104082
3 changed files with 24 additions and 1 deletions

View File

@ -1056,6 +1056,11 @@ class MountService extends IMountService.Stub
mConnector.doCommand(cmd);
}
public void renameSecureContainer(String oldId, String newId) throws IllegalStateException {
String cmd = String.format("rename_asec %s %s", oldId, newId);
mConnector.doCommand(cmd);
}
public String getSecureContainerPath(String id) throws IllegalStateException {
ArrayList<String> rsp = mConnector.doCommand("asec_path " + id);