diff --git a/VolumeManager.cpp b/VolumeManager.cpp index 6a40a52..e4e5781 100644 --- a/VolumeManager.cpp +++ b/VolumeManager.cpp @@ -776,7 +776,8 @@ static std::string getStorageDirTarget(userid_t userId, std::string dirName, } // Fork the process and remount storage -static bool forkAndRemountStorage(int uid, int pid, const std::vector& packageNames) { +bool VolumeManager::forkAndRemountStorage(int uid, int pid, + const std::vector& packageNames) { userid_t userId = multiuser_get_user_id(uid); std::string mnt_path = StringPrintf("/proc/%d/ns/mnt", pid); android::base::unique_fd nsFd( @@ -814,7 +815,8 @@ static bool forkAndRemountStorage(int uid, int pid, const std::vector& packageNames); + static VolumeManager* Instance(); /*