/ohos5.0/base/security/selinux_adapter/sepolicy/base/te/ |
H A D | d-bms.te | 21 allow d-bms const_param:file { map open read }; 25 allow d-bms debug_param:file { map open read }; 28 allow d-bms hilog_param:file { map open read }; 31 allow d-bms hw_sc_param:file { map open read }; 32 allow d-bms init_param:file { map open read }; 35 allow d-bms net_param:file { map open read }; 38 allow d-bms ohos_param:file { map open read }; 46 allow d-bms sys_param:file { map open read }; 47 allow d-bms system_bin_file:dir { search }; 48 allow d-bms system_usr_file:dir { search }; [all …]
|
/ohos5.0/base/security/selinux_adapter/sepolicy/ohos_policy/bundlemanager/distributed_bundle_framework/system/ |
H A D | d-bms.te | 16 allow d-bms accountmgr:binder { call transfer }; 17 allow d-bms data_file:dir { search }; 21 allow d-bms dev_unix_socket:dir { search }; 22 allow d-bms distributedsche_param:file { read }; 24 allow d-bms d-bms:unix_dgram_socket { getopt setopt }; 25 allow d-bms foundation:binder { call transfer}; 26 allow d-bms foundation:fd { use }; 28 allow d-bms sa_accountmgr:samgr_class { get }; 37 allow d-bms softbus_server:fd { use }; 39 allow d-bms startup_param:file { map open }; [all …]
|
H A D | system_core_hap.te | 17 allow system_core_hap_attr d-bms:binder { call transfer }; 22 allow system_basic_hap_attr d-bms:binder { call transfer };
|
/ohos5.0/foundation/ability/ability_runtime/services/abilitymgr/src/ |
H A D | start_ability_utils.cpp | 67 auto bms = AbilityUtil::GetBundleManagerHelper(); in GetApplicationInfo() local 68 CHECK_POINTER_AND_RETURN(bms, false); in GetApplicationInfo() 102 auto bms = AbilityUtil::GetBundleManagerHelper(); in GetCloneAppIndexes() local 103 CHECK_POINTER_AND_RETURN(bms, appIndexes); in GetCloneAppIndexes() 229 auto bms = AbilityUtil::GetBundleManagerHelper(); in CreateStartAbilityInfo() local 230 CHECK_POINTER_AND_RETURN(bms, nullptr); in CreateStartAbilityInfo() 245 IN_PROCESS_CALL_WITHOUT_RET(bms->GetSandboxAbilityInfo(want, appIndex, in CreateStartAbilityInfo() 281 auto bms = AbilityUtil::GetBundleManagerHelper(); in CreateStartExtensionInfo() local 282 CHECK_POINTER_AND_RETURN(bms, nullptr); in CreateStartExtensionInfo() 322 auto bms = AbilityUtil::GetBundleManagerHelper(); in FindExtensionInfo() local [all …]
|
/ohos5.0/foundation/bundlemanager/bundle_framework/etc/ |
H A D | BUILD.gn | 18 ":bms.para", 19 ":bms.para.dac", 23 ohos_prebuilt_etc("bms.para") { 24 source = "bms.para" 30 ohos_prebuilt_etc("bms.para.dac") { 31 source = "bms.para.dac"
|
H A D | bms.para.dac | 14 const.bms.optimizing_apps.switch = foundation:foundation:0755 15 bms.optimizing_apps.status = foundation:foundation:0755 16 bootevent.bms.main.bundles.ready = foundation:foundation:0755
|
/ohos5.0/foundation/bundlemanager/distributed_bundle_framework/services/dbms/sa_profile/ |
H A D | distributedbms.cfg | 3 "name" : "services:d-bms", 11 "name" : "d-bms", 12 "path" : ["/system/bin/sa_main", "/system/profile/d-bms.json"], 25 "on-start" : "services:d-bms" 27 "secon" : "u:r:d-bms:s0"
|
/ohos5.0/foundation/multimedia/player_framework/services/utils/ |
H A D | media_utils.cpp | 87 sptr<OHOS::AppExecFwk::IBundleMgr> bms = iface_cast<OHOS::AppExecFwk::IBundleMgr>(object); in GetClientBundleName() local 88 if (bms == nullptr) { in GetClientBundleName() 93 auto result = bms->GetNameForUid(uid, bundleName); in GetClientBundleName() 123 sptr<OHOS::AppExecFwk::IBundleMgr> bms = iface_cast<OHOS::AppExecFwk::IBundleMgr>(object); in GetApiInfo() local 124 if (bms == nullptr) { in GetApiInfo() 129 auto result = bms->GetNameForUid(uid, bundleName); in GetApiInfo() 137 auto applicationResult = bms->GetApplicationInfo(bundleName, flags, userId, appInfo); in GetApiInfo() 162 sptr<OHOS::AppExecFwk::IBundleMgr> bms = iface_cast<OHOS::AppExecFwk::IBundleMgr>(object); in GetBundleResourceLabel() local 163 if (bms == nullptr) { in GetBundleResourceLabel() 168 auto bundleResourceProxy = bms->GetBundleResourceProxy(); in GetBundleResourceLabel()
|
/ohos5.0/foundation/filemanagement/app_file_service/services/backup_sa/src/module_external/ |
H A D | bms_adapter.cpp | 96 auto bms = GetBundleManager(); in GetBundleStats() local 118 auto bms = GetBundleManager(); in GetBundleInfos() local 155 auto bms = GetBundleManager(); in GetAppGalleryBundleName() local 158 auto ret = bms->QueryAppGalleryBundleName(bundleName); in GetAppGalleryBundleName() 294 auto bms = GetBundleManager(); in GetBundleInfosForIncremental() local 344 auto bms = GetBundleManager(); in GetBundleInfosForIncremental() local 345 … if (!bms->GetBundleInfos(AppExecFwk::GET_BUNDLE_WITH_EXTENSION_INFO, installedBundles, userId)) { in GetBundleInfosForIncremental() 388 auto bms = GetBundleManager(); in GetFullBundleInfos() local 429 auto bms = GetBundleManager(); in GetExtName() local 502 sptr<AppExecFwk::IBundleMgr> bms, int32_t userId) in GetCurBundleExtenionInfo() argument [all …]
|
/ohos5.0/base/security/selinux_adapter/sepolicy/ohos_policy/bundlemanager/bundle_framework/system/ |
H A D | parameter_contexts | 14 persist.bms. u:object_r:bms_param:s0 15 persist.bms.optimizing_apps. u:object_r:bms_param:s0 16 const.bms.optimizing_apps. u:object_r:bms_param:s0 17 bms.optimizing_apps. u:object_r:bms_param:s0
|
/ohos5.0/foundation/ability/dmsfwk/services/dtbschedmgr/src/bundle/ |
H A D | bundle_manager_internal.cpp | 215 auto bms = GetBundleManager(); in GetLocalBundleInfo() local 216 if (bms == nullptr) { in GetLocalBundleInfo() 226 if (!bms->GetBundleInfo(bundleName, AppExecFwk::BundleFlag::GET_BUNDLE_WITH_ABILITIES, in GetLocalBundleInfo() 237 auto bms = GetBundleManager(); in GetLocalBundleInfoV9() local 238 if (bms == nullptr) { in GetLocalBundleInfoV9() 248 ret = bms->GetBundleInfoV9(bundleName, in GetLocalBundleInfoV9() 310 auto bms = GetBundleManager(); in CheckRemoteBundleInfoForContinuation() local 311 if (bms == nullptr) { in CheckRemoteBundleInfoForContinuation() 316 bool isInstalled = bms->GetDistributedBundleInfo(dstDeviceId, bundleName, remoteBundleInfo); in CheckRemoteBundleInfoForContinuation() 346 auto bms = GetBundleManager(); in CheckIfRemoteCanInstall() local [all …]
|
/ohos5.0/foundation/multimedia/camera_framework/services/camera_service/src/adapter/ |
H A D | bms_adapter.cpp | 74 void BmsAdapter::SetBms(sptr<OHOS::AppExecFwk::IBundleMgr> bms) in SetBms() argument 77 bms_ = bms; in SetBms() 87 auto bms = GetBms(); in GetBundleName() local 88 CHECK_ERROR_RETURN_RET_LOG(bms == nullptr, "", "bms is null"); in GetBundleName() 89 auto result = bms->GetNameForUid(uid, bundleName); in GetBundleName()
|
/ohos5.0/foundation/multimedia/camera_framework/services/deferred_processing_service/src/utils/ |
H A D | dp_utils.cpp | 64 sptr<OHOS::AppExecFwk::IBundleMgr> bms = iface_cast<OHOS::AppExecFwk::IBundleMgr>(object); in GetClientBundle() local 65 if (bms == nullptr) { in GetClientBundle() 70 auto result = bms->GetNameForUid(uid, bundleName); in GetClientBundle() 76 bms->GetBundleInfo(bundleName, in GetClientBundle()
|
/ohos5.0/foundation/arkui/ace_engine/adapter/ohos/osal/ |
H A D | page_url_checker_ohos.cpp | 221 auto bms = GetBundleManager(); in LoadPageUrl() local 222 CHECK_NULL_VOID(bms); in LoadPageUrl() 224 if (bms->GetBaseSharedBundleInfos(bundleName, baseSharedBundleInfo) != 0 && in LoadPageUrl() 231 int32_t ret = bms->GetDependentBundleInfo(bundleName, bundleInfo, in LoadPageUrl() 244 …if (bms->SilentInstall(want, appInfo->uid / AppExecFwk::Constants::BASE_USER_RANGE, routerCallback… in LoadPageUrl() 265 auto bms = GetBundleManager(); in CheckPreload() local 266 CHECK_NULL_VOID(bms); in CheckPreload() 271 bms->ProcessPreload(want); in CheckPreload()
|
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/plugin/mock/ |
H A D | mock_plugin_component_manager.cpp | 24 sptr<AppExecFwk::IBundleMgr> bms = nullptr; variable 28 bms = nullptr; in ReleaseInstance() 33 bms = sptr<AppExecFwk::IBundleMgr>(new (std::nothrow) AppExecFwk::MOCKIBundleMgr()); in CreateInstance() 38 return bms; in GetInstance()
|
/ohos5.0/foundation/ability/ability_runtime/services/uripermmgr/src/ |
H A D | uri_permission_utils.cpp | 250 auto bms = ConnectManagerHelper(); in GetAppIdByBundleName() local 251 if (bms == nullptr) { in GetAppIdByBundleName() 256 appId = IN_PROCESS_CALL(bms->GetAppIdByBundleName(bundleName, userId)); in GetAppIdByBundleName() 267 auto bms = ConnectManagerHelper(); in GetTokenIdByBundleName() local 268 if (bms == nullptr) { in GetTokenIdByBundleName() 276 if (!IN_PROCESS_CALL(bms->GetBundleInfo(bundleName, bundleFlag, bundleInfo, userId))) { in GetTokenIdByBundleName() 285 …if (IN_PROCESS_CALL(bms->GetCloneBundleInfo(bundleName, bundleFlag, appIndex, bundleInfo, userId))… in GetTokenIdByBundleName() 292 …if (IN_PROCESS_CALL(bms->GetSandboxBundleInfo(bundleName, appIndex, userId, bundleInfo) != ERR_OK)… in GetTokenIdByBundleName()
|
/ohos5.0/foundation/ability/ability_runtime/services/abilitymgr/src/utils/ |
H A D | ability_permission_util.cpp | 83 auto bms = AbilityUtil::GetBundleManagerHelper(); in IsDominateScreen() local 84 CHECK_POINTER_RETURN_BOOL(bms); in IsDominateScreen() 87 if (IN_PROCESS_CALL(bms->GetNameForUid(callerUid, callerBundleName)) != ERR_OK) { in IsDominateScreen() 94 … bms->GetBundleInfo(callerBundleName, AppExecFwk::BundleFlag::GET_BUNDLE_DEFAULT, info, userId))) { in IsDominateScreen()
|
/ohos5.0/foundation/multimedia/drm_framework/services/utils/ |
H A D | drm_dfx_utils.cpp | 43 sptr<OHOS::AppExecFwk::IBundleMgr> bms = iface_cast<OHOS::AppExecFwk::IBundleMgr>(object); in GetClientBundleName() local 44 if (bms == nullptr) { in GetClientBundleName() 49 auto result = bms->GetNameForUid(uid, bundleName); in GetClientBundleName()
|
/ohos5.0/foundation/ability/ability_runtime/test/unittest/quick_fix/quick_fix_manager_service_test/ |
H A D | quick_fix_manager_service_test.cpp | 94 …auto mockGetSystemAbility = [bms = mockBundleMgr, saMgr = iSystemAbilityMgr_](int32_t systemAbilit… in __anon8f74e2ac0202() 96 return bms->AsObject(); in __anon8f74e2ac0202() 124 …auto mockGetSystemAbility = [bms = mockBundleMgr, saMgr = iSystemAbilityMgr_](int32_t systemAbilit… in __anon8f74e2ac0402() 126 return bms->AsObject(); in __anon8f74e2ac0402() 258 …auto mockGetSystemAbility = [bms = mockBundleMgr, saMgr = iSystemAbilityMgr_](int32_t systemAbilit… in __anon8f74e2ac0902() 260 return bms->AsObject(); in __anon8f74e2ac0902()
|
/ohos5.0/foundation/arkui/ace_engine/advanced_ui_component/navpushpathhelper/src/ |
H A D | hsp_silentinstall.cpp | 64 auto bms = GetBundleManager(); in SilentInstall() local 65 CHECK_NULL_RETURN(bms, -1); in SilentInstall() 73 …if (bms->SilentInstall(want, appInfo->uid / OHOS::AppExecFwk::Constants::BASE_USER_RANGE, routerCa… in SilentInstall()
|
/ohos5.0/base/security/selinux_adapter/sepolicy/ohos_policy/update/module_update/public/ |
H A D | parameter_contexts | 14 persist.moduleupdate.bms. u:object_r:update_updater_param:s0 15 persist.moduleupdate.bms.install. u:object_r:update_updater_param:s0
|
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/free_install/ |
H A D | bundle_connect_ability_mgr.cpp | 113 std::shared_ptr<BundleMgrService> bms = DelayedSingleton<BundleMgrService>::GetInstance(); in ProcessPreloadRequestToServiceCenter() local 114 std::shared_ptr<BundleDataMgr> bundleDataMgr_ = bms->GetDataMgr(); in ProcessPreloadRequestToServiceCenter() 213 std::shared_ptr<BundleMgrService> bms = DelayedSingleton<BundleMgrService>::GetInstance(); in GetPreloadList() local 214 std::shared_ptr<BundleDataMgr> bundleDataMgr_ = bms->GetDataMgr(); in GetPreloadList() 377 std::shared_ptr<BundleDataMgr> bundleDataMgr_ = bms->GetDataMgr(); in SendRequestToServiceCenter() 829 std::shared_ptr<BundleDataMgr> bundleDataMgr_ = bms->GetDataMgr(); in GetCallingInfo() 1036 std::shared_ptr<BundleDataMgr> bundleDataMgr_ = bms->GetDataMgr(); in IsObtainAbilityInfo() 1179 std::shared_ptr<BundleDataMgr> bundleDataMgr_ = bms->GetDataMgr(); in UpgradeAtomicService() 1253 std::shared_ptr<BundleDataMgr> bundleDataMgr_ = bms->GetDataMgr(); in GetEcologicalCallerInfo() 1305 if (bms == nullptr) { in CheckIsOnDemandLoad() [all …]
|
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/aging/ |
H A D | recently_unused_bundle_aging_handler.cpp | 195 auto bms = DelayedSingleton<BundleMgrService>::GetInstance(); in UnInstallBundle() local 196 if (bms == nullptr) { in UnInstallBundle() 201 auto bundleInstaller = bms->GetBundleInstaller(); in UnInstallBundle()
|
/ohos5.0/foundation/ability/ability_runtime/test/unittest/frameworks_kits_appkit_native_test/ |
H A D | context_container_by_mock_bms_test.cpp | 85 …auto mockGetSystemAbility = [bms = mockBundleMgr, saMgr = iSystemAbilityMgr_](int32_t systemAbilit… in MockBundleInstaller() 87 return bms->AsObject(); in MockBundleInstaller()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/plugin/ |
H A D | plugin_component_manager.cpp | 274 auto bms = PluginComponentManager::GetInstance()->GetBundleManager(); in GetPackagePath() local 275 if (!bms) { in GetPackagePath() 281 bool ret = bms->GetBundleInfo( in GetPackagePath() 289 bool ret = bms->QueryAbilityInfo(want, abilityInfo); in GetPackagePath()
|