- Download https://developers.google.com/android/nexus/images
- Enabled USB Debugging ( Tap version 7 times )
- Boot in Fastboot mode
- Power off
- Power on with Power + Volume Down
- Open the zip of the 5.1 release in terminal
fastboot oem unlock
sudo ./flash-all.bat
sudo ./flash-all.sh