本文介绍在开源鸿蒙OpenHarmony 4.0系统下,去除锁屏开机后直接进入界面的方法,触觉智能Purple Pi OH鸿蒙开发板演示,搭载了瑞芯微RK3566芯片,类树莓派设计,Laval官方社区主荐,已适配全新OpenHarmony5.0 Release系统,
删除锁屏hap文件
进入以下路径,将对应的锁屏hap删除:
/ido_ohos_4.1r_sdk/applications/standard/hap
删除ScreenLock相关配置
进入以下路径,删除与锁屏相关的配置选项:
/ido_ohos_4.1r_sdk/applications/standard/hap/Build.gn
代码如下:
- ohos_prebuilt_etc("screenLock_hap") {
- source = "SystemUI-ScreenLock.hap"
- module_install_dir = "app/com.ohos.systemui"
- part_name = "prebuilt_hap"
- subsystem_name = "applications"
- }
group("hap") {
deps = [
":calendarData_hap",
":printspooler_hap",
":systemDialog_hap",
":updateapp_hap",
... ...
- "//applications/standard/hap:screenLock_hap",
]
if (defined(product_name) && product_name == "watchos") {
deps -= [
":calendarData_hap",
":printspooler_hap",
... ...
- "//applications/standard/hap:screenLock_hap",
]
}
}
产品简介
作为开源鸿蒙OpenHarmony硬件方案的领跑者,触觉智能坚守开源共创精神,Purple Pi OH鸿蒙开发板源码全开放,持续为大家带来各种技术分享,产品简介:
作者: Industio_触觉智能, 来源:面包板社区
链接: https://mbb.eet-china.com/blog/uid-me-4098392.html
版权声明:本文为博主原创,未经本人允许,禁止转载!
文章评论(0条评论)
登录后参与讨论