diff --git a/interfaces/innerkits/appexecfwk_core/include/bundlemgr/bundle_mgr_interface.h b/interfaces/innerkits/appexecfwk_core/include/bundlemgr/bundle_mgr_interface.h index ea34e91cfad88e80c9c9231789fb28251f22ef63..f799da1a23b4733addffc246400b91ea6ac8e294 100644 --- a/interfaces/innerkits/appexecfwk_core/include/bundlemgr/bundle_mgr_interface.h +++ b/interfaces/innerkits/appexecfwk_core/include/bundlemgr/bundle_mgr_interface.h @@ -154,7 +154,7 @@ public: * @param abilityInfos Indicates the obtained AbilityInfos object. * @return Returns true if the AbilityInfos is successfully obtained; returns false otherwise. */ - virtual bool QueryAbilityInfos(const Want &want, std::vector &abilityInfos) = 0; + virtual bool QueryAbilityInfos(const Want &want, std::vector &abilityInfos) { return false; }; /** * @brief Query the AbilityInfo by ability.uri in config.json. * @param abilityUri Indicates the uri of the ability. @@ -405,7 +405,7 @@ public: * @param moduleUsageRecords List of ModuleUsageRecord objects if obtained. * @return Returns true if this function is successfully called; returns false otherwise. */ - virtual bool GetModuleUsageRecords(const int32_t number, std::vector &moduleUsageRecords) = 0; + virtual bool GetModuleUsageRecords(const int32_t number, std::vector &moduleUsageRecords) { return false; } /** * @brief Obtains the interface used to install and uninstall bundles. * @return Returns a pointer to IBundleInstaller class if exist; returns nullptr otherwise. @@ -419,7 +419,7 @@ public: * @return Returns true if this function is successfully called; returns false otherwise. */ virtual bool NotifyActivityLifeStatus( - const std::string &bundleName, const std::string &abilityName, const int64_t launchTime) = 0; + const std::string &bundleName, const std::string &abilityName, const int64_t launchTime) { return false; } enum class Message { GET_APPLICATION_INFO,