[CloneProfile] Create user mount directory before creating bind mounts.
In aosp/2679182 the capability to add bind mounts for clone user
in public volumes was added.
This allows apps in clone profile to access public volume via lower
fs.
However, sometimes, the user mount directory (/user/mount/<user-id>)
is itself not present, resulting in failures of public volume
bind mounts. This CL addresses this.
Bug: 327293687
Test: Manul build and flash
Change-Id: I0680a518cb14983c6f2e636a38ab6dcd476d7eab
diff --git a/Utils.h b/Utils.h
index 690f79e..39723ec 100644
--- a/Utils.h
+++ b/Utils.h
@@ -219,6 +219,8 @@
// referenced inside the current process via the virtual procfs symlink returned here.
std::pair<android::base::unique_fd, std::string> OpenDirInProcfs(std::string_view path);
+status_t PrepareMountDirForUser(userid_t user_id);
+
} // namespace vold
} // namespace android