Problem
You use Android for your development environment on the Visual Studio. You need to make sure that your application is compatible with the latest Android API. You update your Android and after that your phone is not functional. It is shown by red exclamation warning on your screen.
Cause
This is caused by lack of power of your HTC, please make sure when you update through OTA or flash on Custom ROM your device is plugged to wall charger.
Solution
Before you start you should
- You need a software to communicate between your Android and Your PC, it is name ADB and Fast boot you can grab it here https://forum.xda-developers.com/showthread.php?t=2317790
- You need to download RUU (Rom Update Utility). RUU is official rom created by HTC to flash your HTC. Your RUU should match with your device ID (aka. CID). You can find anywhere on the internet. http;//xda-developers.com is the main source, just please make sure you download correct RUU. After you download RUU, please make sure the RUU is tested by simply opening the zip file and test it with your Zip manager such as 7-zip / Windows Built n Zip/ WinRAR. If is not opened, you may be failed to install that RUU.
- Your device should be charged at least 30%. If you face a boot loop (infinite loop). I recommend you to keep your device attached with computer in download mode. Download mode helps your device still charging with minimum battery usage (vs. Bootloader mode)
Step 1. Go to download mode
You can go to download mode by press Power button and Volume Down button. Until it vibrates and it will show the screen like this. Take a look your status locked or unlocked and your CID. Unlocked means you can install any custom rom that you want and CID (Carrier ID) means your carrier id. For example, my HTC one M9+ have and id HTC___044. It means ASIA WWE. You can't change your CID of you are on S-ON (Security ON). It means there is no way to cross carrier installation (for example install ROM from HTC one M9+ ASIA WWE with HTC one M9+ ASIA CHN).
- Locked means you can't download custom rom. For HTC, you can unlock your device on http://htcdev.com
- S-ON means you can't cross carrier ROM installation. ASIA WWE should install with ASIA WWE ROM
Step 2. Install ADB and Fastboot
Install the adb and fastboot and connect your device. If you are on Windows visit the Folder Right Click on it by holding Shit button to go to command prompt
Types:
Fastboot getvar all
You should see your device name and others information. If so, you are safe to the next step
Step 3. Installing the RUU
Find your RUU and put the RUU files on the same folder with ADB fastboot installation. And then perform this codes.
B:\Desktop\ADB>Fastboot oem lock
finished. total time: 0.031s
htc_fastboot finished. total time: 0.203s
B:\Desktop\ADB>fastboot oem rebootRUU
...
OKAY [ 0.000s]
finished. total time: 0.000s
htc_fastboot finished. total time: 0.179s
B:\Desktop\ADB>fastboot erase cache
htc_fastboot v3.0.9.2 (2015-05-29)
******** Did you mean to fastboot format this partition?
erasing 'cache'...
OKAY [ 0.008s]
finished. total time: 0.008s
htc_fastboot finished. total time: 18.034s
B:\Desktop\ADB>fastboot reboot-bootloader
htc_fastboot v3.0.9.2 (2015-05-29)
rebooting into bootloader...
OKAY [ 0.001s]
finished. total time: 0.001s
htc_fastboot finished. total time: 0.180s
B:\Desktop\ADB>fastboot oem rebootRUU
...
OKAY [ 0.003s]
finished. total time: 0.003s
htc_fastboot finished. total time: 47.283s
B:\Desktop\ADB>fastboot erase cache
htc_fastboot v3.0.9.2 (2015-05-29)
******** Did you mean to fastboot format this partition?
erasing 'cache'...
OKAY [ 0.014s]
finished. total time: 0.014s
htc_fastboot finished. total time: 0.238s
B:\Desktop\ADB>fastboot -d flash zip "0PK7IMG_HIAU_ML_TUHL_M60_SENSE70_MR_hTC_Asia_WWE_2.30.707.1_Radio_1.1550V70.2501.0304_HT[W.T]_release_signed.zip"
FAILED (remote: FAIL90 hboot pre-update! please flush image again immediate)
finished. total time: 7.627s
htc_fastboot finished. total time: 8.879s
B:\Desktop\ADB>fastboot erase cache
htc_fastboot v3.0.9.2 (2015-05-29)
******** Did you mean to fastboot format this partition?
erasing 'cache'...
OKAY [ 0.010s]
finished. total time: 0.010s
htc_fastboot finished. total time: 14.586s
B:\Desktop\ADB>fastboot -d flash zip "0PK7IMG_HIAU_ML_TUHL_M60_SENSE70_MR_hTC_Asia_WWE_2.30.707.1_Radio_1.1550V70.2501.0304_HT[W.T]_release_signed.zip"
rompack updated
htc_fastboot finished. total time: 290.525s
B:\Desktop\ADB>fastboot reboot
htc_fastboot v3.0.9.2 (2015-05-29)
rebooting...
finished. total time: 0.001s
htc_fastboot finished. total time: 0.226s
Please read that you need to flash twice (pre-update and update). After that your device will be normal and ready to develop an App. Good Luck!