[Sprint HTC EVO 4G LTE] PillowMetal:
You can change the "UNLOCKED" to "RELOCKED" by issuing the command "fasboot oem lock" while connected to your phone in debugging mode, from a DOS command prompt, and while having the Android SDK installed. But yes, the tech will know that you htcdev unlocked at some point.

I'm just not sure if Sprint techs care, because technically you only voided your HTC warranty, not Sprint warranty - the unlock is "HTC approved"

---------- Post added at 01:24 AM ---------- Previous post was at 12:27 AM ----------

This is the right place for just getting root (stock ROM and kernel, no custom recovery, SuperSU only), however, this method only works for version 1.13.51.3 (hboot 1.12). Any software version later than that plugged the exploit that this method used.

Unless you have S-OFF (which I am assuming you do not), you must use the htcdev unlock method to indirectly get root. I am not sure if RegawMod's one-click rooter has been updated for the later versions, but rooting can be done manually as well.

Once you are rooted with S-ON, any OTA update, or RUU for that matter, will remove root access and you will have to htc dev unlock again and repeat the process. Actually, it is recommended not to accept OTA updates if rooted already but still S-ON, instead you should wait for a rooted update from the community that includes the new OTA, but if you really want to accept OTA updates straight from Sprint, the process I refer to is:

1) Flash your current version's stock recovery (which can be extracted from the rom.zip created from running the appropriate versioned RUU to the first prompt) through "fastboot flash recovery <recovery.img>".

2) Relock the bootloader with "fastboot oem lock"

3) Accept the OTA update or run the new version's RUU.

4) Follow the directions at htcdev.com to unlock your bootloader

5) Flash TWRP 2.2.2.0 (which is a custom recovery) using fastboot or busybox's dd command

6) Use TWRP to flash SuperSU which is actually the root access you desire.

If you are rooting for the first time, you don't need to perform steps 1 and 2 and will have root access by following steps 3 through 6.

So while in the past you could just get root with no custom recovery, you now need custom recovery to get root, which must be accomplished by unlocking the bootloader through htdev.com.

Anyone feel free to chime in if they have found a better or easier way to accomplish this, as thankfully I have S-OFF which makes life so much easier, and I have not had to deal with this.

---------- Post added at 01:32 AM ---------- Previous post was at 01:24 AM ----------

The exploit this thread uses has been plugged in versions later than 1.13.651.1

The first error you are getting is failing on the line:

adb shell mv /data/local/tmp /data/local/tmp.bak

... because non-root access to the /data partition is no longer allowed

The second error is faling on the line:

adb shell ln -s /data /data/local/tmp

... because the first line failed to rename the directory to something else, so it can become a symbolic link instead

Unfortunately this exploit no longer works and htcdev unlock must be used instead - see my response to the previous post.