- Edited
Guess what?
I used a different USB-to-USB-C cable and the phone got recognized!
./fastboot devices
c0dcc5f0 fastboot
However, I am encountering another issue which is not detailed in the tutorial
./fastboot flash recovery twrp.img
Sending 'recovery' (27529 KB) OKAY [ 0.631s]
Writing 'recovery' FAILED (remote: 'Partition flashing is not allowed')
fastboot: error: Command failed
Any idea what is wrong this time?
Shall I unlocked the bootloader before flashing TWRP? I would think so, although I do not exactly know what I am doing and in the instructions I am following the unlocking is not mentioned in such order. On the phone screen I read DEVICE STATE - locked in red.