diff options
author | Kenny Root <kroot@google.com> | 2012-08-09 11:28:37 -0700 |
---|---|---|
committer | Kenny Root <kroot@google.com> | 2012-08-09 15:50:58 -0700 |
commit | 93ecb38daded7583a4a61f4f22519bb7a8a8c154 (patch) | |
tree | b7764606ec9511b54a1adba75c491a92f31f24b0 /VolumeManager.h | |
parent | 912d0b07555eb691f0320530c4e0f6ab85521e95 (diff) | |
download | system_vold-93ecb38daded7583a4a61f4f22519bb7a8a8c154.zip system_vold-93ecb38daded7583a4a61f4f22519bb7a8a8c154.tar.gz system_vold-93ecb38daded7583a4a61f4f22519bb7a8a8c154.tar.bz2 |
Only cleanup ASECs in external storage
Any ASEC or OBB files were unmounted when USB storage was set to UMS
mode. This changes it so only ASEC files on external storage and OBB
files mounted from external storage are unmounted.
Bug: 6948035
Change-Id: I91bc09ee5b792970b0eef895f6886f3ffad00e8f
Diffstat (limited to 'VolumeManager.h')
-rw-r--r-- | VolumeManager.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/VolumeManager.h b/VolumeManager.h index 4399b76..198b5a9 100644 --- a/VolumeManager.h +++ b/VolumeManager.h @@ -117,6 +117,8 @@ public: int unmountObb(const char *fileName, bool force); int getObbMountPath(const char *id, char *buffer, int maxlen); + Volume* getVolumeForFile(const char *fileName); + /* Shared between ASEC and Loopback images */ int unmountLoopImage(const char *containerId, const char *loopId, const char *fileName, const char *mountPoint, bool force); |