[HTC One X] hervenicol:
Hi,

Short story:

My One X won't boot to Android anymore. I can only enter boot / fastboot modes.

And when trying to apply modifications (fastboot flash or fastboot unlock), it shows various errors, not always the same.

Long story:

I bought this phone second hand quite a while ago, soon after its market launch. It was already unlocked and rooted, but I don't know what method had been used.

RUU says it runs release 1.28.

Boot says:

- S-On

- HBoot-0.94.0000

- Radio 1.1204.103.14

- Apr 11 2012,02:27:11

Given that it was unlocked / rooted it never received an OTA.

I recently decided to perform a full wipe, and by the way a full upgrade.

So:

- I did a CWM Recovery backup

- I flashed a «semi-stock» image, the stock de-odexed 4.18.401.3 from android-revolution (URL forbidden here, I'm a newbie!) .

- I performed a full wipe / factory reset / cache cleaning / Dalvik cache cleaning.

It didn't boot, and I learnt about the ICS / JB hboot incompatibility.

I tried to flash the boot from the android-revolution page, with no improvements.

So, I decided to revert to my Nandroid backup, from the recovery.

Didn't boot either.

Then I found a Windows computer, relocked the bootloader, and tried RUUs (3.14 and 1.26) with no success.

CID is HTC__203, so I used .401 RUU or OTA files.

RUU application stops each time at a different moment, either for usb connexion error, wrong RUU for my phone, not enough battery, or unknown error.

I read about a battery charge issue, and tried this method to charge it:

while : ; do fastboot getvar battery-voltage; fastboot reboot-bootloader; sleep 6; done

(as you may see, my main workstation is running Linux)

After a 9 hours long night:

< waiting for device >
battery-voltage: 3610mV
finished. total time: 0.100s
rebooting into bootloader...
OKAY [ 0.177s]
finished. total time: 0.177s
< waiting for device >
battery-voltage: 3610mV
finished. total time: 0.100s
rebooting into bootloader...
OKAY [ 0.177s]
finished. total time: 0.177s

It seems that it couldn't go farther than 3.6V.

But if I tried to unlock my phone after that:

[root@salon-lesnicol htc_one_x]# fastboot flash unlocktoken Unlock_code.bin
sending 'unlocktoken' (0 KB)...
OKAY [ 0.141s]
writing 'unlocktoken'...
FAILED (remote: battery low)
finished. total time: 0.353s
[root@salon-lesnicol htc_one_x]# fastboot flash unlocktoken Unlock_code.bin
sending 'unlocktoken' (0 KB)...
FAILED (remote: unknown command)
finished. total time: 1.140s
[root@salon-lesnicol htc_one_x]# fastboot flash unlocktoken Unlock_code.bin
sending 'unlocktoken' (0 KB)...
FAILED (command write failed (Bad file descriptor))
finished. total time: 0.000s
[root@salon-lesnicol htc_one_x]# fastboot flash unlocktoken Unlock_code.bin
sending 'unlocktoken' (0 KB)...
FAILED (remote: unknown command)
finished. total time: 1.140s
[root@salon-lesnicol htc_one_x]# fastboot flash unlocktoken Unlock_code.bin
sending 'unlocktoken' (0 KB)...
FAILED (command write failed (Bad file descriptor))
finished. total time: 0.000s
[root@salon-lesnicol htc_one_x]#

You can see error message is not always the same.

Same for my firmware.zip flash attempts:

[root@salon-lesnicol OTA_ENDEAVOR_U_ICS_40_S_HTC_Europe_2.17.401.2-1.29.401.11_release_2749568xzb2t6wu96omqzo]# fastboot oem rebootRUU
...
FAILED (remote: unknown command)
finished. total time: 0.000s
[root@salon-lesnicol OTA_ENDEAVOR_U_ICS_40_S_HTC_Europe_2.17.401.2-1.29.401.11_release_2749568xzb2t6wu96omqzo]# fastboot oem rebootRUU
...
FAILED (command write failed (Cannot send after transport endpoint shutdown))
finished. total time: 5.928s
[root@salon-lesnicol OTA_ENDEAVOR_U_ICS_40_S_HTC_Europe_2.17.401.2-1.29.401.11_release_2749568xzb2t6wu96omqzo]# fastboot flash zip firmware.zip
sending 'zip' (10967 KB)...
OKAY [ 1.419s]
writing 'zip'...
FAILED (remote: 13 battery low)
finished. total time: 1.629s
[root@salon-lesnicol OTA_ENDEAVOR_U_ICS_40_S_HTC_Europe_2.17.401.2-1.29.401.11_release_2749568xzb2t6wu96omqzo]# fastboot flash zip firmware.zip
sending 'zip' (10967 KB)...
FAILED (remote: unknown command)
finished. total time: 1.005s
[root@salon-lesnicol OTA_ENDEAVOR_U_ICS_40_S_HTC_Europe_2.17.401.2-1.29.401.11_release_2749568xzb2t6wu96omqzo]# fastboot flash zip firmware.zip
sending 'zip' (10967 KB)...
FAILED (command write failed (Bad file descriptor))
finished. total time: 0.000s
[root@salon-lesnicol OTA_ENDEAVOR_U_ICS_40_S_HTC_Europe_2.17.401.2-1.29.401.11_release_2749568xzb2t6wu96omqzo]# fastboot flash zip firmware.zip
sending 'zip' (10967 KB)...
FAILED (remote: unknown command)
finished. total time: 1.005s
[root@salon-lesnicol OTA_ENDEAVOR_U_ICS_40_S_HTC_Europe_2.17.401.2-1.29.401.11_release_2749568xzb2t6wu96omqzo]# fastboot flash zip firmware.zip
sending 'zip' (10967 KB)...
FAILED (command write failed (Bad file descriptor))
finished. total time: 0.000s
[root@salon-lesnicol OTA_ENDEAVOR_U_ICS_40_S_HTC_Europe_2.17.401.2-1.29.401.11_release_2749568xzb2t6wu96omqzo]#

What is the real issue? Why can't it give me a consistent error ?

What else could I try?

Thanks for reading this long post and trying to help me!