From 6beb94e1f5ce15519bb3374a7c50df8f90791ea6 Mon Sep 17 00:00:00 2001 From: wanghang Date: Fri, 21 Jan 2022 10:29:48 +0800 Subject: [PATCH] opt mount bundle code dir Signed-off-by: wanghang Change-Id: I6c41a893382073bcf04f43edd1b08c856e0a9668 --- src/appspawn_server.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/appspawn_server.cpp b/src/appspawn_server.cpp index 4807ae3e..791f2632 100644 --- a/src/appspawn_server.cpp +++ b/src/appspawn_server.cpp @@ -415,6 +415,7 @@ int32_t AppSpawnServer::DoAppSandboxMount(const ClientSocket::AppProperty *appPr std::string oriInstallPath = "/data/app/el1/bundle/"; std::string oriDataPath = "/data/app/el2/0/base/"; std::string oriDatabasePath = "/data/app/el2/0/database/"; + std::string oriApi7InstallPath = "/data/app/el1/bundle/public/"; std::string destAPI7InstallPath = rootPath + "/data/accounts/account_0/applications"; std::string destDatabasePath = rootPath + "/data/storage/el2/database"; std::string destInstallPath = rootPath + "/data/storage/el1/0/bundle"; @@ -424,9 +425,10 @@ int32_t AppSpawnServer::DoAppSandboxMount(const ClientSocket::AppProperty *appPr oriInstallPath += appProperty->processName; oriDataPath += appProperty->processName; oriDatabasePath += appProperty->processName; + oriApi7InstallPath += appProperty->processName; std::map mountMap; - mountMap[oriInstallPath] = destAPI7InstallPath; + mountMap[oriApi7InstallPath] = destAPI7InstallPath; mountMap[oriDatabasePath] = destDatabasePath; mountMap[oriInstallPath] = destInstallPath; mountMap[oriDataPath] = destDataPath; -- Gitee