|
|
|
@ -805,6 +805,8 @@ int VolumeManager::onUserStopped(userid_t userId) {
|
|
|
|
|
LOG(VERBOSE) << "onUserStopped: " << userId;
|
|
|
|
|
mStartedUsers.erase(userId);
|
|
|
|
|
|
|
|
|
|
if (GetBoolProperty(kIsolatedStorage, false)) {
|
|
|
|
|
mUserPackages.erase(userId);
|
|
|
|
|
std::string mntTargetDir = StringPrintf("/mnt/user/%d", userId);
|
|
|
|
|
if (android::vold::UnmountTree(mntTargetDir) != 0) {
|
|
|
|
|
PLOG(ERROR) << "unmountTree on " << mntTargetDir << " failed";
|
|
|
|
@ -815,6 +817,7 @@ int VolumeManager::onUserStopped(userid_t userId) {
|
|
|
|
|
return -errno;
|
|
|
|
|
}
|
|
|
|
|
LOG(VERBOSE) << "Success: DeleteDirContentsAndDir on " << mntTargetDir;
|
|
|
|
|
}
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|