From 3bad36c7790288ef0b79ab60250b2ba5a039f09e Mon Sep 17 00:00:00 2001 From: sin_dzzeng <13277932042@163.com> Date: Tue, 15 Mar 2022 22:08:40 +0800 Subject: [PATCH] =?UTF-8?q?devmgr=20UI=E8=A7=A3=E8=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: sin_dzzeng <13277932042@163.com> --- .../include/config/json_config.h | 30 +++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/services/devicemanagerservice/include/config/json_config.h b/services/devicemanagerservice/include/config/json_config.h index acb7839c0..683e9e977 100644 --- a/services/devicemanagerservice/include/config/json_config.h +++ b/services/devicemanagerservice/include/config/json_config.h @@ -50,6 +50,7 @@ const std::string adapterJsonConfigString = ] })"; +#ifdef SUPPORT_GRAPHICS const std::string authJsonConfigString = R"({ "devicemanager_auth_components": [ @@ -79,18 +80,43 @@ const std::string authJsonConfigString = "funcName": "CreateNfcAuthObject", "soName": "libdevicemanager_nfcauth.z.so", "soPath": "/system/lib/" + } + ] +})"; +#else +const std::string authJsonConfigString = + R"({ + "devicemanager_auth_components": [ + { + "name": "pin_auth", + "type": "AUTHENTICATE", + "version": "1.0", + "authType": 1, + "funcName": "CreatePinAuthObject", + "soName": "libdevicemanagerext_pin_auth.z.so", + "soPath": "/system/lib/" + }, + { + "name": "QRcode_auth", + "type": "AUTHENTICATE", + "version": "1.0", + "authType": 2, + "funcName": "CreateQRcodeAuthObject", + "soName": "libdevicemanager_qrcodeauth.z.so", + "soPath": "/system/lib/" }, { "name": "no_interaction_auth", "type": "AUTHENTICATE", "version": "1.0", - "authType": 4, + "authType": 3, "funcName": "CreatePinAuthObject", "soName": "libdevicemanagerext_no_interaction_auth.z.so", "soPath": "/system/lib/" } ] })"; +#endif } // namespace DistributedHardware } // namespace OHOS -#endif // OHOS_OHOS_DM_JSON_CONFIG_H \ No newline at end of file +#endif // OHOS_OHOS_DM_JSON_CONFIG_H -- Gitee