diff --git a/interfaces/innerkits/appexecfwk_base/include/extension_ability_info.h b/interfaces/innerkits/appexecfwk_base/include/extension_ability_info.h index 8b3617ab..05ff3e4a 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, + FILE = 10, UNSPECIFIED = 20 }; diff --git a/kits/appkit/napi/bundlemgr/bundle_mgr.cpp b/kits/appkit/napi/bundlemgr/bundle_mgr.cpp index 604e9436..6b6a2244 100644 --- a/kits/appkit/napi/bundlemgr/bundle_mgr.cpp +++ b/kits/appkit/napi/bundlemgr/bundle_mgr.cpp @@ -6836,6 +6836,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 nFile; + NAPI_CALL_RETURN_VOID(env, napi_create_int32(env, + static_cast(ExtensionAbilityType::FILE), &nFile)); + NAPI_CALL_RETURN_VOID(env, napi_set_named_property(env, value, "FILE", nFile)); + 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..e927b991 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", + "file" }; const std::set ENTITY_TYPE_SET = {