• Home
Name Date Size #Lines LOC

..--

figures/12-May-2024-

frameworks/12-May-2024-2,8302,196

interfaces/inner_api/12-May-2024-499346

sa_profile/12-May-2024-3130

services/12-May-2024-1,6771,296

test/12-May-2024-2,7261,489

utils/12-May-2024-237164

BUILD.gnD12-May-2024866 2522

CODEOWNERSD12-May-2024763 1614

LICENSED12-May-20249.9 KiB177150

OAT.xmlD12-May-20244 KiB6714

README.mdD12-May-20242 KiB4832

README_ZH.mdD12-May-20242 KiB4430

bundle.jsonD12-May-20242 KiB8080

screenlock.gniD12-May-2024810 2116

README.md

1# theme_screenlock_mgr
2
3#### Introduction
4Provide three-party APP with the ability to request unlockScreen, query the screenlock status, and query whether to set the screenlock password.
5Provide screenOn callback, screenOff callback, screenSaver in and out callback, user switching callback, and screenlock manager service running status callback to the operation management
6
7**subsystem architecture diagram**
8![](figures/subsystem_architecture_zh.png "subsystem architecture diagram")
9
10#### Warehouse path
11/base/theme/screenlock_mgr
12
13#### Introduction to framework code
14/base/theme/screenlock_mgr
15├── figures                  # architecture diagram
16├── frameworks
17│   ├── js/napi              # the js interface resolves to the napi interface
18│   └── native               # interface provided for app
19├── sa_profile               # module contains the config files of system services and processes
20├── services                 # implementation of screenlock manager service
21├── test                     # unit test of interface
22└── utils                    # module contains log printing and constants for ordered commonEvent
23
24#### JS APIs and instructions
25
26-   ScreenLock interface documentation [js-apis-screen-lock.md](https://gitee.com/openharmony/docs/blob/master/en/application-dev/reference/apis/js-apis-screen-lock.md) Provides interface definitions and sample code starting with API version 7.
27
28#### Debugging method
29
301.   Compile command
31
32./build.sh --product-name (Fill in the specific product name, such as:Hi3516DV300) --build-target screenlock_native
33
342.  push so file
35
36in $root\out\ohos-arm-release\miscservices\screenlock_native,push libscreenlock_server.z.so libscreenlock_client.z.so
37libscreenlock_utils.z.so to system/lib,and push libscreenlockability.z.so to system/lib/module/app下.make sure the four so files is readable at least.
38
393.  reboot
40
41#### Participation contribution
42
431. Fork warehouse
442. Submission code
453. Create a new pull request
464. Commit is complete
47
48

README_ZH.md

1# 锁屏管理服务
2
3## 简介
4### 内容介绍
5锁屏管理服务是OpenHarmony中系统服务,为锁屏应用提供注册亮屏、灭屏、开启屏幕、结束休眠、退出动画、请求解锁结果监听,并提供回调结果给锁屏应用。锁屏管理服务向三方应用提供请求解锁、查询锁屏状态、查询是否设置锁屏密码的能力。
6
7**图 1** 架构图
8
9![](figures/subsystem_architecture_zh.png "子系统架构图")
10
11### 框架图介绍
121.三方应用支持操作请求解锁、查询锁屏状态、查询是否设置锁屏密码接口调用。\
132.锁屏应用注册亮屏、灭屏、开启屏幕、结束休眠、退出动画、请求解锁结果监听等事件 \
143.框架层API用来处理三方应用和锁屏应用的js接口请求处理,NAPI层进行js调用的处理 \
154.框架层IDL用来处理NAPI接口向锁屏管理服务之间的桥梁,进行IPC通讯 \
165.锁屏管理服务用来处理三方应用和锁屏应用接口请求,并作出对应处理,提供相应的返回结果。
17
18## 目录
19
20```
21/base/theme/screenlock_mgr
22├── figures                  # 架构图
23├── frameworks
24│   ├── js/napi              # js接口解析成napi接口
25│   └── native               # 对客户端提供的接口
26├── sa_profile               # 组件包含的系统服务的配置文件和进程的配置文件
27├── services                 # 锁屏管理服务实现
28├── test                     # 接口的单元测试
29└── utils                    # 组件包含日志打印和有序公共事件定义的常量
30```
31
32## 说明
33
34### 接口说明
35
36-   ScreenLock接口文档 [js-apis-screen-lock.md](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/apis/js-apis-screen-lock.md) 提供从API version 7开始的接口定义和示例代码。
37
38## 相关仓
39
40**主题框架子系统**
41
42[theme\_screenlock_mgr](https://gitee.com/openharmony/theme_screenlock_mgr)
43
44