diff --git a/services/devicemanagerservice/include/config/json_config.h b/services/devicemanagerservice/include/config/json_config.h index acb7839c05f653338e3f1e35919611c14b9251bd..683e9e9771a252a3d45928929bcefdf35cd7c6d3 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