19

2025-06

开源鸿蒙6.0 Beta1版本发布,邀您体验


开放原子开源鸿蒙(OpenAtom OpenHarmony,简称“开源鸿蒙”或“OpenHarmony”)6.0 Beta1版本正式发布。相比5.1.0 Release版本进一步增强ArkUI组件能力,提供更安全、更灵活的组件布局;增强分布式数据管理能力,支持应用对标准化数据进行展示;升级音频引擎2.0,提升整体运行效率并降低播放时延;增强窗口、位置服务、输入法框架、安全等相关能力。

欢迎开发者了解并升级使用,积极反馈宝贵建议、参与贡献,共同促进6.0版本的成熟。

应用框架

程序框架服务

  • 新增AppServiceExtensionAbility模块,提供后台服务相关扩展能力,包括后台服务的创建、销毁、连接、断开等生命周期回调。

  • 新增支持应用查询自身权限授权状态信息。

应用包管理

  • 新增setShortcutVisibleForSelf接口,支持设置当前应用的快捷方式是否显示。

  • 新增getAbilityInfo接口,支持根据指定的uri获取应用的ability信息。

ArkTS

  • 新增FastBuffer对象定义。FastBuffer对象是更高效的Buffer容器。

  • 新增支持以动态序列化方式生成XML文件。

  • 新增针对系统JSVM引擎API调用内存泄漏问题的定位能力。

ArkUI

  • 组件基础能力增强:

    −组件背景安全区默认延伸:当组件与非安全区邻接时(包括SafeAreaPadding和状态栏),组件背景默认延伸到非安全区,提升沉浸式开发体验。

    −忽略组件布局安全区边缘:当组件与非安全区邻接时(包括SafeAreaPadding和状态栏),组件设置忽略布局安全区边缘后可布局到非安全区。

    −基础布局能力:组件宽高支持LayoutPolicy布局能力,包括自适应父组件matchParent,自适应内容wrapContent,自适应内容(忽略父组件的约束)fitAtIdealSize。

  • Navigation双栏模式下,支持右侧页面设置默认占位页,开发者无需管理默认占位页的显示和隐藏,提高易用性。

  • 菜单与拖拽过渡,菜单跟随效果优化:拖拽发起时,实时更新菜单位置;菜单整体跟随拖拽跟手图;跟手图存在缩放场景时,菜单与跟手图之间的间隔整体相对合理。

  • 通过XComponent组件的lockCanvas接口,开发者可获取到Drawing Canvas对应的ArkTS对象,使用该对象执行绘制指令会直接绘制到XComponent上,相较于基于C API接口绘制,更易用。

  • 保存控件新增支持图标和文字的自定义能力。

窗口管理

  • 新增支持窗口显示时默认不获取焦点,点击后可获取焦点。

  • 新增支持输入法动画开始前和结束后的回调,方便应用进行输入法弹出与收回动画的响应。

  • 窗口文本处理能力增强:新增支持中西文自动间距,支持排版时去除行位空格;新增支持修改文本颜色无需重新排版;新增支持设置文字渲染高对比度模式。

分布式数据管理

  • 优化分布式数据对象对资产的管理,新增支持直接设置uri来管理资产或资产数组。

  • 新增提供基于标准化数据结构的卡片控件接口,支持应用对标准化数据结构进行可视化展示。

  • 新增公共数据通路DataHub相关C API能力,支持开发者在C/C++侧使用DataHub能力。

  • 统一数据管理框架UDMF新增系统分享、picker、右键菜单通道生命周期管理能力。

分布式服务

  • DistributedServiceKit新增获取本地设备名称C API。

事件通知

  • 新增支持获取通知设置状态,包括是否开启振动、是否开启响铃。

媒体

音频服务

  • 升级音频引擎2.0,提升整体运行效率以及降低播放时延。

  • 新增直播场景的录音流类型SOURCE_TYPE_LIVE,该录音效果支持系统级回声消除能力。

  • 新增OH_AudioWorkgroup 接口可以让应用指定自身的音频渲染线程,按需提升线程优先级和运行效率。

系统

基础通信

  • Wi-Fi新增支持连接候选网络时提示确认是否信任该网络,并提供确认的回调。

电话服务

  • 新增支持需要使用专网APN的应用查看APN列表和连接特定APN。

多模输入

  • 新增支持触屏操作时,上报的输入事件坐标为浮点类型,提升触屏点击的精准度。

输入法框架

  • 输入法应用悬浮软键盘和候选词窗口新增支持startMoving,及支持输入法应用感知编辑框中的占位文本和所属Ability的名字。

  • 新增支持通过hdc命令管理输入法。

  • 新增支持短信验证码编辑框、自动大小写模式、编辑框放弃正在输入的文字。

DFX

  • 新增HiDebug对应用主线程进行栈回溯的能力。

  • HiAppEvent新增订阅踩内存事件FDSAN故障类型,即由于操作文件描述符不当导致的故障。

安全

  • 证书管理新增openAuthorizeDialog接口,支持拉起用户证书凭据授权界面,用户授权后应用可使用授权的证书凭据进行双向TLS认证或文档签名。

  • 加解密算法库框架提供了非对称加解密、签名、密钥协商、密钥派生、消息认证码、随机数的C API。

  • 加解密算法库框架提供了ASN1格式和R|S格式的sm2签名数据互转能力;支持DES算法。

  • 证书算法库支持获取utf-8编码的证书或证书吊销列表的颁发者名称。

  • HUKS开放数字盾所依赖的ArkTS API和C API。

应用服务

位置服务

  • 新增支持获取两个位置之间直线距离的能力。

即刻体验

请您参考6.0 Beta1 Release Notes,了解本次发布版本的完整配套,欢迎开发者体验、使用并向我们提供反馈。

https://gitee.com/openharmony/docs/blob/master/zh-cn/release-notes/OpenHarmony-v6.0-beta1.md

开发者文档:

https://gitee.com/openharmony/docs/blob/OpenHarmony-6.0-Beta1/zh-cn/application-dev/website.md

Samples资源:

https://gitee.com/openharmony/applications_app_samples/tree/OpenHarmony-6.0-Beta1

加入社区共建,打造繁荣生态

开源鸿蒙是由开放原子开源基金会(OpenAtom Foundation)孵化及运营的开源项目,目标是面向全场景、全连接、全智能时代,基于开源的方式,搭建一个智能终端设备操作系统的框架和平台,促进万物互联产业的繁荣发展。自开源以来,社区快速发展,已有超过8700名贡献者、70+家共建单位,累计产出超过1.3 亿行代码。截至2025年5月31日,累计有 390+厂家的 1180+ 款产品通过兼容性测评,覆盖金融、超高清、航天、教育、商显、工业、警务、城市、交通、医疗、电力等领域,开源鸿蒙社区已成为智能终端操作系统根社区。诚邀更多的共建单位和开发者加入,携手共建共赢万物智联的时代。

Related news


Revolutionary Innovations in Men's Lightweight Running Shoes: Discover the Latest Technologies for Enhanced Performance

Revolutionary Innovations in Men's Lightweight Running Shoes When it comes to running, having the right footwear can make all the difference. In recent years, the landscape of men's lightweight running shoes has been significantly transformed by innovative technologies that enhance performance, comfort, and durability. This article delves deep into the various advancements that are reshaping the m

The Essential Guide to Slip Resistant Outdoor Shoes for Professionals

When it comes to outdoor activities, particularly in professional settings, the importance of slip resistant outdoor shoes cannot be overstated. These shoes are specially designed to provide enhanced grip and stability, helping to prevent slips and falls on various surfaces. Whether you work in construction, landscaping, or any outdoor profession, selecting the right footwear is essential for safe

Take on Any Terrain: The Versatility of Women's Hiking Shoes

Take on Any Terrain: The Versatility of Women's Hiking Shoes Table of Contents 1. Introduction to Women's Hiking Shoes 2. Importance of Choosing the Right Hiking Shoes 3. Key Features of Women's Hiking Shoes 3.1 Comfort and Fit 3.2 Traction and Grip 3.3 Waterproof Capabilities 3.4 Breathability and Ventilation 4. Types of Women's Hiking Shoes

Essential Guide to Choosing Hiking Shoes for Men: Comfort, Performance, and Durability

When venturing into the great outdoors, the right hiking shoes for men can make all the difference between an enjoyable trek and an uncomfortable experience. Whether you're a seasoned hiker or someone just starting, understanding the key features of hiking shoes is crucial for maximizing comfort, performance, and durability. **1. Fit and Comfort** The first and foremost consideration when select

How Proper Footwear Can Enhance Your Outdoor Trekking Experience

How Proper Footwear Can Enhance Your Outdoor Trekking Experience Table of Contents 1. Introduction 2. The Importance of Choosing the Right Footwear 3. Key Features of Trekking Footwear 3.1 Comfort 3.2 Support 3.3 Durability 3.4 Traction 3.5 Waterproofing 4. Choosing the Right Type of Trekking Shoes

Discover the Benefits of Lightweight Trainers for Your Gym Routine

Lightweight trainers for the gym have become increasingly popular among fitness enthusiasts and professionals alike. These trainers, designed to offer a balance of comfort, support, and agility, are tailored to meet the demands of various workout routines. If you are considering a new pair of trainers for your fitness regimen, understanding their benefits can significantly influence your performan

Subscribe to our emails and get special offers

%{tishi_zhanwei}%

Language

language

     All Rights Reserved.@ FORTSATT SPORTS

    Powered by 300.cn   |  SEO  |  Privacy Policy