diff --git a/frameworks/js/napi/wantConstant/want_constant.cpp b/frameworks/js/napi/wantConstant/want_constant.cpp index e0f8c58762..e7b361cbe2 100644 --- a/frameworks/js/napi/wantConstant/want_constant.cpp +++ b/frameworks/js/napi/wantConstant/want_constant.cpp @@ -67,7 +67,7 @@ napi_value WantConstantInit(napi_env env, napi_value exports) SetNamedProperty(env, action, "ohos.action.fileSelect", "ACTION_FILE_SELECT"); SetNamedProperty(env, action, "ability.params.stream", "PARAMS_STREAM"); SetNamedProperty(env, action, "ohos.account.appAccount.action.oauth", "ACTION_APP_ACCOUNT_OAUTH"); - SetNamedProperty(env, action, "ohos.want.action.marketDownload", "ACTION_MARKER_DOWNLOAD"); + SetNamedProperty(env, action, "ohos.want.action.marketDownload", "ACTION_MARKET_DOWNLOAD"); SetNamedProperty(env, action, "ohos.want.action.marketCrowdTest", "ACTION_MARKET_CROWDTEST"); SetNamedProperty(env, entity, "entity.system.default", "ENTITY_DEFAULT"); diff --git a/services/abilitymgr/include/ability_manager_service.h b/services/abilitymgr/include/ability_manager_service.h index 647464c791..90d58de6bc 100644 --- a/services/abilitymgr/include/ability_manager_service.h +++ b/services/abilitymgr/include/ability_manager_service.h @@ -1012,8 +1012,6 @@ private: void SubscribeBackgroundTask(); - int StartAppgallery(int requestCode, int32_t userId); - constexpr static int REPOLL_TIME_MICRO_SECONDS = 1000000; constexpr static int WAITING_BOOT_ANIMATION_TIMER = 5; diff --git a/services/abilitymgr/src/ability_manager_service.cpp b/services/abilitymgr/src/ability_manager_service.cpp index 922d996579..297365cd7f 100644 --- a/services/abilitymgr/src/ability_manager_service.cpp +++ b/services/abilitymgr/src/ability_manager_service.cpp @@ -353,7 +353,10 @@ int AbilityManagerService::StartAbilityInner(const Want &want, const sptrShowAppPickerDialog(want, abilityInfos, userId); } - -int AbilityManagerService::StartAppgallery(int requestCode, int32_t userId) -{ - Want want; - want.SetElementName(MARKET_BUNDLE_NAME, ""); - want.SetAction(ACTION_MARKET_CROWDTEST); - return StartAbilityInner(want, nullptr, requestCode, -1, userId); -} #endif } // namespace AAFwk } // namespace OHOS