Diag Mode A14

Hey guys i am new to this OS, I wanted to enable Diag mode.
I’ve tried everything that worked so far on Stock ROM (A12).
Ran these commands via Adb Shell with SU permissions.

resetprop ro.bootmode usbradio
resetprop ro.build.type userdebug
setprop sys.usb.config diag,diag_mdm,adb
diag_mdlog

It gives an error on the last command, I really need to enable diag mode.
Tried editing the build prop to no success.
If anyone could help me it would be really appreciated.