There seems to be guides for how to unlock and root the oneplus 3 but no real way that explains how to lock the bootloader again. I just did and will these sets of instructions. I was nervous about doing it since I read a lot about how some people had issues. I did it this way and had no issue. Also, my thoughts were confirmed ahead of time by a pots I found by nightfox7. So here it is laid out.
This is assuming your on a custom rom and/or rooted.
1. download latest oxygenos full rom (full stock rom)
2. flash via TWRP (this shoud replace TWRP with stock recovery)
3. If stock recovery is not replaced be sure to flash it from the bootloader
4. Go ahead and load the full stock rom again vis adb sideload in the stock recovery
4. boot your phone and be sure that your phone is set to usb debugging.
5. boot into bootloader and lock bootloader via the following command
fastboot oem lock
It worked for me. But I'm not responsible if you have problems
GCbard said:
There seems to be guides for how to unlock and root the oneplus 3 but no real way that explains how to lock the bootloader again. I just did and will these sets of instructions. I was nervous about doing it since I read a lot about how some people had issues. I did it this way and had no issue. Also, my thoughts were confirmed ahead of time by a pots I found by nightfox7. So here it is laid out.
This is assuming your on a custom rom and/or rooted.
1. download latest oxygenos full rom (full stock rom)
2. flash via TWRP (this shoud replace TWRP with stock recovery)
3. If stock recovery is not replaced be sure to flash it from the bootloader
4. Go ahead and load the full stock rom again vis adb sideload in the stock recovery
4. boot your phone and be sure that your phone is set to usb debugging.
5. boot into bootloader and lock bootloader via the following command
fastboot oem lock
It worked for me.
Click to expand...
Click to collapse
Thanks, it may be usefull. But are you sure you have to be on stock rom ?
Lowxorx said:
Thanks, it may be usefull. But are you sure you have to be on stock rom ?
Click to expand...
Click to collapse
You can relock without being on stock ROM, but this will brick your phone
2x4 said:
You can relock without being on stock ROM, but this will brick your phone
Click to expand...
Click to collapse
Okay thanks for your answer [emoji6]
Envoyé de mon ONEPLUS A3003 en utilisant Tapatalk
I'm in the process of returning my op3, I'm on 3.2.6 I think i have stock recovery because my twrp got overridden by a stock one that asks to choose language and has those bubbles as a background, that's stock right?
And will locking bootloader wipe internal storage?
After relocking we go to settings and untick OEM unlock?
xAD3r1ty said:
I'm in the process of returning my op3, I'm on 3.2.6 I think i have stock recovery because my twrp got overridden by a stock one that asks to choose language and has those bubbles as a background, that's stock right?
And will locking bootloader wipe internal storage?
After relocking we go to settings and untick OEM unlock?
Click to expand...
Click to collapse
I think it's stock recovery.
Locking bootloader will erase userdata.
I don't know if you have to uncheck the option after locking your bootloader.
Envoyé de mon ONEPLUS A3003 en utilisant Tapatalk
@GCbard
hello, how to lock the bootloader on cutom rom, i don't want to be on Stock OOS 9.0.6.
i have flashed HAVOC Q/LOS Q & i want to lock bootloader, how to do that? please support.
rohan164 said:
@GCbard
hello, how to lock the bootloader on cutom rom, i don't want to be on Stock OOS 9.0.6.
i have flashed HAVOC Q/LOS Q & i want to lock bootloader, how to do that? please support.
Click to expand...
Click to collapse
It is not a good practice to lock the bootloader while on a custom ROM. If you face any issues in future, the first requirement to sort out those issues would be an unlocked bootloader. You will be stuck with a locked bootloader.
The forums are full of threads/posts of people on custom ROMs asking how to unlock or bypass the unlocking.
Related
I need to understand how to update to the new Stock merged partition. Have been reading general advice in various threads that we need to flash new China developer rom. Can someone elaborate regarding how to do this and where to get this rom? Do we need to re-root? Do we need to reflash recovery?
I see that many new MM roms are using this new Stock partition like Matoxxi's newest RR rom. So want to know. Detailed help is highly appreciated... Thanks...
+1
I too would like to see a proper procedure..
This is what I personally did. Was on extended partition. With TWRP as recovery.
1) Flash the cwm r11( or any working cwm) recovery. Needed to flash the repartition zip!! Don't use TWRP. Did this once and had a dead phone. Reboot to recovery. You'll be on CWM.
2) Flash the back to stock partition zip. Choose the one with "el pierro verde" in it.
3) Flash TWRP recovery. Boot to recovery.
4) Flash the 5/12/17 miui zip. This is the ROM which merges the partitions. At this point the partitions are not merged yet!
4.1) Boot the phone up. Reboot to recovery
5) Repeat step 4. Now the partitions are merged.
6) Flash any ROM that you desire.
Of you are on stock partition with TWRP skip steps 1-3.
Good luck.
If you are on MIUI ROM, install 5.12.17 first to merge partitions and then 6.2.4 via Updater app. Xiaomi.eu version is tuned for europe/outside china, Google Apps are included in rom.
https://www.androidfilehost.com/?fid=24369303960690691
https://www.androidfilehost.com/?fid=24415232478676696
Or you can just MiFlash 6.2.4 chinese developer rom factory image from en.miui.com.
Thanks for the details. I did try this out, am on original stock partition... Flashed 5.12.17, two times as per step 4. Rebooted but the partition remains resolute at old stock and does not merge. Am using twrp 2.8.7. Tried this twice, no success... Need advice... Thanks
The only quick way to setup the new partition for now is to fastboot flash the Chinese Dev ROM, as you yourself already stated. You can flash it by fastboot flashing it using Mi PCSuite and choosing the Beta ROM.
On my experience, after the flash I got my bootloader locked ("fastboot oem device-info" resulted in Device unlocked = false), but I can simply unlock it through fastboot without any problem.
From that point, you can easily flash any custom ROM.
Or even MIUI V6, with manual, per partition fastboot flash rather than using MiFlash/Mi PCSuite because of different partition layout; V6 and lower got two boot, modem and system partitions for TDB, while the new has only one.
anshude1 said:
Thanks for the details. I did try this out, am on original stock partition... Flashed 5.12.17, two times as per step 4. Rebooted but the partition remains resolute at old stock and does not merge. Am using twrp 2.8.7. Tried this twice, no success... Need advice... Thanks
Click to expand...
Click to collapse
Can you boot the phone after the first flashing? Than reboot to recovery and try step 4 again.
Have a look to
http://en.miui.com/thread-209941-1-1.html
there you can find a zip (cancro_merge_partition(2).zip) and the guideline how to use. For me it worked fine.
It does the repartitioning through fastboot by executing 1 shell script. Afterwards you might want to update your recovery rom to an English version.
anshude1 said:
Thanks for the details. I did try this out, am on original stock partition... Flashed 5.12.17, two times as per step 4. Rebooted but the partition remains resolute at old stock and does not merge. Am using twrp 2.8.7. Tried this twice, no success... Need advice... Thanks
Click to expand...
Click to collapse
Im using Pallmali method to flash, however 1st i try to repeat flash on step 4, it didnt work, then i download MIUI china dev 6.2.4 and flash, wait for a while and it is updated to MIUI 7 MM with merged partition.
anshude1 said:
Thanks for the details. I did try this out, am on original stock partition... Flashed 5.12.17, two times as per step 4. Rebooted but the partition remains resolute at old stock and does not merge. Am using twrp 2.8.7. Tried this twice, no success... Need advice... Thanks
Click to expand...
Click to collapse
I believe you have to use default Mi Recovery. One time flash of 5.12.17 was enough on my Mi4.
ksloh1 said:
Im using Pallmali method to flash, however 1st i try to repeat flash on step 4, it didnt work, then i download MIUI china dev 6.2.4 and flash, wait for a while and it is updated to MIUI 7 MM with merged partition.
Click to expand...
Click to collapse
It got auto updated? So did you flash stock recovery? Or used twrp
I downloaded 6.2.4 into my phone and then choose the file to update from miui itself, and it will reboot to twrp recovery and install. After fully install and reboot. Only then it will have merged partition and MM miui. And back to stock recovery automatically.
I just fastboot 6.2.4 rom successfully... Now will flash twrp...
And made my first big mistake going in for 6.2.4 beta... It has locked bootloader and a load of Chinese **** you can't make sense of and have to forcefully bear it. Please can anyone help me to unlock the bootloader without begging to the ****ty miui folks?
anshude1 said:
I just fastboot 6.2.4 rom successfully... Now will flash twrp...
And made my first big mistake going in for 6.2.4 beta... It has locked bootloader and a load of Chinese **** you can't make sense of and have to forcefully bear it. Please can anyone help me to unlock the bootloader without begging to the ****ty miui folks?
Click to expand...
Click to collapse
First of all, if you planned to stay on MIUI MM, you don't have any options than requesting an unlock permission to Xiaomi.
If you just want the merged partition and prepared to flash any custom ROM or MIUI V6, enter fastboot then send this command:
Code:
fastboot oem unlock
The reason is that when you unlocks the bootloader through fastboot, it automatically wipes out your phone. IDK why, but possibly inherent to Android's design for security reasons.
rxl.noir said:
First of all, if you planned to stay on MIUI MM, you don't have any options than requesting an unlock permission to Xiaomi.
If you just want the merged partition and prepared to flash any custom ROM or MIUI V6, enter fastboot then send this command:
Code:
fastboot oem unlock
The reason is that when you unlocks the bootloader through fastboot, it automatically wipes out your phone. IDK why, but possibly inherent to Android's design for security reasons.
Click to expand...
Click to collapse
I tried this out, the phone got all wiped but the OEM unlocking button does not work still. So how would I know if the bootloader is unlocked?
anshude1 said:
I tried this out, the phone got all wiped but the OEM unlocking button does not work still. So how would I know if the bootloader is unlocked?
Click to expand...
Click to collapse
OEM Unlocking button? You meant on the Developer Options? That button is currently useless with no function at all. If you want to ascertain if your bootloader is unlocked or not, try sending
Code:
fastboot oem device-info
via fastboot. If the "Device unlocked" comes out as true, then your bootloader is already unlocked.
Ooooor just try to flash any custom recovery/ROM. If it works, then your bootloader is already unlocked.
rxl.noir said:
OEM Unlocking button? You meant on the Developer Options? That button is currently useless with no function at all. If you want to ascertain if your bootloader is unlocked or not, try sending
Code:
fastboot oem device-info
via fastboot. If the "Device unlocked" comes out as true, then your bootloader is already unlocked.
Ooooor just try to flash any custom recovery/ROM. If it works, then your bootloader is already unlocked.
Click to expand...
Click to collapse
Great, big thanks to you... It worked. Device unlocked is True
Funnily it also quoted device tampered is True :laugh:
anshude1 said:
Great, big thanks to you... It worked. Device unlocked is True
Funnily it also quoted device tampered is True :laugh:
Click to expand...
Click to collapse
Yeah, it might be set to true once you had flashed another unsigned image to the eMMC (or when you disconnect the battery, IDK), probably for the warranty checks :q.
knoxwalles said:
Have a look to
http://en.miui.com/thread-209941-1-1.html
there you can find a zip (cancro_merge_partition(2).zip) and the guideline how to use. For me it worked fine.
It does the repartitioning through fastboot by executing 1 shell script. Afterwards you might want to update your recovery rom to an English version.
Click to expand...
Click to collapse
Worked for me
Thank you very much.
Download the latest FW files from from http://downloads.oneplus.net/oneplus-5/oneplus_5_oxygenos_4.5.8/
Install TWRP and Magisk if you don't have them yet.
Magisk should allow you to slide "OEM unlocking" to "enabled" in developer settings (THIS IS IMPORTANT)
Reboot to fastboot
Flash stock recovery via fastboot.
Run locking via fastboot flashing lock command
Allow it to reboot and upon start up it will say device corrupted (THIS IS NORMAL)
Boot to recovery via the warning start screen.
Once in recovery, sideload latest FW.
Profit.
https://www.thecustomdroid.com/restore-oneplus-5-stock-firmware/
krystyuc said:
https://www.thecustomdroid.com/restore-oneplus-5-stock-firmware/
Click to expand...
Click to collapse
I'm coming from Motorola/Lenovo and I cannot imagine that it is so simple to unlock and relock the bootloader. When you unlock the bootloader on Moto phones you void your warranty. I am so scared from my experience with Motorola that I haven't tried it yet for my OP5.
Can someone please give me some reassurance?
lollyjay said:
I'm coming from Motorola/Lenovo and I cannot imagine that it is so simple to unlock and relock the bootloader. When you unlock the bootloader on Moto phones you void your warranty. I am so scared from my experience with Motorola that I haven't tried it yet for my OP5.
Can someone please give me some reassurance?
Click to expand...
Click to collapse
Yes it's that easy. Done it a few times.
lollyjay said:
I'm coming from Motorola/Lenovo and I cannot imagine that it is so simple to unlock and relock the bootloader. When you unlock the bootloader on Moto phones you void your warranty. I am so scared from my experience with Motorola that I haven't tried it yet for my OP5.
Can someone please give me some reassurance?
Click to expand...
Click to collapse
I can relate to that. I have personally owned two Moto E devices along with the OnePlus One and OnePlus 5, and I can assure that it's way too easy with the latter. I have had really bad experience with Moto, be it updates, unlocking, or downgrading. OnePlus is like a second-Nexus to me, when it comes to such stuff. :good:
deathst said:
Download the latest FW files from from http://downloads.oneplus.net/oneplus-5/oneplus_5_oxygenos_4.5.8/
Install TWRP and Magisk if you don't have them yet.
Magisk should allow you to slide "OEM unlocking" to "enabled" in developer settings (THIS IS IMPORTANT)
Reboot to fastboot
Flash stock recovery via fastboot.
Run locking via fastboot flashing lock command
Allow it to reboot and upon start up it will say device corrupted (THIS IS NORMAL)
Boot to recovery via the warning start screen.
Once in recovery, sideload latest FW.
Profit.
Click to expand...
Click to collapse
Thanks for sharing mate.
I`ve alredy rooted with SuperSu and TWRP installed. How do I flash Magisk over SuperSu ?
And I`ve tried to flash latest FW (OOS 4.5.10 Full Zip) with TWRP, but whenever I try to reboot it always says " No OS Installed .......".
I`ve tried several times, but every time it remains the same.
I totally new to OP devices. It would be very helpful, if you share how to revert back to stock OOS and lock the bootloader.
deathst said:
Download the latest FW files from from http://downloads.oneplus.net/oneplus-5/oneplus_5_oxygenos_4.5.8/
Install TWRP and Magisk if you don't have them yet.
Magisk should allow you to slide "OEM unlocking" to "enabled" in developer settings (THIS IS IMPORTANT)
Reboot to fastboot
Flash stock recovery via fastboot.
Run locking via fastboot flashing lock command
Allow it to reboot and upon start up it will say device corrupted (THIS IS NORMAL)
Boot to recovery via the warning start screen.
Once in recovery, sideload latest FW.
Profit.
Click to expand...
Click to collapse
It will be good if you can't post exact commands needed to flash stock recovery, relook, etc.
here in this video u can see in detail how to lock bootloader. hope this help
https://www.youtube.com/watch?v=CQYCSdDUdAU
adb sideload fails
deathst said:
Install TWRP and Magisk if you don't have them yet.
Magisk should allow you to slide "OEM unlocking" to "enabled" in developer settings (THIS IS IMPORTANT)
Reboot to fastboot
Flash stock recovery via fastboot.
Run locking via fastboot flashing lock command
Allow it to reboot and upon start up it will say device corrupted (THIS IS NORMAL)
Boot to recovery via the warning start screen.
Once in recovery, sideload latest FW.
Profit.
Click to expand...
Click to collapse
I have followed the instructions but the adb sideload command fails.
The process stops about 40% and the phone screen shows "failed".
Is there somebody have any guess about why it happens?
Hello, I just want to confirm if it is possible to go back to stock Pie if I unlocked the bootloader and installed TWRP.
In my experience, for going back to stock with Xiaomi phones I just need to flash the stock recovery (taken from the official ROM) and then I need to use Mi Flash to flash the stock ROM and selecting the option to lock the bootloader.
Can you please confirm the above is possible?
Thanks in advance.
Mi A2 doesn't have a recovery partition. If you want to go back just flash the latest fastboot ROM with MiFlash or place it in the adb folder and run the flash_all_lock.bat file (if you want to flash without locking the bootloader run the flash_all.bat instead).
Catsonvi said:
Mi A2 doesn't have a recovery partition. If you want to go back just flash the latest fastboot ROM with MiFlash or place it in the adb folder and run the flash_all_lock.bat file (if you want to flash without locking the bootloader run the flash_all.bat instead).
Click to expand...
Click to collapse
Thanks for your reply! I'm a bit noob about this device, but just wanted to be sure. Regards!
Catsonvi said:
Mi A2 doesn't have a recovery partition. If you want to go back just flash the latest fastboot ROM with MiFlash or place it in the adb folder and run the flash_all_lock.bat file (if you want to flash without locking the bootloader run the flash_all.bat instead).
Click to expand...
Click to collapse
hi, where can I get latest fastboot ROM?
my device has v10. 0.7.0 PDIMIXM
In official mi site, it has some other version
Can you please help me how to identify or get latest ROM File?
Thanks in advance
e2vinay said:
hi, where can I get latest fastboot ROM?
my device has v10. 0.7.0 PDIMIXM
In official mi site, it has some other version
Click to expand...
Click to collapse
Yes, last official is 10.0.2.0, second March update brought 10.0.7.0.
So
1) flash official 10.0.2.0 using "flash_all_bat" (losing /data); i'd also use "fastboot -w" prior to flashing
2) keep phone unlocked, because getting OTA updates (two updates: February 10.0.4.0 and then 2nd March 10.0.7.0) means high risk of bootloops (thanks Xiaomi)
3) immediately get developer state, USB debugging and suppress automatic updates
Then either wait / check / get 2 OTA updates; or flash unofficial dump of 10.0.7.0 by @FranticKernel (search this forum)
Aerobatic said:
Yes, last official is 10.0.2.0, second March update brought 10.0.7.0.
So
1) flash official 10.0.2.0 using "flash_all_bat" (losing /data); i'd also use "fastboot -w" prior to flashing
2) keep phone unlocked, because getting OTA updates (two updates: February 10.0.4.0 and then 2nd March 10.0.7.0) means high risk of bootloops (thanks Xiaomi)
3) immediately get developer state, USB debugging and suppress automatic updates
Then either wait / check / get 2 OTA updates; or flash unofficial dump of 10.0.7.0 by @FranticKernel (search this forum)
Click to expand...
Click to collapse
Thanks
As I'm on 10.0.7.0 now, if I flash official 10.0.2.0 will it be any issue? like anti roll back or something?
e2vinay said:
As I'm on 10.0.7.0 now, if I flash official 10.0.2.0 will it be any issue? like anti roll back or something?
Click to expand...
Click to collapse
No anti-rollbacks in stock AO Oreo/Pie yet. You can even try to reflash stock official 10.0.2.0 preserving data - using "flash_all_except_data.bat". If then you'll have any issues, then wipe /data (with "fastboot -w" or factory reset in phone), so it is advisable to save important data & apps prior to rollback
Aerobatic said:
No anti-rollbacks in stock AO Oreo/Pie yet. You can even try to reflash stock official 10.0.2.0 preserving data - using "flash_all_except_data.bat". If then you'll have any issues, then wipe /data (with "fastboot -w" or factory reset in phone), so it is advisable to save important data & apps prior to rollback
Click to expand...
Click to collapse
Do I have any risk running "flash_all_except_data.bat"?
Does it work like a OTA update??
Hi all,
I unlocked the bootloader of my Mi A2 (6GB/128GB model) many patches ago to enable Camera2API.
The guide I used can be found here: https://forum-xda--developers-com.c...to/how-to-enabling-cam2-gcam-android-t3868766
Now that I have Android 10 (stock with the latest update via OTA) the Camera2API corrupts my stock Mi cam, so I planned on doing a factory reset.
However, that does still leave my bootloader unlocked. Is there a safe and simple way to relock my bootloader?
I've heard some stories about bricking the device, so I wanted to ask you guys to see if it's safe.
Thanks in advance!
What did you do? I'm in the same situation
Enviado desde mi Mi A2 mediante Tapatalk
RemmyDZ said:
Hi all,
I unlocked the bootloader of my Mi A2 (6GB/128GB model) many patches ago to enable Camera2API.
The guide .....
However, that does still leave my bootloader unlocked. Is there a safe and simple way to relock my bootloader?
I've heard some stories about bricking the device, so I wanted to ask you guys to see if it's safe.
Thanks in advance!
Click to expand...
Click to collapse
okay i want to do that too but im still waiting for next patch because i need stock cam as well
but if you have stock rom fully installed then you dont have to worry about getting bricked because relocking will hurt only in case of custom rom installed!!
It's safe to relock bootloader ONLY if you are on:
- Stock ROM
- Stock boot image
- No Magisk or other mod.
Then, you can type
Code:
fastboot flashing lock
in Fastboot Mode, then confirm from your phone using physical buttons (Volume Down + Power).
Remember that this process wipe everything from your phone, like a factory reset. Backup your data first!
MentalBreach said:
It's safe to relock bootloader ONLY if you are on:
- Stock ROM
- Stock boot image
- No Magisk or other mod.
Then, you can type
Code:
fastboot flashing lock
in Fastboot Mode, then confirm from your phone using physical buttons (Volume Down + Power).
Remember that this process wipe everything from your phone, like a factory reset. Backup your data first!
Click to expand...
Click to collapse
Did you update with bootloader unlocked ? I haven't unlocked critical bootloader.
Because I am afraid of bricking the phone while updating to android 10 with bootloader unlocked and camera api2 enabled.
Please help me! Should I locked the bootloader ?
In fact, I tried to lock with command "fast OEM lock" but it failed.
I did not mod the device except enabling api2.
i tried to flash lineageOS and messed up my phone again, i don't know what i did wrong, now i have to flash the stock rom and wait for another 7 days for the bootloader to unlock. Then i paniked when i saw my folders had weird names (it was ecrypted) and my dumb ass formated the data on my phone and my phone is literally empty. I cant restore the previous version because i cant transfer the backup from my pc to my phone.
Is it possible to flash custom rom in the condition my phone is right now? or at least flash the stock rom and bypassing the 7 days lock?
George528 said:
i tried to flash lineageOS and messed up my phone again, i don't know what i did wrong, now i have to flash the stock rom and wait for another 7 days for the bootloader to unlock. Then i paniked when i saw my folders had weird names (it was ecrypted) and my dumb ass formated the data on my phone and my phone is literally empty. I cant restore the previous version because i cant transfer the backup from my pc to my phone.
Is it possible to flash custom rom in the condition my phone is right now? or at least flash the stock rom and bypassing the 7 days lock?
Click to expand...
Click to collapse
To flash to custom rom the bootloader must be unlocked.
If you have unlocked the bootloader and you re-lock it with MIflash, no wait after to unlock it.
You can flash a stock rom with a locked phone with MiPc suite or this method.
https://c.mi.com/thread-2504118-1-0.html
https://c.mi.com/thread-2656146-1-0.html
NOSS8 said:
To flash to custom rom the bootloader must be unlocked.
If you have unlocked the bootloader and you re-lock it with MIflash, no wait after to unlock it.
You can flash a stock rom with a locked phone with MiPc suite or this method.
https://c.mi.com/thread-2504118-1-0.html
https://c.mi.com/thread-2656146-1-0.html
Click to expand...
Click to collapse
i am about to flash my phone with MiFlash. Will it lock it?
if yes, where do i get stock firmware with already unlocked bootloader (if that makes sense). I can't wait another 7 days for this
George528 said:
i am about to flash my phone with MiFlash. Will it lock it?
if yes, where do i get stock firmware with already unlocked bootloader (if that makes sense). I can't wait another 7 days for this
Click to expand...
Click to collapse
Just select clean all in Miflash option dont relock it.
STOCK ROM
https://xiaomifirmwareupdater.com/
CHOOSE tgz FILES
NOSS8 said:
Just select clean all in Miflash option dont relock it.
STOCK ROM
https://xiaomifirmwareupdater.com/
CHOOSE tgz FILES
Click to expand...
Click to collapse
fastboot or recovery
like i say TGZ file so fastboot
Guide
https://forum.xda-developers.com/t/use-xiaomi-flash-tool.4262425/
NOSS8 said:
like i say TGZ file so fastboot
Guide
https://forum.xda-developers.com/t/use-xiaomi-flash-tool.4262425/
Click to expand...
Click to collapse
thanks
Yes, you can.