yashsingh1/xdaforums huggingface dataset:
[One (M7) Original Android Development] Jamalsid:
hi all,

keep getting the following error whilst trying to get revone to prepare my device for S-OFF, "Segmentation fault (core dumped)". Any ideas what that means? ADB log below to show the steps I followed.

C:\ADBCC>adb devices

List of devices attached

HT34PW912367 device

C:\ADBCC>adb shell

root@android:/ # cd /data/local/tmp

cd /data/local/tmp

root@android:/data/local/tmp # ls

ls

elementalx-kernel.log

elementalx-kernel.log.2

revone

root@android:/data/local/tmp # chmod 755 revone

chmod 755 revone

root@android:/data/local/tmp # ./revone -P

./revone -P

Segmentation fault (core dumped)

139|root@android:/data/local/tmp #
[One (M7) Original Android Development] Awt67:
I'm running Trickdroid 7.5 and I thought i'd cracked it only to find that despite revone being succesful I still had S-On. Probably going to try again when the idiot proof guide update is released.

I havn't tried on the one x because I was under the impression that s-off was impossible.
[One (M7) Original Android Development] sp5it:
Go back to stock. Many users before reported problems with revone on custom ROM's

Mike
[One (M7) Original Android Development] Pume:
This worked flawlessly from terminal emulator. Thanks, although I'm not sure if I ever needed this :)

Oh and ROM is ARHD 10.2 if that matters anything to anyone.
[One (M7) Original Android Development] :
Yes that's normal.
[One (M7) Original Android Development] Jamalsid:
Got it all sorted now, S-OFF and CID-11111111. Just redid the whole process a couple of times and it worked.

I have a carrier locked HTC-One with Orange in the UK.

Thanks guys, awesome!!
[One (M7) Original Android Development] godutch:
coincidentally I was bored a few hours ago and tried but it fails with error code 1 (iirc)
[One (M7) Original Android Development] baste07:
Still showing early release, will there be a final release?
[One (M7) Original Android Development] gyaku_zuki:
That's a good point I missed when asking questions - what effect does this have, if any, on the carrier lock?
[One (M7) Original Android Development] Jamalsid:
good question, +1 for the answer to this.
[One (M7) Original Android Development] vlad48:
Sad but after more than 250 tries got only this:

revone failed (error code = -1)

tested on all versions of revone from first release up to 2.0.1 wlj

Stock EU firmware 1.29.401.12

Strange thing here is that device arrived S-Off and with super CID but with locked bootloader.
[One (M7) Original Android Development] mrizvi66:
worked perfectly!!! THANKS!!!
[One (M7) Original Android Development] w3thax:
Impossible? S-Off = unlocked bootloader?

Gesendet von meinem HTC One mit Tapatalk 4
[One (M7) Original Android Development] vlad48:
It is not impossible at all. The previous owner seems to had it s-off and unlocked and after that relocked bootloader. Now I'm trying to ulock the bootloader again but with no luck...
[One (M7) Original Android Development] adamlee011:
You should be able to do it in terminal emulator. ./revone -u
[One (M7) Original Android Development] vlad48:
It fails in TE with \failed to open framebuffer device
[One (M7) Original Android Development] DeSaint2:
Did you su first? May seem like a stupid question but sometimes it's the little things we forget to do
[One (M7) Original Android Development] adamlee011:
I got a similar error with another htcone hooked up to pc with adb, someone said they got around it simply by resending the command. AND I believe this would return a different error but be sure if the revone file is.bin then include that in the command or change the name of the file. Mine was.bin and I just executed each command as ./revone.bin -u etc...
[One (M7) Original Android Development] vlad48:
Hi, no chance of su - because I'm on completely stock rom as mentioned and locked bootloader. No chance also with all renaming tricks etc. Also I've made several batch files and executed them over 50 times with a macro and still no luck...
[One (M7) Original Android Development] godutch:
turn off fastboot (under power options) and reboot your One
[One (M7) Original Android Development] stevedebi:
You mean SIM unlock. It has no effect.
[One (M7) Original Android Development] DeSaint2:
If you're s-off shouldn't you be able to flash a custom recovery then flash an su package into the stock Rom with busybox and then be able to su from t.e. to then try it? Worth a shot.

Edit: I rooted my stock Rom no issue so it shouldn't be that difficult
[One (M7) Original Android Development] vlad48:
Thanks for this advice, tried it many times with reboot and total shutdown. Fastboot was unchecked of course all the times. Yeah I'm a step away of getting bootloader unlocked by HTC, but what irritates me most is that this device was definetely s-offed with revone and now it refuses to work...

---------- Post added at 07:55 PM ---------- Previous post was at 07:52 PM ----------

No I can't flash custom recovery because of locked bootloader.
[One (M7) Original Android Development] godutch:
run all the steps for s-offing again from step 1
[One (M7) Original Android Development] vlad48:
This is what I'm doing last 48 hours ;) Nothing positive for pity...
[One (M7) Original Android Development] adamlee011:
If you can dev unlock you can get root and then should be able to handle everything in terminal emulator. That was the only way I had success on two devices. The te method will NOT work without root.
[One (M7) Original Android Development] godutch:
since you are already s-off, isn' t there a fastboot command to unlock the bootloader (something like fastboot oem unlock??)

(googling this it should work but becareful it will do afull wipe!)
[One (M7) Original Android Development] vlad48:
No, fastboot returns error in command
[One (M7) Original Android Development] stevedebi:
You can't unlock a bootloader this way. You can relock it via adb. It needs to be done either with revone or via HTCdev.
[One (M7) Original Android Development] Iryia:
How to get rid of red text?

Hi guys,

first of all thanks a lot to the devs for making this hack happen. I have a question though. I`d like to use this method to unlock the bootloader and then put the device back to S-ON..now the question...when I put it back to S-ON will the bootloader remain unlocked and will I get rid of the red text?

Sorry if this was already answered in the previous posts...I searched for it but didn`t find a reply.
[One (M7) Original Android Development] EazyVG:
Using Terminal Emulator on Mobile

Here is how I did on my rooted (HTC_J15) running TrickDroid ROM (v. 7.5.0). I copied the revone.bin file manually to /data/local/tmp using RootExplorer. Then launched Terminal Emulator app and ran the following commands:

su
cd /data/loca/tmp
chmod 755 revone.bin
./revone.bin -P

It reported that revone successful and asked to reboot. After rebooting in Terminal Emulator:

su
./revone.bin -s 0 -u

Again it reported “revone successful”. I rebooted to Bootloader to check the status and found that is was successful:

M7_U PVT SHIP S-OFF RH
CID-HTC_J15
HBOOT-1.44.000

Then to remove the Tampered message from the Bootloader I ran the following command from the Terminal (as stated in the first post):

./revone.bin -t

Hope the above will come in handy to people.

I have a question, shall I change my CID to CID-11111111; what is/are the future benefits of this?

Thanks a lot do Dev(s)/Contributor(s). [It was a problem on my HTC One X :p]
[One (M7) Original Android Development] adamlee011:
Same here. And I didn't change the cid. I guess you can flash roms from other regions or something. Pretty sure you can't take an ota without the proper cid.
[One (M7) Original Android Development] salada2k:
Just want to say thanks very much. Awesome job guys. Procedure worked flawlessly for me.
[One (M7) Original Android Development] stevedebi:
Which red text? The TAMPERED or the one that comes up when booting? The TAMPERED can be cleared, but the red startup text is a bit harder (you have to flash a different startup or manually remove the text). You have to take any of these steps before going back S-On.

I believe the unlock will stick, but at the moment the developers are not recommending that you go back to S-On.
[One (M7) Original Android Development] :
If you meant the red text message in the "Tell HTC" section you will to be S-ON. It only appears when you have S-OFF.
[One (M7) Original Android Development] Diz:
root?

does this root my htc one or do i need to flash a superuser zip?
[One (M7) Original Android Development] :
This only give you S-OFF and the option to unlock your BL etc. but it doesn't give you root.
[One (M7) Original Android Development] adamlee011:
If you install twrp it will offer to root for you the first time you reboot from it. Or just flash a custom rom that's rooted. Like ALL of them.
[One (M7) Original Android Development] mojolive:
I am sure you already know this but thought just to bring up what I had to do.. I had s-off the did an s-on relocked bootloader.. i could not unlock it with revone but i went to htc dev.. and got a new upload file and that worked.. hope that will help you..
[One (M7) Original Android Development] sahilarora2003:
I am stuck with error code 1 and when I try to follow your instructions by pressing Power button after revone -p command the reboot menu opens and after 5 seconds says press for 1 more second to restart it and it just restarts before 15 seconds. M I missing something ?
[One (M7) Original Android Development] Sloth:
Should be

revone -P
[One (M7) Original Android Development] sahilarora2003:
Im getting error -1 when I try to use command ./revoke -s 0 -u

BTW its just a type mistake.. im using ./revoke -P

it just got successful and after I reboot and start adb shell again

it just didn't work..
[One (M7) Original Android Development] fanaticny:
Getting error (-6), revone -P doesn't work
[One (M7) Original Android Development] Sloth:
you have to cd back to /data/local/tmp directory to issue every command IIRC
[One (M7) Original Android Development] DeSaint2:
So you've tried the restart by holding power button for 30 seconds after ./revone -P? If so when you get to the ./revone -s 0 -u command if it fails, just press the up key and try again, wait about 1.5seconds before trying again, until it has success. That's what worked for me and at least one other person that I read it from.
[One (M7) Original Android Development] sahilarora2003:
Hey Guys now I started the whole process again and it is a success.. My device is now S-Off.

One thing I want to know is with device S-Off I have to unlock my bootloader or it is already unlocked in this process ? Sorry im a noob in HTC..

If its not can u guys link the thread for that ? I want to have root and custom recovery.

Thanx in advance.
[One (M7) Original Android Development] stmilosh:
How do you know it's revone?

Are you sure it's not eng hboot and moonshine all the way?

What do have as HBOOT 1.44.0000 or 1.44.4444?

And even if it's 1.44.0000 it might have been s-off with moonshine and then a stock hboot refleshed.

Why don't you give moonshine a try?
[One (M7) Original Android Development] uthmani:
Sorry, I am a bit of a noob with this S-OFF.

I have previously rooted and installed custom roms on other phones, but usually when out of warranty.

Does this S-OFF enable someone to install custom roms and rooting and then reverting to stock ROM without HTC knowing you did this?
[One (M7) Original Android Development] vlad48:
Moonshine won't work on locked bootloader and well my hboot is wasn't eng, otherwise first thing will be to dump and share it here ;)

Yeah, that was the way I went after I gave up.
[One (M7) Original Android Development] expertzero1:
took me 3 hours to soff lol. tired revone, didnt work, then tried moonshine, worked halfway then failed, then tried revone again and yay soff woooo
[One (M7) Original Android Development] guyluvsgals:
Getting error

C:\Android>adb shell

~ # cd /data/local/tmp

cd /data/local/tmp

/data/local/tmp # chmod 755 revon

chmod 755 revone

/data/local/tmp # ./revone -P

./revone -P

revone v0.2.1

revone failed (error code = 1)

any solution...
[One (M7) Original Android Development] expertzero1:
retry several times if still same error.

hold the power button down for 15 seconds for reboot and retry it again
[One (M7) Original Android Development] Squirmfenfi:
Just curious but what does the ./revone -P command actually do?
[One (M7) Original Android Development] adamlee011:
When executed with adb it says "gaining root access" or something along those lines.
[One (M7) Original Android Development] Squirmfenfi:
Thanks for that. I appreciate your input.

I have S-Off so know what the result of the command is.

I guess what I'm wanting to know is how does it prepare the device for S-Off?
[One (M7) Original Android Development] adamlee011:
Not sure about that. I just guessed that it's simply getting root access for revone similar to an app having to request root privileges in android. I suppose you're looking for a more technical explanation. I'm sure there's someone else who has the answer you seek. Sorry I don't.
[One (M7) Original Android Development] zinder33:
Any body having this problem ??

after flashing ruu htc_001 over h3g_001 the sound has gone very low ...any help guys ..thanks

Sent from HTC One S-OFF SUPERCID
[One (M7) Original Android Development] WhizzWr:
Umm.. guys sorry if this sounds dumb.

But under the first post instruction it is said that su is optional.. so can I use revone without unlocking bootloader? I plan to debrand (change cid only)

Thanks.
[One (M7) Original Android Development] azrael97c:
success with one try using the 0.2.1 version :) (didn't even take 5 minutes... the back-reading took several weeks though XD)

device: HTC One with CID htc_044 / PN0714000
[One (M7) Original Android Development] maxal:
Yes you can, I did.
[One (M7) Original Android Development] Lucas0511:
Great stuff, thanks for sharing. After reboot when 4. failed with "failed to map memory" everything went smooth.
[One (M7) Original Android Development] Skizzy034:
Has anyone tried this with a stock, s-on, and locked bootloader?

Also, is the link in the first post the same version as the link in the second post (0.2.1)?
[One (M7) Original Android Development] Punchlinegott:
Hello, I'm already stuck at frist step :(

Here is the output I get when I try to push revone to my device:

failed to copy 'revone' to '/data/local/temp': Permission denied

Can anybody help me please.

---------- Post added at 06:20 PM ---------- Previous post was at 06:19 PM ----------

I am trying right now, but doesn't seem to work :(
[One (M7) Original Android Development] PP337:
Hi guys, I've not s-offed in quite a while... (since my sensation) and have used the revolutionary method on there...

Now I have a few questions:

1) Will i be able to flash a custom recovery with just S-OFF? or is there more to it?

2) Will i be able to get everything back to complete stock if i need for example a warranty repair?

Thanks in advance for your responses!
[One (M7) Original Android Development] tiho5:
1) You also must unlock the bootloader

2) Yes
[One (M7) Original Android Development] stevedebi:
The bootloader is unlocked by revone but you need a custom recovery to get root and use ROMS. Check for either the Guide to Rooting, or Hasooms all-in-one tool.

---------- Post added at 04:37 PM ---------- Previous post was at 04:35 PM ----------

One of the command line options tells the revone program to exploit a security hole in the OS, in order to modify the portion of the phone that sets security OFF. The programmers would know, but there is no point in them sharing any information about the exploit. So I'm not sure of the "P" option, but I suspect this may be the one that tells revone to go to S-Off.
[One (M7) Original Android Development] kmdm:
Please learn to read correctly.
[One (M7) Original Android Development] PP337:
Thanks a lot!
[One (M7) Original Android Development] Punchlinegott:
That doesn't really help me. What exactly did I miss to read?
[One (M7) Original Android Development] DeSaint2:
I did it lock stock and barrel and now have unlocked bootloader, s-off and supercid
[One (M7) Original Android Development] Punchlinegott:
Can you please tell me how you managed to do it on stock one?
[One (M7) Original Android Development] stevedebi:
It might be safer to copy and paste. The target directory is "tmp", not "temp".

From the OP:

1. Download revone (above) and push it to your device: adb push revone /data/local/tmp/

2. Open an adb shell and:

* cd /data/local/tmp
[One (M7) Original Android Development] vayman:
Follow this post if you're bone stock. Worked for me. It may not work the first time around, but if you're persistent you'll get it. ;)

I too was stock S-ON and locked when I did it.
[One (M7) Original Android Development] Mad_Duke:
Hi!

I have an HTC One

"

ro.aa.maincid HTC_001

ro.carrier HTC-EastEurope

ro.cid HTC_032

"

Already rooted

Downloaded from main post revone file and tried

./revone -P

It went OK and after reboot I've tried

./revone -s 0 -u

And I get

"

255|root@android:/data/local/tmp # ./revone -s 0 -u

./revone -s 0 -u

revone v0.2.1

revone failed (error code = -1)

"

I've done it with "su", without, I've tried and hold the power button for 10, 15 or even 30 seconds to reboot after " ./revone -P " and still nothing.

Any new idea?
[One (M7) Original Android Development] Skizzy034:
Which .bin should I use? The one in the first post or the 0.2.1 in the second post? Or are they both the same?
[One (M7) Original Android Development] Anonamoose:
Just wanted to say thanks! I did the whole thing through terminal emulator and it worked first time one the T-mobile one. Very easy ty again !:good:
[One (M7) Original Android Development] Skizzy034:
Ok so I'm using the 0.2.1 and the first steps when through fine. I got success and then I rebooted and when I did the next steps I got the error -1. So I turned the phone off and waited 30 seconds and now when I do the first steps again I get the memory map errors. =(

Is there a way to completely delete the revone from /data/local/tmp and start over from scratch?

EDIT: Factory reset didn't help. I don't understand how it can work one time and then not again after that!
[One (M7) Original Android Development] Northantrim:
Just confirming that this works flawlessly on my Vodafone One running 1.29.161.11 (stock, went back to try Moonshine, which failed so kept it for this) for both S-OFF and resetting the tamper flag. Done in Ubuntu 12.04 (32-bit) LiveUSB.

Thanks!
[One (M7) Original Android Development] DarkSayer:
Is the mini-sdk enough to or do I have to download the full ADB package?
[One (M7) Original Android Development] Skizzy034:
Got it working. Took a bunch of tries with the ./revone -P command. Then held down power for 15 seconds after it said successful and continued on.
[One (M7) Original Android Development] maxal:
I was stock s-on locked but not now, I followed the instructions it didn't work first time but I kept on trying and it worked eventualy.
[One (M7) Original Android Development] lupin_iii:
Didn't scour through the entire 100+ pages of this thread, but in case this wasn't already mentioned.

I used the method described on the op, with the exception that, instead of adb, I used a terminal shell on my phone to run all commands.

my phone is rooted.

1. download on phone, and using es file explorer (or whatever file exployer of your choice), move to /data/loca/tmp. (also, i renamed file to "revone" so it's easier to type commands)

2. open terminal

3. type

su

cd /data/local/tmp

chmod 755 revone

./revone -P​

4. after it reports success, manually reboot using power button

5. open terminal

6. type

su

cd /data/local/tmp

./revone -s 0 -u​

7. after it reports success, manually reboot using power button

Done. Continue if you want to remove "tampered"

8. open terminal

9. type

su

cd /data/local/tmp

./revone -t​

10. after it reports success, manually reboot using power button

hold the down volume key during reboot to go to recovery and check that you are s-off and tampered removed.

Big thanks to Revolutionary Team!!
[One (M7) Original Android Development] vayman:
As long as it's an SDK w/ ADB that supports JB devices you should be good to go. Not familiar w/ the "mini" SDK, sorry.

Yeah, it's definitely temperamental, but glad you guys got it! :good: Welcome to the freedom of S-OFF! :D
[One (M7) Original Android Development] aridtare:
Question: I used the original binary to gain S-OFF on my One. Should I want to update the binary to v0.2.1, do I simply follow the instructions given in the OP to adb push it to my phone? Do I have to remove the old binary first?
[One (M7) Original Android Development] lupin_iii:
mini-sdk is enough. or just do in terminal emulator
[One (M7) Original Android Development] cuyo11:
just keep trying to execute revone -P :o
[One (M7) Original Android Development] kringer2:
Thanks worked first try on T-Mobile.
[One (M7) Original Android Development] WhizzWr:
Root without unlock bootloader?

Hi, another couple of questions:

1. After the ONE got S-offed is there any workaround of getting superuser installed?

2. Anyone got s-off, then s-root but bootloader still locked?

the idea is I don't need recovery, yet.. just superuser binary will do..

Thanks.
[One (M7) Original Android Development] TarekElsakka:
Thank you, what an awesome guide. I used Windows for S-OFF and Mac for removing the TAMPERED flag, just for experimental purposes.
[One (M7) Original Android Development] squabbi:
Once you have s-off and an UNLOCKED bootloader, you can use the fastboot command

fastboot boot recovery.img

to temporarily boot into the recovery.

then relock the bootloader via revone use:

./revone -l

Hope this help!

If it help, leave a like! :)
[One (M7) Original Android Development] emrepolat:
did you find a way to fix it??
[One (M7) Original Android Development] WhizzWr:
Ah thanks.

Umm.. Basically I need the status to be 'locked'. Not 'relocked'.

I assume ./revone -l will leave a 'relocked' status, won't it??

Revone kinda gain a temp root access, so can we just not copy su bin to the bin folder and proceed installing superuser.apk.
[One (M7) Original Android Development] squabbi:
Make sure you have an unlocked bootloader then use my

fastboot boot recovery.img

Then flash supersu.zip through there

Then go back to revone and use

./revone -l

(Makes it say *Locked*) -r is to relock.
[One (M7) Original Android Development] kelvintisw:
** DELTE **
[One (M7) Original Android Development] kenned88:
Mine disappeared when i flashed stock recovery.
[One (M7) Original Android Development] kelvintisw:
Oh ya! :p

In fact, it does not really matter since it will be gone after we return to stock rom for whatever puroposes!:good:

Thanks, buddy!:cool:
[One (M7) Original Android Development] Phil750123:
I have just completed this on 100% stock rom from 3 (still on 1.28) non rooted etc..

Took a few times, using the ./revone -P i had to do that 2 or 3 times before i got successful,

then i tried the ./revone -s -0 -u and got the error -1 , i turned phone off for 30 seconds, tried again,

but this time when i rebooted after the ./revone -P i held down the power button for 15 seconds,

then i got it first time on ./revone -s -0 -u, just loaded into bootloader and have s-off.
[One (M7) Original Android Development] WhizzWr:
Well, 'locked' that is. Thanks for the confirmation.

Problem is I don't wish to unlock the bootloader at the first place, don't wanna lost drm keys, yet.

Hmm..
[One (M7) Original Android Development] kelvintisw:
Finally, I S-OFFed, "LOCKED", and had the "TAMPERED" removed while running on custom 4.2.2 rom

All done under 10 minutes, one time job!

Thanks.:good:
[One (M7) Original Android Development] DeSaint2:
Somewhere in this thread they spoke about that and the user found that the drm keys were not lost unlocking this way. They could still use all the things that relied on them. That is if I remember correctly.

Edit: Page 234 is where I read that
[One (M7) Original Android Development] gartner83:
This method worked for me like a charm. Less than five minutes of effort, no errors, all success.