yashsingh1/xdaforums huggingface dataset:
[One (M7) Original Android Development] vomer:
Instructions for Mac Users

(can be used on windows as well - just skip part 1)

Following this will get you:

- S-OFF & Unlocked

- Super CID

Part 1

Install ADB on your mac:

https://code.google.com/p/adb-fastboot-install/

1. Extract the downloaded zip to your dektop

2. Open Terminal and type in: cd Desktop/Android/ (note: Android is the directory extracted from zip file)

3. Now type ./ADB-Install-Mac.sh

Done.

Part 2 (instructions by link - modified slightly)

1. Pushed revone to my device: adb push revone /data/local/tmp/

2. Opened adb shell by writting: adb shell (type in su for superuser access)

3. Wrote in the shell: cd /data/local/tmp

4. Then I wrote this: chmod 755 revone

5. wrote the following command: ./revone -P

6. Revone reported that I needed to reboot and try again. So I wrote : reboot

7. Opened (again) adb shell: adb shell

8. Wrote (to change directory in the phone): cd /data/local/tmp

8a. Wrote the following command: ./revone -P (it will now say success and ask to reboot phone - do it by typing: reboot)

8b. Once rebooted - repeat steps 7 & 8

9. To get S-OFF & unlock, I wrote the following command: ./revone -s 0 -u

10. revone reported success and wrote following to exit the shell: exit (or just close terminal and open a new one)

11. Then I wrote following command to reboot into bootloader: adb reboot bootloader

12. Bootloader showed that I got S-OFF

13. Rebooted phone

14. Started the adb shell, again: adb shell

15. Changed to the folder where revone is stored: cd /data/local/tmp

16. Requested revone to reset tampered flag (again): ./revone -t

17. Exited the adb shell by writting: exit (or just close terminal and open a new one)

18. Rebooted to the bootloader by writting: adb reboot bootloader

19. S-OFF and tampered reset... :good:

Part 3

To modify your CID - to get super CID:

1. Open terminal and type (copy paste command below or make sure there a eight 1's):

fastboot oem writecid 11111111

2. Reboot phone into bootloader mode and verify CID#. It should look similar to this:
[One (M7) Original Android Development] letmeputdatipin:
Got s-off baby on the sprint variant! Did it directly from the phone term. emulator, worked like a charm, u guys r the best THANK UUUU!!!!!!
[One (M7) Original Android Development] chakra:
What does create a path mean, like set up a walk way?

I know what it means, but how?

OK so I typed /adb shell and it sayys adb is a directory, so just type the command and no go?
[One (M7) Original Android Development] david279:
Thanks for splainin that to that guy [MENTION=3036502]popokrew[/MENTION]
[One (M7) Original Android Development] daddioj:
./revone -t use that to remove tampered. should get rid of the development only. but i m not 100%
[One (M7) Original Android Development] dronepro:
dude i am a MORON, lol i missed one 1. lol it's one now :) now time to take off the damn TAMPERED
[One (M7) Original Android Development] Simba501:
Same here. Third attempt worked.

S-off achieved :victory:.
[One (M7) Original Android Development] daddioj:
i am not sure. kill adb and reboot phone in fastboot and try again

---------- Post added at 11:10 PM ---------- Previous post was at 11:09 PM ----------

woohoooooo
[One (M7) Original Android Development] david279:
[MENTION=242947]chakra[/MENTION] you use chrome. I can do remote chrome for you
[One (M7) Original Android Development] lokicat:
You left out the "." in front of the "/"

Instructions on creating a path so you can simply type "adb" from anywhere can be found here:

http://xdaforums.com/showthread.php?p=9842005
[One (M7) Original Android Development] vomer:
Read the guide I posted on the last page. Tells you everything now :good:
[One (M7) Original Android Development] Root-Maniac:
Try rebooting your device a couple times. i had the same error one one of the devices i s offed and after a reboot the problem was gone.
[One (M7) Original Android Development] uthmani:
I've done that as well. I feel like giving up right now!
[One (M7) Original Android Development] prunzzz:
hey

thanks

i successfully gained s-OFF

and removed TAMPERED as well

just had a few questions,

1.now i wont be able to get OTA unless i get back to s-ON right???

2.if i relock bootloader using -l command will i lose recovery/root or something else??

please kindly reply
[One (M7) Original Android Development] TaiSimpson:
Work with TMobile HTC One S variant?

I was wondering if anyone knows if this utility will work with the HTC One S? I have the TMobile version running the bone stock Jelly Bean update.

Before I get flamed, yes I searched. If I search this thread using "HTC One S", I get all references to "HTC One" including everybody's sig reference, etc.

Thanks.
[One (M7) Original Android Development] Sloth:
Nope won't work AFAIK it's for the M7 variants
[One (M7) Original Android Development] inffy:
You are in a wrong forum for starters. Htc one is completely different device than One S
[One (M7) Original Android Development] Stanlehh:
did this in one attempt, awesomeness.
[One (M7) Original Android Development] Dacoco:
Hi,

i need to send my brand new swapped and s-off'ed device back for repair :eek:

What i did:

- S-OFF via revone WITHOUT unlocking the bootloader via htcdev

- Flashing TWRP

- Flashing ViperOne ROM

Can i just install a WWE RUU to get back to stock and thats it?

Or do i need to S-ON before?

I also did a NANDROID Backup of the stock rom.

Maybe it's better to just S-ON via revone and flash stock recovery (if available!?)?

Please help!

Thanks!
[One (M7) Original Android Development] DeSaint2:
You'll need to flash stock recovery and Ruu back to stock then s-on so everything is stock.
[One (M7) Original Android Development] RamsesVI:
Dear community,

I tried to read through all the post, but can't find the answer, to what i think is a simple question: Can i install a recovery after S-Off is achieved, or do i need to go through the official prodedure as stickied (unlock via HTC Dev, etc, etc, etc)?

Currently i don't have the need to install a custom ROM, so i want to try to avoid a wipe_to_factory_default, which is manantory if i unlock my phone via the official HTCdev way.

But I basicly want to to be able to install a recovery, and after to install some mods ( like remove the 3 dot menu and facebook photos from the galery).

Thanks
[One (M7) Original Android Development] doctorgallo:
I think you still have to unlock, but you can do it using revone. You won't have to wipe anything at all. Then when it's unlocked you can flash a recovery
[One (M7) Original Android Development] Dacoco:
But doesn't the RUU flash stock recovery too? Do i really need to do this before? And where do i get the correct stock recovery from?

Thanks
[One (M7) Original Android Development] tiho5:
AFAIK the RUU will also take care of flashing the stock recovery for you.
[One (M7) Original Android Development] Awt67:
I've gone through this forum tried everything and still can't get s-off. Time to give up methinks
[One (M7) Original Android Development] azrael97c:
have you tried using stock kernel before attempting S-OFF?
[One (M7) Original Android Development] Awt67:
No but worth a try if I knew where to find it
[One (M7) Original Android Development] MadDogMaddux:
Attempting this, but it sounds like the phone was thinking every time you hit ./revone -P ? Everytime I do it, it immediately gives me Error 2, not even a split second's processing time.

Currently rooted with TWRP and ViperBoy's read/write mod, using Chainfire's SuperSU. About to flash ViperROM then attempt revone again.
[One (M7) Original Android Development] SanTos0250:
what you also can do is this: boot into bootloader, in fastboot typ this: fastboot boot recovery.img

then you will boot the custom recovery but not flash it :)
[One (M7) Original Android Development] MadDogMaddux:
......and flashing ViperRom let me ./revone -P on the first try. Booya!
[One (M7) Original Android Development] alx294:
EDIT: solved, please ignore
[One (M7) Original Android Development] stevedebi:
You need to get back to the normal recovery anyway.
[One (M7) Original Android Development] alx294:
don't know what the problem was but i just rebooted and did it again, it worked. thanks though :)
[One (M7) Original Android Development] tfouto:
Hi guys,

I have the entire 281 pages :) Long work.

So from what i read, my understanding is:

- I can use revone to unlock the phone, instead of using htcdev and not using s-off at all. So, can i just ignore completly the command ./revone -s 0 -u and just use ./revone -u .Will it work? Can i unlock without s-off?

- will it not wipe anything, like system apps?
[One (M7) Original Android Development] stevedebi:
I think you have to S-Off to unlock. Otherwise the security will interfere. But you can always try it.
[One (M7) Original Android Development] bgcngm:
Unlocking bootloader with revone won't wipe userdata. Doing it by official HTC method wipes. :cool:
[One (M7) Original Android Development] tfouto:
Altamente :) Now if i know i could just unlock without s-off would be gold.
[One (M7) Original Android Development] DeSaint2:
Why not just reset the security flag after unlock? It's one more line on the command line.
[One (M7) Original Android Development] doctorgallo:
Which is partially why revone is so amazing :)
[One (M7) Original Android Development] tfouto:
So could I make s-on again and leave it unlocked?
[One (M7) Original Android Development] Awt67:
[MENTION=5015463]RPelham[/MENTION] tried your method for 1 and half hours all I got was error 6 over and over again. What the hell is error 6?????
[One (M7) Original Android Development] germes81m:
so tnx for devs to s-off method

I have question:

I have HTC One 64gb DevEd and flashed to Trickdroid 8.0(4.2.2) now. So can I do s-off from http://revolutionary.io/revone and without crashing device disable this S mode?

tnx
[One (M7) Original Android Development] uthmani:
YES! Success. Finally got it to work. First attempt this morning and it is now UNLOCKED!
[One (M7) Original Android Development] DeSaint2:
Yes you can. If that's what you wish to do.
[One (M7) Original Android Development] Snakemanc6:
I just achieved S-off using Revone. It's the first time I've ever tried, and it was very easy, and successful on the first attempt. I'd just like to say THANK YOU! :good:
[One (M7) Original Android Development] wtabram:
Piece of cake, failed first time i tried to prepare for s-off but worked the 2nd time.

All in all i think i s-off'd in 2 mins.... lol;)

Many many thanks

:D
[One (M7) Original Android Development] uthmani:
So now that I am unlocked, does it make it any more likely that any warranty claim would be rejected with ROOT?

Can you un-root without any evidence of being rooted in the first place? I know there is a small risk of rejection even without root when my device will not say LOCKED again.. just asking :)
[One (M7) Original Android Development] doctorgallo:
Actually you can make it either "locked" or "relocked" with revone.

And I've read that some people get their phones fixed under warranty despite having rooted and so on
[One (M7) Original Android Development] azrael97c:
hmm...

1. download something like arhd... i used 9.4 when i s-off'd mine.

2. make a nandroid of your current rom

3. install arhd and let it boot

4. attempt s-off again using revone-0.2.1

5. assuming it's successful, revert back to the rom you were on

early on this thread people were getting a lot of errors because they were using custom kernels. i got s-off in one try and in less than 10 mins
[One (M7) Original Android Development] twosix:
If I lock the phone using "revone -l", can I still use custom rom or update the custom rom like TD, ARHD, etc?
[One (M7) Original Android Development] adamlee011:
If twrp or cwm are installed, yes. No need to lock it though.
[One (M7) Original Android Development] tmaniac:
perhaps a dumb question.

I have s-offed with revone a while ago.

If i want to update my HBOOT to the latest version (i believe 1.54?) what should i do?

Do i need to relock first and then flash hbootfirmware?

or can i just flash an HBOOT firmware package via fastboot?

Any1 know where i can find the latest HBOOT version?

Thanks in advance!
[One (M7) Original Android Development] tfouto:
so should i just ./revone -s 0 -u and then * fastboot oem writesecureflag 3...

can i use the fastboot oem writesecureflag 3 without making -l before?
[One (M7) Original Android Development] tiho5:
Yes

This way you're S-On, but the bootloader is unlocked.

---------- Post added at 01:43 PM ---------- Previous post was at 01:41 PM ----------

You can flash hboot with S-Off.

Here are hboot versions: http://xdaforums.com/showthread.php?t=2316726
[One (M7) Original Android Development] tmaniac:
thanks m8, a big facepalm for me, could have thought about that myself!

succesfully flashed the modded hboot 1.54 :)
[One (M7) Original Android Development] RamsesVI:
Thanks guys! Exactly what i was looking for :)

Cheers!
[One (M7) Original Android Development] naughty6t9:
Awesome Thanxxxxxxxxx

wow this was really awesome, Worked without a hitch in fiirst go :)
[One (M7) Original Android Development] MindlessLeadership:
Plus the revone is around 1000x quicker and simpler than HTCDev.
[One (M7) Original Android Development] VisuM:
Can this work on One SU?

I don't know if this off-topic but someone gotta ask.. Is there anyway to get revone to work on HTC One variants like HTC One SU (t528w aka CP2DUG)?

Many of HTC One SU users are looking forward to see if that could happen or at least if RevOne team are generous to point us to the right direction.
[One (M7) Original Android Development] dryspuri:
I know this does not make sense, but will Revone work with At&T HTC One X, as I love that we can remove tampered and relocked in One, can we not achieve same result on our AT&T HTC One X too
[One (M7) Original Android Development] feenty:
I've done s-off :) (thanks for this great and easy method), flashed cwm and finaly rooted my One.

Now I'm on 1.29 stock rom.

Is there any method to turn off the report HTC option?

Thanks in advance!
[One (M7) Original Android Development] doctorgallo:
Yeah someone mentioned that he removed two apk's but it might have been in the thread that's specific about this problem.

Custom roms don't have this I think so if you want to flash one you don't have to worry about it
[One (M7) Original Android Development] DJW6927:
OK.. I've got retina damage now.

Every time I close my eyes all I can see is "[-] Failed to map memory."

Now then I did get 1 success from issuing "./revone -P" - please reboot etc. But then just came back to the same error message when trying "/.revone -s 0 -u".

Anyone know if this preparation step is permanent or will I have to repeat the 1st painful process again? How can I confirm this preparation has occurred?

Please please help me.. or someone pop round and put me out of my misery.

EDIT.. YIPPEEEE.. I DON'T BELIEVE IT!!! Blimey though....don't get me wrong. I do appreciate the exploit to unlock with HTC knowing.. but crikey.
[One (M7) Original Android Development] doctorgallo:
Lol the exact same thing happened to me. It's a great surprise when it finally works right? :D
[One (M7) Original Android Development] DJW6927:
Yeah bro..least reliable but maybe also the best exploit too in xda history. Time for a gin and tonic :)
[One (M7) Original Android Development] tfouto:
hi, i manage to s-off. but i cant root the phone.

When i go to recovery mode, the phone simply doesn't do anything. It goes to image with the red exclamation mark, or says fail to mount sd card.

What can i do?

Edit: i figure it out...

btw i cant put s-on again without lock the phone again
[One (M7) Original Android Development] tfouto:
I managed to s-off. But no red letters appears to me. I am on stock recovery and rom.

When does the red letters appear? I boot a custom recovery just to flash the root, but only boot and not flash. When i boot the custom recovery the red letters appeared. Is it the conjunction of s-off with custom ROM/recovery, that make the red letters appear in bootloader?
[One (M7) Original Android Development] ghostryder12:
Tell us what you did so others with the same issue can fix it.

Sent using my HTC One from that FBI van parked down the street.
[One (M7) Original Android Development] BlackS0ull:
Hello,

First, I would like to thanks to the guys that developed this S-OFF because in the end this method worked fine :)

Secondly, is the error that I was received for several times during the process of S-OFF

"shell@android:/data/local/tmp $ ./revone -P

./revone -P

revone v0.2.1

Gaining root access (thanks to Dan's motochopper)...[-] Failed to map memory.

[-] Failed to map memory.

[-] Failed to map memory.

[-] Failed to map memory.

[-] Failed to map memory.

[-] Failed to map memory."

but I've managed to solve this issue by switching OFF the phone and connect back to PC and delete revone from the phone and put it back and launch the command that has failed. The error has appeared at every big step

1. ./revone -P (so I had to switched OFF the phone, delete revone from the phone and add again, set 755 etc. then hit again ./revone -P

2. ./revone -s 0 -u (again same error)

3. ./revone -t (again same error)

Anyway now I'm S-OFF and I've installed TWRP without any problems.

Thanks a lot. Hope that my feedback will help others that are receiving "Failed to map memory" error.
[One (M7) Original Android Development] tfouto:
I dont know why i dont see the red letters. Maybe because i have stock rom and stock recovery?
[One (M7) Original Android Development] Frostfire:
Thanks!!

Worked without a single hitch, never expected S-Off so soon or so easy.
[One (M7) Original Android Development] DeSaint2:
That is correct. If everything remains stock you won't get that statement on the splash
[One (M7) Original Android Development] tfouto:
Ok, so that's must be it... The only think i have besides s-off and unlock is the phone rooted...
[One (M7) Original Android Development] vasujahagirdar:
noob!!

Hello all.

I'm having HTC ONE 32GB version with SIM unlock,also HTCdev bootloader unlocked with tampered written.running viperone Rom,I wanted to go for s-off.so I downloaded revone file and placed it in adb folder ,when I run command prompt & write adb push revone/data/local/tmp it says no file found.I tried also with terminal emulator by placing revone file in data/local/tmp folder of my device but the result is same.it says no file found..

I don't know what wrong I'm doing plz help.
[One (M7) Original Android Development] angusc:
Did you change the file permissions as per the OP?

To push the file from your pc to device the file has to be in your "/Android-sdk/platform-tools" folder to be found by adb.....

Edit: check this http://xdaforums.com/showthread.php?p=42788381

Sent with desire from My One
[One (M7) Original Android Development] vasujahagirdar:
Thanks for reply ,yes placed the file in adb folder,also changed the permission.

But why same result with terminal emulator? Where pc is not connected?

Wel,now I copied the path of file in explorer & pasted it in terminal ,than pressed enter,,it says revone successful,than I tried to enter chmod 755 revone,it says no chmod found!!
[One (M7) Original Android Development] cue_32:
Can anyone confirm SIM-unlock works? I'm semi new to HTC since Nexus One and tried searching but 285 pages was still unclear as to whether it works or not.
[One (M7) Original Android Development] xndabox:
I have done revone several times (2 hours) on my tmo HTC One and I keep getting failures :crying: Error 2 to be exact. So are there any tips from someone who may have been trying for two hours like I have? Tried most of the tips so far. no go. I am unlocked running stock and rooted. Thanks in advance
[One (M7) Original Android Development] doctorgallo:
Just reboot and try again, it's normal to get errors and you have to try over and over again. Eventually it will work
[One (M7) Original Android Development] xndabox:
:mad: -------:rolleyes:-------:crying:-------- ok.
[One (M7) Original Android Development] Ardmanz:
This may be a silly question but whats the command to s-on again?

I've locked my bootloader but it's still showing s-off.
[One (M7) Original Android Development] vasujahagirdar:
finally i got sucess !! i followed this guide !!thanks dude for this guide!
[One (M7) Original Android Development] Sloth:
It's on the first page :D
[One (M7) Original Android Development] DeSaint2:
If you are in terminal emulator make sure you su before trying to chmod. Also make sure you do the command cd /data/local/tmp and you might also make sure it didn't add an extension such as .bin like some users have reported. May seem like silly things but I catch myself doing things like that and I'm not new to this stuff lol.
[One (M7) Original Android Development] doctorgallo:
Im going to relock and unlock my bootloader when i upgrade hboot. my question is: can i just open fastboot and enter ./revone -r and then after i upgrade hboot enter ./revone -u OR do i have to start from step 1 and do all the steps (adb Shell, and push it and ./revone -P and all that again)?

Edit: I think I've got it, I just have to do step 5 and step 6a
[One (M7) Original Android Development] xndabox:
When i try this way, i get system is read only. How do i change that?
[One (M7) Original Android Development] bloodbath:
Thanks for the excellent work, just got s-off. Now though, there is an update for my phone. I want to update it to the latest and remain stock until 4.2.2 comes out. It is my understanding that I may need to run an RUU since I have TWRP as my recovery. This is where I'm a little confused.

1) Which RUU do I select? (I currently have the stock T-Mobile US build version 1.27.531.7 CL170484 release-keys if that helps)

2) Afterr I flash the RUU, do I need to perform s -on and re-lock the bootloader prior to performing the OTA update?

3) Am I missing any major steps?

Thanks for any and all input.
[One (M7) Original Android Development] xndabox:
Ok so after much hurt and pain, I decided I would revert my phone back to stock. First I started with the kernel and replaced it since I was running a custom one. And guess what!? It worked - first time too. Just in case someone else is trying for a while and can't get it to work.
[One (M7) Original Android Development] vasujahagirdar:
Yes,I followed the same but not succeeded,so tried by putting revone file in system & followed the above mentioned method,& succeeded finally.anyways thanks for the help.
[One (M7) Original Android Development] dhingra_vinay_in:
well..if u have received an ota ... first of all u need to get flash official recovery from fastboot...search on xda one forums or google it out..u will get it...just flash as u flashed twrp...if u on official its fine..if not before flashing recovery u must restore ur nandroid of the official rom... then after flashing official recovery image u must perform ./revone -l ..it will lock ur bootloader as if it was never unlocked and then boot into fastboot and type fastboot oem writesecureflag 3 .. this will give u s-on and u r all stock now..and get the ota
[One (M7) Original Android Development] Ardmanz:
I must be blind?

Is this it - * Safety update: No longer allows -s 3 since this can lead to bricks with custom HBOOTs, use: fastboot oem writesecureflag 3 (which is safer - and checks such things)"?
[One (M7) Original Android Development] bgcngm:
It's written in bold:
[One (M7) Original Android Development] angusc:
Does that mean that those of us that s-off with the old revone file should update that file in our system folder? So that we can't accidentally go back to s-on with custom HBOOT and brick.......? I'm assuming that the revone file I originally downloaded just over a week ago is still able to brick without the secureflag command.

Sent with desire from My One
[One (M7) Original Android Development] bgcngm:
You should not go back to S-ON with any custom HBOOT, doesn't matter if revone is old or not. Revert to stock HBOOT before going back to S-ON or else you'll get a brick.