1365d9939Sopenharmony_ci# theme_screenlock_mgr
2365d9939Sopenharmony_ci
3365d9939Sopenharmony_ci#### Introduction
4365d9939Sopenharmony_ciProvide three-party APP with the ability to request unlockScreen, query the screenlock status, and query whether to set the screenlock password. 
5365d9939Sopenharmony_ciProvide screenOn callback, screenOff callback, screenSaver in and out callback, user switching callback, and screenlock manager service running status callback to the operation management
6365d9939Sopenharmony_ci
7365d9939Sopenharmony_ci**subsystem architecture diagram**   
8365d9939Sopenharmony_ci![](figures/subsystem_architecture_zh.png "subsystem architecture diagram")
9365d9939Sopenharmony_ci
10365d9939Sopenharmony_ci#### Warehouse path
11365d9939Sopenharmony_ci/base/theme/screenlock_mgr
12365d9939Sopenharmony_ci
13365d9939Sopenharmony_ci#### Introduction to framework code
14365d9939Sopenharmony_ci/base/theme/screenlock_mgr
15365d9939Sopenharmony_ci├── figures                  # architecture diagram
16365d9939Sopenharmony_ci├── frameworks
17365d9939Sopenharmony_ci│   ├── js/napi              # the js interface resolves to the napi interface
18365d9939Sopenharmony_ci│   └── native               # interface provided for app
19365d9939Sopenharmony_ci├── sa_profile               # module contains the config files of system services and processes
20365d9939Sopenharmony_ci├── services                 # implementation of screenlock manager service
21365d9939Sopenharmony_ci├── test                     # unit test of interface
22365d9939Sopenharmony_ci└── utils                    # module contains log printing and constants for ordered commonEvent
23365d9939Sopenharmony_ci
24365d9939Sopenharmony_ci#### JS APIs and instructions
25365d9939Sopenharmony_ci
26365d9939Sopenharmony_ci-   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.
27365d9939Sopenharmony_ci
28365d9939Sopenharmony_ci#### Debugging method
29365d9939Sopenharmony_ci
30365d9939Sopenharmony_ci1.   Compile command
31365d9939Sopenharmony_ci
32365d9939Sopenharmony_ci./build.sh --product-name (Fill in the specific product name, such as:Hi3516DV300) --build-target screenlock_native
33365d9939Sopenharmony_ci
34365d9939Sopenharmony_ci2.  push so file
35365d9939Sopenharmony_ci
36365d9939Sopenharmony_ciin $root\out\ohos-arm-release\miscservices\screenlock_native,push libscreenlock_server.z.so libscreenlock_client.z.so 
37365d9939Sopenharmony_cilibscreenlock_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.
38365d9939Sopenharmony_ci
39365d9939Sopenharmony_ci3.  reboot
40365d9939Sopenharmony_ci
41365d9939Sopenharmony_ci#### Participation contribution
42365d9939Sopenharmony_ci
43365d9939Sopenharmony_ci1. Fork warehouse
44365d9939Sopenharmony_ci2. Submission code
45365d9939Sopenharmony_ci3. Create a new pull request
46365d9939Sopenharmony_ci4. Commit is complete
47365d9939Sopenharmony_ci
48