Can I relock bootloader, and flash completely stock if I need?
Yes but at this moment don't, BC if something goes wrong u have no way of fixing it unless u call oneplus and wait for them to give u a remote session, don't be scared to have ur bootloader unlocked
suzook said:
Can I relock bootloader, and flash completely stock if I need?
Click to expand...
Click to collapse
Someone else will have to verify as my OP6 is still shipping but..
YES, OnePlus 6 should still be able to go complete back to stock as it always has.
The same procedure as the 3, 3T, 5, 5T will likely follow:
if you flash a complete stock rom such as (this is a OP6 stock rom): androidfilehost.com/?fid=674106145207488340
then while booted into fastboot mode: fastboot oem lock
This is a standard procedure for OnePlus devices and I'll test it out once I get mine.
The rom i linked to is the stock rom, an OP moderator linked to it.
And the fastboot command is just a standard command. So unless they decide to screw their main audience this time around, :good:.
---------- Post added at 01:02 AM ---------- Previous post was at 01:00 AM ----------
Bradl79 said:
Yes but at this moment don't, BC if something goes wrong u have no way of fixing it unless u call oneplus and wait for them to give u a remote session, don't be scared to have ur bootloader unlocked
Click to expand...
Click to collapse
Why do you state this?
OP has already shared a link to a stock rom. And the lock/unlock bootloader command is a standard for their devices.
effmsee said:
Someone else will have to verify as my OP6 is still shipping but..
YES, OnePlus 6 should still be able to go complete back to stock as it always has.
The same procedure as the 3, 3T, 5, 5T will likely follow:
if you flash a complete stock rom such as (this is a OP6 stock rom): androidfilehost.com/?fid=674106145207488340
then while booted into fastboot mode: fastboot oem lock
This is a standard procedure for OnePlus devices and I'll test it out once I get mine.
The rom i linked to is the stock rom, an OP moderator linked to it.
And the fastboot command is just a standard command. So unless they decide to screw their main audience this time around, :good:.
---------- Post added at 01:02 AM ---------- Previous post was at 01:00 AM ----------
Why do you state this?
OP has already shared a link to a stock rom. And the lock/unlock bootloader command is a standard for their devices.
Click to expand...
Click to collapse
just wait until u get it
don't believe u can sideload OS anymore, yes we do have a fastboot mode to restore but u will have to have ur bootloader unlocked, if u have ur bootloader locked there is not way to put on OS on there due to twrp is not mountable and u cannot side load, so its not like other OP devices
effmsee said:
Someone else will have to verify as my OP6 is still shipping but..
YES, OnePlus 6 should still be able to go complete back to stock as it always has.
The same procedure as the 3, 3T, 5, 5T will likely follow:
if you flash a complete stock rom such as (this is a OP6 stock rom): androidfilehost.com/?fid=674106145207488340
then while booted into fastboot mode: fastboot oem lock
This is a standard procedure for OnePlus devices and I'll test it out once I get mine.
The rom i linked to is the stock rom, an OP moderator linked to it.
And the fastboot command is just a standard command. So unless they decide to screw their main audience this time around, :good:.
---------- Post added at 01:02 AM ---------- Previous post was at 01:00 AM ----------
Why do you state this?
OP has already shared a link to a stock rom. And the lock/unlock bootloader command is a standard for their devices.
Click to expand...
Click to collapse
Things are missing in recovery. Im hoping they forgot vs take the feature out.
Bradl79 said:
just wait until u get it
don't believe u can sideload OS anymore, yes we do have a fastboot mode to restore but u will have to have ur bootloader unlocked, if u have ur bootloader locked there is not way to put on OS on there due to twrp is not mountable and u cannot side load, so its not like other OP devices
Click to expand...
Click to collapse
Obviously you have to have you bootloader unlocked.
What are you trying to say? I can't follow your sentence structure. Please use proper English structure... or remotely proper...
You're claiming that with the OnePlus 6 you can no longer sideload roms? What??? That would be a HUGE slap in the face to us.
I wouldn't believe what this guy is saying.
I'm not claiming I factually know that the OP6 can be unlocked through that method but it is highly likely it is. As said, I'm still waiting on the OP6. If OnePlus doesn't allow these things, re-locking bootloader and sideloading, they're FU***** all of us over and I'm sure would suffer major backlash from the user base.
---------- Post added at 02:21 AM ---------- Previous post was at 02:20 AM ----------
intruda119 said:
Things are missing in recovery. Im hoping they forgot vs take the feature out.
Click to expand...
Click to collapse
Ah, got it. That sucks. :'( Thanks!
effmsee said:
Obviously you have to have you bootloader unlocked.
What are you trying to say? I can't follow your sentence structure. Please use proper English structure... or remotely proper...
You're claiming that with the OnePlus 6 you can no longer sideload roms? What??? That would be a HUGE slap in the face to us.
I wouldn't believe what this guy is saying.
I'm not claiming I factually know that the OP6 can be unlocked through that method but it is highly likely it is. As said, I'm still waiting on the OP6. If OnePlus doesn't allow these things, re-locking bootloader and sideloading, they're FU***** all of us over and I'm sure would suffer major backlash from the user base.
---------- Post added at 02:21 AM ---------- Previous post was at 02:20 AM ----------
Ah, got it. That sucks. :'( Thanks!
Click to expand...
Click to collapse
if all else fails we do have an unbrick tool, but from what i have read, u can no longer sideload with ur bootloader locked and there is not install from internal storage from stock recovery
I learned the hard way. Soft brick in the first hour of ownership.i thought I really broke something until eventually a few others reported on it. B
Op I would wait
I just relocked my bootloader with no issues. I uninstalled magisk through magisk manager, reboot to completely remove, then factory reset, boot into fastboot and relock. No issues. Note I didn't use twrp. I was still on stock bootloader.
BoboBrazil said:
I just relocked my bootloader with no issues. I uninstalled magisk through magisk manager, reboot to completely remove, then factory reset, boot into fastboot and relock. No issues. Note I didn't use twrp. I was still on stock bootloader.
Click to expand...
Click to collapse
Certain I did something wrong. But I tried the same thing initially and would bootloop to recovery after factory reset. Wasn't a biggie learned about the new a/b system in the process
Somewhat related question:
If you relock the bootloader, does Widevine go back to L1?
One user reported no. Is it really a permanent change of the Widevine status to unlock it?
I might be able to deal with 480p netflix, but if I sell this phone someday it sucks for the next owner.
No worry just try mega unbrick guide used it to relock bootloader and flash stock hydrogen os it can recover your device from even hardbrick I tested it for safety it works like charm so I recommend you that
Can anyone who has unlocked and re-locked their bootloader check their Widevine status in DRM info?
I have relocked because netflix quality was to low on when unlocked. When i relocked i got the drm lvl 1 back so it works
noppoer2 said:
I have relocked because netflix quality was to low on when unlocked. When i relocked i got the drm lvl 1 back so it works
Click to expand...
Click to collapse
What's the procedure to re lock the bootloader and revert to stock recovery along with no root.
I unlocked the boot loader, installed TWRP and Magisk but would like to go back to stock. Any help will be appreciated
kailashnj said:
What's the procedure to re lock the bootloader and revert to stock recovery along with no root.
I unlocked the boot loader, installed TWRP and Magisk but would like to go back to stock. Any help will be appreciated
Click to expand...
Click to collapse
Reinstall your rom ( i believe 5.1.6 ) to get rid of TWRP & root
Factory reset
Then on fastboot " fastboot oem lock"
Data & internal storage will be wiped
Which means post following the steps origins bootloader will be locked and I will not get the warning again right at the start of the phone
All you can do is try but first make a Nandroid just in case this falls through
Hi, I want to lock my bootloader after recently unlocking it on my OP6 to install Oxygen OS as was originally on Hydrogen OS. If I use CMD and type fastboot oem lock, what are the risks of the phone going into a boot loop, and also, does the factory reset revert the phone back to Hydrogen OS? Cheers.
thealexwu said:
Hi, I want to lock my bootloader after recently unlocking it on my OP6 to install Oxygen OS as was originally on Hydrogen OS. If I use CMD and type fastboot oem lock, what are the risks of the phone going into a boot loop, and also, does the factory reset revert the phone back to Hydrogen OS? Cheers.
Click to expand...
Click to collapse
Lock as you unlocked in cmd by typing lock instead of unlock. It will make a wipe, so I recommend make backup before.
Related
Ok so i am going to need a little bit of help here.
I the process of trying a method i found to apply the OTA update i forgot to do a nandroid backup.
I first pushed a recovery i thought was the stock one.
Then i locked the phone
then I pushed another recovery on top of it after the phone was locked.
The last step is preventing me in entering recovery.
Everytime i try to get in it comes back to the bootloader saying:
TAMPERED / RELOCKED / Security Warning.
As you can see, i screwed up.
What i am trying to accomplish though is do manually create a nandroid using ADB.
Now the problem i am having is that the tar command does not seem to preserve the sym links AND user/group.
the tar command i used was
tar -cvhf /sdcar/backup/system.ext4.tar /system
I am pretty trying to do the same thing as CWM recovery but from the command line.
How can i accomplish this?
Thanks a ton
well you cannot flash files with a relocked bootloader, So thats the reason you're having issues pushing recovery, Re-unlock the phone and try again.
And also, Stock recovery does not support nandroid backups. Flash CWM in fastboot, make a nandroid, Flash stock recovery, re-lock bootloader and all will be good.
**TAMPERED**
RELOCKED
Security Warning
Is normal when you have custom software on a locked device. Reverting to stock will clear this up
Oh and next time, Please post in the correct section, This belongs in Q&A.
Flame flame flame flame flame....
sent from a guy living in a van down by the river
azzledazzle said:
well you cannot flash files with a relocked bootloader, So thats the reason you're having issues pushing recovery, Re-unlock the phone and try again.
And also, Stock recovery does not support nandroid backups. Flash CWM in fastboot, make a nandroid, Flash stock recovery, re-lock bootloader and all will be good.
**TAMPERED**
RELOCKED
Security Warning
Is normal when you have custom software on a locked device. Reverting to stock will clear this up
Oh and next time, Please post in the correct section, This belongs in Q&A.
Click to expand...
Click to collapse
I will use the correct section. I promise.
I just thought that Q&A was just general questions about the phone.
Now, I would re-unlock it, but this creates a factory reset and erases everything which is what i am trying to avoid.
I am half screwed though since when i first unlocked it i did a nandroid backup.
So technically, i just need to tar up the /data folder.
Any idea on how to do this in my current state?
Just unlock it again via HTCdev. After it's unlocked download stock recovery. AFter that use the "fastboot flash recovery recovery.img" and then relock it. You will not have security warning. You get security warning after you lock bootloader but recovery is still custom. The newly locked bootloader signature checks recovery and gives you the *Security Warning*. Good luck
Edit: You do not need to erase anything. The only thing that erases all your stuff running an RUU or a different backup. All you need is stock recovery. Also if you don't flash recovery but you unlock bootloader also the security warning will be gone. easy.
shootind5nukes said:
Just unlock it again via HTCdev. After it's unlocked download stock recovery. AFter that use the "fastboot flash recovery recovery.img" and then relock it. You will not have security warning. You get security warning after you lock bootloader but recovery is still custom. The newly locked bootloader signature checks recovery and gives you the *Security Warning*. Good luck
Click to expand...
Click to collapse
I will unlock, and i've done it before. The problem is that unlocking resets to factory defaults meaning everything is erased.
I need to pretty much backup the data folder, then unlock, but without the recovery.
its a bit of a challenge.
But thanks though.
unlocking does not delete anything.
---------- Post added at 10:26 AM ---------- Previous post was at 10:25 AM ----------
fastboot oem get_identifier_token
fastboot flash unlocktoken Unlock_code.bin
Nothing gets erased. I've unlock and relocked my phone 100 times.
shootind5nukes said:
unlocking does not delete anything.
---------- Post added at 10:26 AM ---------- Previous post was at 10:25 AM ----------
fastboot oem get_identifier_token
fastboot flash unlocktoken Unlock_code.bin
Nothing gets erased. I've unlock and relocked my phone 100 times.
Click to expand...
Click to collapse
Pretty sure it does.
BUT, let me try with my phone.
The phone i screwed up is my wife's.
I'll say this a third time.
UNLOCKING YOUR PHONE DOES NOT RESET ANY DATA. IT JUST UNLOCKS BOOTLOADER.
---------- Post added at 10:31 AM ---------- Previous post was at 10:30 AM ----------
PM sent
shootind5nukes said:
I'll say this a third time.
UNLOCKING YOUR PHONE DOES NOT RESET ANY DATA. IT JUST UNLOCKS BOOTLOADER.
Click to expand...
Click to collapse
Alright alright...
Dont want to piss you off.
I appreciate the help. Just gave you 3 thanks.
I really dont want to screw this one up.
if you have a wife, you'll understand. She will chew me alive if i do something stupid (again )
I'll give it try
Im moving this. go look for your thread in the Q and A section...
shootind5nukes said:
I'll say this a third time.
UNLOCKING YOUR PHONE DOES NOT RESET ANY DATA. IT JUST UNLOCKS BOOTLOADER.
---------- Post added at 10:31 AM ---------- Previous post was at 10:30 AM ----------
PM sent
Click to expand...
Click to collapse
Well, it reset my data.
Fortunately everything I care about can be easily restored but if one uses Hasoon's all-in-one kit I can say that your data will be wiped. It won't touch the 'sdcard' data but all apps and settings will have to be restored.
shootind5nukes what method are you using to unlock that doesn't wipe?
So, no response on the magical method to unlock without wiping?
michaelh99 said:
So, no response on the magical method to unlock without wiping?
Click to expand...
Click to collapse
No magical method.
I ended wipping everything.
Sorry
Adrien, I was replying to shootind5nukes who was yelling at you for not understanding his magical method for unlocking the bootloader without wiping the phone. Which he didn't share.
michaelh99 said:
Well, it reset my data.
Fortunately everything I care about can be easily restored but if one uses Hasoon's all-in-one kit I can say that your data will be wiped. It won't touch the 'sdcard' data but all apps and settings will have to be restored.
shootind5nukes what method are you using to unlock that doesn't wipe?
Click to expand...
Click to collapse
For me it also wiped everything
michaelh99 said:
Adrien, I was replying to shootind5nukes who was yelling at you for not understanding his magical method for unlocking the bootloader without wiping the phone. Which he didn't share.
Click to expand...
Click to collapse
I figured, but i should have posted earlier the results of my experiment.
At the end, nothing would work.
I ended up wiping out everything and twice.
The first time, i installed the nandroid and radio and used Titanium backup to reinstall the apps.
Somehow, this method caused some issues and the battery would drain really fast.
I just reinstalled everything but this time by hand and redownloading everything from the market.
Hey guys,
I just got this phone a day ago and wanted to try out the Cataclysm ROM today.
I was following the following guide on how to root the Nexus 5:
androidrootz.com/2013/11/how-to-root-nexus-5-windowsmaclinuxubun.html
I got up to step 9:
9. Connect your Nexus 5 to your computer and transfer "UPDATE-SuperSU-v1.65.zip". This file is located in "RootNexus5" folder you downloaded earlier.
But it didn't allow me to transfer the file to the phone.
I assume it is unrooted, cause it says unlocked and it has an unlocked photo when I boot up my device. But I don't think it was fully rooted?? (I'm assuming because I wasn't able to complete the final steps).
So I decided that I'm just going to unroot it and stick with the stock ROM.
Any thoughts on how I can unroot it? Would it be okay to use Wugfresh's unrooter? Even though I didn't use it to root the phone?
wugfresh.com/nrt/
Please let me know. Thanks!! :good:
since your bootloader is already unlocked, just fastboot flash a custom recovery and then use adb to push the rom you want to your phone.
there are several threads on how to do this.
Zepius said:
since your bootloader is already unlocked, just fastboot flash a custom recovery and then use adb to push the rom you want to your phone.
there are several threads on how to do this.
Click to expand...
Click to collapse
Thanks for the quick reply; I'm looking to revert back to stock and unrooting my phone.
I tried using wpug's tool, but it says ADB device not found... I'm using windows XP for what it's worth. I'm stuck...
perfectbluelion said:
Thanks for the quick reply; I'm looking to revert back to stock and unrooting my phone.
I tried using wpug's tool, but it says ADB device not found... I'm using windows XP for what it's worth. I'm stuck...
Click to expand...
Click to collapse
if you never rooted your phone, its just unlocked bootloader so its still stock.
Zepius said:
if you never rooted your phone, its just unlocked bootloader so its still stock.
Click to expand...
Click to collapse
Thanks Zep.
I'm not even sure if I rooted the phone or not, but I got up to step 9 of the following guide (did not complete step 9)
androidrootz.com/2013/11/how-to-root-nexus-5-windowsmaclinuxubun.html
Is my phone fully rooted?
I'm attaching two photos of how my phone looks when:
1. I hit both volume and the power buttons:
SECURE BOOT - enabled
LOCK STATE - unlocked
2. When I boot up (picture of unlocked lock)
If only my bootloader is unlocked, how do I lock it back? I want to have it back the way it came from Google incase I need to return for warranty purposes.
Thanks a lot! :good:
1) your phone is not rooted if you did not flash supersu.zip which you said you didnt.
2) to lock your bootloader use: fastboot oem lock.
^ there is a return to stock thread on how to do this.
Those pics won't show if you're rooted. By your description I doubt you are. You never flashed supersu.
To lock the bootloader do
fastboot oem lock.
You should follow this guide to unlock and root http://forum.xda-developers.com/showthread.php?p=47025283
---------- Post added at 09:43 AM ---------- Previous post was at 09:39 AM ----------
Darn,I hate that when it happens. Good thing we have him the same answers
Zepius said:
1) your phone is not rooted if you did not flash supersu.zip which you said you didnt.
2) to lock your bootloader use: fastboot oem lock.
^ there is a return to stock thread on how to do this.
Click to expand...
Click to collapse
jd1639 said:
Those pics won't show if you're rooted. By your description I doubt you are. You never flashed supersu.
To lock the bootloader do
fastboot oem lock.
You should follow this guide to unlock and root http://forum.xda-developers.com/showthread.php?p=47025283
---------- Post added at 09:43 AM ---------- Previous post was at 09:39 AM ----------
Darn,I hate that when it happens. Good thing we have him the same answers
Click to expand...
Click to collapse
Thanks gentlemen. Will read up on fastboot oem lock, try it out, and advise on results. :good: Fingers crossed...
If you are getting device not found when you try to use ADB, that means that you either don't have the right drivers installed, or that you are not using a 'good' USB port. Try a different port.
Zepius, jd1639, All:
Is there a guide to doing a fastboot oem lock?
It's not the following thread right:
http://forum.xda-developers.com/showthread.php?t=2513701
Not sure if there's a specific guide for locking the bootloader, most of them is for unrooting (which I don't need, correct?).
Thanks a lot guys!
perfectbluelion said:
Zepius, jd1639, All:
Is there a guide to doing a fastboot oem lock?
It's not the following thread right:
http://forum.xda-developers.com/showthread.php?t=2513701
Not sure if there's a specific guide for locking the bootloader, most of them is for unrooting (which I don't need, correct?).
Thanks a lot guys!
Click to expand...
Click to collapse
its literally typing the command in the command window: fastboot oem lock
perfectbluelion said:
Zepius, jd1639, All:
Is there a guide to doing a fastboot oem lock?
It's not the following thread right:
http://forum.xda-developers.com/showthread.php?t=2513701
Not sure if there's a specific guide for locking the bootloader, most of them is for unrooting (which I don't need, correct?).
Thanks a lot guys!
Click to expand...
Click to collapse
Yes that one... we assume you fastboot flashed recovery so you need to return that too.
If you don't know what you've done, follow the whole guide and fully return to stock.
Otherwise, cherry pick what you need from the guide
-----------------------
Sent via tapatalk.
I do NOT reply to support queries over PM. Please keep support queries to the Q&A section, so that others may benefit
Is there any way to root the Oneplus without unlocking the bootloader and wiping the device?
Just unlock the bootloader and root. You're making it too difficult for yourself, the whole point of the bootloader being locked is to prevent changes being made to the system.
Its like saying, you're going to break your windows to get into your house when you can just unlock the door.
Just unlock the bootloader and flash supersu for root.
stone1269 said:
Is there any way to root the Oneplus without unlocking the bootloader and wiping the device?
Click to expand...
Click to collapse
yes, just run fastboot boot recovery.img and flash the superuser zip there. dont listen to people that say "just unlock bootloader!" because you dont need to and it sets a tamper flag which can be used against you if you try to warranty.
---------- Post added at 05:27 PM ---------- Previous post was at 05:23 PM ----------
zephiK said:
Its like saying, you're going to break your windows to get into your house when you can just unlock the door.
Click to expand...
Click to collapse
thats a terrible analogy. thats like saying "ill bulldoze this whole wall and then ill never need to unlock my door!"
zephiK said:
Just unlock the bootloader and root. You're making it too difficult for yourself, the whole point of the bootloader being locked is to prevent changes being made to the system.
Its like saying, you're going to break your windows to get into your house when you can just unlock the door.
Just unlock the bootloader and flash supersu for root.
Click to expand...
Click to collapse
I want to avoid unlocking the bootloader simply because I have everything set up on the phone the way I like, and do not want to wipe it. I know I should have rooted it before installing anything, but nothing I can do about that now....
The Jack of Clubs said:
yes, just run fastboot boot recovery.img and flash the superuser zip there. dont listen to people that say "just unlock bootloader!" because you dont need to and it sets a tamper flag which can be used against you if you try to warranty.
Click to expand...
Click to collapse
---------- Post added at 05:27 PM ---------- Previous post was at 05:23 PM ----------
Thanks for the suggestion! I will give it a try.
The Jack of Clubs said:
yes, just run fastboot boot recovery.img and flash the superuser zip there. dont listen to people that say "just unlock bootloader!" because you dont need to and it sets a tamper flag which can be used against you if you try to warranty."
Click to expand...
Click to collapse
I'm a bit lost here....
To root the phone with locked bootloader, man has to have an "exploit"...which is not discovered (yet) for OPO.
And now you are saying that the exploit and hence an unlocked bootloader is not needed and we can just push SuperSU into system via adb....
Please elaborate how it's possible?????
RalphLauren said:
I'm a bit lost here....
To root the phone with locked bootloader, man has to have an "exploit"...which is not discovered (yet) for OPO.
And now you are saying that the exploit and hence an unlocked bootloader is not needed and we can just push SuperSU into system via adb....
Please elaborate how it's possible?????
Click to expand...
Click to collapse
What he said. The OPO does not need a "exploit" to root the phone with a locked bootloader because you can unlock it simply by typing a command.
You can't flash SuperSU without having access to a custom recovery such as TWRP/CWR which requires a unlocked bootloader.
zephiK said:
What he said. The OPO does not need a "exploit" to root the phone with a locked bootloader because you can unlock it simply by typing a command.
Click to expand...
Click to collapse
I think you mixing the things up.... I'm NOT talking that a man needs to have an exploit in order to unlock bootloader.
I'm wondering if OPO system (or better to say CM) designed in a such way that it can be indeed rooted without exploit and with still locked bootloader by simply pushing SuperSU.
That what I want to hear from @The Jack of Clubs.
zephiK said:
You can't flash SuperSU without having access to a custom recovery such as TWRP/CWR which requires a unlocked bootloader.
Click to expand...
Click to collapse
Of course you can by simply booting into whatever recovery in adb. I do not need a custom recovery and never install it.
RalphLauren said:
I think you mixing the things up.... I'm NOT talking that a man needs to have an exploit in order to unlock bootloader.
I'm wondering if OPO system (or better to say CM) designed in a such way that it can be indeed rooted without exploit and with still locked bootloader by simply pushing SuperSU.
That what I want to hear from @The Jack of Clubs.
Of course you can by simply booting into whatever recovery in adb. I do not need a custom recovery and never install it.
Click to expand...
Click to collapse
No you cannot root the phone without a exploit with a locked bootloader. If that was the case, then the OPO would not be Google certified for Google Apps.
Still need a unlocked bootloader.
zephiK said:
No you cannot root the phone without a exploit with a locked bootloader. If that was the case, then the OPO would not be Google certified for Google Apps.
Still need a unlocked bootloader.
Click to expand...
Click to collapse
That's exactly what I was reading and thinking for years.
But somehow, @The Jack of Clubs got probably a different idea (referring to his post #3 : "yes, just run fastboot boot recovery.img and flash the superuser zip there. dont listen to people that say "just unlock bootloader!" because you dont need to and it sets a tamper flag which can be used against you if you try to warranty.")
That's why I got so exited and anxious to hear some explanation and elaboration from him!
You do not need to unlock the bootloader to root. The locked bootloader only protects the kernel and recovery partitions. Do not run "fastboot oem unlock" and do not run "fastboot flash recovery recovery.img". Instead just run "fastboot boot recovery.img" and flash the supersu zip from there. I've done this already. I know because I'm writing this on my rooted and bootloader locked oneplus.
Sent from my One using XDA Premium 4 mobile app
The Jack of Clubs said:
You do not need to unlock the bootloader to root. The locked bootloader only protects the kernel and recovery partitions. Do not run "fastboot oem unlock" and do not run "fastboot flash recovery recovery.img". Instead just run "fastboot boot recovery.img" and flash the supersu zip from there. I've done this already. I know because I'm writing this on my rooted and bootloader locked oneplus.
Sent from my One using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Thank you very much for some enlightening
I know about the recovery trick, always was doing this way and never bother with the custom one.
But the information about the rooting in a such way comes to the big surprise!
Well in this case I just hope it's not a flaw in CM build and it will stay this way and won't be fixed in next OTAs
The Jack of Clubs said:
You do not need to unlock the bootloader to root. The locked bootloader only protects the kernel and recovery partitions. Do not run "fastboot oem unlock" and do not run "fastboot flash recovery recovery.img". Instead just run "fastboot boot recovery.img" and flash the supersu zip from there. I've done this already. I know because I'm writing this on my rooted and bootloader locked oneplus.
Sent from my One using XDA Premium 4 mobile app
Click to expand...
Click to collapse
I did this... It works. Installed SuperSU using this method, I"m running Titanium Backup Pro, which requires root.
having read and write access in an alternate environment and being able to load a kernel in untrusted space kind of negates the point of the locked bootloader. which is why on something like a nexus 5, you have to unlock to root. its a security measure to block alternative access and destroying data when tampered. the international/cyanogenmod version of the phone may be running a different version of the bootloader that is on the chinese/coloros phone. you do see a cyanogenmod logo when booting into fastboot. so cyanogen may have an alternative fastboot that gives you access like this so you can mod you phone.
as far as root goes, theres two parts, the su binary which has to be copied to the system partition, and the app that gives root permissions to apps (a sudo app). you can install supersu from the playstore https://play.google.com/store/apps/details?id=eu.chainfire.supersu&hl=en but it doesnt do anything without the su binary. so when you are in recovery, which gives you full write access to the system partition, you flash the superuser zip, which copies the su binary to the system partition.
The Jack of Clubs said:
yes, just run fastboot boot recovery.img and flash the superuser zip there. dont listen to people that say "just unlock bootloader!" because you dont need to and it sets a tamper flag which can be used against you if you try to warranty.
Click to expand...
Click to collapse
I can confirm that this method definitely works. My Oneplus is rooted, I never had to unlock the bootloader and my data is safe. Thank you!
I really think that this thread has to go to the General from Q&A and has become sticky.
Also these findings has to be communicated to @Chromium in order to enhance his Guide
This method works, I can confirm also.
Fastboot boot recovery.img
then install the su.zip file
MAKE SURE YOU BACKUP WHILE YOU ARE IN TWRP!!
The Jack of Clubs said:
You do not need to unlock the bootloader to root. The locked bootloader only protects the kernel and recovery partitions. Do not run "fastboot oem unlock" and do not run "fastboot flash recovery recovery.img". Instead just run "fastboot boot recovery.img" and flash the supersu zip from there. I've done this already. I know because I'm writing this on my rooted and bootloader locked oneplus.
Sent from my One using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Works perfectly. Thanks!
Can you explain little more for a dummie @The Jack of Clubs
Thanks
Isn't that we are able to lock the bootloader on OPO after we unlocked it ?
Code:
Mi4c Flash TWRP‘s recovery and CM’s ROW without unlock BL
How:
1. From the high version down to a low version with root permission.
rom: libra_images_6.1.7_20151221.0000.11_5.1_cn
2. We can get root permission at the vertion of libra-6.1.7
a)So We can use dd command.
b)And the version can use fastboot command.
I tested it. It was ok.
Steps:
一.Prepare
1. Download miflash
bigota。d.miui。com/tools/MiFlash20150601_win10.exe
2.Download libra_images_6.1.7
bigota。d.miui。com/6.1.7/libra_images_6.1.7_20151221.0000.11_5.1_cn_b09dac70a0.tgz
3.Download recovery
www。teamsuperluminal。org/recovery
二.TODO
1. Goto 9008 : adb reboot edl
2. To flash libra_6.1.7 with miflash tool
3. Reboot; adb push recovery.img /storage/emulated/legacy/
4. 130|[email protected]:/ $ su
5. 130|[email protected]:/ # dd if=/storage/emulated/legacy/recovery.img of=/dev/block/bootdevice/by-name/recovery
6. Enjoy yourself.
BY Eismog
Thanks qimuzhi!
Is it recommended to backup the IMEI / efs before replacing the recovery?
If so, can you point to (or add) relevant instructions?
Thanks!
I have no idea what this is about. Is this a way to install TWRP on a rooted mi4c by dd even though bootloader is locked? Doesn't this work only when bootloader is unlocked?
What does qimuzhi want to tell us??
qtotter said:
What does qimuzhi want to tell us??
Click to expand...
Click to collapse
Basically, you can roll back to an older developer version with an unlocked bootloader and then install TWRP.
This is a complicated way for anyone with a working locked bootloader Mi4c to downgrade the rom and flash TWRP:
You need to reboot to EDL ( Emergency DownLoad) mode, you can only do this from adb with working phone
Then flash an old unlocked rom with MIflash Tool (not sure this work with locked BL)
Then boot the phone, gain su right, and flash recovery whit dd command
You can save time after flashing the rom with unlocked bootloader, simply shut down the phone and boot in fastboot before the rom inizialization
With an unlocked phone you can simply push recovery from fastboot with " fastboot flash recovery recovery.img" command then boot into recovery
I see. It was known that you can go back to unlocked bootloader by flashing the stable 7.0.16.0 over the latest locked dev ROM, but this is a way to roll back to an older dev ROM with unlocked bootloader from the latest dev ROM as long as it's working (not boot-looping or softbricked.)
Is my understanding correct?
---------- Post added at 08:04 AM ---------- Previous post was at 07:41 AM ----------
ice-it said:
This is a complicated way for anyone with a working locked bootloader Mi4c to downgrade the rom and flash TWRP:
Click to expand...
Click to collapse
So, it doesn't have to be dev ROM 6.1.7, and you can also use stable 7.0.16.0 ROM instead?
qtotter said:
I see. It was known that you can go back to unlocked bootloader by flashing the stable 7.0.16.0 over the latest locked dev ROM, but this is a way to roll back to an older dev ROM with unlocked bootloader from the latest dev ROM as long as it's working (not boot-looping or softbricked.)
Is my understanding correct?
---------- Post added at 08:04 AM ---------- Previous post was at 07:41 AM ----------
So, it doesn't have to be dev ROM 6.1.7, and you can also use stable 7.0.16.0 ROM instead?
Click to expand...
Click to collapse
I think the stable build is the only possible to use from updater app...
He is using dev rom because he need su right to flash recovery in his way...
Itamar01 said:
Is it recommended to backup the IMEI / efs before replacing the recovery?
Click to expand...
Click to collapse
The recovery partition is totally different from the area where efs is stored... You also asked the same question at miui.com, and someone already answered...
http://forum.xda-developers.com/android/apps-games/app-partitions-backup-t3003599
---------- Post added at 09:25 AM ---------- Previous post was at 08:32 AM ----------
ice-it said:
I think the stable build is the only possible to use from updater app...
Click to expand...
Click to collapse
There are two kinds of ROM formats. One is recovery compatible ROM which you can flash from recovery or from updater app. You need to use full ROMs, not incremental ROMs (patch files) to switch between ROMs.
The other is what they call fastboot ROM which you can flash from bootloader or from miflash. Basically, fastboot ROMs are simply a zipped file containing all the partition images and scripts. miflash simply extracts images from a zipped file and automatically flashes the images in order. You can do it manually, using the bat or sh scripts in the same zipped file.
ice-it said:
He is using dev rom because he need su right to flash recovery in his way...
Click to expand...
Click to collapse
I think the point here is you can roll back to older ROMs using edl mode. Obviously, bootloader ignores the lock/unlock flag or ROM versions in edl mode at the moment until Xiaomi fixes this hole. (I suppose Xiaomi will disable edl mode soon...)
Once you are back on unlocked ROMs, I don't think you need su just for flashing recovery. You can simply go to bootloader and flash recovery by 'fastboot flash recovery recovery.img', can't you?
qtotter said:
There are two kinds of ROM formats. One is recovery compatible ROM which you can flash from recovery or from updater app. The other is what they call fastboot ROM which you can flash from bootloader or from miflash.
Click to expand...
Click to collapse
yeah sure, i was not clear before, i mean you cant roll back from updater app with an old dev rom, but you can move to stable and this will unlock your bootloader
fastboot version is useless because the locked bootloader
qtotter said:
I think the point here is you can roll back to older ROMs using edl mode. Obviously, bootloader ignores the lock/unlock flag or ROM versions in edl mode at the moment until Xiaomi fixes this hole. (I suppose Xiaomi will disable edl mode soon...)
Once you are back on unlocked ROMs, I don't think you need su just for flashing recovery. You can simply go to bootloader and flash recovery by 'fastboot flash recovery recovery.img', can't you?
Click to expand...
Click to collapse
I hope EDL will ignore the locked bl, but i cant verify with mi4c, in the past this worked with other manufacturer
like i said in a post earlier, if your phone is working there's no need to follow the procedure written by op, just flash stable through updater app and recovery from fastboot like you said
if they disable EDL mode then they could have trouble repairing phone in less than an hour like they do in china
ice-it said:
fastboot version is useless because the locked bootloader
Click to expand...
Click to collapse
No, it's opposite. Fastboot ROMs are useful because it was found that you can flash any fastboot ROMs locked or unlocked in edl mode at the moment!
Again, as you said, this method only works on a working phone. Not a savior for those who got their phones bootlooped...
---------- Post added at 10:10 AM ---------- Previous post was at 10:00 AM ----------
ice-it said:
like i said in a post earlier, if your phone is working there's no need to follow the procedure written by op, just flash stable through updater app and recovery from fastboot like you said
Click to expand...
Click to collapse
I saw some people got bootloop while switching from dev ROM to stable 7.0.16.0 by updater app in order to regain unlocked bootloader. This method seems safer to me...
Partitions Backup & Restore
qtotter said:
The recovery partition is totally different from the area where efs is stored... You also asked the same question at miui.com, and someone already answered...
http://forum.xda-developers.com/android/apps-games/app-partitions-backup-t3003599
Click to expand...
Click to collapse
Thanks for the link! Partitions Backup & Restore looks like a very useful app!
BTW, I managed to run TWRP from fastboot and make a backup of the system but it did not have the option to backup the EFS and the Modems
Itamar01 said:
Thanks for the link! Partitions Backup & Restore looks like a very useful app!
BTW, I managed to run TWRP from fastboot and make a backup of the system but it did not have the option to backup the EFS and the Modems
Click to expand...
Click to collapse
TWRP does not always come with efs backup option. It's dev's choice whether it's included or not. The method is all the same as Partitions Backup & Restore, anyway.
qtotter said:
I saw some people got bootloop while switching from dev ROM to stable 7.0.16.0 by updater app in order to regain unlocked bootloader. This method seems safer to me...
Click to expand...
Click to collapse
Maybe it's because the rom version? I know people who use the 7.1.6.0 to roll back...
If it's working could be safer, we need someone who can try and report back
ice-it said:
Maybe it's because the rom version? I know people who use the 7.1.6.0 to roll back...
If it's working could be safer, we need someone who can try and report back
Click to expand...
Click to collapse
True. Personally, I'd stay away from any ROMs with locked bootloader, and only use fastboot to flash images. Flashing ROMs including bootloader (locked or unlocked) via recovery or updater app seems kinda risky to me.
It looks like too many people who don't know what they're doing are playing with ROMs and bricking their Xiaomi phones. There are guides introducing flashing dev ROMs only for rooting. It's rather shocking...
qtotter said:
It looks like too many people who don't know what they're doing are playing with ROMs and bricking their Xiaomi phones. There are guides introducing flashing dev ROMs only for rooting. It's rather shocking...
Click to expand...
Click to collapse
Yeah I know, people actually don't know what they're doing and why, they read but they can't understand what's written, and take all for absolute truth...
Then they open a post here and there, crying and complaining
I have my mi4c locked. There is any method to put the device in EDL mode? I only can put him in fastboot and I can't run adb commands.
n1k3z0n3 said:
I have my mi4c locked. There is any method to put the device in EDL mode? I only can put him in fastboot and I can't run adb commands.
Click to expand...
Click to collapse
Hello and welcome to XDA! ( I'm Fede91 from en.miui )
Sorry, but it seems that adb is the only way, I've searched the net for days but every method I tried doesn't work...
I think we need to tamper with the hardware to put the phone in edl...
ice-it said:
Hello and welcome to XDA! ( I'm Fede91 from en.miui )
Sorry, but it seems that adb is the only way, I've searched the net for days but every method I tried doesn't work...
I think we need to tamper with the hardware to put the phone in edl...
Click to expand...
Click to collapse
Hi Fede91 .
Yeah I did the same without any result :S. This is frustating . I allready created another account and I'm trying to get to diamond to see if I get an unlock code. I'm tired of waiting for another solution
Can you install a custom rom after doing this?
//EDIT:
Well this was to easy, I started out on 7.1.6.0 Global Stable (locked Bootlader), then I just flashed the 7.0.16.0 Global Stable, installed twrp via fastboot, then did "/fastboot oem unlock" which worked (don't know if it was necessary) and after all that installed sMIUI after doing a full wipe. sMIUI up and running!
二.TODO
1. Goto 9008 : adb reboot edl
2. To flash libra_6.1.7 with miflash tool
3. Reboot; adb push recovery.img /storage/emulated/legacy/
4. 130|[email protected]:/ $ su
5. 130|[email protected]:/ # dd if=/storage/emulated/legacy/recovery.img of=/dev/block/bootdevice/by-name/recovery
6. Enjoy yourself.
Can someone provide a step by step tutorial for this?
I wanted to switch to Lineage with MicroG so I unlocked my bootloader(was on Open beta 3), flashed Lineage recovery and tried out Lineage. Somehow being unsatisfied, I wanted to move back to stock and found the Android 10 fastboot rom and instructions from this thread I am back on stock now. However my bootloader is still unlocked. I tried to lock it using fastboot OEM lock but then I ended up not able to boot at all. Has anyone managed to relock bootloader and can you share the way to do it?
yeshwanthvshenoy said:
I wanted to switch to Lineage with MicroG so I unlocked my bootloader(was on Open beta 3), flashed Lineage recovery and tried out Lineage. Somehow being unsatisfied, I wanted to move back to stock and found the Android 10 fastboot rom and instructions from this thread I am back on stock now. However my bootloader is still unlocked. I tried to lock it using fastboot OEM lock but then I ended up not able to boot at all. Has anyone managed to relock bootloader and can you share the way to do it?
Click to expand...
Click to collapse
Why do you want to lock your bootloader?
There are many reasons for unlocking but I do not see any for "re-locking" the bootloader
You sure you have no modifications applied at all? As soon as the boot / system partition is being detected as tampered the device won't boot. I can imagine there is some information on persist whichmight be used for comparison and as you are using a file to go back to Android 10 from XDA it might throw this error? Just guessing though
TheSSJ said:
You sure you have no modifications applied at all? As soon as the boot / system partition is being detected as tampered the device won't boot. I can imagine there is some information on persist whichmight be used for comparison and as you are using a file to go back to Android 10 from XDA it might throw this error? Just guessing though
Click to expand...
Click to collapse
I am not sure what exactly is causing this. This is why I created this thread to see if someone who has locked it again can reply or something or I can get some hints from someone.
It_ler said:
Why do you want to lock your bootloader?
There are many reasons for unlocking but I do not see any for "re-locking" the bootloader
Click to expand...
Click to collapse
People have preferences. Whilst for you it may not seem valid or no reasons, I do have bro.