[One (M9) General] GODSPD:
Dummy friendly guide how to upgrade, flash and install the latest Marshmallow Firmware and the latest ROM’s such as the ViperOne ROM 4.x.x, this guide is intended for those who are already slightly familiar with the flashing process and have previously managed to flash a ROM on their HTC One M9 device…

CHECKLIST BEFORE STARTING:

1)	Phone is S-OFF

2)	Unlocked Bootloader

3)	Rooted

4)	Latest TWRP recovery

5)	SUPER CID changed to 11111111

6)	External SD Card

7)	NANDROID Backup and any or every other form of backup

8)	Device drivers, Android SDK Platform Tools including ADB & FASTBOOT.

9)	USB Debugging enabled.

10)	BACK UP OF ALL YOUR DATA !!!

Before we begin make sure you back up all your data on both the internal and external SD card.

For the purpose of this tutorial we will be installing the latest ViperOneM9 ROM…

a)	Downloaded and place the latest ViperOne ROM - ViperOneM9_4.x.x.zip on your External SD card,

Main Thread by

j to the 4n

is found here:

http://xdaforums.com/one-m9/development/rom-viperonem9-1-0-0-tweaks-hub-t3072773

Latest ViperOne ROM for download is here:

http://venomroms.com/htc-one-m9/

b)	If you are currently on ViperOneM9 3.5.0 or older and wish to upgrade to the latest 4.x.x than the latest Marshmallow firmware is required (3.35.401.12 or 3.35.617.12 firmware)… This can be found here and within

Sneakyghost

original thread.

https://docs.google.com/spreadsheets/d/1ZaiJ3F_f76sVa4daU5H62OYi5Bj23LEBBv4xDTQ8y-M/pubhtml

http://xdaforums.com/one-m9/development/firmware-t3068243

Now download the latest version of either:

NO WIPE ZIP

or

FULL STOCK WIPE ZIP

For this tutorial we will use the FULL STOCK WIPE ZIP (to archive a clean install – this will wipe everything on your phone excluding the External SD card)

c)	Place the downloaded M9_3.35.401.12_FullStock_wipe.zip into your Android SDK Platform Tools Folder (for example C:\Android\ if this is where all your tools are found)

d)	Download the latest version of TWRP recovery from

http://www.teamw.in/devices/htconem9.html

Place the downloaded twrp-2.8.7.0-hima.img in your Android SDK Platform Tools Folder

e)	Once you are 101% ready to begin the process start by connecting your device and launching the command window (hold shift, right click in window with all the required ADB/FASTBOOT aps and select "open command window here) once the black terminal window appears start by typing in

adb devices

if your phone appears in the list we can continue by typing:

adb reboot download

wait a few seconds for the screen to appear and type:

fastboot oem rebootRUU

your phone should now be in the RUU mode with a silver HTC logo, now type

(if you renamed the original file type its current name, by default it is as follows)

fastboot flash zip M9_3.35.401.12_FullStock_wipe.zip

f)	you will most likely receive something like this towards the end after running the above command...

FAIL90 hboot pre-update! please flush image again immediate

FAILED (remote: FAIL90 hboot pre-update! please flush image again immediate)

For "hboot-preupdate" response, restart the same procedure for device...

just type the above command again and phone will flash the update again and hopefully it will take at least a minute or more to complete, hopefully there will be no more errors, just in case repeat the above command... Just in case you do see errors try looking them on Sneakyghost's thread found here

g)	Once this is done and everything passed than we have successfully upgraded our firmware to Marshmallow... Since we selected the FULL STOCK WIPE option we need to flash TWRP once again (as it was wiped) and don't bother resetting or hoping for the phone to boot normally as it won’t...

(if you renamed the original file type its current name, by default it is as follows)

Type:

fastboot flash recovery twrp-2.8.7.0-hima.img

and once it’s done

adb reboot-bootloader

*if for any reason you need to reset your phone and gain access to the bootloader menu, download mode, recovery etc. you can always do this manually by holding vol up, vol down and power buttons at the same time for a few seconds to reset the device, to get into the bootloader, recovery, download mode etc. After the phone resets continue holding the vol down and power button until you reach the bootloader menu.

*if you type adb devices and you see multiple devices or emulators that prevent the commands from working I suggest running the following:

adb kill-server

adb devices

Now only your connected device should appear…

h)	It is now time to enter our recently flashed recovery to finally install our latest ROM.

Enter the recovery manually or by typing

adb reboot recovery

From there you may select the wipe option (swipe to factory Reset) and proceed to the Install section, browse for your ROM file and select it.

i)	Within Aroma installer select all your preferred options and begin to install, once the flashing completes your device should reboot and now you keep your fingers crossed and wait (will take several minutes so just be patient…. And DONE!!! You now have the latest Marshmallow firmware and ViperOneM9 ROM installed.

#Please note that I’m no expert when it comes to these matters, this guide is here to help anyone who is unsure what to do, I tried to write it up the best way possible (sorry that there are no fancy pictures) if there any errors or issues with my methods please feel free to correct them but so far they worked for me and hopefully will also work for you. (This guide will also help you flash other ROM's) If you need more help please feel free to ask, there is always someone here on xda who knows the answers 