So, check your adb version if it does not work and upgrade if needed.
Note: adb disable-verity/enable-verity works only with adb version 1.0.33 and abpve. Run below commands to enable or disable dm-verity You need root privilege to enable and disable dm verity on android. The kernel which the device boots needs to be trusted. In case of android it helps to verify the boot partition, root file system RAM disk and the verity public key. It provides transparent integrity checking of block devices.
How to enable and disable dm verity on android user buildĪ dm-verity is a kernel feature.