[GUIDE] Remove Tampered and set Lock/Unlock/Relock with Revone (requires S-OFF)

Search This thread

electronical

Senior Member
Aug 13, 2013
307
390
103
If you have successfully unlocked your HTC One M7 Bootloader, you will see the following text at the top of your Bootloader screen:
Code:
*** UNLOCKED ***
And, if you installed a custom recovery, it will change to the following:
Code:
*** TAMPERED ***
*** UNLOCKED ***
You can get rid of your TAMPERED text and/or change your LOCKED, RELOCKED or UNLOCKED status. This guide applies to all HTC One M7 Hboot versions.

Minimum requirements:
1. Your HTC One must be S-OFF.
2. Your device must be rooted.

There are different ways of achieving the same results, but this is the easiest (and safest) method using a tool called revone: http://forum.xda-developers.com/showthread.php?t=2314582. Note that revone is primarily intended to be used to S-OFF but it also has some very useful additional features, which are exactly what we're going to use here. You will find all the commands in the original revone thread but if you're having difficulties, then this guide for "noobs" should be helpful.

Stepwise procedure:
1. You need adb and fastboot. Download both in a single package: http://goo.gl/T6InE - credits to mike1986. Extract the folder "mini-sdk" and place it at C:/
2. Download revone: http://revolutionary.io/revone. Place it in your adb and fastboot folder, for example, C:/mini-sdk/
3. Connect your HTC One to your PC via USB cable. Boot up your HTC One and leave it on its homescreen. Test if the USB connection is working by clicking on the Start button > Run > type "CMD". This will open the Command Prompt window. From there, type:
Code:
cd c:\
cd mini-sdk
adb devices
You should see the serial number of your phone to confirm successful adb connection. This is what i get:
Code:
C:\Documents and Settings\Administrator>cd c:\
C:\>cd mini-sdk
C:\mini-sdk>adb devices
List of devices attached
FA36********    device
4. Now, you need to copy revone to your phone. In the same Command Prompt window, type:
Code:
adb push revone /data/local/tmp/
Here is my log to confirm that revone has been successfully copied:
Code:
C:\mini-sdk>adb push revone /data/local/tmp/
2893 KB/s (648208 bytes in 0.218s)
5. Now, open an adb shell by simply typing:
Code:
adb shell
You should see the following:
Code:
C:\mini-sdk>adb shell
[email protected]:/ #
If you see the $ symbol instead of the # symbol, type su (your HTC One needs to be rooted otherwise this won't work).
6. Use the Command Prompt to move to the folder where you placed revone on your phone and and set new permissions:
Code:
cd /data/local/tmp
chmod 755 revone
Here is what it looks like on my Command Prompt window:
Code:
[email protected]:/ # cd /data/local/tmp
cd /data/local/tmp
[email protected]:/data/local/tmp # chmod 755 revone
chmod 755 revone
7. Now, you can finally remove the TAMPERED text and switch between LOCKED, RELOCKED or UNLOCKED. Following from above, if you want to get rid of the TAMPERED text, type:
Code:
./revone -t
If you want to set the Bootloader as LOCKED, type:
Code:
./revone -l
If you want to set the Bootloader as RELOCKED, type:
Code:
./revone -r
If you want to set the Bootloader as UNLOCKED, type:
Code:
./revone -u
After you've made the changes according to what you want, you can now reboot the device and check if the changes have been applied. Type:
Code:
exit
exit
adb reboot bootloader
You should now be in the Bootloader menu and you can confirm the changes.

If this was useful, just click on the THANKS button! :cool:
 
Last edited:

nathlynn22

Senior Member
Apr 8, 2013
2,091
241
143
Make sure your phone is on its homescreen (not bootloader or fastboot). Did you follow step 2 and 3? Did you see your serial no. after typing adb devices?


yeah mate followed it all just in the end tried couple more times as revone thread said it can crash ETC SO ALL SORTED NOW THANKS. sorry about useless post :)
 

dadafu

Member
Dec 21, 2009
19
5
0
Hi, I havev a problem during the procedure :

"You should see the following:
Code:
C:\mini-sdk>adb shell
[email protected]:/ #
If you see the $ symbol instead of the # symbol, type su (your HTC One needs to be rooted otherwise this won't work)."

I see the $ symbol, but when I type su, nothing happend, error " "su"is not recognized as an internal or external command"

I need to reflash a modded recovery to root device ?
I want to return 100% stock

EDIT : the response was : YES ! thanks for your work ! ;)
 
Last edited:

electronical

Senior Member
Aug 13, 2013
307
390
103
So does that apply only to S-OFF'ing or to everything?

EDIT: I found another method and I successfully reset the TAMPERED flag :)

By "... Note that revone is primarily intended to be used to S-OFF (applicable only if you have Hboot 1.44)..." what i meant is that you can use revone to S-OFF only if the device has Hboot 1.44, otherwise Rumrunner is required in order to S-OFF.

It's simple enough, but to avoid the remote possibility of anyone else having the same confusion, i have edited that bit of info out. However, it's important to keep in mind that you can't S-OFF with revone if your device has Hboot 1.54 or above. But if your device is already S-OFF, you can use revone to remove the tampered flag and lock/relock/unlock, irrespective of your Hboot version.
 
Last edited:

Ricky-Lim

Member
Nov 10, 2013
9
2
0
If you have successfully unlocked your HTC One M7 Bootloader, you will see the following text at the top of your Bootloader:
Code:
*** UNLOCKED ***
And, if you installed a custom recovery, it will change to the following:
Code:
*** TAMPERED ***
*** UNLOCKED ***
You can get rid of your TAMPERED text and/or change your LOCKED, RELOCKED or UNLOCKED status. This guide applies to all HTC One M7 Hboot versions.

Minimum requirements:
1. Your HTC One must be S-OFF.
2. Your device must be rooted.

There are different ways of achieving the same results, but this is the easiest method using a tool called revone: http://forum.xda-developers.com/showthread.php?t=2314582. Note that revone is primarily intended to be used to S-OFF but it also has some very useful additional features, which are exactly what we're going to use here. You will find all the commands in the original revone thread but if you're having difficulties, then this guide for "noobs" should be helpful.

Stepwise procedure:
1. You need adb and fastboot. Download both in a single package: http://goo.gl/T6InE - credits to mike1986. Extract the folder "mini-sdk" and place it at C:/
2. Download revone: http://revolutionary.io/revone. Place it in your adb and fastboot folder, for example, C:/mini-sdk/
3. Connect your HTC One to your PC via USB cable. Boot up your HTC One and leave it on its homescreen. Test if the USB connection is working by clicking on the Start button > Run > type "CMD". This will open the Command Prompt window. From there, type:
Code:
cd c:\
cd mini-sdk
adb devices
You should get the serial number of your phone. This is what i get:
Code:
C:\Documents and Settings\Administrator>cd c:\
C:\>cd mini-sdk
C:\mini-sdk>adb devices
List of devices attached
FA36********    device
4. Now, you need to copy revone to your phone. In the same Command Prompt window, type:
Code:
adb push revone /data/local/tmp/
Here is my log to confirm that revone has been successfully copied:
Code:
C:\mini-sdk>adb push revone /data/local/tmp/
2893 KB/s (648208 bytes in 0.218s)
5. Now, open an adb shell by simply typing:
Code:
adb shell
You should see the following:
Code:
C:\mini-sdk>adb shell
[email protected]:/ #
If you see the $ symbol instead of the # symbol, type su (your HTC One needs to be rooted otherwise this won't work).
6. Use the Command Prompt to move to the folder where you placed revone on your phone and and set new permissions:
Code:
cd /data/local/tmp
chmod 755 revone
Here is what it looks like on my Command Prompt window:
Code:
[email protected]:/ # cd /data/local/tmp
cd /data/local/tmp
[email protected]:/data/local/tmp # chmod 755 revone
chmod 755 revone
7. Now, you can finally remove the TAMPERED text and switch between LOCKED, RELOCKED or UNLOCKED. Following from above, if you want to get rid of the TAMPERED text, type:
Code:
./revone -t
If you want to set the Bootloader as LOCKED, type:
Code:
./revone -l
If you want to set the Bootloader as RELOCKED, type:
Code:
./revone -r
If you want to set the Bootloader as UNLOCKED, type:
Code:
./revone -u
After you've made the changes according to what you want, you can now reboot the device and check to see if the changes have been applied. Type:
Code:
exit
exit
adb reboot bootloader
You should now be in the Bootloader and you can confirm the changes.

If this was useful, just click on the THANKS button! :cool:

This is very useful and it works. I am able to S-OFF (Windows 8, 32Bits) and removed the "tempered" and change "unlocked" to "locked" just like original. Crushalot, thanks for this, but can you point out how I can remove the "red descriptions (the development purpose...)" on boot screen and the Tell HTC, please?
Wait to hear from you :D
 
  • Like
Reactions: Debbeck

Tamiis

New member
Sep 20, 2013
4
0
0
Hi there, first of all amazing guide, I've been trying to remove all flags but seemed way too hard to do it :p, but as easy as it may be I'm kinda stuck here. When I run the adb device command I don't get anything, it doesn't find any device :S any idea what's going on? Also, I'm trying to get my phone to stock for warranty purpose after I've done this if I have available the 4.2 or 4.3 update (I don't remember which one) and I run it through TWRP will this unroot the phone?

THANX http://forum.xda-developers.com/images/smilies/laugh.gif
 

electronical

Senior Member
Aug 13, 2013
307
390
103
This is very useful and it works. I am able to S-OFF (Windows 8, 32Bits) and removed the "tempered" and change "unlocked" to "locked" just like original. Crushalot, thanks for this, but can you point out how I can remove the "red descriptions (the development purpose...)" on boot screen and the Tell HTC, please?
Wait to hear from you :D
Removing the red banner: http://rumrunner.us/hboots/

Hi there, first of all amazing guide, I've been trying to remove all flags but seemed way too hard to do it :p, but as easy as it may be I'm kinda stuck here. When I run the adb device command I don't get anything, it doesn't find any device :S any idea what's going on? Also, I'm trying to get my phone to stock for warranty purpose after I've done this if I have available the 4.2 or 4.3 update (I don't remember which one) and I run it through TWRP will this unroot the phone?
See link above for removing red banner. To go back to 100% stock: http://forum.xda-developers.com/showthread.php?t=2358738
 
  • Like
Reactions: KillingspreeRift

snowbeam

Senior Member
Nov 18, 2012
91
61
0
Thanks mate!

The "-s 0 -t" from revones description really had me disoriented, didn't seem to work, but your commands worked perfectly! :eek: Thanks a lot!!
 

petru.tomsa

Senior Member
Feb 2, 2012
596
85
0
If I am s-off with rumrunner... Can I use this guide to remove tampered? Or is only for renove s-off phones?

Sent from my HTC One using Tapatalk 4
 

gustav30

Senior Member
Jul 20, 2010
1,162
259
0
I s-offed a while ago with revone. I need to send in for warranty. Just looking to get unlocked removed. I already flashed stock recovery. Do I need to have a custom recovery to run -l command?

If so, can I still flash stock recovery after I relock the device?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 55
    If you have successfully unlocked your HTC One M7 Bootloader, you will see the following text at the top of your Bootloader screen:
    Code:
    *** UNLOCKED ***
    And, if you installed a custom recovery, it will change to the following:
    Code:
    *** TAMPERED ***
    *** UNLOCKED ***
    You can get rid of your TAMPERED text and/or change your LOCKED, RELOCKED or UNLOCKED status. This guide applies to all HTC One M7 Hboot versions.

    Minimum requirements:
    1. Your HTC One must be S-OFF.
    2. Your device must be rooted.

    There are different ways of achieving the same results, but this is the easiest (and safest) method using a tool called revone: http://forum.xda-developers.com/showthread.php?t=2314582. Note that revone is primarily intended to be used to S-OFF but it also has some very useful additional features, which are exactly what we're going to use here. You will find all the commands in the original revone thread but if you're having difficulties, then this guide for "noobs" should be helpful.

    Stepwise procedure:
    1. You need adb and fastboot. Download both in a single package: http://goo.gl/T6InE - credits to mike1986. Extract the folder "mini-sdk" and place it at C:/
    2. Download revone: http://revolutionary.io/revone. Place it in your adb and fastboot folder, for example, C:/mini-sdk/
    3. Connect your HTC One to your PC via USB cable. Boot up your HTC One and leave it on its homescreen. Test if the USB connection is working by clicking on the Start button > Run > type "CMD". This will open the Command Prompt window. From there, type:
    Code:
    cd c:\
    cd mini-sdk
    adb devices
    You should see the serial number of your phone to confirm successful adb connection. This is what i get:
    Code:
    C:\Documents and Settings\Administrator>cd c:\
    C:\>cd mini-sdk
    C:\mini-sdk>adb devices
    List of devices attached
    FA36********    device
    4. Now, you need to copy revone to your phone. In the same Command Prompt window, type:
    Code:
    adb push revone /data/local/tmp/
    Here is my log to confirm that revone has been successfully copied:
    Code:
    C:\mini-sdk>adb push revone /data/local/tmp/
    2893 KB/s (648208 bytes in 0.218s)
    5. Now, open an adb shell by simply typing:
    Code:
    adb shell
    You should see the following:
    Code:
    C:\mini-sdk>adb shell
    [email protected]:/ #
    If you see the $ symbol instead of the # symbol, type su (your HTC One needs to be rooted otherwise this won't work).
    6. Use the Command Prompt to move to the folder where you placed revone on your phone and and set new permissions:
    Code:
    cd /data/local/tmp
    chmod 755 revone
    Here is what it looks like on my Command Prompt window:
    Code:
    [email protected]:/ # cd /data/local/tmp
    cd /data/local/tmp
    [email protected]:/data/local/tmp # chmod 755 revone
    chmod 755 revone
    7. Now, you can finally remove the TAMPERED text and switch between LOCKED, RELOCKED or UNLOCKED. Following from above, if you want to get rid of the TAMPERED text, type:
    Code:
    ./revone -t
    If you want to set the Bootloader as LOCKED, type:
    Code:
    ./revone -l
    If you want to set the Bootloader as RELOCKED, type:
    Code:
    ./revone -r
    If you want to set the Bootloader as UNLOCKED, type:
    Code:
    ./revone -u
    After you've made the changes according to what you want, you can now reboot the device and check if the changes have been applied. Type:
    Code:
    exit
    exit
    adb reboot bootloader
    You should now be in the Bootloader menu and you can confirm the changes.

    If this was useful, just click on the THANKS button! :cool:
    2
    So does that apply only to S-OFF'ing or to everything?

    EDIT: I found another method and I successfully reset the TAMPERED flag :)

    By "... Note that revone is primarily intended to be used to S-OFF (applicable only if you have Hboot 1.44)..." what i meant is that you can use revone to S-OFF only if the device has Hboot 1.44, otherwise Rumrunner is required in order to S-OFF.

    It's simple enough, but to avoid the remote possibility of anyone else having the same confusion, i have edited that bit of info out. However, it's important to keep in mind that you can't S-OFF with revone if your device has Hboot 1.54 or above. But if your device is already S-OFF, you can use revone to remove the tampered flag and lock/relock/unlock, irrespective of your Hboot version.
    1
    tried it but stuck here
    c:\sdk>adb push revone /data/local/tmp/
    then it just sits there any ideas?

    Make sure your phone is on its homescreen (not bootloader or fastboot). Did you follow step 2 and 3? Did you see your serial no. after typing adb devices?
    1
    Perfect!! Great and simple to follow tutorial.

    Thanks!
    1
    If you have successfully unlocked your HTC One M7 Bootloader, you will see the following text at the top of your Bootloader:
    Code:
    *** UNLOCKED ***
    And, if you installed a custom recovery, it will change to the following:
    Code:
    *** TAMPERED ***
    *** UNLOCKED ***
    You can get rid of your TAMPERED text and/or change your LOCKED, RELOCKED or UNLOCKED status. This guide applies to all HTC One M7 Hboot versions.

    Minimum requirements:
    1. Your HTC One must be S-OFF.
    2. Your device must be rooted.

    There are different ways of achieving the same results, but this is the easiest method using a tool called revone: http://forum.xda-developers.com/showthread.php?t=2314582. Note that revone is primarily intended to be used to S-OFF but it also has some very useful additional features, which are exactly what we're going to use here. You will find all the commands in the original revone thread but if you're having difficulties, then this guide for "noobs" should be helpful.

    Stepwise procedure:
    1. You need adb and fastboot. Download both in a single package: http://goo.gl/T6InE - credits to mike1986. Extract the folder "mini-sdk" and place it at C:/
    2. Download revone: http://revolutionary.io/revone. Place it in your adb and fastboot folder, for example, C:/mini-sdk/
    3. Connect your HTC One to your PC via USB cable. Boot up your HTC One and leave it on its homescreen. Test if the USB connection is working by clicking on the Start button > Run > type "CMD". This will open the Command Prompt window. From there, type:
    Code:
    cd c:\
    cd mini-sdk
    adb devices
    You should get the serial number of your phone. This is what i get:
    Code:
    C:\Documents and Settings\Administrator>cd c:\
    C:\>cd mini-sdk
    C:\mini-sdk>adb devices
    List of devices attached
    FA36********    device
    4. Now, you need to copy revone to your phone. In the same Command Prompt window, type:
    Code:
    adb push revone /data/local/tmp/
    Here is my log to confirm that revone has been successfully copied:
    Code:
    C:\mini-sdk>adb push revone /data/local/tmp/
    2893 KB/s (648208 bytes in 0.218s)
    5. Now, open an adb shell by simply typing:
    Code:
    adb shell
    You should see the following:
    Code:
    C:\mini-sdk>adb shell
    [email protected]:/ #
    If you see the $ symbol instead of the # symbol, type su (your HTC One needs to be rooted otherwise this won't work).
    6. Use the Command Prompt to move to the folder where you placed revone on your phone and and set new permissions:
    Code:
    cd /data/local/tmp
    chmod 755 revone
    Here is what it looks like on my Command Prompt window:
    Code:
    [email protected]:/ # cd /data/local/tmp
    cd /data/local/tmp
    [email protected]:/data/local/tmp # chmod 755 revone
    chmod 755 revone
    7. Now, you can finally remove the TAMPERED text and switch between LOCKED, RELOCKED or UNLOCKED. Following from above, if you want to get rid of the TAMPERED text, type:
    Code:
    ./revone -t
    If you want to set the Bootloader as LOCKED, type:
    Code:
    ./revone -l
    If you want to set the Bootloader as RELOCKED, type:
    Code:
    ./revone -r
    If you want to set the Bootloader as UNLOCKED, type:
    Code:
    ./revone -u
    After you've made the changes according to what you want, you can now reboot the device and check to see if the changes have been applied. Type:
    Code:
    exit
    exit
    adb reboot bootloader
    You should now be in the Bootloader and you can confirm the changes.

    If this was useful, just click on the THANKS button! :cool:

    This is very useful and it works. I am able to S-OFF (Windows 8, 32Bits) and removed the "tempered" and change "unlocked" to "locked" just like original. Crushalot, thanks for this, but can you point out how I can remove the "red descriptions (the development purpose...)" on boot screen and the Tell HTC, please?
    Wait to hear from you :D
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone