积分1635 / 贡献20

提问18答案被采纳66文章40

[经验分享] 4.0Release组件分析 原创

深开鸿_王石 显示全部楼层 发表于 2023-12-15 11:08:00

背景

2023年11月,OpenHarmony如期而至的发布了4.0版本,开发套件同步升级到API 10。相比3.2 Release版本,新增4000多个API,应用开发能力更加丰富。虽然社区也同步发布了4.0的release报告(zh-cn/release-notes/OpenHarmony-v4.0-release.md · OpenHarmony/docs - Gitee.com)也列了不少特性说明,对熟悉的人可能看的很清晰明了。此文章就做了个表格,从代码层面进行另一种解读。这是借助了社区的编译规范整改做的代码分析,基于的是4.0Release的源码

组件列表

名称 描述 版本 组件 子系统 系统能力 依赖组件 依赖三方库
@ohos/ffrt Concurrent Programming Framework 4.0 ffrt resourceschedule [] ["hilog", "hisysevent", "hitrace", "ipc", "napi", "frame_aware_sched", "faultloggerd"] ["bounds_checking_function", "libunwind"]
@ohos/device_standby device_standby 4.0 device_standby resourceschedule [] ["ability_base", "ability_runtime", "access_token", "background_task_mgr", "battery_manager", "bundle_framework", "call_manager", "common_event_service", "config_policy", "c_utils", "eventhandler", "hilog", "init", "ipc", "input", "napi", "netmanager_base", "power_manager", "safwk", "samgr", "sensor", "time_service", "work_scheduler", "wifi"] ["googletest"]
@ohos/background_task_mgr background task manager service 3.1 background_task_mgr resourceschedule ["SystemCapability.ResourceSchedule.BackgroundTaskManager.ContinuousTask", "SystemCapability.ResourceSchedule.BackgroundTaskManager.TransientTask", "SystemCapability.ResourceSchedule.BackgroundTaskManager.EfficiencyResourcesApply"] ["ability_base", "ability_runtime", "access_token", "bundle_framework", "common_event_service", "eventhandler", "hitrace", "hilog", "ipc", "init", "napi", "os_account", "resource_management", "safwk", "samgr", "c_utils", "distributed_notification_service", "hisysevent", "hiview", "i18n", "relational_store"] ["icu"]
@ohos/resource_schedule_service resource schedule service 3.1 resource_schedule_service resourceschedule [] ["ability_base", "ability_runtime", "access_token", "audio_framework", "background_task_mgr", "bluetooth", "bundle_framework", "c_utils", "common_event_service", "config_policy", "core_service", "efficiency_manager", "eventhandler", "frame_aware_sched", "hilog", "hisysevent", "hitrace", "init", "ipc", "movement", "input", "samgr", "safwk", "soc_perf", "state_registry", "window_manager"] ["json", "libxml2"]
@ohos/qos_manager qos_manager 3.1 qos_manager resourceschedule [] ["ability_base", "ability_runtime", "c_utils", "eventhandler", "frame_aware_sched", "hilog", "hitrace", "ipc", "safwk", "samgr"] ["json", "jsoncpp"]
@ohos/frame_aware_sched frame_aware_sched 3.1 frame_aware_sched resourceschedule [] ["c_utils", "eventhandler", "hitrace", "hilog", "samgr", "safwk"] ["bounds_checking_function", "libxml2"]
@ohos/memmgr memory management 3.1.0 memmgr resourceschedule null ["ipc", "ability_base", "bundle_framework", "safwk", "background_task_mgr", "ability_runtime", "os_account", "common_event_service", "eventhandler", "hilog", "c_utils", "samgr", "resource_management", "access_token", "init"] []
@ohos/work_scheduler work scheduler service 3.1 work_scheduler resourceschedule ["SystemCapability.ResourceSchedule.WorkScheduler"] ["thermal_manager", "bundle_framework", "safwk", "os_account", "common_event_service", "ipc", "c_utils", "ability_runtime", "hilog", "samgr", "hisysevent", "napi", "battery_manager", "ability_base", "eventhandler", "background_task_mgr", "device_standby", "device_usage_statistics", "access_token", "netmanager_base", "time_service"] ["jsoncpp"]
@ohos/device_usage_statistics device usage statistics 3.1 device_usage_statistics resourceschedule ["SystemCapability.ResourceSchedule.UsageStatistics.AppGroup", "SystemCapability.ResourceSchedule.UsageStatistics.App"] ["bundle_framework", "relational_store", "safwk", "common_event_service", "os_account", "ipc", "access_token", "ability_runtime", "hilog", "samgr", "c_utils", "napi", "ability_base", "background_task_mgr", "eventhandler", "power_manager", "time_service", "init"] []
@ohos/samgr system ability manager 3.1 samgr systemabilitymgr null ["ability_base", "access_token", "bluetooth", "c_utils", "common_event_service", "eventhandler", "device_manager", "hicollie", "hilog", "hisysevent", "hitrace", "init", "ipc", "resource_schedule_service", "safwk", "selinux_adapter"] null
@ohos/safwk system ability framework 3.1 safwk systemabilitymgr null ["hilog", "hitrace", "ipc", "init", "samgr", "c_utils"] null
@ohos/distributeddatamgr_file provides the application with JS interfaces for IO 3.1 distributedfilejs distributeddatamgr ["SystemCapability.FileManagement.File.FileIO", "SystemCapability.FileManagement.File.Environment", "SystemCapability.FileManagement.File.DistributedFile"] ["ability_base", "ability_manager", "appexecfwk_base", "appexecfwk_core", "want", "libhilog", "ipc_core", "ace_napi", "samgr_proxy"] ["e2fsprogs"]
@ohos/pasteboard Allowing paste/copy functions 3.0 pasteboard distributeddatamgr ["SystemCapability.Miscservices.Pasteboard"] ["ability_base", "ability_runtime", "access_token", "app_file_service", "bundle_framework", "c_utils", "device_info_manager", "device_manager", "dfs_service", "dlp_permission_service", "eventhandler", "file_api", "hisysevent", "hitrace", "hilog", "init", "input", "imf", "ipc", "image_framework", "napi", "os_account", "safwk", "samgr", "time_service"] ["libuv"]
@ohos/napi Node-API (formerly N-API) is an API for build native Addons 3.1 napi arkui ["SystemCapability.ArkUI.ArkUI.Napi", "SystemCapability.ArkUI.ArkUI.Libuv"] ["ets_runtime", "hilog", "hitrace", "init"] ["icu", "jerryscript", "libuv", "node", "bounds_checking_function"]
@ohos/ui_appearance Provide ui_appearance management. 3.2 ui_appearance arkui ["SystemCapability.ArkUI.UiAppearance"] ["ability_runtime", "ability_base", "access_token", "c_utils", "hilog", "init", "ipc", "napi", "safwk", "samgr"] []
@ohos/advanced_ui_component advanced_ui_component 1.0.0 advanced_ui_component arkui [] ["hilog", "napi"] []
@ohos/neural_network_runtime The Neural Network Runtime that bridges the inference framework and the device accelerator. 4.0 neural_network_runtime ai [] ["c_utils", "drivers_interface_nnrt", "hdf_core", "hilog", "hitrace", "mindspore"] []
@ohos/intelligent_voice_framework intelligent_voice framework 4.0 intelligent_voice_framework ai ["SystemCapability.AI.IntelligentVoice.Core"] ["ability_base", "ability_runtime", "access_token", "c_utils", "common_event_service", "data_share", "drivers_interface_intelligent_voice", "eventhandler", "hdf_core", "hilog", "ipc", "kv_store", "audio_framework", "napi", "relational_store", "safwk", "samgr"] []
@ohos/mindspore AI Framework. 3.1 mindspore thirdparty ["SystemCapability.Ai.MindSpore"] ["c_utils", "hilog", "hdf_core", "ipc", "neural_network_runtime", "neural_network_runtime_ext", "drivers_interface_nnrt", "ability_runtime", "napi", "resource_management", "bounds_checking_function"] []
@ohos/device_info_manager device profile 3.1 device_info_manager deviceprofile null ["c_utils", "hisysevent", "hilog", "ipc", "syscap_codec", "access_token", "device_auth", "samgr", "kv_store", "hitrace", "eventhandler", "safwk", "dsoftbus", "dmsfwk", "device_manager", "init"] ["json"]
@ohos/device_manager device manager service 3.0 device_manager distributedhardware ["SystemCapability.DistributedHardware.DeviceManager"] ["ability_base", "ability_runtime", "access_token", "bundle_framework", "c_utils", "common_event_service", "device_auth", "dsoftbus", "hisysevent", "hitrace", "hilog", "init", "ipc", "napi", "os_account", "safwk", "samgr", "resource_management"] ["json", "node", "googletest", "mbedtls", "openssl"]
@ohos/distributed_hardware_fwk distributed hardware framework 4.0 distributed_hardware_fwk distributedhardware ["SystemCapability.DistributedHardware.DistributedHardwareFWK"] ["dsoftbus", "eventhandler", "hitrace", "c_utils", "hilog", "samgr", "ipc", "safwk", "hisysevent", "device_manager", "config_policy", "init", "kv_store", "resource_schedule_service", "graphic_2d", "histreamer"] ["json", "googletest", "openssl"]
@ohos/drivers_peripheral_distributed_audio distributed audo device driver 4.0 drivers_peripheral_distributed_audio distributedhardware null ["c_utils", "drivers_interface_distributed_audio", "hdf_core", "hilog", "ipc"] []
@ohos/distributed_audio distributed audio 4.0 distributed_audio distributedhardware ["SystemCapability.DistributedHardware.DistributedAudio"] ["audio_framework", "c_utils", "distributed_hardware_fwk", "drivers_interface_audio", "dsoftbus", "eventhandler", "hdf_core", "hisysevent", "hitrace", "hilog", "init", "ipc", "player_framework", "safwk", "samgr"] ["json"]
@ohos/drivers_interface_distributed_audio distributed audio device driver interface 4.0 drivers_interface_distributed_audio distributedhardware null ["ipc", "hdf_core", "hilog", "c_utils"] []
@ohos/distributed_screen distributed hardware screen 3.1 distributed_screen distributedhardware ["SystemCapability.DistributedHardware.DistributedScreen"] ["dsoftbus", "hisysevent", "init", "ipc", "hilog", "input", "graphic_2d", "samgr", "safwk", "hitrace", "c_utils", "player_framework", "window_manager", "image_framework", "distributed_hardware_fwk"] ["json", "libjpeg-turbo"]
@ohos/distributed_input distributed hardware input 3.2 distributed_input distributedhardware ["SystemCapability.DistributedHardware.DistributedInput"] ["eventhandler", "hilog", "ipc", "safwk", "samgr", "dsoftbus", "c_utils", "distributed_hardware_fwk", "config_policy", "hisysevent", "hitrace", "graphic_2d", "window_manager"] ["jsoncpp", "googletest", "libevdev", "openssl"]
@ohos/bluetooth_service Provides basic Bluetooth and BLE functions for applications 3.2.0 bluetooth_service communication ["SystemCapability.Communication.Bluetooth.Core", "SystemCapability.Communication.Bluetooth.Lite"] ["ability_base", "ability_runtime", "audio_framework", "av_session", "base", "hilog", "hisysevent", "hitrace", "ipc", "samgr_proxy", "samgr", "access_token", "bluetooth", "drivers_interface_bluetooth", "eventhandler", "ability_base", "call_manager", "core_service", "hdf_core", "init", "input", "safwk", "common_event_service", "state_registry", "c_utils"] ["googletest", "libuv", "libxml2", "openssl", "bounds_checking_function"]
@openharmony/dsoftbus dsoftbus 3.0 dsoftbus communication ["SystemCapability.Communication.SoftBus.Core"] ["ability_base", "ability_runtime", "access_token", "algorithm", "bluetooth", "bundle_framework", "common", "common_event_service", "data_share", "device_auth", "drivers_interface_wlan", "hicollie_native", "hisysevent", "hitrace", "hilog", "huks", "init", "ipc", "os_account", "relational_store", "c_utils", "safwk", "samgr", "wifi"] ["bounds_checking_function", "cJSON", "libcoap", "libnl", "mbedtls", "openssl", "sqlite"]
@ohos/dhcp The DHCP module provides DHCP client and DHCP service, used to obtain, assign and manage IP address. 3.1.0 dhcp communication [] ["ability_base", "bundle_framework", "c_utils", "common_event_service", "eventhandler", "hilog"] ["bounds_checking_function", "openssl"]
@openharmony/wifi_lite wifi_lite 3.1.0 wifi_lite communication null [] []
@ohos/wifi The WLAN module provides basic WLAN functions, peer-to-peer (P2P) connection, and WLAN notification, enabling your application to communicate with other devices through a WLAN. 3.1.0 wifi communication ["SystemCapability.Communication.WiFi.STA", "SystemCapability.Communication.WiFi.AP.Core", "SystemCapability.Communication.WiFi.P2P", "SystemCapability.Communication.WiFi.Core", "SystemCapability.Communication.WiFi.AP.Extension = false"] ["ability_base", "ability_runtime", "access_token", "bundle_framework", "c_utils", "certificate_manager", "common_event_service", "dhcp", "drivers_interface_wlan", "efficiency_manager", "eventhandler", "hisysevent", "hilog", "huks", "ipc", "napi", "netmanager_base", "safwk", "samgr", "data_share", "hdf_core", "hicollie"] ["bounds_checking_function", "wpa_client", "wpa_client_updater", "wpa_supplicant"]
@openharmony/wifi_aware_lite wifi_aware_lite 3.1.0 wifi_aware_lite communication null [] []
@ohos/communication_connected_nfc_tag nfc service 3.1 connected_nfc_tag communication ["SystemCapability.Communication.ConnectedTag"] ["ipc", "c_utils", "hilog", "ipc", "napi", "access_token", "hisysevent", "safwk", "samgr"] []
@ohos/communication_nfc nfc service 3.1 nfc communication ["SystemCapability.Communication.NFC.Core", "SystemCapability.Communication.NFC.Tag", "SystemCapability.Communication.NFC.CardEmulation"] ["ipc", "hilog", "bundle_framework", "c_utils", "napi", "ability_base", "samgr", "ability_runtime", "access_token", "common_event_service", "eventhandler", "miscdevice", "preferences", "safwk", "drivers_interface_nfc", "init"] ["libnfc-nci", "zlib"]
@openharmony/ipc_js ipc_js 3.1.0 ipc_js communication null ["napi", "c_utils", "hitrace", "hilog", "ipc"] ["libuv", "bounds_checking_function"]
@openharmony/ipc ipc 3.0 ipc communication ["SystemCapability.Communication.IPC.Core"] ["samgr", "hitrace", "hilog", "c_utils", "access_token", "dsoftbus", "napi", "common"] ["libuv", "bounds_checking_function"]
@ohos/netstack net stack service 4.0 netstack communication ["SystemCapability.Communication.NetStack"] ["hilog", "zlib", "c_utils", "init", "napi", "netmanager_base", "ylong_http", "eventhandler"] ["curl", "libwebsockets", "jsoncpp", "openssl", "node"]
@ohos/netmanager_base net manager service 3.1.0 netmanager_base communication ["SystemCapability.Communication.NetManager.Core"] ["ipc", "safwk", "hilog", "dhcp", "libuv", "eventhandler", "ability_base", "access_token", "hitrace", "hisysevent", "core_service", "c_utils", "jsoncpp", "samgr", "init", "common_event_service", "ability_runtime", "data_share", "napi"] ["jsoncpp", "libuv", "iptables", "selinux", "sqlite"]
@ohos/netmanager_ext net manager extensive service 4.0 netmanager_ext communication ["SystemCapability.Communication.NetManager.Ethernet", "SystemCapability.Communication.NetManager.NetSharing", "SystemCapability.Communication.NetManager.MDNS", "SystemCapability.Communication.NetManager.Vpn"] ["ipc", "safwk", "napi", "dhcp", "hilog", "netmanager_base", "eventhandler", "bluetooth", "hisysevent", "c_utils", "samgr", "usb_manager", "drivers_interface_usb", "wifi", "bundle_framework", "os_account"] null
@ohos/distributed_bundle_framework 分布式包管理服务 4.0 distributed_bundle_framework bundlemanager ["SystemCapability.BundleManager.DistributedBundleFramework"] ["ability_base", "access_token", "bundle_framework", "c_utils", "hisysevent", "hilog", "i18n", "ipc", "image_framework", "napi", "os_account", "resource_management", "safwk", "samgr", "common_event_service", "device_manager", "hicollie", "init", "kv_store"] []
@ohos/bundle_tool 包管理命令行工具:提供命令行中执行hap包的安装、更新、卸载及信息查询的能力 4.0 bundle_tool bundlemanager [] ["ability_base", "ability_runtime", "bundle_framework", "common_event_service", "c_utils", "distributed_bundle_framework", "hilog", "init", "ipc", "os_account", "samgr"] ["json", "jsoncpp"]
@ohos/user_file_service filemanagement is the module of OpenHarmony that provides storage and file management. 3.1 user_file_service filemanagement ["SystemCapability.FileManagement.UserFileService"] ["ability_base", "ability_runtime", "app_file_service", "ipc", "samgr", "safwk", "napi", "file_api", "bundle_framework", "hilog", "hitrace", "access_token", "c_utils", "image_framework", "common_event_service", "ability_tools"] null
@ohos/dfs_service The dfs_service module belongs to the filemanagement subsystem of OpenHarmony. It provides the ability of accessing distributed files. 3.1 dfs_service filemanagement ["SystemCapability.FileManagement.DistributedFileService.CloudSync.Core", "SystemCapability.FileManagement.DistributedFileService.CloudSyncManager"] ["ability_base", "access_token", "battery_manager", "c_utils", "common_event_service", "dataclassification", "device_auth", "device_manager", "drivekit_native", "dsoftbus", "file_api", "hilog", "init", "ipc", "napi", "preferences", "media_library", "netmanager_base", "relational_store", "safwk", "samgr", "ability_runtime"] ["e2fsprogs", "libfuse"]
@ohos/storage_service Storage service provides basic storage inquiry and management for the system and apps. 3.1 storage_service filemanagement ["SystemCapability.FileManagement.StorageService.SpatialStatistics", "SystemCapability.FileManagement.StorageService.Volume", "SystemCapability.FileManagement.StorageService.Encryption"] ["ability_base", "ability_runtime", "access_token", "app_file_service", "bundle_framework", "c_utils", "common_event_service", "data_share", "dfs_service", "file_api", "hilog", "hitrace", "huks", "init", "ipc", "media_library", "napi", "relational_store", "safwk", "samgr", "selinux_adapter"] ["bounds_checking_function", "e2fsprogs", "openssl"]
@ohos/file_api provides the application with JS interfaces for IO 4.0 file_api filemanagement ["SystemCapability.FileManagement.File.FileIO", "SystemCapability.FileManagement.File.FileIO.Lite", "SystemCapability.FileManagement.File.Environment", "SystemCapability.FileManagement.File.DistributedFile"] ["ability_base", "ability_runtime", "access_token", "bundle_framework", "common_event_service", "c_utils", "data_share", "eventhandler", "hilog", "ipc", "napi", "samgr", "app_file_service"] ["bounds_checking_function", "e2fsprogs", "openssl"]
@ohos/app_file_service App file service provides sharing and file management for apps 3.1 app_file_service filemanagement ["SystemCapability.FileManagement.AppFileService", "SystemCapability.FileManagement.StorageService.Backup"] ["ability_base", "ability_runtime", "access_token", "bundle_framework", "common", "common_event_service", "c_utils", "data_share", "faultloggerd", "file_api", "hitrace", "hilog", "ipc", "init", "napi", "safwk", "samgr", "storage_service"] ["bounds_checking_function", "googletest", "jsoncpp"]
@ohsh/accessibility The accessibility framework provides a standard mechanism for exchanging information between applications and assistive applications. 4.0 accessibility barrierfree ["SystemCapability.BarrierFree.Accessibility.Core", "SystemCapability.BarrierFree.Accessibility.Hearing", "SystemCapability.BarrierFree.Accessibility.Vision"] ["samgr", "napi", "window_manager", "eventhandler", "input", "c_utils", "common_event_service", "ability_base", "safwk", "bundle_framework", "hitrace", "hilog", "ipc", "ability_runtime", "init", "access_token", "display_manager", "hisysevent", "os_account", "preferences", "power_manager"] []
@ohos/dmsfwk distributed ability manager service 3.1 dmsfwk ability ["SystemCapability.Ability.DistributedAbilityManager"] ["ability_base", "ability_runtime", "access_token", "bundle_framework", "c_utils", "device_auth", "device_info_manager", "device_security_level", "device_manager", "distributed_bundle_framework", "dmsfwk", "dsoftbus", "efficiency_manager", "eventhandler", "form_fwk", "hisysevent", "hitrace", "hilog", "init", "ipc", "kv_store", "image_framework", "napi", "os_account", "safwk", "samgr", "ffrt"] []
@ohos/idl_tool 提供自动生成Extension 服务端及客户端接口文件的能力 3.1 idl_tool ability [] ["hilog", "ipc", "samgr", "c_utils"] []
@ohos/dmsfwk_lite distributed abiltiy manager service 3.1 dmsfwk_lite ability null ["utils_lite", "hilog_lite", "samgr_lite", "bundle_framework_lite", "ability_lite", "huks"] ["bounds_checking_function", "cJSON"]
@ohos/input Provide input capabilities 3.1 input multimodalinput ["SystemCapability.MultimodalInput.Input.InputConsumer", "SystemCapability.MultimodalInput.Input.InputDevice", "SystemCapability.MultimodalInput.Input.Core", "SystemCapability.MultimodalInput.Input.InputSimulator", "SystemCapability.MultimodalInput.Input.InputMonitor", "SystemCapability.MultimodalInput.Input.Pointer", "SystemCapability.MultimodalInput.Input.ShortKey"] ["window_manager", "hisysevent", "start", "napi", "c_utils", "ipc", "hitrace", "resource_schedule_service", "eventhandler", "image_framework", "graphic_2d", "drivers_interface_input", "safwk", "ability_runtime", "access_token", "ability_base", "samgr", "build_framework", "config_policy", "hicollie", "init", "preferences", "security_component_manager", "hilog", "common", "common_event_service"] ["cJSON", "node", "libuv", "libevdev", "mtdev", "libinput"]
@ohos/graphic_chipsetsdk graphic chipset sdk 3.1 graphic_chipsetsdk graphic null ["libhilog", "ipc_core", "samgr_proxy", "utils", "libeventhandler", "hdi_display_device", "bytrace_core"] ["libz"]
@ohos/graphic_2d graphic_2d 3.1 graphic_2d graphic ["SystemCapability.Graphic.Graphic2D.ColorManager.Core", "SystemCapability.Graphic.Graphic2D.EGL", "SystemCapability.Graphic.Graphic2D.GLES3", "SystemCapability.Graphic.Graphic2D.NativeWindow", "SystemCapability.Graphic.Graphic2D.NativeDrawing", "SystemCapability.Graphic.Graphic2D.WebGL", "SystemCapability.Graphic.Graphic2D.WebGL2", "SystemCapability.Graphic.Vulkan"] ["common", "window_manager", "resource_management", "napi", "samgr", "zlib", "hilog", "hisysevent", "hitrace", "ability_runtime", "drivers_interface_display", "c_utils", "access_token", "safwk", "eventhandler", "config_policy", "init", "hicollie", "bounds_checking_function", "image_framework", "cjson", "ipc", "player_framework", "resource_schedule_service", "soc_perf", "accessibility", "frame_aware_sched"] ["flutter", "libuv", "openssl", "skia", "libxml2", "bounds_checking_function", "icu", "libpng", "zlib", "skia", "cJSON", "jsoncpp", "egl", "opengles", "vulkan-headers", "vulkan-loader"]
@ohos/av_session Audio and Video Session Management 4.0 av_session multimedia ["SystemCapability.Multimedia.AVSession.AVCast", "SystemCapability.Multimedia.AVSession.Core", "SystemCapability.Multimedia.AVSession.Manager"] ["ability_base", "ability_runtime", "access_token", "ace_napi", "audio_framework", "bundle_framework", "bytrace_core", "c_utils", "cast_engine", "data_object", "device_manager", "dsoftbus", "efficiency_manager", "eventhandler", "graphic_2d", "hilog", "hisysevent", "hitrace", "input", "ipc", "libaccesstoken_sdk", "libcrypto_shared", "ipc_single", "libhilog", "image_framework", "napi", "safwk", "samgr", "samgr_proxy", "system_ability_fwk", "window_manager"] ["openssl"]
@ohos/histreamer Histreamer engine. 3.1 histreamer multimedia [] ["hilog", "hilog_lite", "hitrace", "audio_framework", "drivers_peripheral_codec", "graphic_2d", "hdf_core", "c_utils", "bounds_checking_function", "init", "player_framework"] ["ffmpeg", "minimp3", "minimp4", "bounds_checking_function", "curl"]
@ohos/image_framework Image standard provides atomic capabilities 3.1 image_framework multimedia ["SystemCapability.Multimedia.Image.Core", "SystemCapability.Multimedia.Image.ImageSource", "SystemCapability.Multimedia.Image.ImagePacker", "SystemCapability.Multimedia.Image.ImageReceiver", "SystemCapability.Multimedia.Image.ImageCreator"] ["c_utils", "graphic_2d", "hichecker", "hitrace", "hilog", "ipc", "napi", "zlib", "init", "memory_utils", "napi"] ["flutter", "libpng", "libexif", "giflib", "bounds_checking_function", "expat", "json", "skia", "zlib"]
@ohos/av_codec Media standard provides atomic capabilities 3.1 av_codec multimedia ["SystemCapability.Multimedia.Media.Muxer", "SystemCapability.Multimedia.Media.Spliter", "SystemCapability.Multimedia.Media.Core", "SystemCapability.Multimedia.Media.AudioDecoder", "SystemCapability.Multimedia.Media.AudioEncoder", "SystemCapability.Multimedia.Media.VideoDecoder", "SystemCapability.Multimedia.Media.VideoEncoder", "SystemCapability.Multimedia.Media.CodecBase"] ["c_utils", "drivers_interface_codec", "graphic_2d", "hdf_core", "hicollie", "hidumper", "hilog", "hisysevent", "hitrace", "init", "ipc", "safwk", "samgr", "selinux_adapter", "window_manager"] ["bounds_checking_function", "ffmpeg"]
@ohos/camera_framework Camera standard provides managers and provides the camera resources to application to capture photo/preview/videos 3.1 camera_framework multimedia ["SystemCapability.Multimedia.Camera.Core"] ["ability_base", "access_token", "bundle_framework", "c_utils", "device_manager", "drivers_interface_camera", "graphic_2d", "hdf_core", "hicollie", "hicollie_native", "hilog", "hisysevent", "hitrace", "ipc", "ipc_core", "ipc_single", "libaccesstoken_sdk", "libhilog", "media_client", "image_framework", "napi", "safwk", "samgr", "samgr_proxy", "system_ability_fwk", "window_manager"] [""]
@ohos/audio_framework Audio standard provides managers and provides the audio resources to application for play/record audio 4.0 audio_framework multimedia ["SystemCapability.Multimedia.Audio.Core", "SystemCapability.Multimedia.Audio.Renderer", "SystemCapability.Multimedia.Audio.Capturer", "SystemCapability.Multimedia.Audio.Device", "SystemCapability.Multimedia.Audio.Volume", "SystemCapability.Multimedia.Audio.Communication", "SystemCapability.Multimedia.Audio.Tone", "SystemCapability.Multimedia.Audio.Interrupt", "SystemCapability.Multimedia.Audio.PlaybackCapture"] ["ability_base", "ability_runtime", "access_token", "accessibility", "bluetooth", "bundle_framework", "c_utils", "common_event_service", "config_policy", "data_share", "device_manager", "distributed_audio", "drivers_interface_audio", "drivers_peripheral_audio", "eventhandler", "hdf_core", "hicollie", "hisysevent", "hitrace", "hiview", "hilog", "init", "input", "ipc", "kv_store", "napi", "power_manager", "resource_management", "resource_schedule_service", "safwk", "samgr"] ["bounds_checking_function", "glib", "libsnd", "libxml2", "pulseaudio"]
@ohos/player_framework Media standard provides atomic capabilities 3.1 player_framework multimedia ["SystemCapability.Multimedia.Media.Core", "SystemCapability.Multimedia.Media.AudioPlayer", "SystemCapability.Multimedia.Media.VideoPlayer", "SystemCapability.Multimedia.Media.AudioRecorder", "SystemCapability.Multimedia.Media.VideoRecorder", "SystemCapability.Multimedia.Media.AudioDecoder", "SystemCapability.Multimedia.Media.AudioEncoder", "SystemCapability.Multimedia.Media.VideoDecoder", "SystemCapability.Multimedia.Media.VideoEncoder", "SystemCapability.Multimedia.Media.CodecBase", "SystemCapability.Multimedia.Media.AVPlayer", "SystemCapability.Multimedia.Media.AVRecorder", "SystemCapability.Multimedia.SystemSound.Core", "SystemCapability.Multimedia.Media.AVScreenCapture", "SystemCapability.Multimedia.Media.SoundPool"] ["av_session", "safwk", "hilog", "window_manager", "napi", "samgr", "hitrace", "audio_framework", "ipc", "graphic_2d", "hisysevent", "c_utils", "zlib", "access_token", "image_framework", "hiview", "eventhandler", "init", "input", "memmgr_plugin", "hicollie", "drivers_peripheral_codec", "hdf_core", "ability_base", "ability_runtime", "bundle_framework", "relational_store", "resource_management", "av_codec"] ["glib", "gstreamer", "libffi", "ffmpeg", "libxml2", "bounds_checking_function"]
@ohos/media_service Multi media service for mini and small system. 3.1 media_service multimedia [] ["hilog_lite", "audio_manager_lite", "camera_lite", "permission", "ui_lite", "init"] ["bounds_checking_function", "iniparser"]
@ohos/media_library provides a set of easy-to-use APIs for getting media file metadata information 4.0 media_library multimedia ["SystemCapability.Multimedia.MediaLibrary.Core", "SystemCapability.Multimedia.MediaLibrary.DistributedCore", "SystemCapability.FileManagement.UserFileManager.Core", "SystemCapability.FileManagement.UserFileManager.DistributedCore", "SystemCapability.FileManagement.PhotoAccessHelper.Core"] ["ability_base", "ability_runtime", "access_token", "battery_manager", "bundle_framework", "c_utils", "common_event_service", "data_share", "device_auth", "device_manager", "device_security_level", "dfs_service", "drivers_interface_usb", "eventhandler", "file_api", "hilog", "hitrace", "huks", "init", "ipc", "ipc_js", "kv_store", "memory_utils", "image_framework", "napi", "player_framework", "relational_store", "safwk", "samgr", "security_component_manager", "storage_service", "user_file_service", "window_manager"] ["openssl"]
@ohos/window_manager library for window 3.1 window_manager window ["SystemCapability.WindowManager.WindowManager.Core"] ["sensor", "ability_base", "graphic_2d", "hisysevent", "ability_runtime", "napi", "common_event_service", "hilog", "access_token", "init", "bundle_framework", "ipc", "power_manager", "hitrace", "samgr", "input", "safwk", "display_manager", "config_policy", "ace_engine", "image_framework", "preferences", "hiview", "ffrt", "dsoftbus", "hicollie", "eventhandler", "c_utils", "common", "motion", "soc_perf", "resource_management", "resource_schedule_service", "efficiency_manager", "frame_aware_sched_override", "imf", "frame_aware_sched", "screenlock_mgr", "previewer", "hilog", "memmgr_plugin"] ["libjpeg-turbo", "libxml2"]
@ohos/bearpi_hm_micro_sample bearpi_hm_micro samples. 3.1 bearpi_hm_micro_sample bearpi_hm_micro_sample [""] ["ability_lite", "appexecfwk_lite", "surface_lite", "ui_lite", "graphic_utils_lite", "kv_store", "init", "permission", "samgr_lite", "utils_base"] ["bounds_checking_function", "wpa_supplicant", "cjson", "giflib", "libjpeg", "libpng"]
@ohos/kaihong_products None 3.1 kaihong_products kaihong_products [] [] []
@ohos/enterprise_device_management EDM(Enterprise Device Management)提供系统级别的管理功能API,支持企业MDM应用对设备的管控 3.2 enterprise_device_management customization ["SystemCapability.Customization.EnterpriseDeviceManager"] ["ability_base", "ability_runtime", "access_token", "bundle_framework", "certificate_manager", "common_event_service", "c_utils", "data_share", "dupdate_engine", "netmanager_base", "netmanager_ext", "hilog", "hisysevent", "init", "ipc", "napi", "os_account", "relational_store", "safwk", "samgr", "time_service", "update_service", "wifi", "eventhandler"] ["bounds_checking_function", "jsoncpp"]
@ohos/os_account Allowing apps to use OS account-related functions 3.0 os_account account ["SystemCapability.Account.AppAccount", "SystemCapability.Account.OsAccount"] ["ability_base", "ability_runtime", "access_token", "ace_engine", "bundle_framework", "common_event_service", "c_utils", "eventhandler", "kv_store", "hicollie", "hilog", "hisysevent", "hitrace", "init", "i18n", "ipc", "napi", "pin_auth", "safwk", "samgr", "security_guard", "selinux_adapter", "storage_service", "time_service", "user_auth_framework"] ["mbedtls"]
@ohos/device_status Msdp device status 3.1 device_status msdp ["SystemCapability.Msdp.DeviceStatus.Stationary"] ["access_token", "hilog", "ipc", "safwk", "samgr", "c_utils", "napi", "image_framework", "eventhandler", "distributed_input", "device_manager", "sensor", "init", "input", "hisysevent", "window_manager", "hitrace", "ability_base", "huks", "graphic_2d", "udmf", "device_info_manager", "dsoftbus", "graphic_2d", "common", "motion"] ["cJSON", "libxml2", "libuv", "openssl", "jsoncpp"]
@ohos/imf Provide input capability to ime app 3.1 imf inputmethod ["SystemCapability.MiscServices.InputMethodFramework"] ["init", "napi", "samgr", "common_event_service", "ipc", "eventhandler", "bundle_framework", "ability_runtime", "hilog", "ability_base", "safwk", "input", "c_utils", "access_token", "i18n", "window_manager", "os_account", "hisysevent", "hitrace", "graphic_2d"] ["jsoncpp"]
@ohos/usb_manager usb manager 3.1.0 usb_manager usb ["SystemCapability.USB.USBManager"] ["hilog", "ability_base", "eventhandler", "napi", "bundle_framework", "common_event_service", "drivers_interface_usb", "init", "ipc", "safwk", "c_utils", "samgr", "access_token", "os_account", "relational_store", "ability_runtime", "hisysevent"] ["jsoncpp"]
@ohos/webview library for webview 3.1 webview web ["SystemCapability.Web.Webview.Core"] ["ability_base", "ability_runtime", "access_token", "audio_framework", "av_session", "background_task_mgr", "battery_manager", "bundle_framework", "c_utils", "camera_framework", "cellular_data", "certificate_manager", "common_event_service", "config_policy", "core_service", "data_share", "enterprise_device_management", "eventhandler", "file_api", "graphic_2d", "hilog", "hisysevent", "hitrace", "huks", "imf", "init", "input", "ipc", "location", "image_framework", "napi", "netmanager_base", "pasteboard", "player_framework", "power_manager", "print_fwk", "relational_store", "resource_schedule_service", "samgr", "soc_perf", "window_manager"] ["chromium", "cef", "libxml2"]
@ohos/iothardware_peripheral Iot peripheral controller. 3.1 peripheral iothardware [] [] []
@ohos/location Location service, providing location and geocoding capabilities. 3.1.0 location location ["SystemCapability.Location.Location.Core", "SystemCapability.Location.Location.Gnss", "SystemCapability.Location.Location.Geofence", "SystemCapability.Location.Location.Geocoder", "SystemCapability.Location.Location.Lite"] ["ability_base", "ability_runtime", "access_token", "bundle_framework", "common_event_service", "c_utils", "data_share", "eventhandler", "hdf_core", "hisysevent", "hiview", "hilog", "init", "ipc", "napi", "os_account", "relational_store", "safwk", "samgr", "wifi", "bluetooth"] ["libuv"]
@ohos/print_fwk Provide printer management and print ability for 3rd party app 3.1 print_fwk print ["SystemCapability.Print.PrintFramework"] ["ability_base", "ability_runtime", "access_token", "bundle_framework", "c_utils", "common_event_service", "core_service", "distributed_notification_service", "drivers_interface_ril", "eventhandler", "hisysevent", "hitrace", "hilog", "i18n", "init", "ipc", "ipc_js", "napi", "netmanager_base", "os_account", "preferences", "relational_store", "resource_management", "safwk", "samgr", "security_guard", "time_service"] ["googletest", "zlib", "cups", "cups-filters"]
@ohos/miscdevice Control vibration vibration 3.1 miscdevice sensors ["SystemCapability.Sensors.MiscDevice", "SystemCapability.Sensors.MiscDevice.Lite"] ["c_utils", "hisysevent", "napi", "hilog", "drivers_interface_light", "drivers_interface_vibrator", "access_token", "hitrace", "init", "ipc", "safwk", "samgr"] ["cJSON"]
@ohos/start Start sensor, vibrator and other small device services 3.1 start sensors [] [] []
@ohos/sensor Obtaining sensor data 3.1 sensor sensors ["SystemCapability.Sensors.Sensor", "SystemCapability.Sensors.Sensor.Lite"] ["c_utils", "hilog", "common", "hisysevent", "napi", "drivers_interface_sensor", "hilog", "access_token", "hitrace", "ipc", "safwk", "samgr", "eventhandler"] []
@ohos/medical_sensor Obtaining sensor data 3.1 medical_sensor sensors ["SystemCapability.Sensors.Medical_sensor"] ["hilog", "ipc", "safwk", "samgr", "utils_base", "appexecfwk_standard", "napi", "hisysevent", "drivers_peripheral_sensor"] []
@ohos/request Provide download and upload service for 3rd party app 3.1 request request ["SystemCapability.MiscServices.Download", "SystemCapability.MiscServices.Upload", "SystemCapability.Request.FileTransferAgent"] ["samgr", "ipc", "netmanager_base", "eventhandler", "ability_runtime", "safwk", "access_token", "relational_store", "napi", "ability_base", "hilog", "hitrace", "hisysevent", "core_service", "cellular_data", "distributed_notification_service", "c_utils", "netstack", "ylong_runtime"] ["curl", "libuv", "openssl"]
@ohos/hidumper_lite System information dump service for liteos-a kernel and liteos-m kernel. 3.1 hidumper_lite hiviewdfx null [] ["bounds_checking_function"]
@ohos/hidumper Dump system information for development and test 4.0 hidumper hiviewdfx ["SystemCapability.HiviewDFX.HiDumper"] ["ability_base", "access_token", "battery_manager", "common_event_service", "c_utils", "eventhandler", "hilog", "init", "ipc", "memmgr", "memmgr_plugin", "safwk", "samgr", "drivers_interface_memorytracker", "hdf_core", "ability_runtime", "graphic_2d"] ["zlib"]
@ohos/hichecker HiChecker mode for application 4.0 hichecker hiviewdfx ["SystemCapability.HiviewDFX.HiChecker"] ["c_utils", "faultloggerd", "hilog", "init", "napi"] null
@ohos/hisysevent System event logging 3.1 hisysevent hiviewdfx ["SystemCapability.HiviewDFX.HiSysEvent"] ["access_token", "c_utils", "hilog", "hitrace", "ipc", "napi", "safwk", "samgr", "storage_service"] ["bounds_checking_function", "jsoncpp"]
@ohos/hitrace cross-thread, cross-process, and cross-device service call chain 4.0 hitrace hiviewdfx ["SystemCapability.HiviewDFX.HiTrace"] ["c_utils", "hilog", "init", "napi"] ["cJSON", "zlib"]
@ohos/hilog Native log interface provided for system 3.1 hilog hiviewdfx ["SystemCapability.HiviewDFX.HiLog"] ["init", "napi", "c_utils"] ["bounds_checking_function", "zlib"]
@ohos/faultloggerd Collecting c/c++ runtime crash log 3.1 faultloggerd hiviewdfx [] ["common", "c_utils", "hilog", "hisysevent", "init", "ipc"] ["bounds_checking_function", "libunwind"]
@ohos/hiview Hiview is the module of OpenHarmony that provides toolkits for device maintenance across different platforms. 3.1 hiview hiviewdfx ["SystemCapability.HiviewDFX.Hiview", "SystemCapability.HiviewDFX.Hiview.FaultLogger", "SystemCapability.HiviewDFX.Hiview.LogLibrary"] ["ability_base", "ability_runtime", "access_token", "battery_statistics", "bundle_framework", "c_utils", "device_usage_statistics", "ets_runtime", "faultloggerd", "hidumper", "hilog", "hisysevent", "init", "ipc", "os_account", "power_manager", "relational_store", "safwk", "samgr", "storage_service", "time_service", "napi", "hiperf", "hitrace"] ["jsoncpp", "libxml2", "sqlite", "openssl", "bounds_checking_function", "zlib"]
@ohos/hiappevent Event logging provided for application 3.1 hiappevent hiviewdfx ["SystemCapability.HiviewDFX.HiAppEvent"] ["ability_runtime", "bundle_framework", "eventhandler", "hitrace", "hilog", "ipc", "napi", "relational_store"] []
@ohos/hicollie HiCollie provides the software watchdog capability. 3.1 hicollie hiviewdfx null ["hilog", "hisysevent", "c_utils", "eventhandler", "faultloggerd", "ffrt", "ipc"] []
@ohos/blackbox blackbox provides the software blackbox capability. 3.1 blackbox hiviewdfx null ["utils_base", "liteos_m"] []
@ohos/wallpaper_mgr Allowing apps to use OS wallpaper get/set functions 3.1 wallpaper_mgr theme ["SystemCapability.MiscServices.Wallpaper"] ["graphic_2d", "samgr", "common_event_service", "hiview", "ipc", "hitrace", "hisysevent", "ability_runtime", "safwk", "access_token", "napi", "ability_base", "hilog", "c_utils", "bundle_framework", "os_account", "window_manager", "image_framework", "player_framework", "eventhandler", "init"] []
@ohos/screenlock_mgr Provide communication capability between windowmanager and screenlock app 3.1 screenlock_mgr theme ["SystemCapability.MiscServices.ScreenLock"] ["safwk", "napi", "samgr", "common_event_service", "ipc", "eventhandler", "graphic_2d", "os_account", "bundle_framework", "ability_base", "ability_runtime", "hitrace", "access_token", "hicollie", "init", "window_manager", "hilog", "user_auth_framework", "c_utils", "ffrt"] []
@ohos/i18n Provides internationalization APIS for implementing functions such date and time formatting. 1.0.0 i18n global ["SystemCapability.Global.I18n"] ["ability_base", "ability_runtime", "access_token", "bundle_framework", "common_event_service", "c_utils", "hilog", "init", "ipc", "napi", "resource_management", "samgr"] ["icu", "libphonenumber", "libpng", "libxml2"]
@ohos/global_timezone Provides tools for timezone data management and update. 1.0.0 timezone global ["SystemCapability.Global.I18n"] [] []
@ohos/system_resources global resources at the system level 4.0 system_resources global [] [] []
@ohos/resource_management 根据当前configuration(语言,区域,横竖屏,mccmnc)和device capability(设备类型,分辨率)获取应用资源信息读取接口 4.0 resource_management global ["SystemCapability.Global.ResourceManager"] ["ability_base", "ability_runtime", "hilog", "hisysevent", "hitrace", "napi", "ace_engine", "bundle_framework", "c_utils", "graphic_2d"] ["zlib", "bounds_checking_function", "icu"]
@ohos/bootstrap_lite boostrap and start system services 3.1 bootstrap_lite startup null ["utils_base", "samgr_lite"] ["bounds_checking_function"]
@ohos/hvb OpenHarmony Verified Boot (HVB) 1.0 hvb startup null [] []
@ohos/appspawn_lite lite app start manager 3.1 appspawn_lite startup null ["hilog_lite", "samgr_lite", "ipc_single", "kv_store", "ability_lite", "ace_engine_lite", "surface_lite", "ui_lite"] ["cJSON", "bounds_checking_function"]
@ohos/time_service Allowing apps to use OS time get/set functions 3.1 time_service time ["SystemCapability.MiscServices.Time"] ["napi", "samgr", "common_event_service", "ipc", "eventhandler", "netmanager_base", "ability_base", "ability_runtime", "hilog", "safwk", "c_utils", "access_token", "hisysevent", "device_standby", "init"] ["jsoncpp"]
@ohos/cellular_call telephony cellular call service 4.0 cellular_call telephony ["SystemCapability.Telephony.CellularCall"] ["ability_base", "c_utils", "call_manager", "common_event_service", "core_service", "eventhandler", "hilog", "hisysevent", "hitrace", "init", "ipc", "resource_management", "safwk", "samgr"] ["libphonenumber"]
@ohos/telephony_data telephony data storage service 4.0 telephony_data telephony null ["ability_base", "ability_runtime", "access_token", "c_utils", "config_policy", "common_event_service", "data_share", "hilog", "ipc", "napi", "relational_store"] ["jsoncpp"]
@ohos/core_service telephony core service 4.0 core_service telephony ["SystemCapability.Telephony.CoreService"] ["ability_base", "ability_runtime", "access_token", "battery_manager", "bundle_framework", "c_utils", "common_event_service", "config_policy", "data_share", "drivers_interface_ril", "eventhandler", "hdf_core", "hilog", "hisysevent", "i18n", "init", "ipc", "napi", "netmanager_base", "netmanager_ext", "power_manager", "preferences", "resource_management", "safwk", "samgr", "telephony_data", "time_service"] ["icu", "jsoncpp", "libphonenumber", "libxml2", "node", "openssl", "protobuf"]
@ohos/call_manager telephony call manager service 4.0 call_manager telephony ["SystemCapability.Telephony.CallManager"] ["ability_base", "ability_runtime", "bluetooth", "c_utils", "common_event_service", "core_service", "data_share", "distributed_notification_service", "eventhandler", "ffrt", "hilog", "hisysevent", "hitrace", "init", "ipc", "audio_framework", "camera_framework", "napi", "power_manager", "safwk", "samgr", "sms_mms"] ["libphonenumber", "libuv", "protobuf"]
@ohos/state_registry telephony state_registry service 4.0 state_registry telephony ["SystemCapability.Telephony.StateRegistry"] ["ability_base", "c_utils", "common_event_service", "core_service", "eventhandler", "hilog", "init", "ipc", "napi", "safwk", "samgr"] ["libuv"]
@ohos/cellular_data telephony cellular data service 4.0 cellular_data telephony ["SystemCapability.Telephony.CellularData"] ["ability_base", "ability_runtime", "c_utils", "common_event_service", "core_service", "data_share", "eventhandler", "hilog", "hisysevent", "hitrace", "init", "ipc", "napi", "netmanager_base", "relational_store", "safwk", "samgr", "telephony_data"] null
@ohos/ril_adapter telephony ril adapter service 4.0 ril_adapter telephony null ["c_utils", "drivers_interface_power", "drivers_interface_ril", "hdf_core", "hilog", "init", "ipc"] null
@ohos/sms_mms telephony sms mms service 4.0 sms_mms telephony ["SystemCapability.Telephony.SmsMms"] ["ability_base", "ability_runtime", "access_token", "c_utils", "common_event_service", "core_service", "data_share", "eventhandler", "hilog", "hisysevent", "init", "ipc", "napi", "netmanager_base", "resource_management", "safwk", "samgr", "telephony_data"] ["curl", "glib"]
@openharmony/face_auth Face authentication capability 4.0 face_auth useriam ["SystemCapability.UserIAM.UserAuth.FaceAuth"] ["access_token", "c_utils", "display_manager", "drivers_interface_camera", "drivers_interface_face_auth", "graphic_2d", "hilog", "init", "ipc", "napi", "power_manager", "safwk", "samgr", "sensor", "user_auth_framework"] null
@openharmony/pin_auth PIN Authentication capability 4.0 pin_auth useriam ["SystemCapability.UserIAM.UserAuth.PinAuth"] ["hilog", "ipc", "safwk", "samgr", "access_token", "hisysevent", "user_auth_framework", "drivers_interface_pin_auth", "c_utils"] ["openssl"]
@openharmony/user_auth_framework User Authentication capability 4.0 user_auth_framework useriam ["SystemCapability.UserIAM.UserAuth.Core"] ["ability_base", "ability_runtime", "bundle_framework", "hilog", "ipc", "safwk", "samgr", "init", "hisysevent", "drivers_interface_user_auth", "access_token", "os_account", "napi", "hdf_core", "hitrace", "c_utils", "window_manager"] ["openssl"]
@openharmony/fingerprint_auth fingerprint authentication capability 4.0 fingerprint_auth useriam ["SystemCapability.UserIAM.UserAuth.FingerprintAuth"] ["ability_base", "c_utils", "common_event_service", "display_manager", "drivers_interface_fingerprint_auth", "graphic_2d", "hilog", "ipc", "power_manager", "safwk", "samgr", "user_auth_framework", "window_manager"] null
@openharmony/permission_lite permission_lite 3.1.0 permission_lite security [] ["hilog", "samgr_lite", "ipc"] ["bounds_checking_function", "cJSON"]
@openharmony/dlp_permission_service dlp_permission_service 3.1.0 dlp_permission_service security ["SystemCapability.Security.DlpPermissionService"] ["hitrace", "ipc", "os_account", "access_token", "bundle_framework", "file_api", "dlp_credential_service", "common_event_service", "init", "ability_base", "ability_runtime", "hilog", "hisysevent", "napi", "safwk", "samgr", "c_utils"] ["libfuse", "openssl", "mbedtls"]
@ohos/selinux_adapter security-enhanced linux(SELINUX) is a mandatory access control mechanism on linux 3.1 selinux_adapter security null ["hilog"] ["pcre2", "selinux", "bounds_checking_function"]
@ohos/appverify Signature verification for HAP packages 4.0 appverify security [] ["c_utils", "hilog", "init", "os_account"] ["json", "openssl", "cJSON", "bounds_checking_function", "mbedtls"]
@openharmony/security_component_manager security_component_manager 4.0.0 security_component_manager security [] ["ability_base", "ability_runtime", "access_token", "c_utils", "eventhandler", "hilog", "hisysevent", "hitrace", "graphic_2d", "ipc", "safwk", "samgr", "window_manager"] ["cJSON"]
@ohos/dataclassification data transmission control 3.1 dataclassification security ["SystemCapability.Security.DataTransitManager"] ["device_security_level", "hilog", "c_utils"] []
@ohos/crypto_framework Openharmony's crypto framework. 3.2 crypto_framework security ["SystemCapability.Security.CryptoFramework"] ["hilog", "c_utils", "napi"] ["openssl", "bounds_checking_function"]
@openharmony/access_token access_token 3.1.0 access_token security ["SystemCapability.Security.AccessToken"] ["ability_base", "ability_runtime", "c_utils", "device_manager", "dsoftbus", "eventhandler", "hicollie", "hisysevent", "hitrace", "hilog", "init", "ipc", "napi", "power_manager", "safwk", "samgr", "selinux_adapter"] ["bounds_checking_function", "cJSON", "mbedtls", "sqlite", "zlib"]
@ohos/certificate_framework Openharmony's certificate framework. 4.0 certificate_framework security ["SystemCapability.Security.Cert"] ["c_utils", "crypto_framework", "hilog", "napi"] ["openssl"]
@ohos/huks The provider of key and certificate manangement capbility, which belongs to security subsystem 4.0 huks security ["SystemCapability.Security.Huks", "SystemCapability.Security.Cipher"] ["ability_base", "access_token", "bundle_framework", "c_utils", "common_event_service", "hisysevent", "hitrace", "hilog", "ipc", "napi", "os_account", "safwk", "samgr", "user_auth_framework", "drivers_interface_user_auth", "drivers_interface_huks"] ["bounds_checking_function", "openssl", "mbedtls", "cJSON"]
@ohos/code_signature Code signature 4.0 code_signature security [] ["hilog", "hitrace", "hisysevent", "ability_base", "c_utils", "ipc", "samgr", "safwk", "huks", "eventhandler", "build_framework", "access_token", "common"] ["openssl", "fsverity-utils", "googletest"]
@ohos/certificate_manager The provider of certificate manangement capbility, which belongs to security subsystem 4.0 certificate_manager security ["SystemCapability.Security.CertificateManager"] ["ability_base", "access_token", "bundle_framework", "common_event_service", "c_utils", "eventhandler", "hisysevent", "hilog", "huks", "ipc", "napi", "os_account", "safwk", "samgr"] ["openssl"]
@ohos/device_security_level openharmony's device security level management 3.0.0 device_security_level security ["SystemCapability.Security.DeviceSecurityLevel"] ["c_utils", "device_auth", "device_manager", "dsoftbus", "hilog", "hisysevent", "hitrace", "huks", "ipc", "safwk", "samgr"] ["cJSON", "openssl"]
@ohos/device_auth The device authentication module belongs to the security subsystem of OpenHarmony. It manages the entire lifecycle of trust relationships between devices. 3.1 device_auth security ["SystemCapability.Security.DeviceAuth"] ["access_token", "c_utils", "dsoftbus", "hilog", "hisysevent", "hitrace", "huks", "init", "os_account", "samgr", "ipc"] ["bounds_checking_function", "cJSON", "mbedtls", "openssl"]
@ohos/drivers_interface_power power device driver interface 3.2 drivers_interface_power hdf null ["ipc", "hdf_core", "hilog", "c_utils"] []
@ohos/drivers_interface_thermal thermal device driver interface 3.2 drivers_interface_thermal hdf null ["ipc", "hdf_core", "hilog", "c_utils"] []
@ohos/drivers_interface_audio audio driver interface 3.2 drivers_interface_audio hdf null ["c_utils", "hdf_core", "hilog"] []
@ohos/drivers_interface_act_recg activity recognition device driver interface 3.2 drivers_interface_act_recg hdf null ["ipc", "hdf_core", "hilog", "c_utils"] []
@ohos/drivers_interface_light light device driver interface 4.0 drivers_interface_light hdf [] ["ipc", "hdf_core", "hilog", "c_utils"] []
@ohos/drivers_interface_usb drivers interface usb 3.1 drivers_interface_usb hdf [] ["c_utils", "ipc", "hdf_core", "hilog"] []
@ohos/drivers_interface_distributed_camera drivers interface distributed camera 3.2 drivers_interface_distributed_camera hdf null ["ipc", "hdf_core", "hilog", "c_utils"] []
@ohos/drivers_interface_battery battery device driver interface 3.2 drivers_interface_battery hdf null ["ipc", "hdf_core", "hilog", "c_utils"] []
@ohos/drivers_interface_face_auth face auth device driver 4.0 drivers_interface_face_auth hdf null ["ipc", "hdf_core", "hilog", "c_utils", "graphic_chipsetsdk", "drivers_interface_camera"] []
@ohos/drivers_interface_location_geofence geofence device driver interface 3.2 drivers_interface_location_geofence hdf ["SystemCapability.Location.Location.Geofence"] ["ipc", "hdf_core", "hilog", "c_utils"] []
@ohos/drivers_interface_location_agnss agnss device driver interface 3.2 drivers_interface_location_agnss hdf ["SystemCapability.Location.Location.Gnss"] ["ipc", "hdf_core", "hilog", "c_utils"] []
@ohos/drivers_interface_lpfence_geofence low power fence geofence device driver interface 4.0 drivers_interface_lpfence_geofence hdf ["SystemCapability.Location.Location.Geofence"] ["ipc", "hdf_core", "hilog", "c_utils"] []
@ohos/drivers_interface_lpfence_cellfence low power fence cell fence device driver interface 4.0 drivers_interface_lpfence_cellfence hdf ["SystemCapability.Location.Location.Geofence"] ["ipc", "hdf_core", "hilog", "c_utils"] []
@ohos/drivers_interface_lpfence_cellbatching low power fence cell batching device driver interface 4.0 drivers_interface_lpfence_cellbatching hdf ["SystemCapability.Location.Location.Geofence"] ["ipc", "hdf_core", "hilog", "c_utils"] []
@ohos/drivers_interface_lpfence_wififence low power fence wifi fence device driver interface 4.0 drivers_interface_lpfence_wififence hdf ["SystemCapability.Location.Location.Geofence"] ["ipc", "hdf_core", "hilog", "c_utils"] []
@ohos/drivers_interface_location_gnss gnss device driver interface 3.2 drivers_interface_location_gnss hdf ["SystemCapability.Location.Location.Gnss"] ["ipc", "hdf_core", "hilog", "c_utils"] []
@ohos/drivers_interface_bluetooth bluetooth device driver interface 3.2 drivers_interface_bluetooth hdf null ["ipc", "hdf_core", "hilog", "c_utils"] []
@ohos/drivers_interface_sensor sensor device driver interface 4.0 drivers_interface_sensor hdf [] ["ipc", "hdf_core", "hilog", "c_utils"] []
@ohos/external_device_manager external device driver framework 4.0 external_device_manager hdf ["SystemCapability.Driver.HID.Extension", "SystemCapability.Driver.DeviceManager.Extension", "SystemCapability.Driver.USB.Extension"] ["hilog", "init", "ipc", "samgr", "selinux_adapter", "ability_base", "common_event_service", "c_utils", "os_account", "drivers_interface_usb", "bundle_framework", "ability_runtime", "hisysevent", "hitrace", "napi", "safwk", "eventhandler", "ace_engine", "access_token"] ["bounds_checking_function", "googletest", "jsoncpp"]
@ohos/drivers_peripheral_power power_hdf 3.1 drivers_peripheral_power hdf null ["c_utils", "drivers_interface_power", "hdf_core", "hilog", "ipc"] ["libxml2"]
@ohos/drivers_peripheral_thermal thermal device driver 3.1 drivers_peripheral_thermal hdf null ["c_utils", "config_policy", "drivers_interface_thermal", "init", "ipc", "hdf_core", "hilog"] ["libxml2", "zlib"]
@ohos/drivers_peripheral_audio audio device driver 4.0 drivers_peripheral_audio hdf null ["c_utils", "hilog", "hdf_core", "drivers_interface_audio"] ["bounds_checking_function", "cjson", "alsa-lib"]
@ohos/drivers_peripheral_light light device driver 4.0 drivers_peripheral_light hdf [] ["ipc", "hdf_core", "hilog", "c_utils", "drivers_interface_light", "hitrace"] null
@ohos/drivers_peripheral_usb usb device driver 3.1 drivers_peripheral_usb hdf [] ["ipc", "hdf_core", "hilog", "samgr", "init", "hitrace", "c_utils", "drivers_interface_usb", "hisysevent"] []
@ohos/drivers_peripheral_distributed_camera drivers peripheral distributed camera 3.2 drivers_peripheral_distributed_camera hdf null ["ipc", "hdf_core", "hilog", "c_utils", "samgr", "drivers_interface_display", "drivers_interface_distributed_camera", "graphic_chipsetsdk", "drivers_interface_camera"] ["jsoncpp"]
@ohos/drivers_peripheral_battery battery hdf 3.1 drivers_peripheral_battery hdf null ["c_utils", "config_policy", "drivers_interface_battery", "drivers_interface_light", "hdf_core", "hilog", "ipc"] ["jsoncpp"]
@ohos/drivers_peripheral_face_auth face auth device driver 4.0 drivers_peripheral_face_auth hdf null ["ipc", "hdf_core", "hilog", "c_utils", "drivers_interface_camera", "drivers_interface_face_auth", "graphic_chipsetsdk"] []
@ohos/drivers_peripheral_location_geofence location geofence hdf 1.0 drivers_peripheral_location_geofence hdf null ["c_utils", "drivers_interface_location_geofence", "ipc", "hdf_core", "hilog"] []
@ohos/drivers_peripheral_location_agnss location agnss hdf 1.0 drivers_peripheral_location_agnss hdf null ["c_utils", "drivers_interface_location_agnss", "drivers_peripheral_location_gnss", "ipc", "hdf_core", "hilog"] []
@ohos/drivers_peripheral_location_gnss location gnss hdf 1.0 drivers_peripheral_location_gnss hdf null ["c_utils", "drivers_interface_location_gnss", "ipc", "hdf_core", "hilog"] []
@ohos/drivers_peripheral_bluetooth bluetooth device driver 3.1 drivers_peripheral_bluetooth hdf null ["c_utils", "drivers_peripheral_bluetooth", "hdf_core", "hilog", "ipc", "samgr", "drivers_interface_bluetooth", "bluetooth_service"] null
@ohos/drivers_peripheral_sensor sensor device driver 4.0 drivers_peripheral_sensor hdf [] ["ipc", "hdf_core", "hilog", "hitrace", "c_utils", "drivers_interface_sensor"] null

简单解读

  • 分析范围 本次分析是通过对源码的分析构建的,主要分析的目录包括:base,device,drivers和foundation这四个目录,重点关注部件名称,代码描述,版本,组件,子系统,系统能力声明,依赖组件,依赖三方库。因为vendor,third_party内容太多了,其他部分呢,属于应用、工具、内核等,不是本文重点关注的部分,所以没有加入分析范围。
  • 关注重点
    • 推荐的学习分析重点一个是版本,这表现了哪些组件有在4.0改动,哪些没有;
    • 依赖组件和依赖三方库是另外一个分析重点,这些标明了组件间的耦合关系;(这些是4.0开始整改的编译依赖内容,目前还有整改不完善的部分,在build仓里的whitelist里,文件里存在的就是还没整改完成的
    • 注意新名词,奤:ffrt,neural_network_runtime,intelligent_voice_framework;异构并发任务,神经网络运行时,智能语音服务框架。ffrt会逐步改变foundation的运行方式,https://gitee.com/openharmony/resourceschedule_ffrt/blob/master/docs/user_guide.md

©著作权归作者所有,转载或内容合作请联系作者

您尚未登录,无法参与评论,登录后可以:
参与开源共建问题交流
认同或收藏高质量问答
获取积分成为开源共建先驱

Copyright   ©2023  OpenHarmony开发者论坛  京ICP备2020036654号-3 |技术支持 Discuz!

返回顶部