/foundation/bundlemanager/bundle_framework/common/utils/src/ |
H A D | bundle_file_util.cpp | 48 bool BundleFileUtil::CheckFilePath(const std::string &bundlePath, std::string &realPath) in CheckFilePath() argument 50 if (!CheckFileName(bundlePath)) { in CheckFilePath() 54 if (!CheckFileType(bundlePath, INSTALL_FILE_SUFFIX) && in CheckFilePath() 55 !CheckFileType(bundlePath, HSP_FILE_SUFFIX) && in CheckFilePath() 56 !CheckFileType(bundlePath, QUICK_FIX_FILE_SUFFIX) && in CheckFilePath() 57 !CheckFileType(bundlePath, ABC_FILE_SUFFIX) && in CheckFilePath() 58 !CheckFileType(bundlePath, CODE_SIGNATURE_SUFFIX) && in CheckFilePath() 59 !CheckFileType(bundlePath, PGO_SUFFIX)) { in CheckFilePath() 63 if (!PathToRealPath(bundlePath, realPath)) { in CheckFilePath() 92 const std::string& bundlePath in CheckFilePath() local 148 CheckFileSize(const std::string &bundlePath, const int64_t fileSize) CheckFileSize() argument 176 std::string bundlePath = currentBundlePath; GetHapFilesFromBundlePath() local [all...] |
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_application/bundlefileutil_fuzzer/ |
H A D | bundlefileutil_fuzzer.cpp | 28 std::string bundlePath (reinterpret_cast<const char*>(data), size); in DoSomethingInterestingWithMyAPI() 31 bundlePaths.push_back(bundlePath); in DoSomethingInterestingWithMyAPI() 34 fileUtil.CheckFilePath(bundlePath, realPath); in DoSomethingInterestingWithMyAPI() 40 fileUtil.CheckFileSize(bundlePath, reinterpret_cast<intptr_t>(data)); in DoSomethingInterestingWithMyAPI() 44 fileUtil.GetHapFilesFromBundlePath(bundlePath, hapFileList); in DoSomethingInterestingWithMyAPI()
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/ |
H A D | pre_install_bundle_info.h | 84 * @param bundlePath bundle path. 86 void AddBundlePath(const std::string &bundlePath) in AddBundlePath() argument 89 bundlePaths_.begin(), bundlePaths_.end(), bundlePath) != bundlePaths_.end(); in AddBundlePath() 91 bundlePaths_.emplace_back(bundlePath); in AddBundlePath() 96 * @param bundlePath bundle path. 98 void DeleteBundlePath(const std::string &bundlePath) in DeleteBundlePath() argument 100 auto iter = std::find(bundlePaths_.begin(), bundlePaths_.end(), bundlePath); in DeleteBundlePath() 107 * @param bundlePath bundle path. 115 * @param bundlePath bundle path. 117 bool HasBundlePath(const std::string &bundlePath) in HasBundlePath() argument [all...] |
H A D | bundle_util.h | 42 * @param bundlePath Indicates the HAP file path. 45 static ErrCode CheckFilePath(const std::string &bundlePath, std::string &realPath); 71 static bool CheckFileSize(const std::string &bundlePath, const int64_t fileSize); 74 * @param bundlePath Indicates the file path. 78 static bool CheckSystemSize(const std::string &bundlePath, const std::string &diskPath); 194 static int32_t CreateFileDescriptor(const std::string &bundlePath, long long offset); 195 static int32_t CreateFileDescriptorForReadOnly(const std::string &bundlePath, long long offset); 203 static int64_t CalculateFileSize(const std::string &bundlePath);
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_crowdtesting_test/ |
H A D | bms_bundle_crowdtesting_test.cpp | 57 ErrCode InstallBundle(const std::string &bundlePath, int32_t crowdtestDeadline = 0) const; 58 ErrCode InstallBundle(const std::vector<std::string> &bundlePath, int32_t crowdtestDeadline = 0) const; 59 ErrCode InstallBundle(const std::string &bundlePath, 61 ErrCode UpdateBundle(const std::string &bundlePath, int32_t crowdtestDeadline = 0) const; 62 ErrCode UpdateBundle(const std::string &bundlePath, 103 ErrCode BmsBundleCrowdtestingTest::InstallBundle(const std::string &bundlePath, in InstallBundle() argument 106 std::vector<std::string> path {bundlePath}; in InstallBundle() 110 ErrCode BmsBundleCrowdtestingTest::InstallBundle(const std::vector<std::string> &bundlePath, in InstallBundle() argument 131 bool result = installer->Install(bundlePath, installParam, receiver); in InstallBundle() 136 ErrCode BmsBundleCrowdtestingTest::InstallBundle(const std::string &bundlePath, in InstallBundle() argument 165 UpdateBundle(const std::string &bundlePath, int32_t crowdtestDeadline) const UpdateBundle() argument 191 UpdateBundle(const std::string &bundlePath, int32_t crowdtestDeadline, const std::string &specifiedDistributeType) const UpdateBundle() argument 429 std::vector<std::string> bundlePath; HWTEST_F() local [all...] |
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_hsp_test/ |
H A D | bms_bundle_hsp_test.cpp | 65 ErrCode InstallBundle(const std::string &bundlePath) const; 66 ErrCode InstallBundle(const std::string &bundlePath, const InstallParam &installParam) const; 67 ErrCode UpdateBundle(const std::string &bundlePath) const; 107 ErrCode BmsBundleHspTest::InstallBundle(const std::string &bundlePath) const in InstallBundle() 126 bool result = installer->Install(bundlePath, installParam, receiver); in InstallBundle() 131 ErrCode BmsBundleHspTest::InstallBundle(const std::string &bundlePath, const InstallParam &installParam) const in InstallBundle() argument 146 bool result = installer->Install(bundlePath, installParam, receiver); in InstallBundle() 151 ErrCode BmsBundleHspTest::UpdateBundle(const std::string &bundlePath) const in UpdateBundle() 170 bool result = installer->Install(bundlePath, installParam, receiver); in UpdateBundle()
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/ |
H A D | bundle_util.cpp | 71 ErrCode BundleUtil::CheckFilePath(const std::string &bundlePath, std::string &realPath) in CheckFilePath() argument 73 if (!CheckFileName(bundlePath)) { in CheckFilePath() 77 if (!CheckFileType(bundlePath, ServiceConstants::INSTALL_FILE_SUFFIX) && in CheckFilePath() 78 !CheckFileType(bundlePath, ServiceConstants::HSP_FILE_SUFFIX) && in CheckFilePath() 79 !CheckFileType(bundlePath, ServiceConstants::QUICK_FIX_FILE_SUFFIX) && in CheckFilePath() 80 !CheckFileType(bundlePath, ServiceConstants::CODE_SIGNATURE_FILE_SUFFIX)) { in CheckFilePath() 84 if (!PathToRealPath(bundlePath, realPath)) { in CheckFilePath() 115 std::string bundlePath = bundlePaths.front(); in CheckFilePath() local 116 if (stat(bundlePath.c_str(), &s) == 0) { in CheckFilePath() 119 if ((s.st_mode & S_IFDIR) && !GetHapFilesFromBundlePath(bundlePath, realPath in CheckFilePath() 176 CheckFileSize(const std::string &bundlePath, const int64_t fileSize) CheckFileSize() argument 190 CheckSystemSize(const std::string &bundlePath, const std::string &diskPath) CheckSystemSize() argument 246 std::string bundlePath = currentBundlePath; GetHapFilesFromBundlePath() local 447 CreateFileDescriptor(const std::string &bundlePath, long long offset) CreateFileDescriptor() argument 464 CreateFileDescriptorForReadOnly(const std::string &bundlePath, long long offset) CreateFileDescriptorForReadOnly() argument 555 CalculateFileSize(const std::string &bundlePath) CalculateFileSize() argument [all...] |
H A D | pre_install_bundle_info.cpp | 100 for (const auto &bundlePath : bundlePaths_) { in CalculateHapTotalSize() 101 hapTotalSize_ += BundleUtil::CalculateFileSize(bundlePath); in CalculateHapTotalSize()
|
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/quickfixbootscanner_fuzzer/ |
H A D | quickfixbootscanner_fuzzer.cpp | 42 std::string bundlePath (reinterpret_cast<const char*>(data), size); in DoSomethingInterestingWithMyAPI() 45 fileDir.push_back(bundlePath); in DoSomethingInterestingWithMyAPI() 47 quickFixBootScanner.ReprocessQuickFix(realPath, bundlePath); in DoSomethingInterestingWithMyAPI()
|
/foundation/bundlemanager/bundle_framework/common/utils/include/ |
H A D | bundle_file_util.h | 26 static bool CheckFilePath(const std::string &bundlePath, std::string &realPath); 30 static bool CheckFileSize(const std::string &bundlePath, const int64_t fileSize);
|
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/basebundleinstallerinstallbundle_fuzzer/ |
H A D | basebundleinstallerinstallbundle_fuzzer.cpp | 31 std::string bundlePath = "/data/app/el1/bundle"; in DoSomethingInterestingWithMyAPI() local 34 auto ret1 = basebundleinstall.InstallBundle(bundlePath, installParam, appType); in DoSomethingInterestingWithMyAPI()
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_manager_test/ |
H A D | bms_bundle_manager_test.cpp | 491 std::string bundlePath = RESOURCE_ROOT_PATH + BUNDLE_BACKUP_TEST; in HWTEST_F() local 492 ErrCode installResult = InstallThirdPartyBundle(bundlePath); in HWTEST_F() 521 std::string bundlePath = RESOURCE_ROOT_PATH + BUNDLE_BACKUP_TEST; in HWTEST_F() local 522 ErrCode installResult = InstallThirdPartyBundle(bundlePath); in HWTEST_F() 543 std::string bundlePath = RESOURCE_ROOT_PATH + BUNDLE_BACKUP_TEST; in HWTEST_F() local 544 ErrCode installResult = InstallThirdPartyBundle(bundlePath); in HWTEST_F() 567 std::string bundlePath = RESOURCE_ROOT_PATH + BUNDLE_BACKUP_TEST; in HWTEST_F() local 568 ErrCode installResult = InstallThirdPartyBundle(bundlePath); in HWTEST_F() 591 std::string bundlePath = RESOURCE_ROOT_PATH + BUNDLE_PREVIEW_TEST; in HWTEST_F() local 592 ErrCode installResult = InstallThirdPartyBundle(bundlePath); in HWTEST_F() 617 std::string bundlePath = RESOURCE_ROOT_PATH + BUNDLE_PREVIEW_TEST; HWTEST_F() local 641 std::string bundlePath = RESOURCE_ROOT_PATH + BUNDLE_PREVIEW_TEST; HWTEST_F() local 665 std::string bundlePath = RESOURCE_ROOT_PATH + BUNDLE_PREVIEW_TEST; HWTEST_F() local 689 std::string bundlePath = RESOURCE_ROOT_PATH + BUNDLE_THUMBNAIL_TEST; HWTEST_F() local 715 std::string bundlePath = RESOURCE_ROOT_PATH + BUNDLE_THUMBNAIL_TEST; HWTEST_F() local 739 std::string bundlePath = RESOURCE_ROOT_PATH + BUNDLE_THUMBNAIL_TEST; HWTEST_F() local 763 std::string bundlePath = RESOURCE_ROOT_PATH + BUNDLE_THUMBNAIL_TEST; HWTEST_F() local 803 std::string bundlePath = RESOURCE_ROOT_PATH + BUNDLE_BACKUP_TEST; HWTEST_F() local 826 std::string bundlePath = RESOURCE_ROOT_PATH + BUNDLE_BACKUP_TEST; HWTEST_F() local 856 std::string bundlePath = RESOURCE_ROOT_PATH + BUNDLE_BACKUP_TEST; HWTEST_F() local 896 std::string bundlePath = RESOURCE_ROOT_PATH + BUNDLE_BACKUP_TEST; HWTEST_F() local 920 std::string bundlePath = RESOURCE_ROOT_PATH + BUNDLE_BACKUP_TEST; HWTEST_F() local 944 std::string bundlePath = RESOURCE_ROOT_PATH + BUNDLE_BACKUP_TEST; HWTEST_F() local 976 std::string bundlePath = RESOURCE_ROOT_PATH + BUNDLE_BACKUP_TEST; HWTEST_F() local 1033 std::string bundlePath = RESOURCE_ROOT_PATH + BUNDLE_BACKUP_TEST; HWTEST_F() local 1098 std::string bundlePath = RESOURCE_ROOT_PATH + BUNDLE_BACKUP_TEST; HWTEST_F() local 1122 std::string bundlePath = RESOURCE_ROOT_PATH + BUNDLE_BACKUP_TEST; HWTEST_F() local 1151 std::string bundlePath = RESOURCE_ROOT_PATH + BUNDLE_BACKUP_TEST; HWTEST_F() local 1185 std::string bundlePath = RESOURCE_ROOT_PATH + BUNDLE_BACKUP_TEST; HWTEST_F() local 1210 std::string bundlePath = RESOURCE_ROOT_PATH + BUNDLE_BACKUP_TEST; HWTEST_F() local 1235 std::string bundlePath = RESOURCE_ROOT_PATH + BUNDLE_BACKUP_TEST; HWTEST_F() local 1271 std::string bundlePath = RESOURCE_ROOT_PATH + BUNDLE_BACKUP_TEST; HWTEST_F() local 1313 std::string bundlePath = RESOURCE_ROOT_PATH + BUNDLE_BACKUP_TEST; HWTEST_F() local 1390 std::string bundlePath = RESOURCE_ROOT_PATH + BUNDLE_BACKUP_TEST; HWTEST_F() local 2203 std::string bundlePath = RESOURCE_ROOT_PATH + BUNDLE_BACKUP_TEST; HWTEST_F() local 2238 std::string bundlePath = RESOURCE_ROOT_PATH + BUNDLE_BACKUP_TEST; HWTEST_F() local 2268 std::string bundlePath = RESOURCE_ROOT_PATH + BUNDLE_BACKUP_TEST; HWTEST_F() local 3038 std::string bundlePath = RESOURCE_ROOT_PATH + BUNDLE_BACKUP_TEST; HWTEST_F() local 3053 std::string bundlePath = "/data/storage/el2/base/../../bundle"; HWTEST_F() local 3080 std::string bundlePath = RESOURCE_ROOT_PATH + BUNDLE_BACKUP_TEST; HWTEST_F() local 3107 std::string bundlePath = RESOURCE_ROOT_PATH + BUNDLE_BACKUP_TEST; HWTEST_F() local 3134 std::string bundlePath = RESOURCE_ROOT_PATH + BUNDLE_BACKUP_TEST; HWTEST_F() local 3222 std::string bundlePath = RESOURCE_ROOT_PATH + BUNDLE_BACKUP_TEST; HWTEST_F() local 3436 std::string bundlePath = RESOURCE_ROOT_PATH + BUNDLE_BACKUP_TEST; HWTEST_F() local 3827 std::string bundlePath = RESOURCE_ROOT_PATH + BUNDLE_BACKUP_TEST; HWTEST_F() local 3860 std::string bundlePath = RESOURCE_ROOT_PATH + BUNDLE_BACKUP_TEST; HWTEST_F() local 3892 std::string bundlePath = RESOURCE_ROOT_PATH + BUNDLE_BACKUP_TEST; HWTEST_F() local 4058 std::string bundlePath = RESOURCE_ROOT_PATH + BUNDLE_BACKUP_TEST; HWTEST_F() local 4090 std::string bundlePath = RESOURCE_ROOT_PATH + BUNDLE_BACKUP_TEST; HWTEST_F() local 4141 std::string bundlePath = RESOURCE_ROOT_PATH + BUNDLE_BACKUP_TEST; HWTEST_F() local 4502 std::string bundlePath = RESOURCE_ROOT_PATH + BUNDLE_PREVIEW_TEST; HWTEST_F() local 4540 std::string bundlePath = RESOURCE_ROOT_PATH + BUNDLE_PREVIEW_TEST; HWTEST_F() local 4828 std::string bundlePath = RESOURCE_ROOT_PATH + BUNDLE_BACKUP_TEST; HWTEST_F() local 5067 std::string bundlePath = RESOURCE_ROOT_PATH + BUNDLE_BACKUP_TEST; HWTEST_F() local 5115 std::string bundlePath = RESOURCE_ROOT_PATH + BUNDLE_BACKUP_TEST; HWTEST_F() local 5193 std::string bundlePath = RESOURCE_ROOT_PATH + BUNDLE_BACKUP_TEST; HWTEST_F() local 5404 std::string bundlePath = RESOURCE_ROOT_PATH + BUNDLE_BACKUP_TEST; HWTEST_F() local 5431 std::string bundlePath = RESOURCE_ROOT_PATH + BUNDLE_BACKUP_TEST; HWTEST_F() local 5458 std::string bundlePath = RESOURCE_ROOT_PATH + BUNDLE_BACKUP_TEST; HWTEST_F() local 5482 std::string bundlePath = RESOURCE_ROOT_PATH + BUNDLE_BACKUP_TEST; HWTEST_F() local 5507 std::string bundlePath = RESOURCE_ROOT_PATH + BUNDLE_BACKUP_TEST; HWTEST_F() local 5530 std::string bundlePath = RESOURCE_ROOT_PATH + BUNDLE_BACKUP_TEST; HWTEST_F() local 5553 std::string bundlePath = RESOURCE_ROOT_PATH + BUNDLE_BACKUP_TEST; HWTEST_F() local 5576 std::string bundlePath = RESOURCE_ROOT_PATH + BUNDLE_BACKUP_TEST; HWTEST_F() local 5600 std::string bundlePath = RESOURCE_ROOT_PATH + BUNDLE_PREVIEW_TEST; HWTEST_F() local 5622 std::string bundlePath = RESOURCE_ROOT_PATH + BUNDLE_PREVIEW_TEST; HWTEST_F() local 5644 std::string bundlePath = RESOURCE_ROOT_PATH + BUNDLE_PREVIEW_TEST; HWTEST_F() local 5665 std::string bundlePath = RESOURCE_ROOT_PATH + BUNDLE_PREVIEW_TEST; HWTEST_F() local 5690 std::string bundlePath = RESOURCE_ROOT_PATH + BUNDLE_BACKUP_TEST; HWTEST_F() local 5713 std::string bundlePath = RESOURCE_ROOT_PATH + BUNDLE_PREVIEW_TEST; HWTEST_F() local 5736 std::string bundlePath = RESOURCE_ROOT_PATH + BUNDLE_PREVIEW_TEST; HWTEST_F() local 5762 std::string bundlePath = RESOURCE_ROOT_PATH + BUNDLE_BACKUP_TEST; HWTEST_F() local 5784 std::string bundlePath = RESOURCE_ROOT_PATH + BUNDLE_PREVIEW_TEST; HWTEST_F() local 5900 std::string bundlePath = RESOURCE_ROOT_PATH + BUNDLE_BACKUP_TEST; HWTEST_F() local [all...] |
/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/shared/ |
H A D | inner_shared_bundle_installer.h | 99 ErrCode ExtractSharedBundles(const std::string &bundlePath, InnerBundleInfo &newInfo); 111 ErrCode SaveHspToRealInstallationDir(const std::string &bundlePath, const std::string &moduleDir, 115 ErrCode ProcessNativeLibrary(const std::string &bundlePath, 118 ErrCode VerifyCodeSignatureForNativeFiles(const std::string &bundlePath, const std::string &cpuAbi,
|
/foundation/bundlemanager/bundle_tool/test/systemtest/bm/ |
H A D | tool_system_test.cpp | 48 void ToolSystemTest::InstallBundle(const std::string& bundlePath, const bool checkResult) in InstallBundle() argument 51 std::string command = "bm install -p " + bundlePath; in InstallBundle()
|
H A D | tool_system_test.h | 30 static void InstallBundle(const std::string& bundlePath, const bool checkResult = false);
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_updater_test/ |
H A D | bms_bundle_updater_test.cpp | 68 ErrCode InstallBundle(const std::string &bundlePath) const; 70 ErrCode UpdateBundle(const std::string &bundlePath) const; 71 ErrCode UpdateBundle(const std::string &bundlePath, const bool needCheckInfo) const; 123 ErrCode BmsBundleUpdaterTest::InstallBundle(const std::string &bundlePath) const in InstallBundle() 140 bool result = installer->Install(bundlePath, installParam, receiver); in InstallBundle() 166 ErrCode BmsBundleUpdaterTest::UpdateBundle(const std::string &bundlePath) const in UpdateBundle() 183 bool result = installer->Install(bundlePath, installParam, receiver); in UpdateBundle() 188 ErrCode BmsBundleUpdaterTest::UpdateBundle(const std::string &bundlePath, const bool needCheckInfo) const in UpdateBundle() argument 204 bool result = installer->Install(bundlePath, installParam, receiver); in UpdateBundle()
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/app_service_fwk/ |
H A D | app_service_fwk_installer.cpp | 346 for (const std::string &bundlePath : deleteBundlePath_) { in SavePreInstallBundleInfo() 347 APP_LOGI_NOFUNC("preInstallBundleInfo delete path %{public}s", bundlePath.c_str()); in SavePreInstallBundleInfo() 348 preInstallBundleInfo.DeleteBundlePath(bundlePath); in SavePreInstallBundleInfo() 474 for (const auto &bundlePath : bundlePaths) { in CheckFileType() 475 if (!BundleUtil::CheckFileType(bundlePath, ServiceConstants::HSP_FILE_SUFFIX)) { in CheckFileType() 476 APP_LOGE("Hsp %{public}s suffix check failed", bundlePath.c_str()); in CheckFileType() 560 InnerBundleInfo &newInfo, const std::string &bundlePath, bool copyHapToInstallPath) in ExtractModule() 562 APP_LOGI_NOFUNC("begin ExtractModule with %{public}s bundlePath %{public}s", in ExtractModule() 563 newInfo.GetCurrentModulePackage().c_str(), bundlePath.c_str()); in ExtractModule() 583 result = ProcessNativeLibrary(bundlePath, moduleDi in ExtractModule() 559 ExtractModule( InnerBundleInfo &newInfo, const std::string &bundlePath, bool copyHapToInstallPath) ExtractModule() argument 622 ExtractModule(InnerBundleInfo &oldInfo, InnerBundleInfo &newInfo, const std::string &bundlePath) ExtractModule() argument 667 ProcessNativeLibrary( const std::string &bundlePath, const std::string &moduleDir, const std::string &moduleName, const std::string &versionDir, InnerBundleInfo &newInfo, bool copyHapToInstallPath) ProcessNativeLibrary() argument 1085 VerifyCodeSignatureForNativeFiles(const std::string &bundlePath, const std::string &cpuAbi, const std::string &targetSoPath) const VerifyCodeSignatureForNativeFiles() argument [all...] |
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_dependencies_test/ |
H A D | bms_bundle_dependencies_test.cpp | 64 ErrCode InstallBundle(const std::string &bundlePath) const; 65 ErrCode UpdateBundle(const std::string &bundlePath) const; 105 ErrCode BmsBundleDependenciesTest::InstallBundle(const std::string &bundlePath) const in InstallBundle() 124 bool result = installer->Install(bundlePath, installParam, receiver); in InstallBundle() 129 ErrCode BmsBundleDependenciesTest::UpdateBundle(const std::string &bundlePath) const in UpdateBundle() 148 bool result = installer->Install(bundlePath, installParam, receiver); in UpdateBundle()
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/shared/ |
H A D | inner_shared_bundle_installer.cpp | 325 ErrCode InnerSharedBundleInstaller::ExtractSharedBundles(const std::string &bundlePath, InnerBundleInfo &newInfo) in ExtractSharedBundles() argument 344 result = ProcessNativeLibrary(bundlePath, moduleDir, moduleName, versionDir, newInfo); in ExtractSharedBundles() 349 newInfo.SetModuleHapPath(bundlePath); in ExtractSharedBundles() 354 result = SaveHspToRealInstallationDir(bundlePath, moduleDir, moduleName, realHspPath); in ExtractSharedBundles() 587 ErrCode InnerSharedBundleInstaller::SaveHspToRealInstallationDir(const std::string &bundlePath, in SaveHspToRealInstallationDir() argument 602 result = InstalldClient::GetInstance()->CopyFile(bundlePath, tempHspPath, signatureFileDir_); in SaveHspToRealInstallationDir() 604 result = InstalldClient::GetInstance()->MoveHapToCodeDir(bundlePath, tempHspPath); in SaveHspToRealInstallationDir() 681 const std::string &bundlePath, in ProcessNativeLibrary() 698 APP_LOGD("tempSoPath=%{public}s,cpuAbi=%{public}s, bundlePath=%{public}s", in ProcessNativeLibrary() 699 tempSoPath.c_str(), cpuAbi.c_str(), bundlePath in ProcessNativeLibrary() 680 ProcessNativeLibrary( const std::string &bundlePath, const std::string &moduleDir, const std::string &moduleName, const std::string &versionDir, InnerBundleInfo &newInfo) ProcessNativeLibrary() argument 718 VerifyCodeSignatureForNativeFiles(const std::string &bundlePath, const std::string &cpuAbi, const std::string &targetSoPath, const std::string &signatureFileDir, bool isPreInstalledBundle) const VerifyCodeSignatureForNativeFiles() argument [all...] |
/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/app_service_fwk/ |
H A D | app_service_fwk_installer.h | 65 InnerBundleInfo &newInfo, const std::string &bundlePath, bool copyHapToInstallPath = false); 66 ErrCode ExtractModule(InnerBundleInfo &oldInfo, InnerBundleInfo &newInfo, const std::string &bundlePath); 69 const std::string &bundlePath, 105 ErrCode VerifyCodeSignatureForNativeFiles(const std::string &bundlePath, const std::string &cpuAbi,
|
/foundation/ability/ability_runtime/tools/test/systemtest/aa/ |
H A D | tool_system_test.cpp | 50 void ToolSystemTest::InstallBundle(const std::string& bundlePath, const bool checkResult) in InstallBundle() argument 53 std::string command = "bm install -p " + bundlePath; in InstallBundle()
|
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/appservicefwkinstallerupdateappservice_fuzzer/ |
H A D | appservicefwkinstallerupdateappservice_fuzzer.cpp | 53 std::string bundlePath(data, size); in DoSomethingInterestingWithMyAPI() 57 appServiceFwk.VerifyCodeSignatureForNativeFiles(bundlePath, cpuAbi, targetSoPath); in DoSomethingInterestingWithMyAPI()
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_permission_grant_test/ |
H A D | bms_bundle_permission_start_full_test.cpp | 53 ErrCode InstallBundle(const std::string &bundlePath) const; 92 ErrCode BmsBundlePermissionStartFullTest::InstallBundle(const std::string &bundlePath) const in InstallBundle() 110 bool result = installer->Install(bundlePath, installParam, receiver); in InstallBundle()
|
H A D | bms_bundle_permission_def_list_test.cpp | 56 ErrCode InstallBundle(const std::string &bundlePath) const; 105 ErrCode BmsBundlePermissionDefListTest::InstallBundle(const std::string &bundlePath) const in InstallBundle() 123 bool result = installer->Install(bundlePath, installParam, receiver); in InstallBundle()
|
H A D | bms_bundle_permission_grant_test.cpp | 54 ErrCode InstallBundle(const std::string &bundlePath) const; 93 ErrCode BmsBundlePermissionGrantTest::InstallBundle(const std::string &bundlePath) const in InstallBundle() 112 bool result = installer->Install(bundlePath, installParam, receiver); in InstallBundle()
|