For devices stuck on the logo or in Fastboot mode, you must reinstall the official firmware (Stock ROM).