Experience os 43 to completely stock - OnePlus 3 Questions & Answers

I'm on Experience OS 43 (OB) i wanted to go back to stock completely and lock the bootloader. If I do following can I completely go back to stock ?
Copy OB/OOS zip file to internal storage
Flash stock recovery (fastboot)
Clean Flash OOS from recovery
Setup the device
Lock bootloader

werty733 said:
I'm on Experience OS 43 (OB) i wanted to go back to stock completely and lock the bootloader. If I do following can I completely go back to stock ?
Copy OB/OOS zip file to internal storage
Flash stock recovery (fastboot)
Clean Flash OOS from recovery
Setup the device
Lock bootloader
Click to expand...
Click to collapse
First thing.. Never lock the bootloader. Unlocked bootloader comes bearing gifts. Eg: if you somehow face issues you can use unlocked bootloader to flash twrp to recover at least data.
Take a complete backup if all your data, internal storage , System partion just in case.
Now if you want to go back to stock, first flash twrp(if you dont have) , wipe data/cache/dalvik partition complete.
Donot wipe internal storage for now.
Now goto bootloader, flash stock recovery based on your OS version.
Now reboot to recovey.
Now flash stock OOS.
Now wipe everything if you donot want internal storafe data.
If you want it, try to boot. If everything goes good, its fine. Else. You have a encrypted internal storage and you have to wipe everything with stock recovey
Never lock bootloader if you unlocked it already.
Never lock bootloader if you unlocked it.already.
Never lock bootloader if you unlocked it already

Related

4.4.4 to 5.1.1

Hi folks,
can i go straight to this? my tab is rooted. IF i was to unroot then download the full rom from google, and flash the system, recovery and boot, would this be ok, what i mean is, it doesnt have to be iterative to the latest version does it?
What I did was the flash the bootloader 4.05 and Scrosler's Stock Rooted Busybox 5.1.1 ROM http://forum.xda-developers.com/nexus-7-2013/development/rom-stock-rooted-5-1-1-lmy47v-root-t3098137. Follow his instructions or if you want to dirty flash, use TWRP to first wipe the 2 caches, flash the bootloader and then ROM, wipe caches again and boot to system. The first boot is very long.
You need to flash the bootloader as well since it got updated.
No need to unroot, you're flashing the system image..
Bootloader boot and system will do it, I'd recommend a clean install though. Flash all partitions or run flashall file letting it wipe the tablet.
ok thanks folks. didnt realise the bootloader had to be done too. I guess this also applies to my N5 when im updating that too?
SO .... if i was making instructions to flash my devices for future updates, would the following suffice?
dont unroot
dont remove TWRP
fastboot flash bootloader bootloader-hammerhead-hxxxxxxxx.img
fastboot flash radio radio-hammerhead-xxxxxxxxxxxxxxxxxxx.img (do i need to even do this?)
fastboot flash boot boot.img
fastboot flash system system.img
boot to recovery and wipe dalvik cache
scrosler's ROM is standard 5.1.1. The beauty of it is that your phone will be rooted and busybox installed (with a trim). Just use TWRP to wipe whatever partitons you want (the 2 caches and also data if you want a clean install), then add bootloader and then ROM zips to the queue. Install them, then wipe the 2 caches again and boot to system. You might have to install SuperSu again from Play Store but you will be rooted.
It couldn't be simpler

Possible to restore recovery and re-lock bootloader without data lost

So I brought oneplus 3t for my father from china so it running hydrogen OS but now we moved back to Australia it would more sensible to change to google services for apps download and updates so i flashed Oxygen OS something stable but I was wondering how should re lock boot loader and maybe flash to stock recovery (Optional) to have boot up message and maybe encryption enabled.
DrUnknownEMC said:
So I brought oneplus 3t for my father from china so it running hydrogen OS but now we moved back to Australia it would more sensible to change to google services for apps download and updates so i flashed Oxygen OS something stable but I was wondering how should re lock boot loader and maybe flash to stock recovery (Optional) to have boot up message and maybe encryption enabled.
Click to expand...
Click to collapse
You need to have usb debugging enabled in your phone and adb tools installed in your pc before you do this.
For locking bootloader :
Connect the phone to computer,
Restart the phone in bootloader mode
Open command prompt window
Check connection by typing fastboot devices . You should see your device listed
Type fastboot oem lock
Reboot once the process completes. Be aware this will wipe your phone and ALL data will be lost.
It is advisable to keep boot loader unlocked.
For stock recovery :
Download stock recovery image from the forum
Save it in the same folder where your adb is installed in windows. The file name should be recovery.img
Reboot into bootloader mode
Open command prompt and
Type fastboot flash recovery recovery.img
Stock recovery to be installed before you lock bootloader
DrUnknownEMC said:
So I brought oneplus 3t for my father from china so it running hydrogen OS but now we moved back to Australia it would more sensible to change to google services for apps download and updates so i flashed Oxygen OS something stable but I was wondering how should re lock boot loader and maybe flash to stock recovery (Optional) to have boot up message and maybe encryption enabled.
Click to expand...
Click to collapse
a cautionary warning regarding the above reply to you, don't' relock the bootloader while you're on a custom recovery and/or kernel, and also while you have changes to the system (installed any mods or deleted any files form system folder)
so in theory it's possible,
1- you need to sideload a full stock rom (download from oneplus website) it's better to be stable not beta (you should have adb drivers installed and stock recovery, sideload will insure you have stock everything)
2- after you successfully sideloaded a full stock rom and make a full boot to system, you can follow the above re-lock instructions.
theduke7 said:
a cautionary warning regarding the above reply to you, don't' relock the bootloader while you're on a custom recovery and/or kernel, and also while you have changes to the system (installed any mods or deleted any files form system folder)
so in theory it's possible,
1- you need to sideload a full stock rom (download from oneplus website) it's better to be stable not beta (you should have adb drivers installed and stock recovery, sideload will insure you have stock everything)
2- after you successfully sideloaded a full stock rom and make a full boot to system, you can follow the above re-lock instructions.
Click to expand...
Click to collapse
Currently it running oxygen OS from their website like full rom.zip, i know when you flash new recovery you will factory wipe the phone which i don't really wants. Are they like patch to remove boot up warning? because last time i check there wasn't one.
DrUnknownEMC said:
Currently it running oxygen OS from their website like full rom.zip, i know when you flash new recovery you will factory wipe the phone which i don't really wants. Are they like patch to remove boot up warning? because last time i check there wasn't one.
Click to expand...
Click to collapse
A new recovery does not wipe your phone.
There is no patch to remove the boot warning. The only way is to lock boot loader <- this will wipe your phone and data.
If your phone runs well, it is better you keep it as it is. Why fix something that's not broken ?

[GUIDE] Reflash LEX727 With Stock ROM After LEX720 Update

I flashed the latest 20s Chinese ROM to unlock my bootloader and had trouble getting back to LEX727 19s ROM with a working SIM card, this what I did to fix it.
Goal: Get LEX727 back to 727 ROM from any Chineese Variant (LEX720) with a working sim card.
Logic: We need to get the phone back to as stock as possible so that we can flash dr4stic's ROM That will update from CN5.8.018s to US5.8.019s. First we need to install CN5.8.018s, but we need to do it from stock recovery, to get stock recovery back we use a TWRP backup made by suhridkhan, then copy the CN5.8.018s zip, rename it to update.zip and allow the phone to do it's thing It will take quite awhile to flash the stock CN5.8.018s ROM, but when its done we can then install dr4stic's ROM, but first we need custom recovery again, since we flashed stock recovery when we used the TWRP backup. So we reflash custom recovery (I recommend GrossoShop's TWRP as that is what worked for me, however others may work). Reboot into fastboot, fastboot flash recovery the GrossoShop TWRP, then we go back to recovery. Now we can install the upgrade ROM. Once the upgrade ROM is installed, we can reboot and we'll have a completely stock version of the LEX727 ROM with Stock Recovery. (oobe state)
STEP 1 INSTALL WORKING ROM
1. You will need a working ROM to copy the TWRP unzipped files to the phone (figure this out on your own, but you should already have something that works)
STEP 2 STOCK RECOVERY
1. Restore this TWRP backup
1. Send the unzipped files to your phone in TWRP/BACKUP/<Device_ID>/TWRP. (You need a working ROM to do this with USB, you can try adb pushing the .zip and adb shell unzipping but I had permisison errors. and found it easier to just move the files unzipped)
2. Reboot into recovery, Advanced Wipe everything except Internal Storage (where your backup is)
3. Restore from the TWRP backup, before restarting, do a factory reset wipe and dalivik.
4. Reboot, and you SHOULD be in the LEX727 Rom, however your sim card will not be recognized depending on the modem firmware you came from.
STEP 3 GETTING DOWN TO CN5.8.018s
1. Since we have stock recovery, we can now use it to flash down to the right Chineese ROM version for dr4astic's ROM update to work.
2. Setup the phone, and copy LE_ZL1_LEX720_CN_5.8.018S.zip, then rename it to update.zip
3. Install the update through the phone settings or browser. (It will take quite a while 15ish minutes)
4. The phone may reboot into an endless boot loop where it just keeps redoing the same startup flash, To get past this reboot into recovery and perform a "Clear data" wipe.
5. You should now be in the stock version of LEX 720 5.8.018s
STEP 4 USING THE UPDATE ROM
1. We need to flash a custom recovery again (I recommend GrossoShop's as that is what worked for me, however others may work)
2. Reboot into fastboot and flash your recovery software
3. Wipe everything, data included and reboot back into recovery.
4. adb push the update ROM and install it, wipe dalvik and do a factory reset wipe before restarting.
5. When you tap restart system from TWRP the phone will vibrate for about 7ish seconds, dont do anything, just let it do its thing. It will reboot and go to a black screen, then finish rebooting.
(this is perhaps the most risky step as we are returning to a stock ROM with stock recovery and might loose our unlocked bootloader)
6. You should get everything back to stock ROM with working SIM card and an unlocked bootloader.
note: I will be saving local copies of all the files required indefinitely, so if any of the above links break, I will re-upload.
Post
Reserved
Links down! Plz fix. Thank you.
:crying:
Links down! .
Thanks for the information.
You seem to be using the links generated by the file hosting websites for you which expires very quickly. Please use the original links.
e.g.
CN5.8.018s (https://www.mediafire.com/folder/gntdgfr67054v/Le_Pro_3_X720)
CN5.8.018s-to-US5.8.019s.zip (https://androidfilehost.com/?fid=601275311581036717)
TWRP_x720_r4-V3_OK_FINAL (https://dev.androidfilehost.com/?fid=385035244224398544)
This is exactly what i need, however i have no idea how to do this. Sad.
Link down
Hi,
Your link to CN5.8.018s-to-US5.8.019s.zip is down. Is it possible that you provide this file again?
Thank you!

Updating to Android O / Nandroid Restore back to Android N?

Used the search, used google, couldn't find any concrete answers
I am on Android N - unlocked bootloader - rooted via magisk, One Plus 3.
Could I do the following?
use TWRP to make a Nandroid Backup (System+Data+Boot) of my current set-up
then, manually flash (using twrp) Android O
find out I don't particularly like it
Go back to TWRP and Nandroid Restore back to Android N, as if no update ever happened
Or will there be issues?
Thanks
I do that with freedomos. 2.17(N)>3.1(O)>2.17. I restore nandroid and reflash rom
xGOGI said:
I do that with freedomos. 2.17(N)>3.1(O)>2.17. I restore nandroid and reflash rom
Click to expand...
Click to collapse
Should have mentioned I'm using stock rom.
So I'd restore the nandroid via twrp, and I should be good to go?
arthritis said:
Used the search, used google, couldn't find any concrete answers
I am on Android N - unlocked bootloader - rooted via magisk, One Plus 3.
Could I do the following?
use TWRP to make a Nandroid Backup (System+Data+Boot) of my current set-up
then, manually flash (using twrp) Android O
find out I don't particularly like it
Go back to TWRP and Nandroid Restore back to Android N, as if no update ever happened
Or will there be issues?
Thanks
Click to expand...
Click to collapse
There won't be any issue. You are alright with the procedure. Just make sure you use the correct twrp recovery for oreo coz if you use the non compatible recovery then you won't be able to boot into recovery once the oreo is flashed and you are forced to go with the stock recovery
Process I followed when I tried oreo last week
Take nandroid of all options available except system image. (system, data, bootloader, firmware, efs, etc.) on nougat twrp.
Do factory reset(wipe everything except internal storage) then flash oreo twrp image. Perform reboot. (no OS warning on reboot option screen will appear) just ignore it. It will boot to recovery even without the OS.
Once booted back to new recovery(oreo twrp)
Flash oreo stock zip and again flash oreo twrp image and reboot to recovery(this time the device will get stuck with a black screen and white LED). Don't panic, just force reboot the device and go to recovery again to flash magisk/supersu. Reboot to OS
Enjoy oreo
To go back to nougat
Reboot to recovery.
Perform factory reset as mentioned above.
Restore everything except bootloader, cache and dalvik cache
Flash nougat twrp recovery. Reboot to system.
Happy flashing.
Edit : use blu sparks recovery for nougat backup.
maxs8007 said:
There won't be any issue. You are alright with the procedure. Just make sure you use the correct twrp recovery for oreo coz if you use the non compatible recovery then you won't be able to boot into recovery once the oreo is flashed and you are forced to go with the stock recovery
Process I followed when I tried oreo last week
Take nandroid of all options available except system image. (system, data, bootloader, firmware, efs, etc.) on nougat twrp.
Do factory reset(wipe everything except internal storage) then flash oreo twrp image. Perform reboot. (no OS warning on reboot option screen will appear) just ignore it. It will boot to recovery even without the OS.
Once booted back to new recovery(oreo twrp)
Flash oreo stock zip and again flash oreo twrp image and reboot to recovery(this time the device will get stuck with a black screen and white LED). Don't panic, just force reboot the device and go to recovery again to flash magisk/supersu. Reboot to OS
Enjoy oreo
To go back to nougat
Reboot to recovery.
Perform factory reset as mentioned above.
Restore everything except bootloader, cache and dalvik cache
Flash nougat twrp recovery. Reboot to system.
Happy flashing.
Edit : use blu sparks recovery for nougat backup.
Click to expand...
Click to collapse
Thank you for the detailed procedure.
maxs8007 said:
There won't be any issue. You are alright with the procedure. Just make sure you use the correct twrp recovery for oreo coz if you use the non compatible recovery then you won't be able to boot into recovery once the oreo is flashed and you are forced to go with the stock recovery
Process I followed when I tried oreo last week
Take nandroid of all options available except system image. (system, data, bootloader, firmware, efs, etc.) on nougat twrp.
Do factory reset(wipe everything except internal storage) then flash oreo twrp image. Perform reboot. (no OS warning on reboot option screen will appear) just ignore it. It will boot to recovery even without the OS.
Once booted back to new recovery(oreo twrp)
Flash oreo stock zip and again flash oreo twrp image and reboot to recovery(this time the device will get stuck with a black screen and white LED). Don't panic, just force reboot the device and go to recovery again to flash magisk/supersu. Reboot to OS
Enjoy oreo
To go back to nougat
Reboot to recovery.
Perform factory reset as mentioned above.
Restore everything except bootloader, cache and dalvik cache
Flash nougat twrp recovery. Reboot to system.
Happy flashing.
Edit : use blu sparks recovery for nougat backup.
Click to expand...
Click to collapse
Thank you
Hi @maxs8007
thanks for the instructions. I did all that to get back to my nougat rom (PureFusion) and all seem good and phone booted fine. But i am stuck on login screen after booted up. I tried my correct password several times but to no avail. anyway reset my password without factory resetting again?
Thanks for the advise.
sqlpro said:
Hi @maxs8007
thanks for the instructions. I did all that to get back to my nougat rom (PureFusion) and all seem good and phone booted fine. But i am stuck on login screen after booted up. I tried my correct password several times but to no avail. anyway reset my password without factory resetting again?
Thanks for the advise.
Click to expand...
Click to collapse
Go to twrp - advanced - file manager - go to root folder - data - system - and delete files with .key extension. There will be 2 files delete both and reboot.
maxs8007 said:
Go to twrp - advanced - file manager - go to root folder - data - system - and delete files with .key extension. There will be 2 files delete both and reboot.
Click to expand...
Click to collapse
Thank you very much and that worked. I am back in the system.
BTW in your original instructions I had to re flash rom after restoring twrp backup otherwise it didn't boot and stuck at rom animation.
sqlpro said:
Thank you very much and that worked. I am back in the system.
BTW in your original instructions I had to re flash rom after restoring twrp backup otherwise it didn't boot and stuck at rom animation.
Click to expand...
Click to collapse
Thanks for pointing out, I must have forgot to add it. I'll update again.
Hi @maxs8007
I ran into this issue again today! after unlocking as per instructions yesterday and am back into phone and re-set the pin and all good. But today i had to reboot the phone and same issue again , cant login on the lock screen!! i tried deleting those files again but to no avail!!
any ideas before factory reset and loose my data ? Thanks.
sqlpro said:
Hi @maxs8007
I ran into this issue again today! after unlocking as per instructions yesterday and am back into phone and re-set the pin and all good. But today i had to reboot the phone and same issue again , cant login on the lock screen!! i tried deleting those files again but to no avail!
any ideas before factory reset and loose my data ? Thanks.
Click to expand...
Click to collapse
This should not have happened, anyways delete all those files which I've highlighted in the image below. This will reset the lock settings.
Oh sorry I forgot to attach the file. Here it is.
maxs8007 said:
There won't be any issue. You are alright with the procedure. Just make sure you use the correct twrp recovery for oreo coz if you use the non compatible recovery then you won't be able to boot into recovery once the oreo is flashed and you are forced to go with the stock recovery
Process I followed when I tried oreo last week
Take nandroid of all options available except system image. (system, data, bootloader, firmware, efs, etc.) on nougat twrp.
Do factory reset(wipe everything except internal storage) then flash oreo twrp image. Perform reboot. (no OS warning on reboot option screen will appear) just ignore it. It will boot to recovery even without the OS.
Once booted back to new recovery(oreo twrp)
Flash oreo stock zip and again flash oreo twrp image and reboot to recovery(this time the device will get stuck with a black screen and white LED). Don't panic, just force reboot the device and go to recovery again to flash magisk/supersu. Reboot to OS
Enjoy oreo
To go back to nougat
Reboot to recovery.
Perform factory reset as mentioned above.
Restore everything except bootloader, cache and dalvik cache
Flash nougat twrp recovery. Reboot to system.
Happy flashing.
Edit : use blu sparks recovery for nougat backup.
Click to expand...
Click to collapse
Hi, OP here. Thanks for this guide.
Unfortunately, it did not work out for me.
Take nandroid of all options available except system image. (system, data, bootloader, firmware, efs, etc.) on nougat twrp.
Done
Do factory reset(wipe everything except internal storage)
Wiped fine although I got an error of not being able to wipe 'USB-OTG' or whatever it's called. I ignored it and moved on.
then flash oreo twrp image.
I googled oreo twrp image and got an img file with filename "TWRP-Oreo-OnePlus-3-3T". When I installed the img, it asked the options to choose Boot, System, or Recovery - so I chose System.
Then I rebooted and went back to recovery.
Flash oreo stock zip
flash oreo twrp image
Done
reboot to recovery(this time the device will get stuck with a black screen and white LED). Don't panic, just force reboot the device and go to recovery again to flash magisk/supersu.
This is where it ends. I get stuck at the OnePlus loading screen and forced reboot into twrp and flashed magisk. Once I boot up the OS, I get stuck at the OnePlus logo and that's it.
I actually re-did ALL of the steps again (in case I made a mistake) and still, the same issue. No progression.
Once I gave up on Oreo, I decided to go restore my nandroid
Reboot to recovery. Perform factory reset as mentioned above.
Wiped
Restore everything except bootloader, cache and dalvik cache
Here's the issue:
I press Restore (I uncheck both bootloader and cache, but there's no option for a specific dalvik cache- unless I'm not looking hard enough?) and I get the 255 Error.
Flash nougat twrp recovery. Reboot to system.
I tried to ignore that error and flash the twrp recovery.
Rebooted and it took me to fastboot. Regardless of I keep trying to reboot system it won't work.
I actually made two separate nandroid backups (the same 'everything except system image' as you've described) in case one of the backups was corrupted. Both backups ended up with the same error.
I got too tired of all these errors and just found a stock recovery and ROM and flashed it back. Now, all my apps and settings are gone. To be honest, I just want my phone back to where it was with Nougat.
Can anyone assist me?
@maxs8007, Like I said I did that already but nope still same issue. It wouldn't let me do matter what I did.
---------- Post added at 04:59 AM ---------- Previous post was at 04:54 AM ----------
arthritis said:
Hi, OP here. Thanks for this guide.
Unfortunately, it did not work out for me.
Take nandroid of all options available except system image. (system, data, bootloader, firmware, efs, etc.) on nougat twrp.
Done
Do factory reset(wipe everything except internal storage)
Wiped fine although I got an error of not being able to wipe 'USB-OTG' or whatever it's called. I ignored it and moved on.
then flash oreo twrp image.
I googled oreo twrp image and got an img file with filename "TWRP-Oreo-OnePlus-3-3T". When I installed the img, it asked the options to choose Boot, System, or Recovery - so I chose System.
Then I rebooted and went back to recovery.
Flash oreo stock zip
flash oreo twrp image
Done
reboot to recovery(this time the device will get stuck with a black screen and white LED). Don't panic, just force reboot the device and go to recovery again to flash magisk/supersu.
This is where it ends. I get stuck at the OnePlus loading screen and forced reboot into twrp and flashed magisk. Once I boot up the OS, I get stuck at the OnePlus logo and that's it.
I actually re-did ALL of the steps again (in case I made a mistake) and still, the same issue. No progression.
Once I gave up on Oreo, I decided to go restore my nandroid
Reboot to recovery. Perform factory reset as mentioned above.
Wiped
Restore everything except bootloader, cache and dalvik cache
Here's the issue:
I press Restore (I uncheck both bootloader and cache, but there's no option for a specific dalvik cache- unless I'm not looking hard enough?) and I get the 255 Error.
Flash nougat twrp recovery. Reboot to system.
I tried to ignore that error and flash the twrp recovery.
Rebooted and it took me to fastboot. Regardless of I keep trying to reboot system it won't work.
I actually made two separate nandroid backups (the same 'everything except system image' as you've described) in case one of the backups was corrupted. Both backups ended up with the same error.
I got too tired of all these errors and just found a stock recovery and ROM and flashed it back. Now, all my apps and settings are gone. To be honest, I just want my phone back to where it was with Nougat.
Can anyone assist me?
Click to expand...
Click to collapse
Buddy from my experience the whole thing too finicky and am thinking just factory reset and stick with stock rom. I wasted so much time already. Everytime I get different error, probably recoveries still not fully compatible with Oreo.
sqlpro said:
@maxs8007, Like I said I did that already but nope still same issue. It wouldn't let me do matter what I did.
---------- Post added at 04:59 AM ---------- Previous post was at 04:54 AM ----------
Buddy from my experience the whole thing too finicky and am thinking just factory reset and stick with stock rom. I wasted so much time already. Everytime I get different error, probably recoveries still not fully compatible with Oreo.
Click to expand...
Click to collapse
Could you please tell me what error you get on the lock screen? Could you post an image so that I can get a better idea of what's happening with your device? Also could you please confirm which files have you deleted? This time you need to delete 5 files which are related to lock screen setting and those are the only files responsible for lock settings on the device. I'm somewhat confused because I never ran into such issue while I did the oreo thing
If you have decided to flash stock then just make a backup of data partition so that you won't loose your data and you can easily restore it via twrp.
---------- Post added at 01:06 AM ---------- Previous post was at 12:42 AM ----------
arthritis said:
I googled oreo twrp image and got an img file with filename "TWRP-Oreo-OnePlus-3-3T". When I installed the img, it asked the options to choose Boot, System, or Recovery - so I chose System.
Click to expand...
Click to collapse
I read the entire post and here what I've to say. The above quoted steps is where you went wrong. The recovery needs to to be flashed as a recovery and not as system.
In your case the nougat recovery was never replaced with the oreo recovery because you flashed it as a system. This is where it went wrong. Sorry for the dalvik cache and USB - otg, I didn't mentioned about them. Those are the least important points in flashing though I should have mentioned that already
The next thing you mentioned is you went back to recovery which at that moment was nougat recovery and not oreo recovery. I'll link the modded recovery I used for oreo below
The next thing you did is you flashed oreo zip and again flashed the oreo recovery but as you flashed the recovery as system, the oreo stock rom was automatically replaced with recovery because you flashed it as system and the device didn't boot because there was no android OS to boot up
You got stuck on oneplus boot up screen. (this was going to happen because of the same flashing error at your end).
You were unable to boot back to nougat as well because of the same issue.. Never flash the recovery as system. This won't let you boot the device.
To restore your nandroid backup just follow the steps below
As you confirmed you booted to stock rom with a stock recovery.
Flash nougat twrp via fastboot
Boot back to the twrp recovery and restore the nandroid backup and you are good to go
---------- Post added at 01:18 AM ---------- Previous post was at 01:06 AM ----------
I'll make a video in my free time to help you guys with the steps that I've followed to flash oreo rom and how i came back to nougat successfully.
Hello @maxs8007
Sorry I didn't have any screen shots of the prompt and finally I was fed up with the whole process and had to switch back to oreo stock rom.
Login prompt I was referring to was standard pin required load android. Black background with only pin entry.
BTW I tried blu twrp recovery oreo version and nougat version.
What's interesting is, after several failed attempts it said I got 10 more tries before phone wiped out but after 10 attempts it started counting backwards from zero, - 1,-2 etc., finally I had to flash stock recovery via fastboot and selected forgot password option which reset my phone.
BTW I have deleted all those files from data/system I found another thread but no dice.
Thank you for trying to help us all.
@maxs8007 followed your steps. Booted to oreo, didn't felt as stable as nougat then booted back to nougat. You saved me. Thanks.
sqlpro said:
Hello @maxs8007
Sorry I didn't have any screen shots of the prompt and finally I was fed up with the whole process and had to switch back to oreo stock rom.
Login prompt I was referring to was standard pin required load android. Black background with only pin entry.
BTW I tried blu twrp recovery oreo version and nougat version.
What's interesting is, after several failed attempts it said I got 10 more tries before phone wiped out but after 10 attempts it started counting backwards from zero, - 1,-2 etc., finally I had to flash stock recovery via fastboot and selected forgot password option which reset my phone.
BTW I have deleted all those files from data/system I found another thread but no dice.
Thank you for trying to help us all.
Click to expand...
Click to collapse
I'm sorry that I was unable to help you. The thing is I never used the pin prompt to load android because I reboot too often to flash things via recovery and its too much of a hassle to enter the pin everytime the device is booted and I think it's too much to a security for a android device when there's already a lock screen present once booted to secure the device.
Please don't put the pin entry to load android next time if you flash stuff regularly. It will save you the hassle of going back to stock rom and recovery when something like this ever happens again. The files which I told you to delete in the image I posted above remove the lock screen protection completely
The login pin at the boot to load android was implemented to avoid unauthorized access to the device in case it gets stolen or lost.
maxs8007 said:
I'm sorry that I was unable to help you. The thing is I never used the pin prompt to load android because I reboot too often to flash things via recovery and its too much of a hassle to enter the pin everytime the device is booted and I think it's too much to a security for a android device when there's already a lock screen present once booted to secure the device.
Please don't put the pin entry to load android next time if you flash stuff regularly. It will save you the hassle of going back to stock rom and recovery when something like this ever happens again. The files which I told you to delete in the image I posted above remove the lock screen protection completely
The login pin at the boot to load android was implemented to avoid unauthorized access to the device in case it gets stolen or lost.
Click to expand...
Click to collapse
Frankly no clue why deleting those files didn't reset my pins and I even deleted gatekeeper files too.
Maybe these are lock screen key files and android boot prompt stored somewhere else. Not sure though.

Help needed in understanding bootloader.

So, I had an unlocked BL, rooted phone, with TWRP 3.3.1 deestroy.
For some reason, I booted into my recovery, wiped all my data, through format and advanced wipe feature. I even changed slots (just to make sure) and formatted data, and advanced wipe.
I then locked my bootloader, through adb fastboot command. Rebooted my phone, which had nothing to boot to. Then I unlocked my bootloader, rebooted my phone again, and it got booted into TWRP 3.3.1
Now my understanding is, unlocking bootloader, and using formatting options from TWRP should have wiped my data completely.
Then why did my phone boot into TWRP 3.3.1 after I unlocked the BL?
This might be helpful for you:
https://github.com/tkchn/daisyinstall
Lol. I didn't ask for how to flash a custom ROM.
Just need help understanding how the bootloader works? Where does TWRP get installed? Why after wiping did TWRP survive?
shazee666 said:
Now my understanding is, unlocking bootloader, and using formatting options from TWRP should have wiped my data completely.
Then why did my phone boot into TWRP 3.3.1 after I unlocked the BL?
Click to expand...
Click to collapse
Different things live on different partitions.
TWRP does not live on the userdata partition so wiping data cannot remove TWRP.
You need to use fastboot or miflash to do a full flash and restore a phone to stock.
Okay. This cleared somethings...
If you have tampered with the phone's partitions (TWRP patches itself into boot.img) you should never lock the Bootloader. Basically when the Bootloader is locked, the phone checks all the partitions of the phone if they've been tampered or still the same as Xiaomi designed it. In the case that they've been tampered, the phone won't boot itself, this helps with a lot of security issues. Never lock your Bootloader if you've made changes to the system, boot or other partitions (except userdata, this is why enabling cam2api and locking the BL won't mess up your device because the persist command stores the command in data partition). If you want to lock the BL, just flash the stock rom beforehand. Cheers.

Categories

Resources