Copy full system and data partitions of Oneplus 3T to computer I've accidentally deleted some photos on Oneplus 3T and would like to get the full disk image so to be able to perform recovery using magicrescue:

magicrescue -r jpeg-exif -d output-dir disk-image.img


https://stackoverflow.com/questions/29442630/disk-image-dd-from-android-to-my-computer seems to answer the question but devices (/dev/***) naming on Oneplus 3T seems to differ and not standard and I'm not able to perform the copy.
Devices of system and data partitions on Oneplus 3T are the following:

/dev/block/dm-0
/dev/block/dm-1


To copy them to computer run (smartphone must be rooted):

adb pull /dev/block/dm-0 dm-0.img
adb pull /dev/block/dm-0 dm-1.img