[Q] Locked Bootloader and unroot help - Verizon HTC One (M7)

Hey guys, so I have to give my phone back to Verizon for the Edge plan... to cover my a$$ and avoid anything going wrong I wanted to return the phone as close to stock as possible.
I want to avoid S-off/S-on tampering and using RUU because I'm already off the VZW network with this device and I won't be able to do any OTA's plus I don't trust myself enough to go back to S-on without messing something up
So I wanted to know if I could just relock the bootloader and unroot the device without having to S-on again or use RUU?
If someone could kindly point me in the right/easiest direction to do this that would be great as I have been searching for the past 4 hours trying to figure it out lol

Flash the faux hboot made by santod(this is purely cosmetic and makes the hboot appear locked and s on without a tampered flag). Then flash the stock odexed full rom, flash the stock recovery and then unroot.

Robedom said:
Hey guys, so I have to give my phone back to Verizon for the Edge plan... to cover my a$$ and avoid anything going wrong I wanted to return the phone as close to stock as possible.
I want to avoid S-off/S-on tampering and using RUU because I'm already off the VZW network with this device and I won't be able to do any OTA's plus I don't trust myself enough to go back to S-on without messing something up
So I wanted to know if I could just relock the bootloader and unroot the device without having to S-on again or use RUU?
If someone could kindly point me in the right/easiest direction to do this that would be great as I have been searching for the past 4 hours trying to figure it out lol
Click to expand...
Click to collapse
Flash the faux hboot, then flash stock rom disconnecktie pointed out , then HTC recovery.
this will appear 100% stock.
let me know if you need any more help

synisterwolf said:
Flash the faux hboot, then flash stock rom that Andy made, flash secure kernel, then HTC recovery.
this will appear 100% stock.
let me know if you need any more help
Click to expand...
Click to collapse
The full stock rom from Santod actually contains the secure kernel already. Just sayin

disconnecktie said:
The full stock rom from Santod actually contains the secure kernel already. Just sayin
Click to expand...
Click to collapse
i forgot, thank you. i will edit.

Alright so I got the fake hboot flashed as well as stock odex'd full with all the bloatware. Do I flash HTC recovery before unrooting? How do I unroot? Having Superuser in the app drawer might be a dead giveaway

Yes flash the stock HTC recovery first. Then open Supersu. Go into the setting and select full unroot. After that you should be able to uninstall it.

Perfect! Everything worked and it looks fresh out of the box. Thank you guys for all your help!

Related

[WARNING] If you have s-off do NOT flash offical pc10img.zip

Ok mods, I know this normally isn't the place, but I think this is very important as I'm seeing more and more semi bricks, some of which are not recoverable without HTC signing keys!
So I ask you mods, please don't lock this, if anything it really needs to be a sticky!
That being said, if you are s-off, do NOT flash the signed offical PC10IMG.zip. if you don't have the correct rom on there when you do, as per the unroot thread you will get stuck.
Let me give u an example of what I've been seeing and why its happening so everyone understands. Example: you perm root/s-off your phone. You decide to do some rom playing. You end up boot looping and can't fully boot into android. So u say hey, ill reload pc10 and start over, WRONG.
What happens is s-off does no checks, sigs, version number etc. So when you load it up it starts to flash. Hboot(s-on) is first, then recovery, then radio. Thing is it has to reboot to do radio, so it reboots, at this point your s-on so it does a version check. "Main is older" then it quits before ever touching the system.img or boot.img. at this point you are locked. You have s-on, stock recovery, and can't boot android. Long story short, your screwed.
Now depending on the rom/kernel u had/have installed you may have adb access. At this point you have a small chance of recovering, which is better then some. I just spent the last 5 hours working with someone on a fix and think we got it, but the bat has died and will have to pick back up tomo. If this works or not, I also have one more idea we can try. I will update OP with any fixes we find.
*If your system was bootable when you started this, it may still boot. but you will be s-on, stock recovery, and still on whatever rom you were running. at this point you will have to hex edit to downgrade, or wpthis.ko if there is one for your kernel to get back to s-off.
*ive seen some people saying. i did it, it worked for me, but don't add any supporting info. this is bad for people new to android cause it makes them feel they will be ok. the only way this can work is if you have a version installed as old or older then the official img, or if you take hboot out of the update which then makes it no longer the official update. but my question is why are you flashing this? if you want to fully unroot, then follow the unroot guide. if you just want to go back to stock w/root, grab one of the stock w/root roms.
Long story short, do your rom flashing from recovery. Stay out of hboot unless you are following proven instructions to a T, or being walked though be a "pro". I hope this helps save some people!
* if you just read all this going DAMN, i already did that, then go here:
http://forum.xda-developers.com/showthread.php?t=842495
Sticky this. In big bolt capital letters. I've seen this happen once already, and just saved another phone from this headache.
More people need to know about the DON'T-FLASH-PC10IMG.ZIP
dyndragon said:
Sticky this. In big bolt capital letters. I've seen this happen once already, and just saved another phone from this headache.
More people need to know about the DON'T-FLASH-PC10IMG.ZIP
Click to expand...
Click to collapse
When u say u saved a phone. Do u mean u stopped someone before they did it, or you mean u have a working fix. Pls post fix if u have one. I will post mine as soon as I confirm it.
Btw- I have seen 5 happen in the last 3 days. As I haven't gave up on any yet, some are worse off then others and only 2 have a possible fix in the am, well a fix I know of.
After I permarooted, I decide to flash a Z ROM. I did, and I didn't care for Sense, so I flashed PC10 and didn't have any issues. Mind you, I didn't flash the OTA at that point either. Phone booted up without an issue, I got the OTA almost immediately, and I permarooted again.
Basically, if you applied the OTA, don't flash PC10 to get stock again.
So does that mean the instructions for how to Un-Root are no good?
KronicAnarchy said:
So does that mean the instructions for how to Un-Root are no good?
Click to expand...
Click to collapse
I unrooted my phone, no problems.
No the instructions to unroot are correct because at the beginning you flash an alternate misc.img to change the main version number. I got stuck the other day because my phone wouldnt boot and i couldn't flash the ota because i had removed google goggles and some other system apps so i tried to downgrade using PC10IMG.zip and it cancelled during installation just as stated in the op and i was somehow able to flash the misc.img through fastboot and reflash with PC10IMG.zip
sethrd said:
After I permarooted, I decide to flash a Z ROM. I did, and I didn't care for Sense, so I flashed PC10 and didn't have any issues. Mind you, I didn't flash the OTA at that point either. Phone booted up without an issue, I got the OTA almost immediately, and I permarooted again.
Basically, if you applied the OTA, don't flash PC10 to get stock again.
Click to expand...
Click to collapse
If you did not flash the stock rom before you flashed the pc10, you got lucky. When it reboots half way though, it does a version check, and the rom version you happened to be running must have been an older base. If your phone is bootable and you flash the pc10 OUT OF ORDER it will lock you down that way, ie locked on sense. If anyone wants to go back to stock, just flash one of the stock w/root roms in recovery or via rom manager... trust me on this, there are more people screwing up there phone because of this then anything, just not posting about it. I've been up all hours of the night, helping differnt people the last few days.
KronicAnarchy said:
So does that mean the instructions for how to Un-Root are no good?
Click to expand...
Click to collapse
No the unroot guide is ok. If you notice, the first thing it has you flash is the stock w/root rom. Like I said if you follow proven instructions to a T, you will be ok. That is if you want to go back to non-root only though. If you just want stock with root, flash a stock with root rom via RECOVERY or ROM MANAGER.
Im not to sure how it all works and i just got up a little bit ago .
but since s-off doesnt check the sign couldnt we unpack and repack pc10img with the hboot with s-off?
fastludeh22 said:
Like I said if you follow proven instructions to a T, you will be ok.
Click to expand...
Click to collapse
Well he's edited his post now, and people have followed his instuctions and bricked their phones.
So just to confirm before I brick mine: The instructions in their current form will not brick my phone, right?
I had s-off when running baconbits. I tried to revert back to stock but couldn't. I then flashed pauls prerooted phone rom and tried to install the stock rom back onto the phone. I seems to have removed the s-off and now displays s-on. I am permanently rooted, but fastboot still shows s-on. Was this caused because I tried to flash the pc10img.zip? Now how do i revert back to stock? I don't have a nandroid backup for the stock rom, just paul's which after a recovery still displays s-on. It doesn't loop, I just can't install anything else on there.
I flashed pc10 and it turned S-ON. But when I booted it up I still had root acess, so it was like a temp root but where I could not write to the system. I took the ko file from the perm root and hex edited it to match the kernal on my phone.. boom rooted again and I was able to flash recovery and do a nand restore
I tested it out again by hbooting pc10.. and I was able to obtain s-off by changing the kernal number in the ko file
Sent from my T-Mobile G2 using XDA App
So let me get this straight, in order to flash pc10 safely we MUST have an existing PreRooted STOCK ROM?
No all you have to do is run hexeditor to change build number then you can flash pc10img
Sent from my T-Mobile G2 using Tapatalk
marc91988 said:
No all you have to do is run hexeditor to change build number then you can flash pc10img
Sent from my T-Mobile G2 using Tapatalk
Click to expand...
Click to collapse
Exactly. If you actually follow the directions in the thread you will be fine. I've done it more than a few times and have not had any problems yet.
I have also updated the instruction on the unroot guide aswell.
I was running the original Sense rom that was loaded via hboot which kept me at s-off. I was able to revert back to stock using the PC10 zip from here http://forum.xda-developers.com/showthread.php?t=831398 At the time I had no clockwork recovery. Was what I unsafe?
Thanks for the piece of mind. I don't want to unroot just yet, I'm running pretty much the stock rom w/ ota and bacon bits anyway, so........ Still it's nice to know that I can get back to stock should I NEED to.
Okay so I did this and I didn't brick my phone...and still have root/s-off
Did an ota update, after I found out there was perm root I perm root g2 s-off, then I went and downloaded clockwork/rom manager
Created a backup of the current g2, and did a wipe
Then hboot to sense ui (still have root). I went into clockwork create another backup. Played around with desire z rom.
After I decided to go back to stock 2.2 performed a restore with clockwork and now I am back to my original g2 stock.
So am I missing something here?
fryrice8850 said:
Okay so I did this and I didn't brick my phone...and still have root/s-off
Did an ota update, after I found out there was perm root I perm root g2 s-off, then I went and downloaded clockwork/rom manager
Created a backup of the current g2, and did a wipe
Then hboot to sense ui (still have root). I went into clockwork create another backup. Played around with desire z rom.
After I decided to go back to stock 2.2 performed a restore with clockwork and now I am back to my original g2 stock.
So am I missing something here?
Click to expand...
Click to collapse
These people didnt nand back before messing around with stuff
Sent from my T-Mobile G2 using XDA App

Three UK Model - Flash to stock?

My Three model comes unlocked but is already behind when it comes to firmware. It also only has the APNs for Three (so I have to manually input for any other SIM I insert) and there's an annoying splash screen.
I'm not very well-read when it comes to flashing HTC devices but am I right in thinking that there is no way to flash stock firmware without S-off and bootloader unlock? One good thing about even the Sony handsets is that you can flash stock firmware without going through hell.
If I'm wrong could someone point me in the right direction. Not the end of the world if I can't 'stockify' but it would be nice
Just flash the stock Rom from Mike in the dev thread.
No need to change firmware. That would take s-off anyway.
backfromthestorm said:
Just flash the stock Rom from Mike in the dev thread.
No need to change firmware. That would take s-off anyway.
Click to expand...
Click to collapse
Does this require boot loader unlocking or a simple flash?
Unlock bootloader.
Flash a recovery through Fastboot -
Fastboot flash recovery recovery.img
Put rom on sd
In recovery backup current rom, then flash custom rom
Hmmm I'd have to have the 'tampered' warning and lose my warranty that way wouldn't I?
Might just live with it for now. Thanks though.
You won't lose warranty no.
backfromthestorm said:
You won't lose warranty no.
Click to expand...
Click to collapse
I thought if you unlocked the bootloader it invalidated the warranty? Or have things changed?
That's a common misconception.
Unless you broke the actual hardware, they are still liable for it
Sent from my HTC One_M8 using XDA Premium 4 mobile app
As long as the issue isn't blatantly caused by unlocking it, there won't be a problem.
Mine have been s-off and unlocked. They just send them back locked and s-on
backfromthestorm said:
You won't lose warranty no.
Click to expand...
Click to collapse
If I flash this stock ROM will it receive OTA updates just like a normal stock phone?
No, though you wouldn't need to the updated custom Rom will be out before the ota is.
Of course you can always go back to stock if you keep your backup.
backfromthestorm said:
No, though you wouldn't need to the updated custom Rom will be out before the ota is.
Of course you can always go back to stock if you keep your backup.
Click to expand...
Click to collapse
I don't want to mess with flashing ROMs other than for this so I'll probably just leave it as it is. Thanks for your help anyway.

[Q] Back To Stock

I have an AT&T M8 with 4.4.3
Its unlocked and rooted, firewater was unsuccessful with this error....****** device patched by HTC, you are out of luck *********.
Is there any way to return to stock without S-Off?? If so could someone please point me in the right direction?
I'm a newbie with htc and very aggravated with this phone.
skullymullins said:
I have an AT&T M8 with 4.4.3
Its unlocked and rooted, firewater was unsuccessful with this error....****** device patched by HTC, you are out of luck *********.
Is there any way to return to stock without S-Off?? If so could someone please point me in the right direction?
I'm a newbie with htc and very aggravated with this phone.
Click to expand...
Click to collapse
Can you provide me with the link that says you need to be S-OFF to get your phone back to stock, where you clearly didn't have to be S-OFF in order to take it away from stock in the first place?
I'm asking this because you are one of many that I've seen recently that comes on here asking the same question, can I go back to stock while I'm still S-ON ? "Should I be S-OFF in order to restore a nandroid backup?" etc...I would really like to know where you guys get this information from?
The only thing that you'll need S-OFF for(when going back to stock) is to fix the tampered flag in the bootloader and to have it show "locked" instead of "relocked" when or if you locked the bootloader.
That being said, going back to stock from where? Did you flash custom ROMs? Or are you only rooted and unlocked?
My phone is stock, but unlocked with root, my main goal is to reload the original recovery, relock and unroot.
I was watching a video on how to use RUU and according to the instructions you had to be S-Off.
Anyone
Sent from my HTC One_M8 using XDA Free mobile app
skullymullins said:
My phone is stock, but unlocked with root, my main goal is to reload the original recovery, relock and unroot.
I was watching a video on how to use RUU and according to the instructions you had to be S-Off.
Click to expand...
Click to collapse
You need S-Off only when you want to remove TAMPERED and RELOCKED flags.
Other than that, you don't need S-OFF
You have AT&T device, AT&T forum is where you'll find more info.
Try this one : http://forum.xda-developers.com/att...-2-23-502-3-bootable-ruu-pc-required-t2860486
Important note :
S-On - you need to relock bootloader first before running it. So read and read the instructions
and there are many more guides on AT&T forum
skullymullins said:
Anyone
Sent from my HTC One_M8 using XDA Free mobile app
Click to expand...
Click to collapse
You could use the AT&T RUU that is available on the AT&T forum.
At&t 2.23.502.3 - 4.4.3 Bootable RUU - No PC required - Mac friendly
Like the OP there said, if you are S-ON you should lock the bootloader first before using the RUU. I think that should take care of most of the other issues you have, like unrooting etc. Make a backup of any personal stuff you have on phone.
Or
Download unsupersu, flash it in custom recovery to unroot device. If you use SuperSU you can also go into settings for SuperSU and use Full Unroot. Reboot phone, can then uninstall SuperSU. Should be unrooted.
Flash back stock recovery for your device.
Relock bootloader - fastboot oem lock
Will this also restore the factory recovery instead of twrp that is on the phone now?
skullymullins said:
Will this also restore the factory recovery instead of twrp that is on the phone now?
Click to expand...
Click to collapse
That's also in that very same thread we linked you to!
Post number 7
Post number 15
But I take it you didn't read at least the first 2 pages...
It'll take you back to stock completely, like the OP said in Post 15.
Just remember to relock your bootloader seeing as you're S-ON.
Thanks for your patience and help,
it worked flawlessly.

s-off, root & custom rom vodafone contract

hi everyone just a couple of questions for you
1. is it possible to get s-off on uk vodafone contract phone?
2.what is the procedure for s-off for this provider locked phone?
3. is there a stock image for me to revert back to on vodafone uk?
i really wanna try different roms with this phone but more worried about warranty and flash counter etc voiding the warranty
help would be extremely appreciated if you need any details of the phone dont hesitate to ask for them, build number etc
1. So long as you're not on Lollipop it should be possible
2. Same as any other phone
3. Yes, using the backups in the backup thread
And there is no flash counter on HTC phones
EddyOS said:
1. So long as you're not on Lollipop it should be possible
2. Same as any other phone
3. Yes, using the backups in the backup thread
And there is no flash counter on HTC phones
Click to expand...
Click to collapse
no problem, so for warranty sake just bring everything back to stock? put s-on back to normal, and yes i did the upgrade to lollipop i take it i will have to revert back to 4.4 if thats even possible now
You can't downgrade unless you're S-OFF. For warranty I wouldn't even put back to S-ON again, but everything else would need to be put back to stock
No problem thank you for your help i will look into doing s-off ? and let you know results
Sent from my HTC One_M8 using XDA Free mobile app
EddyOS said:
1. So long as you're not on Lollipop it should be possible
2. Same as any other phone
3. Yes, using the backups in the backup thread
And there is no flash counter on HTC phones
Click to expand...
Click to collapse
EddyOS said:
You can't downgrade unless you're S-OFF. For warranty I wouldn't even put back to S-ON again, but everything else would need to be put back to stock
Click to expand...
Click to collapse
so unlock bootloader - install custom recovery - then root, so with custom recovery i should be able to do a nandroid backup of my stock image to revert back is that correct? just to confirm im correct lol

ota update problem ! help😔

Rooted my HTC m9 (unlocked the boot loader , flashed a custom twrp recovery, installed supersu through it) and I am still getting ota update. But when I try to install the update ( going from 5.1.1 to marshmallow ) the phone restarts and get into the recovery.
I tried to restore the nandroid I have made since I rooted the phone, and tried to update again, but still didn't work !
Actually the phone is working great but all the solution I tried to get back to stock , and take the ota update didn't work ( even with an RUU , which I may not have found the right one).
Below is a pic of the download mode
Any help will be apreciated
imgur. com/avkCxqW
tinypic. com/r/fe3muf/9
Nb: remove the space between "dot" and "com"
You either need to be at "official" status OR buy s-off.
Sent from my HTC One M9 using Tapatalk
shivadow said:
You either need to be at "official" status OR buy s-off.
Sent from my HTC One M9 using Tapatalk
Click to expand...
Click to collapse
Please what do you mean by "official" status ,and how ?
And also if I buy s-off (using sunshine app) what next ?
Why on earth are you rooting if you don't know anything about it?.
Official means "as it was from factory" the device knows that it isn't as factory.
S-off means you can flash any rom and brick your device even quicker.
Sent from my HTC One M9 using Tapatalk
Well I forgot to say that I am a beginner.
Anyway, how can I get back to official status, I mean if It's still possible.
And what if I flash a custom rom, will I be able to get ota updates ( even unofficial)
superyacine1994 said:
Well I forgot to say that I am a beginner.
Anyway, how can I get back to official status, I mean if It's still possible.
And what if I flash a custom rom, will I be able to get ota updates ( even unofficial)
Click to expand...
Click to collapse
You have to be 100% stock to take an ota. This is a security feature to prevent bricks, which can and have resulted from people trying to take otas when rooted.
There are multiple threads on how to do this. Start here: http://forum.xda-developers.com/one-m9/general/stock-nand-backup-ota-update-collection-t3132698
superyacine1994 said:
Well I forgot to say that I am a beginner.
Anyway, how can I get back to official status, I mean if It's still possible.
And what if I flash a custom rom, will I be able to get ota updates ( even unofficial)
Click to expand...
Click to collapse
Official status is a pita, just go s-off. Its worth the $25 to have a working phone at the end.
Sent from my HTC One M9 using Tapatalk
shivadow said:
Official status is a pita, just go s-off. Its worth the $25 to have a working phone at the end.
Sent from my HTC One M9 using Tapatalk
Click to expand...
Click to collapse
Indeed! I will !
I guess as soon as I go s-off I will be able to flash any ruu therefore be 100% stock right?
iElvis said:
You have to be 100% stock to take an ota. This is a security feature to prevent bricks, which can and have resulted from people trying to take otas when rooted.
There are multiple threads on how to do this. Start here: http://forum.xda-developers.com/one-m9/general/stock-nand-backup-ota-update-collection-t3132698
Click to expand...
Click to collapse
Another thing,
After I have unlocked the boot loader, I did a twrp-backup .
So I don't need to download another one ,right ?
So long as you have the 4gb backup of system then you're golden. You can't do another until its stock stock stock because the partition is now modded!!.
S-off will help against bricks. You must still have the official status to flash a signed official stock rom but s-off isn't counted/seen. These are ruu.EXE
Otherwise yes, any rom except signed official while rooted with s-off. You can install unsigned "offical" stock roms and flash them straight away. No messing about resetting official. These are ruu.ZIP.
Sent from my HTC One M9 using Tapatalk
shivadow said:
S-off will help against bricks.
Click to expand...
Click to collapse
This needs some nuance. Being s-off will prevent you from getting into situations where you can't boot because of some security protocol, but can't fix the problem because you can't boot, for example if you relock in bootloader with a custom recovery but don't have "Allow OEM unlock" ticked in the OS.
But being s-off also opens up many other avenues for brickage that don't exist when s-on. A hard brick can be as simple as flashing a custom splash image for the wrong phone.
shivadow said:
So long as you have the 4gb backup of system then you're golden. You can't do another until its stock stock stock because the partition is now modded!!.
S-off will help against bricks. You must still have the official status to flash a signed official stock rom but s-off isn't counted/seen. These are ruu.EXE
Otherwise yes, any rom except signed official while rooted with s-off. You can install unsigned "offical" stock roms and flash them straight away. No messing about resetting official. These are ruu.ZIP.
Sent from my HTC One M9 using Tapatalk
Click to expand...
Click to collapse
Got you now !
I just restored my twrp backup ( BTW it's 9.8gb not 4gb) it contains a backup of all the partitions.
Now, instead of going s-off and use ruu to get back to stock, is there another way for so ?

Categories

Resources