diff --git a/src/appspawn_server.cpp b/src/appspawn_server.cpp index 6a43dcd76555aacc56e7f5daa609e18d0e0b0226..94aca6fadc29e17844414b12055502f5b2e33646 100644 --- a/src/appspawn_server.cpp +++ b/src/appspawn_server.cpp @@ -465,7 +465,7 @@ int32_t AppSpawnServer::DoAppSandboxMount(const ClientSocket::AppProperty *appPr std::string destDataPath = rootPath + "/data/storage/el2/base"; int rc = 0; - std::string bundleName = GetApplicationNameById(appProperty->uid); + std::string bundleName = appProperty->bundleName; oriInstallPath += bundleName; oriDataPath += bundleName; oriDatabasePath += bundleName; @@ -632,7 +632,7 @@ int32_t AppSpawnServer::SetAppSandboxProperty(const ClientSocket::AppProperty *a // create /mnt/sandbox/ path, later put it to rootfs module std::string sandboxPackagePath = "/mnt/sandbox/"; mkdir(sandboxPackagePath.c_str(), FILE_MODE); - sandboxPackagePath += GetApplicationNameById(appProperty->uid); + sandboxPackagePath += appProperty->bundleName; mkdir(sandboxPackagePath.c_str(), FILE_MODE); // add pid to a new mnt namespace