/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/ |
H A D | pre_install_exception_mgr.cpp | 154 const std::string &bundleDir) in SavePreInstallExceptionPath() 157 if (bundleDir.empty()) { in SavePreInstallExceptionPath() 158 APP_LOGE("bundleDir is empty"); in SavePreInstallExceptionPath() 162 if (exceptionPaths_.find(bundleDir) != exceptionPaths_.end()) { in SavePreInstallExceptionPath() 163 APP_LOGE("bundleDir %{public}s saved", bundleDir.c_str()); in SavePreInstallExceptionPath() 167 exceptionPaths_.insert(bundleDir); in SavePreInstallExceptionPath() 172 void PreInstallExceptionMgr::DeletePreInstallExceptionPath(const std::string &bundleDir) in DeletePreInstallExceptionPath() argument 175 if (bundleDir.empty()) { in DeletePreInstallExceptionPath() 176 APP_LOGE("bundleDir i in DeletePreInstallExceptionPath() 153 SavePreInstallExceptionPath( const std::string &bundleDir) SavePreInstallExceptionPath() argument 268 SavePreInstallExceptionAppServicePath( const std::string &bundleDir) SavePreInstallExceptionAppServicePath() argument 287 DeletePreInstallExceptionAppServicePath(const std::string &bundleDir) DeletePreInstallExceptionAppServicePath() argument [all...] |
H A D | hmp_bundle_installer.cpp | 70 ErrCode HmpBundleInstaller::InstallSystemHspInHmp(const std::string &bundleDir) const in InstallSystemHspInHmp() 78 ErrCode ret = installer.Install({ bundleDir }, installParam); in InstallSystemHspInHmp() 80 APP_LOGE("install hmp system hsp %{public}s error with code: %{public}d", bundleDir.c_str(), ret); in InstallSystemHspInHmp() 85 ErrCode HmpBundleInstaller::InstallNormalAppInHmp(const std::string &bundleDir, bool removable) in InstallNormalAppInHmp() argument 87 auto pos = bundleDir.rfind('/'); in InstallNormalAppInHmp() 88 auto bundleName = pos != std::string::npos ? bundleDir.substr(pos + 1) : ""; in InstallNormalAppInHmp() 91 APP_LOGI("%{public}s need not to install", bundleDir.c_str()); in InstallNormalAppInHmp() 105 ErrCode ret = InstallBundle(bundleDir, installParam, Constants::AppType::SYSTEM_APP); in InstallNormalAppInHmp() 108 APP_LOGI("install hmp normal app %{public}s for user 0 success", bundleDir.c_str()); in InstallNormalAppInHmp() 115 APP_LOGE("install hmp system hsp %{public}s error with code: %{public}d", bundleDir in InstallNormalAppInHmp() 254 ParseInfos(const std::string &bundleDir, const std::string &hspDir, std::unordered_map<std::string, InnerBundleInfo> &infos) ParseInfos() argument 269 UpdateBundleInfo(const std::string &bundleName, const std::string &bundleDir, const std::string &hspDir) UpdateBundleInfo() argument 406 std::string bundleDir = appBaseDir + ServiceConstants::PATH_SEPARATOR + bundleName; UpdateBundleInfoForHmp() local [all...] |
H A D | pre_bundle_profile.cpp | 86 preScanInfo.bundleDir, in TransformTo() 96 (preScanInfo.bundleDir.find(RESOURCES_PATH_1) != preScanInfo.bundleDir.npos) || in TransformTo() 97 (preScanInfo.bundleDir.find(RESOURCES_PATH_2) != preScanInfo.bundleDir.npos); in TransformTo() 100 APP_LOGE("bundleDir must exist, and it is empty here"); in TransformTo() 113 APP_LOGD("Replace old preScanInfo(%{public}s)", preScanInfo.bundleDir.c_str()); in TransformTo()
|
H A D | bundle_exception_handler.cpp | 47 bool BundleExceptionHandler::RemoveBundleAndDataDir(const std::string &bundleDir, in RemoveBundleAndDataDir() argument 50 ErrCode result = InstalldClient::GetInstance()->RemoveDir(bundleDir); in RemoveBundleAndDataDir() 52 APP_LOGE("fail to remove bundle dir %{public}s, error is %{public}d", bundleDir.c_str(), result); in RemoveBundleAndDataDir()
|
H A D | bundle_mgr_service_event_handler.cpp | 694 if (uninstallList_.find(installInfo.bundleDir) != uninstallList_.end()) { in GetPreInstallDirFromLoadProFile() 695 LOG_W(BMS_TAG_DEFAULT, "bundle(%{public}s) not allowed installed", installInfo.bundleDir.c_str()); in GetPreInstallDirFromLoadProFile() 699 bundleDirs.emplace_back(installInfo.bundleDir); in GetPreInstallDirFromLoadProFile() 725 for (const auto &bundleDir : bundleDirs) { in AnalyzeHaps() 727 if (!CheckAndParseHapFiles(bundleDir, isPreInstallApp, hapInfos) || hapInfos.empty()) { in AnalyzeHaps() 728 LOG_E(BMS_TAG_DEFAULT, "Parse bundleDir(%{public}s) failed", bundleDir.c_str()); in AnalyzeHaps() 927 LOG_I(BMS_TAG_DEFAULT, "Install systemHsp by bundleDir(%{public}s)", preScanInfo.bundleDir.c_str()); in ProcessSystemHspInstall() 935 SavePreInstallExceptionAppService(preScanInfo.bundleDir); in ProcessSystemHspInstall() 1072 ProcessSystemBundleInstall( const std::string &bundleDir, Constants::AppType appType, int32_t userId) ProcessSystemBundleInstall() argument 2371 GetRemovableInfo(const std::string& bundleDir) GetRemovableInfo() argument 2801 SavePreInstallException(const std::string &bundleDir) SavePreInstallException() argument 2814 SavePreInstallExceptionAppService(const std::string &bundleDir) SavePreInstallExceptionAppService() argument 2827 DeletePreInstallExceptionAppService(const std::string &bundleDir) DeletePreInstallExceptionAppService() argument [all...] |
H A D | installd_client.cpp | 30 ErrCode InstalldClient::CreateBundleDir(const std::string &bundleDir) in CreateBundleDir() argument 32 if (bundleDir.empty()) { in CreateBundleDir() 37 return CallService(&IInstalld::CreateBundleDir, bundleDir); in CreateBundleDir() 162 ErrCode InstalldClient::CleanBundleDataDir(const std::string &bundleDir) in CleanBundleDataDir() argument 164 if (bundleDir.empty()) { in CleanBundleDataDir() 169 return CallService(&IInstalld::CleanBundleDataDir, bundleDir); in CleanBundleDataDir()
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/ |
H A D | pre_scan_info.h | 102 std::string bundleDir; member 108 if (bundleDir == preScanInfo.bundleDir) { in operator <() 117 return oldPreScanInfo.bundleDir == newPreScanInfo.bundleDir; in operator ==() 122 bundleDir.clear(); in Reset() 129 return "[ bundleDir = " + bundleDir in ToString()
|
H A D | hmp_bundle_installer.h | 28 ErrCode InstallSystemHspInHmp(const std::string &bundleDir) const; 30 ErrCode InstallNormalAppInHmp(const std::string &bundleDir, bool removable = true); 37 void UpdateBundleInfo(const std::string &bundleName, const std::string &bundleDir, const std::string &hspDir); 47 void ParseInfos(const std::string &bundleDir, const std::string &hspDir,
|
H A D | pre_install_exception_mgr.h | 39 void SavePreInstallExceptionAppServicePath(const std::string &bundleDir); 40 void DeletePreInstallExceptionAppServicePath(const std::string &bundleDir);
|
H A D | bundle_exception_handler.h | 41 bool RemoveBundleAndDataDir(const std::string &bundleDir, const std::string &bundleOrMoudleDir,
|
H A D | bundle_mgr_service_event_handler.h | 72 std::string bundleDir; member 124 static void SavePreInstallException(const std::string &bundleDir); 574 void DeletePreInstallExceptionAppService(const std::string &bundleDir); 575 void SavePreInstallExceptionAppService(const std::string &bundleDir); 599 bool GetRemovableInfo(const std::string& bundleDir);
|
/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_base/src/overlay/ |
H A D | overlay_bundle_info.cpp | 29 const char* BUNDLE_OVERLAY_BUNDLE_DIR = "bundleDir";
36 bundleDir = Str16ToStr8(parcel.ReadString16());
in ReadFromParcel() 45 WRITE_PARCEL_AND_RETURN_FALSE_IF_FAIL(String16, parcel, Str8ToStr16(bundleDir));
in Marshalling() 66 {BUNDLE_OVERLAY_BUNDLE_DIR, overlayBundleInfo.bundleDir},
in to_json() 85 overlayBundleInfo.bundleDir,
in from_json()
|
/foundation/filemanagement/dfs_service/utils/preference/src/ |
H A D | cloud_pref_impl.cpp | 36 std::string bundleDir = userIdDir + "/" + bundleName; in CloudPrefImpl() local 37 if (access(bundleDir.c_str(), F_OK) != 0) { in CloudPrefImpl() 38 if (mkdir(bundleDir.c_str(), STAT_MODE_DIR) != 0) { in CloudPrefImpl() 42 fileName_ = bundleDir + "/" + tableName; in CloudPrefImpl()
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/overlay/ |
H A D | bundle_overlay_data_manager.cpp | 123 std::string bundleDir;
in UpdateExternalOverlayInfo() local 125 GetBundleDir(moduleHapPath, bundleDir);
in UpdateExternalOverlayInfo() 128 overlayBundleInfo.bundleDir = bundleDir;
in UpdateExternalOverlayInfo() 194 ErrCode OverlayDataMgr::GetBundleDir(const std::string &moduleHapPath, std::string &bundleDir) const
in GetBundleDir() 196 bundleDir = moduleHapPath;
in GetBundleDir() 198 bundleDir = moduleHapPath.substr(0, moduleHapPath.length() - 1);
in GetBundleDir() 200 size_t pos = bundleDir.find_last_of(ServiceConstants::PATH_SEPARATOR);
in GetBundleDir() 202 APP_LOGW("bundleDir is invalid");
in GetBundleDir() 205 bundleDir in GetBundleDir() [all...] |
/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_base/include/overlay/ |
H A D | overlay_bundle_info.h | 34 std::string bundleDir;
member
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/mock/src/ |
H A D | installd_client.cpp | 25 ErrCode InstalldClient::CreateBundleDir(const std::string &bundleDir) in CreateBundleDir() argument 27 if (bundleDir.empty()) { in CreateBundleDir() 32 return CallService(&IInstalld::CreateBundleDir, bundleDir); in CreateBundleDir() 146 ErrCode InstalldClient::CleanBundleDataDir(const std::string &bundleDir) in CleanBundleDataDir() argument 148 if (bundleDir.empty()) { in CleanBundleDataDir() 153 return CallService(&IInstalld::CleanBundleDataDir, bundleDir); in CleanBundleDataDir()
|
H A D | bundle_mgr_service_event_handler.cpp | 249 for (const auto& bundleDir : bundleDirs) { in AnalyzeHaps() 251 if (!CheckAndParseHapFiles(bundleDir, isPreInstallApp, hapInfos) || hapInfos.empty()) { in AnalyzeHaps() 392 const std::string& bundleDir, Constants::AppType appType, int32_t userId) in ProcessSystemBundleInstall() 549 void BMSEventHandler::SavePreInstallException(const std::string& bundleDir) {} in SavePreInstallException() argument 391 ProcessSystemBundleInstall( const std::string& bundleDir, Constants::AppType appType, int32_t userId) ProcessSystemBundleInstall() argument
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/app_service_fwk/ |
H A D | app_service_fwk_installer.cpp | 133 std::string bundleDir = in UnInstall() local 136 APP_LOGI("start to remove bundle dir: %{public}s", bundleDir.c_str()); in UnInstall() 137 if (InstalldClient::GetInstance()->RemoveDir(bundleDir) != ERR_OK) { in UnInstall() 138 APP_LOGW("remove bundle dir %{public}s failed", bundleDir.c_str()); in UnInstall() 565 std::string bundleDir = in ExtractModule() local 568 result = MkdirIfNotExist(bundleDir); in ExtractModule() 571 newInfo.SetAppCodePath(bundleDir); in ExtractModule() 573 std::string versionDir = bundleDir in ExtractModule() 626 std::string bundleDir = in ExtractModule() local 629 result = MkdirIfNotExist(bundleDir); in ExtractModule() 1076 std::string bundleDir = RemoveLowerVersionSoDir() local [all...] |
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/overlaydatamgr_fuzzer/ |
H A D | overlaydatamgr_fuzzer.cpp | 44 std::string bundleDir(data, size); in DoSomethingInterestingWithMyAPI() 45 overlayDataMgr.GetBundleDir(moduleHapPath, bundleDir); in DoSomethingInterestingWithMyAPI()
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_overlay_test/ |
H A D | bms_bundle_overlay_info_test.cpp | 43 "bundleDir": "testBundleDir",
93 EXPECT_EQ(info.bundleDir, TEST_BUNDLE_OVERLAY_BUNDLE_DIR);
in CheckOverlayBundleInfo() 139 overlayBundleInfo.bundleDir = TEST_BUNDLE_OVERLAY_BUNDLE_DIR;
in HWTEST_F() 183 overlayBundleInfo.bundleDir = TEST_BUNDLE_OVERLAY_BUNDLE_DIR;
in HWTEST_F()
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/ipc/ |
H A D | installd_interface.h | 40 * @param bundleDir Indicates the bundle code directory path that to be created. 43 virtual ErrCode CreateBundleDir(const std::string &bundleDir) in CreateBundleDir() argument 132 * @param bundleDir Indicates the bundle data directory path that to be created. 136 virtual ErrCode RemoveBundleDataDir(const std::string &bundleDir, const int32_t userId, in RemoveBundleDataDir() argument 172 * @param bundleDir Indicates the data directory path that to be cleaned. 175 virtual ErrCode CleanBundleDataDir(const std::string &bundleDir) in CleanBundleDataDir() argument
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_event_handler_test/ |
H A D | bms_event_handler_test.cpp | 273 * @tc.desc: test ProcessSystemBundleInstall input bundleDir success 278 std::string bundleDir = CALL_MOCK_BUNDLE_DIR_SUCCESS; in HWTEST_F() local 281 handler->ProcessSystemBundleInstall(bundleDir, appType, userId); in HWTEST_F() 282 EXPECT_TRUE(bundleDir.compare(RETURN_MOCK_BUNDLE_DIR_SUCCESS) == 0); in HWTEST_F() 288 * @tc.desc: test ProcessSystemBundleInstall input bundleDir failed 293 std::string bundleDir = CALL_MOCK_BUNDLE_DIR_FAILED; in HWTEST_F() local 296 handler->ProcessSystemBundleInstall(bundleDir, appType, userId); in HWTEST_F() 297 EXPECT_TRUE(bundleDir.compare(RETURN_MOCK_BUNDLE_DIR_FAILED) == 0); in HWTEST_F() 309 preScanInfo.bundleDir = CALL_MOCK_BUNDLE_DIR_SUCCESS; in HWTEST_F() 313 EXPECT_TRUE(preScanInfo.bundleDir in HWTEST_F() 810 std::string bundleDir = CALL_MOCK_BUNDLE_DIR_FAILED; HWTEST_F() local [all...] |
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_install_daemon_test/ |
H A D | bms_install_daemon_test.cpp | 62 int CreateBundleDir(const std::string &bundleDir) const; 63 int CreateBundleDataDir(const std::string &bundleDir, const int32_t userid, const int32_t uid, const int32_t gid, 65 int RemoveBundleDir(const std::string &bundleDir) const; 112 int BmsInstallDaemonTest::CreateBundleDir(const std::string &bundleDir) const in CreateBundleDir() 117 return InstalldClient::GetInstance()->CreateBundleDir(bundleDir); in CreateBundleDir() 136 int BmsInstallDaemonTest::RemoveBundleDir(const std::string &bundleDir) const in RemoveBundleDir() 141 return InstalldClient::GetInstance()->RemoveDir(bundleDir); in RemoveBundleDir()
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/overlay/ |
H A D | bundle_overlay_data_manager.h | 41 ErrCode GetBundleDir(const std::string &moduleHapPath, std::string &bundleDir) const;
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/installd/ |
H A D | installd_host_impl.h | 33 * @param bundleDir Indicates the bundle code directory path that to be created. 36 virtual ErrCode CreateBundleDir(const std::string &bundleDir) override; 117 * @param bundleDir Indicates the data directory path that to be cleaned. 120 virtual ErrCode CleanBundleDataDir(const std::string &bundleDir) override;
|