本文介绍在开源鸿蒙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鸿蒙开发板源码全开放,持续为大家带来各种技术分享,产品简介:
全部0条评论
快来发表一下你的评论吧 !