diff options
author | San Mehat <san@google.com> | 2010-02-18 11:43:03 -0800 |
---|---|---|
committer | San Mehat <san@google.com> | 2010-02-18 11:48:48 -0800 |
commit | d970998b0d489774ad1c5b94b47d233912f00214 (patch) | |
tree | e319422620d535a0c7172fe8616e67cc27cf86b5 /core/java/com | |
parent | 154f7a1cc2d4f0468a7cc8dfa36e837c84cd9f7e (diff) | |
download | frameworks_base-d970998b0d489774ad1c5b94b47d233912f00214.zip frameworks_base-d970998b0d489774ad1c5b94b47d233912f00214.tar.gz frameworks_base-d970998b0d489774ad1c5b94b47d233912f00214.tar.bz2 |
framework: storage: Add 'force' option to unmount/destroy storage apis, and update callsites.
Also adds additional storage unit tests
Signed-off-by: San Mehat <san@google.com>
Diffstat (limited to 'core/java/com')
-rw-r--r-- | core/java/com/android/internal/content/PackageHelper.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/java/com/android/internal/content/PackageHelper.java b/core/java/com/android/internal/content/PackageHelper.java index c5b869b..bc7dbf4 100644 --- a/core/java/com/android/internal/content/PackageHelper.java +++ b/core/java/com/android/internal/content/PackageHelper.java @@ -93,7 +93,7 @@ public class PackageHelper { public static boolean unMountSdDir(String cid) { try { - int rc = getMountService().unmountSecureContainer(cid); + int rc = getMountService().unmountSecureContainer(cid, false); if (rc != StorageResultCode.OperationSucceeded) { Log.e(TAG, "Failed to unmount " + cid + " with rc " + rc); return false; @@ -148,7 +148,7 @@ public class PackageHelper { public static boolean destroySdDir(String cid) { try { - int rc = getMountService().destroySecureContainer(cid); + int rc = getMountService().destroySecureContainer(cid, false); if (rc != StorageResultCode.OperationSucceeded) { Log.i(TAG, "Failed to destroy container " + cid); return false; |