[Nexus 5 Q&A, Help & Troubleshooting] gufo84:
Some time ago the power button of my Nexus5 was stucking once in a while, and kept rebooting.

So I bought a new power button and asked an assistance center to replace it.

This apparently resolved the power button issue, since it does not reboot anymore.

BUT, when i power on my Nexus5 it doesn't goes over the animation of the google logo (the colored one).

It keeps showing the moving dots animation looping forever.

I would like to try to do a soft or hard reset but I can't reach the recovery mode menu.

I can enter the bootloader, then I select the "Recovery mode" and press the power button.

After that it shows the screen with the robot, the exclamation mark and the "No command" message.

From this screen I've tried to press the Volume Up once with Power Button, but it does nothing; it just reboot.

Actually from this screen, even without doing anything, after a few second it automatically reboot without showing the Wipe/Reset menu.

Then i've tried to unlock the bootloader (in order to flash the google stock rom), but I'm not able to get it unlocked permanently:

After running "fastboot oem unlock" on the phone it actually tells the phone is unlocked, but a soon as I let it Power on or Reboot, the phone get back to the locked state.

Indeed, if I unlock the bootloader and, without rebooting it, I try to flash the google nexus 5 factory image (command "sh flash-all.sh"), I get the output I'm copying further down.

Anyone knows how to handle this issue?

------------------------------------------------------------------------------------

MacBook-Pro-di-Marcello-2:hammerhead-mmb29s marcello$ bash flash-all

bash: flash-all: No such file or directory

MacBook-Pro-di-Marcello-2:hammerhead-mmb29s marcello$ sh flash-all.sh

target reported max download size of 1073741824 bytes

sending 'bootloader' (3120 KB)...

OKAY [ 0.307s]

writing 'bootloader'...

FAILED (remote: flash write failure)

finished. total time: 0.507s

rebooting into bootloader...

OKAY [ 0.099s]

finished. total time: 0.099s

target reported max download size of 1073741824 bytes

sending 'radio' (45425 KB)...

OKAY [ 1.608s]

writing 'radio'...

FAILED (remote: not supported in locked device)

finished. total time: 1.708s

rebooting into bootloader...

OKAY [ 0.055s]

finished. total time: 0.055s

target reported max download size of 1073741824 bytes

archive does not contain 'boot.sig'

archive does not contain 'recovery.sig'

archive does not contain 'system.sig'

archive does not contain 'vendor.img'

Creating filesystem with parameters:

Size: 29236371456

Block size: 4096

Blocks per group: 32768

Inodes per group: 8192

Inode size: 256

Journal blocks: 32768

Label:

Blocks: 7137786

Block groups: 218

Reserved block group size: 1024

Created filesystem with 11/1785856 inodes and 156120/7137786 blocks

Creating filesystem with parameters:

Size: 734003200

Block size: 4096

Blocks per group: 32768

Inodes per group: 7472

Inode size: 256

Journal blocks: 2800

Label:

Blocks: 179200

Block groups: 6

Reserved block group size: 47

Created filesystem with 11/44832 inodes and 5813/179200 blocks

--------------------------------------------

Bootloader Version...: HHZ12k

Baseband Version.....: M8974A-2.0.50.2.27

Serial Number........: 039e4cbc2518d798

--------------------------------------------

checking product...

OKAY [ 0.100s]

checking version-bootloader...

OKAY [ 0.100s]

checking version-baseband...

FAILED

Device version-baseband is 'M8974A-2.0.50.2.27'.

Update requires 'M8974A-2.0.50.2.28'.

finished. total time: 0.600s

You have new mail in /var/mail/marcello

MacBook-Pro-di-Marcello-2:hammerhead-mmb29s marcello$