It works on stock OxygenOS Oreo. If you're on a custom ROM it's not gonna be that straightforward.
But, I did notice that it now gets reset at boot, so it has to be done after the device has fully booted. Either with something like Tasker or by adding a delay to whatever boot script runs the command (Magisk module, etc). Running the command in Magisk late_start service mode (service.d/service.sh) and adding a 15 second delay does the trick for me...