/ohos5.0/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_information/getbundlearchiveinfo_fuzzer/ |
H A D | getbundlearchiveinfo_fuzzer.cpp | 31 std::string hapFilePath (reinterpret_cast<const char*>(data), size); in DoSomethingInterestingWithMyAPI() 34 bundleMgrProxy.GetBundleArchiveInfo(hapFilePath, flag, bundleInfo); in DoSomethingInterestingWithMyAPI() 35 … bundleMgrProxy.GetBundleArchiveInfo(hapFilePath, reinterpret_cast<uintptr_t>(data), bundleInfo); in DoSomethingInterestingWithMyAPI() 36 … bundleMgrProxy.GetBundleArchiveInfoV9(hapFilePath, reinterpret_cast<uintptr_t>(data), bundleInfo); in DoSomethingInterestingWithMyAPI()
|
/ohos5.0/base/customization/enterprise_device_management/interfaces/inner_api/bundle_manager/src/ |
H A D | bundle_manager_proxy.cpp | 180 for (auto const &hapFilePath : hapFilePaths) { in Install() local 181 ErrCode res = WriteFileToStream(admin, hapFilePath, realPaths, errMessage); in Install() 243 …ndleManagerProxy::WriteFileToStream(AppExecFwk::ElementName &admin, const std::string &hapFilePath, in WriteFileToStream() argument 248 ErrCode checkRet = checkHapFilePath(hapFilePath, fileName, realPath, errMessage); in WriteFileToStream() 277 ErrCode BundleManagerProxy::checkHapFilePath(const std::string &hapFilePath, std::string &fileName, in checkHapFilePath() argument 280 if (!PathToRealPath(hapFilePath, realPath)) { in checkHapFilePath()
|
/ohos5.0/foundation/bundlemanager/bundle_framework/common/utils/src/ |
H A D | bundle_file_util.cpp | 185 const std::string hapFilePath = bundlePath + entry->d_name; in GetHapFilesFromBundlePath() local 187 if (!CheckFilePath(hapFilePath, realPath)) { in GetHapFilesFromBundlePath() 188 APP_LOGE("invalid hap path %{public}s", hapFilePath.c_str()); in GetHapFilesFromBundlePath()
|
/ohos5.0/foundation/bundlemanager/bundle_framework/test/systemtest/common/bms/bms_search_system_test/ |
H A D | bms_search_system_test.cpp | 513 std::string hapFilePath = THIRD_BUNDLE_PATH + "bmsThirdBundle1.hap"; variable 524 … bundleMgrProxy->GetBundleArchiveInfo(hapFilePath, BundleFlag::GET_BUNDLE_DEFAULT, bundleInfo); 541 std::string hapFilePath = THIRD_BUNDLE_PATH + "bmsThirdBundle1.hap"; variable 578 std::string hapFilePath = THIRD_BUNDLE_PATH + "bmsThirdBundle1.hap"; variable 588 hapFilePath = THIRD_BUNDLE_PATH + "tt.hap"; 590 … bundleMgrProxy->GetBundleArchiveInfo(hapFilePath, BundleFlag::GET_BUNDLE_DEFAULT, bundleInfo); 742 std::string hapFilePath = THIRD_BUNDLE_PATH + "bmsThirdBundle" + std::to_string(i) + ".hap"; variable 743 Install(hapFilePath, InstallFlag::NORMAL, resvec); 818 std::string hapFilePath = THIRD_BUNDLE_PATH + "bmsThirdBundle" + std::to_string(i) + ".hap"; variable 819 Install(hapFilePath, InstallFlag::NORMAL, resvec); [all …]
|
/ohos5.0/base/customization/enterprise_device_management/test/unittest/interface/inner_api/proxy/ |
H A D | bundle_manager_proxy_test.cpp | 289 std::string hapFilePath; variable 292 ErrCode ret = bundleManagerProxy->WriteFileToStream(admin, hapFilePath, realPaths, errMessage); 305 std::string hapFilePath = TEST_PACKAGE_PATH; variable 311 ErrCode ret = bundleManagerProxy->WriteFileToStream(admin, hapFilePath, realPaths, errMessage); 323 std::string hapFilePath = TEST_PACKAGE_PATH; variable 329 ErrCode ret = bundleManagerProxy->WriteFileToStream(admin, hapFilePath, realPaths, errMessage);
|
/ohos5.0/base/customization/enterprise_device_management/services/edm_plugin/src/ |
H A D | install_plugin.cpp | 180 for (auto const &hapFilePath : hapFilePaths) { in InstallParamInit() local 182 if (!PathToRealPath(hapFilePath, realPath)) { in InstallParamInit()
|
/ohos5.0/foundation/bundlemanager/bundle_tool/test/mock/ |
H A D | mock_bundle_mgr_host.h | 37 …bool GetBundleArchiveInfo(const std::string &hapFilePath, const BundleFlag flag, BundleInfo &bundl…
|
H A D | mock_bundle_mgr_host.cpp | 71 bool MockBundleMgrHost::GetBundleArchiveInfo(const std::string &hapFilePath, const BundleFlag flag, in GetBundleArchiveInfo() argument
|
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/ |
H A D | bundle_mgr_host_impl.cpp | 1079 const std::string &hapFilePath, int32_t flags, BundleInfo &bundleInfo) in GetBundleArchiveInfo() argument 1082 hapFilePath.c_str(), flags); in GetBundleArchiveInfo() 1095 auto ret = BundleUtil::CheckFilePath(hapFilePath, realPath); in GetBundleArchiveInfo() 1118 const std::string &hapFilePath, int32_t flags, BundleInfo &bundleInfo) in GetBundleArchiveInfoV9() argument 1121 hapFilePath.c_str(), flags); in GetBundleArchiveInfoV9() 1134 if (hapFilePath.find(ServiceConstants::SANDBOX_DATA_PATH) == 0 || in GetBundleArchiveInfoV9() 1135 hapFilePath.find(ServiceConstants::APP_INSTALL_SANDBOX_PATH) == 0) { in GetBundleArchiveInfoV9() 1140 ErrCode ret = BundleUtil::CheckFilePath(hapFilePath, realPath); in GetBundleArchiveInfoV9() 1173 if (hapFilePath.find(ServiceConstants::APP_INSTALL_SANDBOX_PATH) == 0 && in GetBundleArchiveInfoBySandBoxPath() 1179 if (!BundleUtil::RevertToRealPath(hapFilePath, bundleName, hapRealPath)) { in GetBundleArchiveInfoBySandBoxPath() [all …]
|
H A D | bundle_mgr_service_event_handler.cpp | 2447 const std::string &hapFilePath, in CheckAndParseHapFiles() argument 2453 std::vector<std::string> hapFilePathVec { hapFilePath }; in CheckAndParseHapFiles() 2457 LOG_E(BMS_TAG_DEFAULT, "File path %{public}s invalid", hapFilePath.c_str()); in CheckAndParseHapFiles() 2463 LOG_E(BMS_TAG_DEFAULT, "hap(%{public}s) syscap check failed", hapFilePath.c_str()); in CheckAndParseHapFiles() 2470 LOG_E(BMS_TAG_DEFAULT, "CheckMultipleHapsSignInfo %{public}s failed", hapFilePath.c_str()); in CheckAndParseHapFiles() 2483 LOG_E(BMS_TAG_DEFAULT, "parse haps file(%{public}s) failed", hapFilePath.c_str()); in CheckAndParseHapFiles() 2508 const std::string &hapFilePath, in ParseHapFiles() argument 2511 std::vector<std::string> hapFilePathVec { hapFilePath }; in ParseHapFiles() 2515 LOG_E(BMS_TAG_DEFAULT, "File path %{public}s invalid", hapFilePath.c_str()); in ParseHapFiles() 2532 LOG_E(BMS_TAG_DEFAULT, "Parse hap(%{public}s) empty ", hapFilePath.c_str()); in ParseHapFiles()
|
H A D | bundle_util.cpp | 255 const std::string hapFilePath = bundlePath + entry->d_name; in GetHapFilesFromBundlePath() local 257 if (CheckFilePath(hapFilePath, realPath) != ERR_OK) { in GetHapFilesFromBundlePath() 258 APP_LOGE("find invalid hap path %{public}s", hapFilePath.c_str()); in GetHapFilesFromBundlePath()
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-ability-kit/ |
H A D | js-apis-Bundle.md | 567 getBundleArchiveInfo(hapFilePath: string, bundleFlags: number) : Promise\<BundleInfo> 579 | hapFilePath | string | 是 | HAP存放路径。支持当前应用程序的绝对路径和数据目录沙箱路径。 | 593 let hapFilePath: string = "/data/storage/el2/base/test.hap"; 596 bundle.getBundleArchiveInfo(hapFilePath, bundleFlags) 608 getBundleArchiveInfo(hapFilePath: string, bundleFlags: number, callback: AsyncCallback\<BundleInfo>… 620 | hapFilePath | string | 是 | HAP存放路径,支持当前应用程序的绝对路径和数据目录沙箱路径。 | 629 let hapFilePath: string = "/data/storage/el2/base/test.hap"; 632 bundle.getBundleArchiveInfo(hapFilePath, bundleFlags, (err, data) => {
|
H A D | js-apis-bundleManager-sys.md | 1697 以异步方法根据给定的hapFilePath和bundleFlags获取BundleInfo,使用callback形式返回结果。 1709 | hapFilePath | string | 是 | 表示存储HAP的路径,路径应该是当前应用程序数据目录的相对路径。 | 1722 | 17700022 | The hapFilePath is invalid. | 1730 let hapFilePath = "/data/xxx/test.hap"; 1751 以异步方法根据给定的hapFilePath和bundleFlags获取BundleInfo,使用Promise形式返回结果。 1763 | hapFilePath | string | 是 | 表示存储HAP的路径,路径应该是当前应用程序数据目录的相对路径。 | 1781 | 17700022 | The hapFilePath is invalid. | 1789 let hapFilePath = "/data/xxx/test.hap"; 1808 以同步方法根据给定的hapFilePath和bundleFlags获取BundleInfo对象。 1838 | 17700022 | The hapFilePath is invalid. | [all …]
|
/ohos5.0/base/customization/enterprise_device_management/interfaces/inner_api/bundle_manager/include/ |
H A D | bundle_manager_proxy.h | 48 …ErrCode checkHapFilePath(const std::string &hapFilePath, std::string &fileName, std::string &realP…
|
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/ |
H A D | bundle_mgr_service_event_handler.h | 386 bool CheckAndParseHapFiles(const std::string &hapFilePath, 395 const std::string &hapFilePath,
|
H A D | bundle_mgr_host_impl.h | 440 const std::string &hapFilePath, const BundleFlag flag, BundleInfo &bundleInfo) override; 449 const std::string &hapFilePath, int32_t flags, BundleInfo &bundleInfo) override; 458 const std::string &hapFilePath, int32_t flags, BundleInfo &bundleInfo) override; 1073 const std::string &hapFilePath, int32_t flags, BundleInfo &bundleInfo, bool fromV9 = false);
|
/ohos5.0/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_core/include/bundlemgr/ |
H A D | bundle_mgr_interface.h | 621 const std::string &hapFilePath, const BundleFlag flag, BundleInfo &bundleInfo) in GetBundleArchiveInfo() argument 633 const std::string &hapFilePath, int32_t flags, BundleInfo &bundleInfo) in GetBundleArchiveInfo() argument 645 const std::string &hapFilePath, int32_t flags, BundleInfo &bundleInfo) in GetBundleArchiveInfoV9() argument
|
H A D | bundle_mgr_proxy.h | 458 const std::string &hapFilePath, const BundleFlag flag, BundleInfo &bundleInfo) override; 468 const std::string &hapFilePath, int32_t flags, BundleInfo &bundleInfo) override; 478 const std::string &hapFilePath, int32_t flags, BundleInfo &bundleInfo) override;
|
/ohos5.0/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_core/src/bundlemgr/ |
H A D | bundle_mgr_proxy.cpp | 1415 APP_LOGD("begin to GetBundleArchiveInfo of %{private}s", hapFilePath.c_str()); in GetBundleArchiveInfo() 1416 if (hapFilePath.empty()) { in GetBundleArchiveInfo() 1426 if (!data.WriteString(hapFilePath)) { in GetBundleArchiveInfo() 1442 bool BundleMgrProxy::GetBundleArchiveInfo(const std::string &hapFilePath, int32_t flags, BundleInfo… in GetBundleArchiveInfo() argument 1445 APP_LOGD("begin to GetBundleArchiveInfo with int flags of %{private}s", hapFilePath.c_str()); in GetBundleArchiveInfo() 1446 if (hapFilePath.empty()) { in GetBundleArchiveInfo() 1456 if (!data.WriteString(hapFilePath)) { in GetBundleArchiveInfo() 1473 ErrCode BundleMgrProxy::GetBundleArchiveInfoV9(const std::string &hapFilePath, int32_t flags, Bundl… in GetBundleArchiveInfoV9() argument 1476 APP_LOGD("begin to GetBundleArchiveInfoV9 with int flags of %{private}s", hapFilePath.c_str()); in GetBundleArchiveInfoV9() 1477 if (hapFilePath.empty()) { in GetBundleArchiveInfoV9() [all …]
|
H A D | bundle_mgr_host.cpp | 1477 std::string hapFilePath = data.ReadString(); in HandleGetBundleArchiveInfo() local 1479 APP_LOGD("hapFilePath %{private}s, flag %{public}d", hapFilePath.c_str(), flag); in HandleGetBundleArchiveInfo() 1482 bool ret = GetBundleArchiveInfo(hapFilePath, flag, info); in HandleGetBundleArchiveInfo() 1499 std::string hapFilePath = data.ReadString(); in HandleGetBundleArchiveInfoWithIntFlags() local 1501 APP_LOGD("hapFilePath %{private}s, flagS %{public}d", hapFilePath.c_str(), flags); in HandleGetBundleArchiveInfoWithIntFlags() 1504 bool ret = GetBundleArchiveInfo(hapFilePath, flags, info); in HandleGetBundleArchiveInfoWithIntFlags() 1521 std::string hapFilePath = data.ReadString(); in HandleGetBundleArchiveInfoWithIntFlagsV9() local 1523 APP_LOGD("hapFilePath %{private}s, flags %{public}d", hapFilePath.c_str(), flags); in HandleGetBundleArchiveInfoWithIntFlagsV9() 1526 ErrCode ret = GetBundleArchiveInfoV9(hapFilePath, flags, info); in HandleGetBundleArchiveInfoWithIntFlagsV9()
|
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/mock/src/ |
H A D | bundle_mgr_service_event_handler.cpp | 575 …const std::string& hapFilePath, bool isPreInstallApp, std::unordered_map<std::string, InnerBundleI… in CheckAndParseHapFiles() argument 581 const std::string& hapFilePath, std::unordered_map<std::string, InnerBundleInfo>& infos) in ParseHapFiles() argument
|
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_sandbox_app_test/ |
H A D | bms_bundle_sandbox_app_test.cpp | 2128 std::string hapFilePath = HAP_FILE_DIR; variable 2131 …ErrCode res = bundleMgrHostImpl_->GetBundleArchiveInfoBySandBoxPath(hapFilePath, APP_INDEX_1, bund… 2165 std::string hapFilePath = ""; variable 2168 …ErrCode res = bundleMgrHostImpl_->GetBundleArchiveInfoBySandBoxPath(hapFilePath, APP_INDEX_1, bund… 2171 hapFilePath = "/"; 2172 …res = bundleMgrHostImpl_->GetBundleArchiveInfoBySandBoxPath(hapFilePath, APP_INDEX_1, bundleInfo, …
|
/ohos5.0/docs/en/application-dev/reference/apis-ability-kit/ |
H A D | js-apis-Bundle.md | 567 getBundleArchiveInfo(hapFilePath: string, bundleFlags: number) : Promise\<BundleInfo> 579 | hapFilePath | string | Yes | Path where the HAP file is stored. The absolute path of the applic… 593 let hapFilePath: string = "/data/storage/el2/base/test.hap"; 596 bundle.getBundleArchiveInfo(hapFilePath, bundleFlags) 608 getBundleArchiveInfo(hapFilePath: string, bundleFlags: number, callback: AsyncCallback\<BundleInfo>… 620 | hapFilePath | string | Yes | Path where the HAP file is stored. The absolute path of the applic… 629 let hapFilePath: string = "/data/storage/el2/base/test.hap"; 632 bundle.getBundleArchiveInfo(hapFilePath, bundleFlags, (err, data) => {
|
/ohos5.0/foundation/bundlemanager/bundle_framework/test/systemtest/common/bms/acts_bms_kit_system_test/ |
H A D | acts_bms_kit_system_test.cpp | 1401 Install(hapFilePath, InstallFlag::REPLACE_EXISTING, resvec); 2024 Install(hapFilePath, InstallFlag::REPLACE_EXISTING, resvec); 2227 std::string hapFilePath = THIRD_BUNDLE_PATH + "tt.hap"; variable 2321 Install(hapFilePath, InstallFlag::REPLACE_EXISTING, resvec); 2365 Install(hapFilePath, InstallFlag::REPLACE_EXISTING, resvec); 2410 Install(hapFilePath, InstallFlag::REPLACE_EXISTING, resvec); 5024 Install(hapFilePath, InstallFlag::REPLACE_EXISTING, resvec); 7436 std::string hapFilePath = THIRD_BUNDLE_PATH + "bmsThirdBundle3.hap"; variable 7482 std::string hapFilePath = THIRD_BUNDLE_PATH + "bmsThirdBundle3.hap"; variable 8751 Install(hapFilePath, InstallFlag::REPLACE_EXISTING, resvec); [all …]
|
/ohos5.0/foundation/bundlemanager/bundle_framework/interfaces/kits/js/bundle_manager/ |
H A D | bundle_manager_sync.cpp | 683 std::string hapFilePath; in GetBundleArchiveInfoSync() local 684 if (!CommonFunc::ParseString(env, args[ARGS_POS_ZERO], hapFilePath)) { in GetBundleArchiveInfoSync() 702 iBundleMgr->GetBundleArchiveInfoV9(hapFilePath, bundleFlags, bundleInfo)); in GetBundleArchiveInfoSync()
|