[HTC Desire 510] dip_spit:
YOU NEED TO KNOW

IF YOU'RE 32BIT OR 64BIT

( How to find out if your device is 32bit or 64bit )

( Briefly: US = 32bit, EU/AUS = 64bit )

BEFORE CONTINUING, MAKE BACKUPS OF

ANYTHING ON YOUR DEVICE THAT YOU WISH TO KEEP!

ALL COMMANDS ARE IMPORTANT AND NEED TO BE FOLLOWED STRENUOUSLY!

BY FOLLOWING THIS GUIDE YOU ARE VOIDING YOUR WARRANTY

AND I DO NOT ASSUME ANY RESPONSIBILITY IF YOUR PHONE BLOWS UP

BACKUP YOUR STUFF!!!

MAKE A BACKUP OF STOCK WITH RECOVERY ASAP!!!!

For a GUI based method, try WinDroid

Please give Thanks to these people

for making this process possible:

@beaups, @Dees_Troy, @jmz,

@wolfaas12345, @CurbThePain,

@rbheromax, and @greeneyes2910​

Prerequisites

ADB & Fastboot (Also, add ADB to PATH)

HTC Drivers

An account with HTCdev (if you're not registered, you can do that here)

Enable Developer Options

If 32bit - TWRP image

If 32bit - SuperSU binary

If 64bit - PhilzTouch_Recovery image (You'll need to extract the recovery.img from the .zip)

If 64bit - @rbheromax's 64bit Rooted Kernel

Let's get to work.

Unlocking the bootloader (This process is the same for 32bit and 64bit devices)

Power down the device

Hold the down volume and power buttons at the same time. This will boot you into hboot

Using the volume rocker select FASTBOOT and press the power button

Connect the device to your computer

Open cmd and ensure that your device is recognized by typing: fastboot devices

You should get something similar to the following: FA4AJxxxxxxx fastboot

Now type, fastboot oem get_identifier_token , this is your token you'll need for HTCdev

Minimize cmd and go to: htcdev.com/bootloader/ and select the HTC Desire from the dropdown

Skip to Step 5 and in cmd right click and select Mark, select the token starting at the top <<<< and ending at the bottom >>>>> (everything in the red square, see image), paste this into the textbox at the bottom of the page and submit

Go to the email address you used to register with HTCdev and there will be an email with an attachment named Unlock_code.bin, download the attachment

In cmd, cd to the folder you've downloaded Unlock_code.bin to

Now type, fastboot flash unlocktoken Unlock_code.bin

As I said above, this will erase everything on your phone (pictures, sms, videos, apps, etc) and restore it to stock, so I hope you made backups

Your device will now have a screen that asks if you want to unlock the bootloader, use the volume rocker to select and the power button to enter

Once it's done your phone will reboot, power back down (or remove the battery and reinsert) and boot to hboot, your device should now say **** UNLOCKED **** at the top

STOP!

LET'S BE CAUTIOUS AND MAKE A BACKUP OF STOCK BEFORE WE DO ANYTHING ELSE!
​

​

If your device is connected, disconnect it

Power down the device

Hold the down volume and power buttons at the same time to boot into hboot

Using the volume rocker select FASTBOOT and press the power button

Connect the device to your computer

If you closed cmd, reopen it and cd to the folder that you downloaded openrecovery-twrp-2.8.5.0-a11.img or extracted recovery.img to

32bit - Now type: fastboot boot openrecovery-twrp-2.8.5.0-a11.img

64bit - Now type: fastboot boot recovery.img

Tap Backup

Change the name of the backup to something like "Pure Stock"

Swipe to Back Up

Installing TWRP/PhilzTouch

If your device is connected, disconnect it

Power down the device (if you're still in TWRP from making a backup, back out to the main menu and tap Reboot, then tap Power Off)

Hold the down volume and power buttons at the same time to boot into hboot

Using the volume rocker select FASTBOOT and press the power button

Connect the device to your computer

If you closed cmd, reopen it and cd to the folder that you downloaded openrecovery-twrp-2.8.5.0-a11.img or extracted recovery.img to

32bit - Now type: fastboot flash recovery openrecovery-twrp-2.8.5.0-a11.img

64bit - Now type: fastboot flash recovery recovery.img

Let it do it's thing and now you have TWRP or PhilzTouch installed on your device

Getting Rooted (32bit)

Power down your device if it is booted (or by taking the battery out and reinserting it)

Hold the down volume and power buttons at the same time to boot into hboot

Using the volume rocker select RECOVERY and press the power button

This will boot you into TWRP

Open cmd and cd to the folder that you downloaded UPDATE-SuperSU-v2.40.zip

Now type: adb push UPDATE-SuperSU-v2.40.zip /sdcard/UPDATE-SuperSU-v2.40.zip

In TWRP tap install and in the file browser tap sdcard and then tap UPDATE-SuperSU-v2.40.zip

Flash UPDATE-SuperSU-v2.40.zip

Getting Rooted (64bit)

Power down your device if it is booted (or by taking the battery out and reinserting it)

Hold the down volume and power buttons at the same time to boot into hboot

Using the volume rocker select FASTBOOT and press the power button

Open cmd and cd to the folder that you downloaded HTC-Desire-510-64-Bit-Root.img

Type: fastboot flash boot HTC-Desire-510-64-Bit-Root.img

Then: fastboot reboot

Congrats, we're done!

So... what do I do now?

Check out the stuff going on over in the development sections of course!

Android Development - Original Android Development​

​