Home
last modified time | relevance | path

Searched refs:bundleInfo (Results 1 - 25 of 473) sorted by relevance

12345678910>>...19

/foundation/bundlemanager/bundle_framework_lite/frameworks/bundle_lite/src/
H A Dbundle_info_utils.cpp36 void BundleInfoUtils::FreeBundleInfo(BundleInfo *bundleInfo) in FreeBundleInfo() argument
38 if (bundleInfo == nullptr) { in FreeBundleInfo()
41 ClearBundleInfo(bundleInfo); in FreeBundleInfo()
42 AdapterFree(bundleInfo); in FreeBundleInfo()
131 bool BundleInfoUtils::SetBundleInfoBundleName(BundleInfo *bundleInfo, const char *bundleName) in SetBundleInfoBundleName() argument
133 if (bundleInfo == nullptr || bundleName == nullptr) { in SetBundleInfoBundleName()
137 AdapterFree(bundleInfo->bundleName); in SetBundleInfoBundleName()
138 bundleInfo->bundleName = Utils::Strdup(bundleName); in SetBundleInfoBundleName()
139 return bundleInfo->bundleName != nullptr; in SetBundleInfoBundleName()
142 bool BundleInfoUtils::SetBundleInfoVendor(BundleInfo *bundleInfo, cons argument
153 SetBundleInfoLabel(BundleInfo *bundleInfo, const char *label) SetBundleInfoLabel() argument
164 SetBundleInfoVersionName(BundleInfo *bundleInfo, const char *versionName) SetBundleInfoVersionName() argument
175 SetBundleInfoBigIconPath(BundleInfo *bundleInfo, const char *bigIconPath) SetBundleInfoBigIconPath() argument
186 SetBundleInfoCodePath(BundleInfo *bundleInfo, const char *codePath) SetBundleInfoCodePath() argument
197 SetBundleInfoDataPath(BundleInfo *bundleInfo, const char *dataPath) SetBundleInfoDataPath() argument
208 SetBundleInfoModuleInfos(BundleInfo *bundleInfo, const ModuleInfo *moduleInfos, uint32_t numOfModule) SetBundleInfoModuleInfos() argument
249 SetBundleInfoAppId(BundleInfo *bundleInfo, const char *appId) SetBundleInfoAppId() argument
261 SetBundleInfoAbilityInfos(BundleInfo *bundleInfo, const AbilityInfo *abilityInfos, uint32_t numOfAbility) SetBundleInfoAbilityInfos() argument
301 SetBundleInfoSmallIconPath(BundleInfo *bundleInfo, const char *smallIconPath) SetBundleInfoSmallIconPath() argument
312 SetBundleInfoAbilityInfo(BundleInfo *bundleInfo, const AbilityInfo &abilityInfo) SetBundleInfoAbilityInfo() argument
332 SetBundleInfoAbilityInfo(BundleInfo *bundleInfo, const AbilityInfo &abilityInfo, const BundleProfile &bundleProfile) SetBundleInfoAbilityInfo() argument
[all...]
H A Dbundle_info.cpp22 void ClearBundleInfo(BundleInfo *bundleInfo) in ClearBundleInfo() argument
24 if (bundleInfo == nullptr) { in ClearBundleInfo()
27 AdapterFree(bundleInfo->bundleName); in ClearBundleInfo()
28 AdapterFree(bundleInfo->versionName); in ClearBundleInfo()
29 AdapterFree(bundleInfo->label); in ClearBundleInfo()
30 AdapterFree(bundleInfo->bigIconPath); in ClearBundleInfo()
31 AdapterFree(bundleInfo->codePath); in ClearBundleInfo()
32 AdapterFree(bundleInfo->dataPath); in ClearBundleInfo()
33 AdapterFree(bundleInfo->vendor); in ClearBundleInfo()
34 OHOS::BundleInfoUtils::ClearModuleInfos(bundleInfo in ClearBundleInfo()
[all...]
H A Dconvert_utils.cpp26 // bundleInfo json key
84 char *ConvertUtils::ConvertBundleInfoToString(const BundleInfo *bundleInfo) in ConvertBundleInfoToString() argument
86 if (bundleInfo == nullptr) { in ConvertBundleInfoToString()
89 cJSON *root = GetJsonBundleInfo(bundleInfo); in ConvertBundleInfoToString()
98 char *ConvertUtils::ConvertBundleInfosToString(BundleInfo **bundleInfo, uint32_t numOfBundleInfo) in ConvertBundleInfosToString() argument
100 if (bundleInfo == nullptr || numOfBundleInfo == 0) { in ConvertBundleInfosToString()
103 cJSON *roots = GetJsonBundleInfos(bundleInfo, numOfBundleInfo); in ConvertBundleInfosToString()
145 BundleInfo *bundleInfo = reinterpret_cast<BundleInfo *>(AdapterMalloc(sizeof(BundleInfo))); in ConvertStringToBundleInfo() local
146 if (bundleInfo == nullptr) { in ConvertStringToBundleInfo()
149 if (memset_s(bundleInfo, sizeo in ConvertStringToBundleInfo()
168 ConvertStringToBundleInfos(const char *strs, BundleInfo **bundleInfo, uint32_t numOfBundleInfo, size_t buffSize) ConvertStringToBundleInfos() argument
211 GetJsonBundleInfo(const BundleInfo *bundleInfo) GetJsonBundleInfo() argument
237 ConvertBundleInfoPartToJson(const BundleInfo *bundleInfo, cJSON *root) ConvertBundleInfoPartToJson() argument
272 ConvertModuleInfosToJson(const BundleInfo *bundleInfo, cJSON *root) ConvertModuleInfosToJson() argument
298 ConvertAbilityInfosToJson(const BundleInfo *bundleInfo, cJSON *root) ConvertAbilityInfosToJson() argument
326 GetJsonBundleInfos(BundleInfo **bundleInfo, uint32_t numOfBundleInfo) GetJsonBundleInfos() argument
571 ConvertJsonToBundleInfo(const cJSON *root, BundleInfo *bundleInfo) ConvertJsonToBundleInfo() argument
[all...]
/foundation/bundlemanager/bundle_framework_lite/services/bundlemgr_lite/src/
H A Dbundle_info_creator.cpp30 uint8_t BundleInfoCreator::SaveBundleInfo(const BundleProfile &bundleProfile, BundleInfo **bundleInfo) in SaveBundleInfo() argument
32 *bundleInfo = reinterpret_cast<BundleInfo *>(AdapterMalloc(sizeof(BundleInfo))); in SaveBundleInfo()
33 if (*bundleInfo == nullptr) { in SaveBundleInfo()
34 HILOG_ERROR(HILOG_MODULE_APP, "malloc bundleInfo fail!"); in SaveBundleInfo()
38 if (memset_s(*bundleInfo, sizeof(BundleInfo), 0, sizeof(BundleInfo)) != EOK) { in SaveBundleInfo()
39 HILOG_ERROR(HILOG_MODULE_APP, "memset bundleInfo fail!"); in SaveBundleInfo()
40 AdapterFree(*bundleInfo); in SaveBundleInfo()
41 *bundleInfo = nullptr; in SaveBundleInfo()
51 BundleInfoUtils::FreeBundleInfo(*bundleInfo); in SaveBundleInfo()
52 *bundleInfo in SaveBundleInfo()
80 BundleInfo *bundleInfo = reinterpret_cast<BundleInfo *>(AdapterMalloc(sizeof(BundleInfo))); CreateBundleInfo() local
108 SetBundleInfo(const BundleProfile &bundleProfile, const std::string &installDirPath, const std::string &dataDirPath, BundleInfo *bundleInfo) SetBundleInfo() argument
165 SetModuleInfos(const BundleProfile &bundleProfile, BundleInfo *bundleInfo) SetModuleInfos() argument
213 SetAbilityInfos(const BundleProfile &bundleProfile, const std::string &codePath, BundleInfo *bundleInfo) SetAbilityInfos() argument
240 SetAbilityInfo(const BundleProfile &bundleProfile, const std::string &codePath, BundleInfo *bundleInfo, uint32_t index) SetAbilityInfo() argument
[all...]
H A Dbundle_map.cpp54 void BundleMap::Add(BundleInfo *bundleInfo) in Add() argument
56 if ((bundleInfo == nullptr) || (bundleInfo->bundleName == nullptr)) { in Add()
66 if (info != nullptr && info->bundleName != nullptr && strcmp(info->bundleName, bundleInfo->bundleName) == 0) { in Add()
71 bundleInfos_->PushFront(bundleInfo); in Add()
76 bool BundleMap::Update(BundleInfo *bundleInfo) in Update() argument
78 if ((bundleInfo == nullptr) || (bundleInfo->bundleName == nullptr)) { in Update()
86 auto newNode = new (std::nothrow) Node<BundleInfo *>(bundleInfo); in Update()
94 (strcmp(info->bundleName, bundleInfo in Update()
133 GetCopyBundleInfo(uint32_t flags, const BundleInfo *bundleInfo, BundleInfo &newBundleInfo) const GetCopyBundleInfo() argument
[all...]
H A Dbundle_res_transform.cpp28 BundleInfo *bundleInfo) in ConvertResInfoToBundleInfo()
30 if (bundleInfo == nullptr) { in ConvertResInfoToBundleInfo()
34 if (bundleRes.totalNumOfAbilityRes == 0 || bundleInfo->isNativeApp) { in ConvertResInfoToBundleInfo()
39 std::string resPath = path + PATH_SEPARATOR + bundleInfo->moduleInfos[0].moduleName + ASSETS + in ConvertResInfoToBundleInfo()
40 bundleInfo->moduleInfos[0].moduleName + RESOURCES_INDEX; in ConvertResInfoToBundleInfo()
50 if (!ModuleInfoUtils::SetModuleInfoDescription(bundleInfo->moduleInfos, des)) { in ConvertResInfoToBundleInfo()
60 !ConvertIconResToBundleInfo(resPath, bundleRes.abilityRes[i].iconId, bundleInfo, i)) { in ConvertResInfoToBundleInfo()
64 !ConvertLableResToBundleInfo(resPath, bundleRes.abilityRes[i].labelId, bundleInfo, i)) { in ConvertResInfoToBundleInfo()
68 !ConvertDesResIdToBundleInfo(resPath, bundleRes.abilityRes[i].descriptionId, bundleInfo, i)) { in ConvertResInfoToBundleInfo()
75 bool BundleResTransform::ConvertIconResToBundleInfo(const std::string &path, uint32_t iconId, BundleInfo *bundleInfo, in ConvertIconResToBundleInfo() argument
27 ConvertResInfoToBundleInfo(const std::string &path, const BundleRes &bundleRes, BundleInfo *bundleInfo) ConvertResInfoToBundleInfo() argument
115 ConvertLableResToBundleInfo(const std::string &path, uint32_t labelId, BundleInfo *bundleInfo, uint32_t index) ConvertLableResToBundleInfo() argument
147 ConvertDesResIdToBundleInfo(const std::string &path, uint32_t desId, BundleInfo *bundleInfo, uint32_t index) ConvertDesResIdToBundleInfo() argument
[all...]
H A Dbundle_installer.cpp147 BundleInfo *bundleInfo = ManagerService::GetInstance().QueryBundleInfo(installRecord.bundleName); in Install() local
148 CLEAR_INSTALL_ENV(bundleInfo); in Install()
154 BundleInfo *bundleInfo = ManagerService::GetInstance().QueryBundleInfo(installRecord.bundleName); in Install() local
155 CLEAR_INSTALL_ENV(bundleInfo); in Install()
171 BundleInfo *bundleInfo = nullptr; in ProcessBundleInstall() local
178 CHECK_PRO_RESULT(errorCode, bundleInfo, permissions, bundleRes.abilityRes); in ProcessBundleInstall()
184 CHECK_PRO_RESULT(errorCode, bundleInfo, permissions, bundleRes.abilityRes); in ProcessBundleInstall()
188 CHECK_PRO_RESULT(errorCode, bundleInfo, permissions, bundleRes.abilityRes); in ProcessBundleInstall()
192 errorCode = bundleParser.ParseHapProfile(path, permissions, bundleRes, &bundleInfo); in ProcessBundleInstall()
193 CHECK_PRO_RESULT(errorCode, bundleInfo, permission in ProcessBundleInstall()
378 BundleInfo *bundleInfo = ManagerService::GetInstance().QueryBundleInfo(record.bundleName); HandleFileAndBackUpRecord() local
393 UpdateBundleInfo(const char *appId, const BundleRes &bundleRes, BundleInfo *bundleInfo, bool isUpdate, uint8_t hapType) UpdateBundleInfo() argument
431 BundleInfo *bundleInfo = ManagerService::GetInstance().QueryBundleInfo(bundleName); Uninstall() local
701 CheckVersionAndSignature(const char *bundleName, BundleInfo *bundleInfo) CheckVersionAndSignature() argument
[all...]
H A Dgt_bundle_parser.cpp186 BundleInfo *bundleInfo = CreateBundleInfo(path, bundleProfile, *bundleRes); in ParseHapProfile() local
189 return bundleInfo; in ParseHapProfile()
585 BundleInfo *bundleInfo = reinterpret_cast<BundleInfo *>(AdapterMalloc(sizeof(BundleInfo))); in CreateBundleInfo() local
586 if (bundleInfo == nullptr) { in CreateBundleInfo()
590 if (memset_s(bundleInfo, sizeof(BundleInfo), 0, sizeof(BundleInfo)) != EOK) { in CreateBundleInfo()
591 AdapterFree(bundleInfo); in CreateBundleInfo()
596 if (!SetBundleInfo(installedPath, bundleProfile, bundleRes, bundleInfo)) { in CreateBundleInfo()
597 BundleInfoUtils::FreeBundleInfo(bundleInfo); in CreateBundleInfo()
604 bundleInfo); in CreateBundleInfo()
607 BundleInfoUtils::FreeBundleInfo(bundleInfo); in CreateBundleInfo()
643 ConvertResInfoToBundleInfo(const char *path, uint32_t labelId, uint32_t iconId, BundleInfo *bundleInfo) ConvertResInfoToBundleInfo() argument
686 ConvertIconResToBundleInfo(const char *resPath, uint32_t iconId, BundleInfo *bundleInfo) ConvertIconResToBundleInfo() argument
770 ParseHapProfile(int32_t fp, uint32_t fileSize, Permissions &permissions, BundleRes &bundleRes, BundleInfo **bundleInfo) ParseHapProfile() argument
814 SaveBundleInfo(const BundleProfile &bundleProfile, const BundleRes &bundleRes, BundleInfo **bundleInfo) SaveBundleInfo() argument
880 SetBundleInfo(const char *installedPath, const BundleProfile &bundleProfile, const BundleRes &bundleRes, BundleInfo *bundleInfo) SetBundleInfo() argument
925 SetModuleInfos(const BundleProfile &bundleProfile, BundleInfo *bundleInfo) SetModuleInfos() argument
[all...]
H A Dgt_bundle_installer.cpp123 signatureInfo.bundleName = Utils::Strdup(verifyResult.profile.bundleInfo.bundleName); in VerifySignature()
212 BundleInfo *bundleInfo = GtManagerService::GetInstance().QueryBundleInfo(installRecord.bundleName); in Install() local
213 CLEAR_INSTALL_ENV(bundleInfo); in Install()
240 BundleInfo *bundleInfo = nullptr; in ProcessBundleInstall() local
244 CHECK_PRO_RESULT(errorCode, fp, permissions, bundleInfo, signatureInfo); in ProcessBundleInstall()
247 // parse HarmoyProfile.json, get permissions and bundleInfo in ProcessBundleInstall()
249 errorCode = GtBundleParser::ParseHapProfile(fp, fileSize, permissions, bundleRes, &bundleInfo); in ProcessBundleInstall()
250 CHECK_PRO_RESULT(errorCode, fp, permissions, bundleInfo, signatureInfo); in ProcessBundleInstall()
251 SetCurrentBundle(bundleInfo->bundleName); in ProcessBundleInstall()
258 errorCode = CheckProvisionInfoIsValid(signatureInfo, permissions, bundleInfo in ProcessBundleInstall()
323 MoveRawFileToDataPath(const BundleInfo *bundleInfo) MoveRawFileToDataPath() argument
521 UpdateBundleInfo(uint8_t bundleStyle, uint32_t labelId, uint32_t iconId, BundleInfo *bundleInfo, bool isUpdate) UpdateBundleInfo() argument
593 BundleInfo *bundleInfo = GtManagerService::GetInstance().QueryBundleInfo(bundleName); Uninstall() local
788 CheckVersionAndSignature(const char *bundleName, const char *appId, BundleInfo *bundleInfo) CheckVersionAndSignature() argument
[all...]
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/quick_fix/
H A Dquick_fix_checker.cpp75 const BundleInfo &bundleInfo, const Security::Verify::ProvisionInfo &provisionInfo) in CheckPatchWithInstalledBundle()
77 ErrCode ret = CheckCommonWithInstalledBundle(appQuickFix, bundleInfo); in CheckPatchWithInstalledBundle()
82 bool isDebug = bundleInfo.applicationInfo.debug && in CheckPatchWithInstalledBundle()
83 (bundleInfo.applicationInfo.appProvisionType == Constants::APP_PROVISION_TYPE_DEBUG); in CheckPatchWithInstalledBundle()
85 if (isDebug && (bundleInfo.applicationInfo.appQuickFix.deployedAppqfInfo.type == QuickFixType::HOT_RELOAD)) { in CheckPatchWithInstalledBundle()
92 ret = CheckPatchNativeSoWithInstalledBundle(bundleInfo, qfInfo); in CheckPatchWithInstalledBundle()
98 ret = CheckSignatureInfo(bundleInfo, provisionInfo); in CheckPatchWithInstalledBundle()
107 const BundleInfo &bundleInfo, const AppqfInfo &qfInfo) in CheckPatchNativeSoWithInstalledBundle()
110 (!qfInfo.nativeLibraryPath.empty() && !bundleInfo.applicationInfo.nativeLibraryPath.empty()); in CheckPatchNativeSoWithInstalledBundle()
112 if (qfInfo.cpuAbi != bundleInfo in CheckPatchNativeSoWithInstalledBundle()
74 CheckPatchWithInstalledBundle(const AppQuickFix &appQuickFix, const BundleInfo &bundleInfo, const Security::Verify::ProvisionInfo &provisionInfo) CheckPatchWithInstalledBundle() argument
106 CheckPatchNativeSoWithInstalledBundle( const BundleInfo &bundleInfo, const AppqfInfo &qfInfo) CheckPatchNativeSoWithInstalledBundle() argument
149 CheckHotReloadWithInstalledBundle(const AppQuickFix &appQuickFix, const BundleInfo &bundleInfo) CheckHotReloadWithInstalledBundle() argument
171 CheckCommonWithInstalledBundle(const AppQuickFix &appQuickFix, const BundleInfo &bundleInfo) CheckCommonWithInstalledBundle() argument
199 CheckModuleNameExist(const BundleInfo &bundleInfo, const std::unordered_map<std::string, AppQuickFix> &infos) CheckModuleNameExist() argument
218 CheckSignatureInfo(const BundleInfo &bundleInfo, const Security::Verify::ProvisionInfo &provisionInfo) CheckSignatureInfo() argument
[all...]
/foundation/bundlemanager/bundle_framework_lite/frameworks/bundle_lite/include/
H A Dbundle_info_utils.h28 static bool SetBundleInfoBundleName(BundleInfo *bundleInfo, const char *bundleName);
29 static bool SetBundleInfoVendor(BundleInfo *bundleInfo, const char *vendor);
30 static bool SetBundleInfoLabel(BundleInfo *bundleInfo, const char *label);
31 static bool SetBundleInfoVersionName(BundleInfo *bundleInfo, const char *versionName);
32 static bool SetBundleInfoBigIconPath(BundleInfo *bundleInfo, const char *bigIconPath);
33 static bool SetBundleInfoCodePath(BundleInfo *bundleInfo, const char *codePath);
34 static bool SetBundleInfoDataPath(BundleInfo *bundleInfo, const char *dataPath);
35 static bool SetBundleInfoModuleInfos(BundleInfo *bundleInfo, const ModuleInfo *moduleInfos, uint32_t numOfModule);
38 static void FreeBundleInfo(BundleInfo *bundleInfo);
39 static bool SetBundleInfoAppId(BundleInfo *bundleInfo, cons
[all...]
H A Dconvert_utils.h25 static char *ConvertBundleInfoToString(const BundleInfo *bundleInfo);
26 static char *ConvertBundleInfosToString(BundleInfo **bundleInfo, uint32_t numOfBundleInfo);
29 static bool ConvertStringToBundleInfos(const char *strs, BundleInfo **bundleInfo, uint32_t numOfBundleInfo,
31 static cJSON *GetJsonBundleInfo(const BundleInfo *bundleInfo);
32 static cJSON *GetJsonBundleInfos(BundleInfo **bundleInfo, uint32_t numOfBundleInfo);
38 static bool ConvertJsonToBundleInfo(const cJSON *root, BundleInfo *bundleInfo);
47 static bool ConvertBundleInfoPartToJson(const BundleInfo *bundleInfo, cJSON *root);
48 static bool ConvertModuleInfosToJson(const BundleInfo *bundleInfo, cJSON *root);
49 static bool ConvertAbilityInfosToJson(const BundleInfo *bundleInfo, cJSON *root);
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/
H A Duser_unlocked_event_subscriber.cpp80 void UpdateAppDataMgr::CheckPathAttribute(const std::string &path, const BundleInfo &bundleInfo, bool &isExist) in CheckPathAttribute() argument
90 if (fileStat.uid != bundleInfo.uid) { in CheckPathAttribute()
91 APP_LOGW("path: %{public}s uid is not same, fileStat.uid:%{public}d, bundleInfo.uid:%{public}d", in CheckPathAttribute()
92 path.c_str(), static_cast<int32_t>(fileStat.uid), bundleInfo.uid); in CheckPathAttribute()
108 const BundleInfo &bundleInfo, int32_t userId, const std::string &elDir) in CreateBundleDataDir()
111 ServiceConstants::PATH_SEPARATOR + std::to_string(userId) + ServiceConstants::DATABASE + bundleInfo.name; in CreateBundleDataDir()
117 CheckPathAttribute(baseBundleDataDir, bundleInfo, isExist); in CreateBundleDataDir()
122 createDirParam.bundleName = bundleInfo.name; in CreateBundleDataDir()
123 createDirParam.uid = bundleInfo.uid; in CreateBundleDataDir()
124 createDirParam.gid = bundleInfo in CreateBundleDataDir()
107 CreateBundleDataDir( const BundleInfo &bundleInfo, int32_t userId, const std::string &elDir) CreateBundleDataDir() argument
154 CreateDataGroupDir(const BundleInfo &bundleInfo, int32_t userId) CreateDataGroupDir() argument
254 ProcessExtensionDir(const BundleInfo &bundleInfo, std::vector<std::string> &dirs) ProcessExtensionDir() argument
299 CreateNewBackupDir(const BundleInfo &bundleInfo, int32_t userId) CreateNewBackupDir() argument
339 CreateBundleLogDir(const BundleInfo &bundleInfo, int32_t userId) CreateBundleLogDir() argument
375 CreateBundleCloudDir(const BundleInfo &bundleInfo, int32_t userId) CreateBundleCloudDir() argument
[all...]
H A Del5_filekey_callback.cpp38 InnerBundleInfo bundleInfo; in OnRegenerateAppKey() local
39 bool isAppExist = dataMgr->FetchInnerBundleInfo(info.bundleName, bundleInfo); in OnRegenerateAppKey()
41 APP_LOGE("OnRegenerateAppKey bundleInfo is not exist"); in OnRegenerateAppKey()
44 CheckEl5Dir(info, bundleInfo); in OnRegenerateAppKey()
51 // update the keyId to the bundleInfo in OnRegenerateAppKey()
52 bundleInfo.SetkeyId(info.userId, keyId); in OnRegenerateAppKey()
53 if (!dataMgr->UpdateInnerBundleInfo(bundleInfo)) { in OnRegenerateAppKey()
61 void El5FilekeyCallback::CheckEl5Dir(Security::AccessToken::AppKeyInfo &info, const InnerBundleInfo &bundleInfo) in CheckEl5Dir() argument
81 baseDir, info.bundleName, bundleInfo.GetAppPrivilegeLevel(), bundleInfo in CheckEl5Dir()
[all...]
/foundation/bundlemanager/bundle_framework_lite/services/bundlemgr_lite/include/
H A Dgt_bundle_installer.h49 uint8_t UpdateBundleInfo(uint8_t bundleStyle, uint32_t labelId, uint32_t iconId, BundleInfo *bundleInfo,
53 uint8_t CheckVersionAndSignature(const char *bundleName, const char *appId, BundleInfo *bundleInfo);
67 uint8_t MoveRawFileToDataPath(const BundleInfo *bundleInfo);
71 #define FREE_PRO_RESOURCE(fp, permissions, bundleInfo) \
76 BundleInfoUtils::FreeBundleInfo(bundleInfo); \
87 #define CHECK_PRO_RESULT(errcode, fp, permissions, bundleInfo, signatureInfo) \
90 FREE_PRO_RESOURCE(fp, permissions, bundleInfo); \
96 #define CLEAR_INSTALL_ENV(bundleInfo) \
98 if ((bundleInfo) != nullptr) { \
99 BundleUtil::RemoveDir(bundleInfo
[all...]
H A Dbundle_installer.h44 uint8_t UpdateBundleInfo(const char *appId, const BundleRes &bundleRes, BundleInfo *bundleInfo, bool isUpdate,
55 uint8_t CheckVersionAndSignature(const char *bundleName, BundleInfo *bundleInfo);
64 uint8_t CheckDeviceCapIsValid(BundleInfo *bundleInfo);
71 #define CHECK_PRO_RESULT(errcode, bundleInfo, permissions, abilityRes) \
74 BundleInfoUtils::FreeBundleInfo(bundleInfo); \
81 #define CLEAR_INSTALL_ENV(bundleInfo) \
83 if ((bundleInfo) != nullptr) { \
85 (bundleInfo)->codePath, (bundleInfo)->dataPath, false); \
86 BundleInfoUtils::FreeBundleInfo(bundleInfo); \
[all...]
/foundation/ability/ability_runtime/test/mock/services_appmgr_test/src/
H A Dmock_bundle_manager.cpp41 void ConstructHqfInfo(BundleInfo& bundleInfo) in ConstructHqfInfo() argument
44 bundleInfo.applicationInfo.appQuickFix.deployedAppqfInfo.versionCode = HQF_VERSION_CODE; in ConstructHqfInfo()
45 bundleInfo.applicationInfo.appQuickFix.deployedAppqfInfo.versionName = "1.0.0"; in ConstructHqfInfo()
46 bundleInfo.applicationInfo.appQuickFix.deployedAppqfInfo.cpuAbi = "armeabi-v7a"; in ConstructHqfInfo()
47 bundleInfo.applicationInfo.appQuickFix.deployedAppqfInfo.nativeLibraryPath = "patch_1000/libs/arm"; in ConstructHqfInfo()
48 bundleInfo.applicationInfo.appQuickFix.deployedAppqfInfo.type = QuickFixType::PATCH; in ConstructHqfInfo()
61 bundleInfo.applicationInfo.appQuickFix.deployedAppqfInfo.hqfInfos = hqfInfos; in ConstructHqfInfo()
85 bundleInfo.hapModuleInfos = hapModuleInfos; in ConstructHqfInfo()
86 bundleInfo.versionCode = HQF_VERSION_CODE; in ConstructHqfInfo()
87 bundleInfo in ConstructHqfInfo()
208 GetBundleInfo( const std::string& bundleName, const BundleFlag flag, BundleInfo& bundleInfo, int32_t userId) GetBundleInfo() argument
290 BundleInfo bundleInfo; PushTestHelloIndexAbility() local
311 BundleInfo bundleInfo; PushTestSpecialAbility() local
332 BundleInfo bundleInfo; PushTestHelloAbility() local
354 BundleInfo bundleInfo; MakingResidentProcData() local
378 GetBundleInfoForSelf(int32_t flags, BundleInfo &bundleInfo) GetBundleInfoForSelf() argument
[all...]
/foundation/ability/dmsfwk_lite/source/
H A Ddmslite_permission.c69 BundleInfo bundleInfo; in CheckRemotePermission() local
70 if (memset_s(&bundleInfo, sizeof(BundleInfo), 0x00, sizeof(BundleInfo)) != EOK) { in CheckRemotePermission()
71 HILOGE("[bundleInfo memset failed]"); in CheckRemotePermission()
86 GET_BUNDLE_WITHOUT_ABILITIES, &bundleInfo); in CheckRemotePermission()
90 GET_BUNDLE_WITHOUT_ABILITIES, &bundleInfo); in CheckRemotePermission()
96 GET_BUNDLE_WITHOUT_ABILITIES, &bundleInfo); in CheckRemotePermission()
104 const char *calleeSignature = bundleInfo.appId + strlen(permissionCheckInfo->calleeBundleName) in CheckRemotePermission()
106 ClearBundleInfo(&bundleInfo); in CheckRemotePermission()
120 static int32_t GetBundleInfoFromFile(const char *filePath, BundleInfo *bundleInfo) in GetBundleInfoFromFile() argument
160 bundleInfo in GetBundleInfoFromFile()
165 GetBundleInfoFromBms(const CallerInfo *callerInfo, BundleInfo *bundleInfo) GetBundleInfoFromBms() argument
204 GetCallerBundleInfo(const CallerInfo *callerInfo, BundleInfo *bundleInfo) GetCallerBundleInfo() argument
[all...]
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/bundleresprocess_fuzzer/
H A Dbundleresprocess_fuzzer.cpp48 InnerBundleInfo bundleInfo; in DoSomethingInterestingWithMyAPI() local
49 bundleInfo.SetBaseApplicationInfo(applicationInfo); in DoSomethingInterestingWithMyAPI()
50 BundleResourceProcess::GetBundleResourceInfo(bundleInfo, USERID, resourceInfo); in DoSomethingInterestingWithMyAPI()
51 BundleResourceProcess::GetLauncherAbilityResourceInfos(bundleInfo, USERID, resourceInfos); in DoSomethingInterestingWithMyAPI()
52 bundleInfo.SetOverlayType(OverlayType::OVERLAY_INTERNAL_BUNDLE); in DoSomethingInterestingWithMyAPI()
53 BundleResourceProcess::GetAbilityResourceInfos(bundleInfo, USERID, resourceInfos); in DoSomethingInterestingWithMyAPI()
54 BundleResourceProcess::ConvertToBundleResourceInfo(bundleInfo); in DoSomethingInterestingWithMyAPI()
55 BundleResourceProcess::InnerGetResourceInfo(bundleInfo, USERID, resourceInfos); in DoSomethingInterestingWithMyAPI()
56 BundleResourceProcess::OnGetResourceInfo(bundleInfo, USERID, resourceInfos); in DoSomethingInterestingWithMyAPI()
58 bundleInfo in DoSomethingInterestingWithMyAPI()
[all...]
/foundation/communication/netmanager_base/utils/bundle_utils/src/
H A Dnet_bundle_impl.cpp49 AppExecFwk::BundleInfo bundleInfo; in GetJsonFromBundle() local
50 auto ret = bundleMgrProxy->GetBundleInfoForSelf(0, bundleInfo); in GetJsonFromBundle()
56 bundleInfo.name, bundleInfo.entryModuleName, jsonProfile); in GetJsonFromBundle()
71 AppExecFwk::BundleInfo bundleInfo; in IsAtomicService() local
73 auto ret = bundleMgrProxy->GetBundleInfoForSelf(static_cast<int32_t>(flags), bundleInfo); in IsAtomicService()
78 bundleName = bundleInfo.applicationInfo.bundleName; in IsAtomicService()
79 return bundleInfo.applicationInfo.bundleType == AppExecFwk::BundleType::ATOMIC_SERVICE; in IsAtomicService()
89 AppExecFwk::BundleInfo bundleInfo; in ObtainBundleNameForSelf() local
91 auto ret = bundleMgrProxy->GetBundleInfoForSelf(static_cast<int32_t>(flags), bundleInfo); in ObtainBundleNameForSelf()
107 AppExecFwk::BundleInfo bundleInfo; ObtainTargetApiVersionForSelf() local
[all...]
/foundation/filemanagement/app_file_service/test/fuzztest/svcrestoredepsmanager_fuzzer/
H A Dsvcrestoredepsmanager_fuzzer.cpp41 BJsonEntityCaps::BundleInfo bundleInfo; in GetInfo() local
44 bundleInfo.name = string(reinterpret_cast<const char*>(data + pos), len) + to_string(i % base); in GetInfo()
46 bundleInfo.versionName = string(reinterpret_cast<const char*>(data + pos), len) + to_string(i); in GetInfo()
48 bundleInfo.extensionName = string(reinterpret_cast<const char*>(data + pos), len) + to_string(i); in GetInfo()
52 bundleInfo.restoreDeps = string(reinterpret_cast<const char*>(data + pos), len) + to_string(i); in GetInfo()
54 bundleInfo.restoreDeps = string(reinterpret_cast<const char*>(data + pos), len) + "," + to_string(i); in GetInfo()
58 bundleInfo.supportScene = string(reinterpret_cast<const char*>(data + pos), len) + to_string(i); in GetInfo()
61 bundleInfo.allToBackup = *(reinterpret_cast<const bool*>(data)); in GetInfo()
65 bundleInfo.versionCode = *(reinterpret_cast<const int64_t*>(data)); in GetInfo()
69 bundleInfo in GetInfo()
85 BJsonEntityCaps::BundleInfo bundleInfo; SvcRestoreDepsManagerFuzzTest() local
[all...]
/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_base/src/
H A Dbundle_info.cpp631 void to_json(nlohmann::json &jsonObject, const BundleInfo &bundleInfo) in to_json() argument
634 {BUNDLE_INFO_NAME, bundleInfo.name}, {BUNDLE_INFO_LABEL, bundleInfo.label}, in to_json()
635 {BUNDLE_INFO_DESCRIPTION, bundleInfo.description}, {BUNDLE_INFO_VENDOR, bundleInfo.vendor}, in to_json()
636 {BUNDLE_INFO_IS_KEEP_ALIVE, bundleInfo.isKeepAlive}, {BUNDLE_INFO_IS_NATIVE_APP, bundleInfo.isNativeApp}, in to_json()
637 {BUNDLE_INFO_IS_PREINSTALL_APP, bundleInfo.isPreInstallApp}, in to_json()
638 {BUNDLE_INFO_IS_DIFFERENT_NAME, bundleInfo.isDifferentName}, in to_json()
639 {BUNDLE_INFO_ABILITY_INFOS, bundleInfo in to_json()
681 from_json(const nlohmann::json &jsonObject, BundleInfo &bundleInfo) from_json() argument
[all...]
/foundation/ability/dmsfwk_lite/moduletest/dtbschedmgr_lite/source/
H A Dpermission_test.cpp56 * @tc.desc: GetCallerBundleInfo failed with null callerInfo or bundleInfo pointer
63 BundleInfo bundleInfo = {0}; in HWTEST_F() local
64 EXPECT_EQ(GetCallerBundleInfo(nullptr, &bundleInfo), DMS_EC_INVALID_PARAMETER); in HWTEST_F()
77 BundleInfo bundleInfo = {0}; in HWTEST_F() local
78 EXPECT_EQ(GetCallerBundleInfo(&callerInfo, &bundleInfo), DMS_EC_FAILURE); in HWTEST_F()
105 BundleInfo bundleInfo = {0}; in HWTEST_F() local
106 EXPECT_EQ(GetCallerBundleInfo(&callerInfo, &bundleInfo), DMS_EC_SUCCESS); in HWTEST_F()
107 EXPECT_EQ(strcmp(bundleInfo.appId, FOUNDATION_APPID), 0); in HWTEST_F()
108 ClearBundleInfo(&bundleInfo); in HWTEST_F()
124 BundleInfo bundleInfo in HWTEST_F() local
136 BundleInfo bundleInfo = {0}; HWTEST_F() local
[all...]
/foundation/bundlemanager/bundle_framework/interfaces/kits/native/bundle/src/
H A Dnative_interface_bundle.cpp103 OHOS::AppExecFwk::BundleInfo bundleInfo; in OH_NativeBundle_GetCurrentApplicationInfo() local
107 if (!bundleMgrProxyNative.GetBundleInfoForSelf(bundleInfoFlag, bundleInfo)) { in OH_NativeBundle_GetCurrentApplicationInfo()
108 APP_LOGE("can not get bundleInfo for self"); in OH_NativeBundle_GetCurrentApplicationInfo()
111 size_t bundleNameLen = bundleInfo.applicationInfo.bundleName.size(); in OH_NativeBundle_GetCurrentApplicationInfo()
122 bundleInfo.applicationInfo.bundleName.c_str()) != EOK) { in OH_NativeBundle_GetCurrentApplicationInfo()
127 size_t fingerprintLen = bundleInfo.signatureInfo.fingerprint.size(); in OH_NativeBundle_GetCurrentApplicationInfo()
140 bundleInfo.signatureInfo.fingerprint.c_str()) != EOK) { in OH_NativeBundle_GetCurrentApplicationInfo()
152 OHOS::AppExecFwk::BundleInfo bundleInfo; in OH_NativeBundle_GetAppId() local
156 if (!bundleMgrProxyNative.GetBundleInfoForSelf(bundleInfoFlag, bundleInfo)) { in OH_NativeBundle_GetAppId()
157 APP_LOGE("can not get bundleInfo fo in OH_NativeBundle_GetAppId()
183 OHOS::AppExecFwk::BundleInfo bundleInfo; OH_NativeBundle_GetAppIdentifier() local
216 OHOS::AppExecFwk::BundleInfo bundleInfo; OH_NativeBundle_GetMainElementName() local
[all...]
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_permission_grant_test/
H A Dbms_bundle_permission_getrequest_test.cpp86 BundleInfo bundleInfo; in HWTEST_F() local
87 bundleInfo.reqPermissions.push_back(PERMISSION_NAME); in HWTEST_F()
89 res = BundlePermissionMgr::GetRequestPermissionStates(bundleInfo, tokenId, DEVICE_ID); in HWTEST_F()
104 BundleInfo bundleInfo; in HWTEST_F() local
105 bundleInfo.reqPermissions.push_back(ERR_PERMISSION_NAME); in HWTEST_F()
107 res = BundlePermissionMgr::GetRequestPermissionStates(bundleInfo, tokenId, DEVICE_ID); in HWTEST_F()
122 BundleInfo bundleInfo; in HWTEST_F() local
123 bundleInfo.reqPermissions.push_back(PERMISSION_NAME); in HWTEST_F()
125 res = BundlePermissionMgr::GetRequestPermissionStates(bundleInfo, tokenId, ERR_DEVICE_ID); in HWTEST_F()

Completed in 13 milliseconds

12345678910>>...19