diff --git a/interfaces/innerkits/appexecfwk_base/include/extension_ability_info.h b/interfaces/innerkits/appexecfwk_base/include/extension_ability_info.h index 8b3617ab..7a65afe9 100644 --- a/interfaces/innerkits/appexecfwk_base/include/extension_ability_info.h +++ b/interfaces/innerkits/appexecfwk_base/include/extension_ability_info.h @@ -41,6 +41,7 @@ enum class ExtensionAbilityType { STATICSUBSCRIBER = 7, WALLPAPER = 8, BACKUP = 9, + WINDOW = 10, UNSPECIFIED = 20 }; diff --git a/interfaces/kits/js/bundlemgr/bundle_mgr.cpp b/interfaces/kits/js/bundlemgr/bundle_mgr.cpp index 117a8e8e..4769751a 100644 --- a/interfaces/kits/js/bundlemgr/bundle_mgr.cpp +++ b/interfaces/kits/js/bundlemgr/bundle_mgr.cpp @@ -6852,6 +6852,11 @@ void CreateExtensionAbilityTypeObject(napi_env env, napi_value value) static_cast(ExtensionAbilityType::BACKUP), &nBackup)); NAPI_CALL_RETURN_VOID(env, napi_set_named_property(env, value, "BACKUP", nBackup)); + napi_value nWindow; + NAPI_CALL_RETURN_VOID(env, napi_create_int32(env, + static_cast(ExtensionAbilityType::WINDOW), &nWindow)); + NAPI_CALL_RETURN_VOID(env, napi_set_named_property(env, value, "WINDOW", nWindow)); + napi_value nUnspecified; NAPI_CALL_RETURN_VOID(env, napi_create_int32(env, static_cast(ExtensionAbilityType::UNSPECIFIED), &nUnspecified)); diff --git a/services/bundlemgr/src/module_profile.cpp b/services/bundlemgr/src/module_profile.cpp index d4925e4e..40e31bb4 100644 --- a/services/bundlemgr/src/module_profile.cpp +++ b/services/bundlemgr/src/module_profile.cpp @@ -79,7 +79,8 @@ const std::vector EXTENSION_TYPE_SET = { "fileShare", "staticSubscriber", "wallpaper", - "backup" + "backup", + "window" }; const std::set ENTITY_TYPE_SET = {