Hello everybody,
is there a possibility to install the updates for a rooted P10 Lite without relocking the bootloader?
When I installed the first OTA updates for the phone, the bootloader wasn't relocked afterwards. But last time (last update before the Android 8 update) the bootloader was locked after update, so I had to reset my phone to root it again. Of course I create regular backups of my phone, but it was much work anyway. The bootloader will be locked after installing the Android 8 update again, isn't it?
If so, is there any other way of updating the P10 without relocking the bootloader?
Under /data/update/HwOUC/ I found an update.zip with a size of 1.8 GB. It contains a file VERSION.mbn which contains a line "WAS-LX1A 8.0.0.362(C432)". This fits to the version displayed by the OTA update manager. Can I just flash this update.zip using TWRP to update to Android 8?
Thanks in advance!
I'm not sure if you can flash update.zip in TWRP. I've tried such flash a long time ago with TWRP and Android 7 and it didn't works at all!
My bootloader is unlocked all the time. If there's an update I do that:
Turn Off you phone then Press and Hold Vol Down button and connect the phone to PC (Bootloader mode)
Links to all files you need: https://mega.nz/#F!TNQiFDrS!LeWgM5bukSz66UEL5zE1Tg
1. Flash stock recovery: fastboot flash recovery_ramdisk RECOVERY_RAMDIS.img
2. Reboot to system and go to Setting and try to update phone
3. Install FullOTA update (only FulIOTA can be installed if you phone is rooted)
4. Boot into Bootloader mode
5. Flash TWRP again: fastboot flash recovery_ramdisk TWRP.img (I use TWRP 3.2.1-0 by Pretoriano80 and everything works well: data decryption, backups, etc.)
6. Flash patched boot img file (Magisk root): fastboot flash ramdisk patched_boot.img
But if you need only root then you don't need TWRP at all.
Use stock recovery all the time and install FullOTA update without any problems then go to Bootloader and flash the patched boot file for Magisk after every update! That's all.
Related
Hi everyone
This is how to unlock and install TWRP (root too) the Huawei Honor 2
The root in this process is a partial root....since Xposed and some other root features wont work because the stock Jb roms are odexed.
Warning...this process was not tested on B8xx aka emui 2.0 firmwares
It will succesfully work on :
B1xx
B5xx
B7xx
Also....you cannot flash official firmwares with unlocked bootloader...so you need to relock it in oreder to reflash a rom with dload mod
Check "HOW TO LOCK/RELOCK BOOTLOADER" bellow
So first :
IM NOT RESPONSIBLE IF YOU BREAK YOUR PHONE
COMPLETLY DESTROYED YOUR SD CARD
OR SIM CARDS NOT WORKING
....Do this at your own risk
Links Bellow.
1/Unlock Bootloader
First you need the flash tool : Here (not my tool...only sharing)
You will also need the usb drivers. You can install Hisuit and it will automatilcally install the drivers you need.
When everything is ready...enable Usb debugging on your phone
Connect the device to your pc via usb and run the tool.
---Select option 1 (so insert 1 and press enter) to install the new fastboot partition, which is able to unlock your device if you install an unsigned kernel / recovery.
---Select option 2 if you haven’t enabled usb debugging, or if you have previously flashed an unsigned partition and now your device isn’t booting.
---Select option 3 to flash a custom kernel you have previously renamed to boot.img and put on your desktop. Do NOT use dd dumps : which means do NOT use boot.img you can find in flashable rom zips.
---Select option 4 to flash a custom recovery you have previously renamed to recovery.img and put on your desktop. Do NOT use dd dumps neither here.
---Select option 5 to check if bootloader is locked, unlocked or relocked.
Congratulation...your phone is unlocked !
2/INSTALL TWRP AND ROOT
TWRP Recovery : Gdrive
Alternative TWRP Recovery : Gdrive ( Use Ctrl + S) to download and keep them in the same folder
Now after unlocking the bootloader close the unlocktool and reboot the phone in fastboot mode
After that :
1/ IF you used the first link recovery Rename the file to recovery.img ...put it on the same folder and use the unlocking tool to flash it
2/ IF you used the 2nd link (Alternative recovery) you can just run flash.bat and it will do the work
after installing recovery :
go to wipe menu...then advanced and wipe only dalvik cache
now reboot
if your phone is rooted choose do NOT root and reboot
if yours is not rooted :
hit reboot button and the phone will install the root....now all you need to do is to update supersu from the playstore
DONE
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
HOW TO “RELOCK” BOOTLOADER
After your bootloader status is “unlocked”, if you want to flash a stock rom with dload method , you need to flash chinese recovery (not another one), then flash any of batty86 roms (or any other rom with both boot.img and reserved.img), let the device boot at least once, and the bootloader will be “relocked”; then you can install the original recovery and use the dload method again.
usefull links :https://huaweiascendg615.wordpress.com/
How to use chineese recovery for non chineese :Here
NOTE : I NO LONGER USE THE U9508 !
I've Bought a Samsung A5 A500FU
Credits :
TWRP team
Batty86 for his amazing tool and roms that can relock the bootloader
sorex blog for showing us how to use chineese recovery.
Hit :good: if i helped you
hello and thanks, do you have the file for bootloader unlock?? link is down
mimminou said:
Hello all xda devs and rookies
Today im showing you how to root and install TWRP 2.0.6.0 (Bootloader unlock too) on Huawei Honor 2
The root in this process is a partial root....since Xposed and some other root features wont work because the stock Jb roms are odexed...
-(Warning...this process was not tested on B8xx aka emui 2.0 firmwares
It will succesfully work on : B1xx
B5xx
B7xx
Also....you cannot flash official firmwares with unlocked bootloader...so you need to relock it in oreder to reflash a rom with dload mod
Check "HOW TO LOCK/RELOCK BOOTLOADER" bellow
So first :
IM NOT RESPONSIBLE IF YOU BREAK YOUR PHONE
COMPLETLY DESTROYED YOUR SD CARD
OR SIM CARDS NOT WORKING
....Do this at your own risk.
1/Unlock Bootloader
First you need the flash tool....Link Here (Link in first post) (not my tool...only sharing)
You will also need the usb drivers. You can install Hisuit and it will automatilcally install the drivers you need.
When every thing is ready...enable Usb debugging on your phone
Power off your phone; unplug the battery and replug it and boot up your phone in fastboot mode (power button + volum down)
Plug your phone in your computer and run flash.exe
choose 1 for chineese
choose 2 for english
Now choose unlock phone
after that choose fasboot option
Wait ~7 seconds and the phone will reboot
Congratulation...your phone is unlocked
2/INSTALL TWRP AND ROOT
Now after unlocking the bootloader you need to close flash.exe and reboot again your phone in fastboot mode
After that...open flash.exe and choose install TWRP V3 RECOVERY
NOTE : Do NOT choose Twrp touch version because its a little buggy and unstable (experimental users only)
now after the phone reboots...close the tool and reboot the phone in recovery mode using power + Volum up
go to wipe menu...then advanced and wipe only dalvik cache
now reboot to system....the recovery will notice that the phone is not rooted...
hit reboot button and the phone will install the root....now all you need to do is to update supersu from the playstore
DONE
Credits :
GenoKolar for his amazing tool and recovery and unlock script
TWRP team
EternityProject team for sharing this tool
Batty86 for his rom that can relock the bootloader
sorex blog for showing us how to use chineese recovery.
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
HOW TO “RELOCK” BOOTLOADER
After your bootloader status is “unlocked”, if you want to flash a stock rom with dload method , you need to flash chinese recovery (not another one), then flash any of batty86 roms (or any other rom with both boot.img and reserved.img), let the device boot at least once, and the bootloader will be “relocked”; then you can install the original recovery and use the dload method again.
usefull links :here
How to use chineese recovery for non chineese :Here
#sorry for bad english....im using my phone
Hit :good: if i helped you
Click to expand...
Click to collapse
got a new link for the flash tool? thhanks
hello bro flash toool link not working
This Thread is discontinued so i decided to update the unlocking methode one more time
Hello Friends,
I have seen several Youtube videos and read the thread of xda senior member the rooter to unroot and revert the oneplus 3t to stock. The senior member guided very beautifully to have the stock ROM with or without the bootloader unlocked and fix DM-verity issue.
The following guide is not my invention, I have taken the sources from internet and xda site. The difference is that I used TWRP to flash official oxygenOS zip file of 4.1.6 and I am surprised that this file also flash stock recovery, therefore I did not flash stock recovery and proceeded further for full wipe and lock bootloader. In the middle of thread, I also alerted and said that if stock recovery is not flashed after installing zip of 4.1.6, then it is mandatory to flash stock recovery from fastboot before locking bootloader, otherwise your devices will be bricked.
1) Flash Oxygen OS 4.1.6 through latest TWRP 3.1.1.2 and remember to wipe system, cache, data and delvic cache excluding internal storage before flashing. Do not wipe completely otherwise you will have TWRP installed again and you will have to flash stock recovery through fastboot method.
Link for official TWRP for oneplus 3t: https://dl.twrp.me/oneplus3t/twrp-3.1.1-2-oneplus3t.img.html
Link for official stock recovery for oneplus 3t: http://downloads.oneplus.net/oneplus-3t/oneplus_3t_oxygenos_4.1.7/ , here go down the page and click on "Download Oxygen Recovey (Optional)"
After booting successfully, go to setting and tap the build number 7 times to enable advanced reboot and usb debugging and connect your mobile with your PC and make sure that you have adb drivers installed on your PC.
Now, extract the folder of fastboot and press the right click of mouse while pressing shift button. Basically you have to open command prompts. Now type: adb reboot recovery and hit enter.
2) Your phone should boot into oxygen stock recovery and if it does not boot to stock recovery then flash stock recovery from fastboot.
2) Now your oneplus 3t is having Oxygen OS 4.1.6 with stock recovery but having DM verity issue. Now, full wipe ( select erase everything) in stock recovery and reboot. This wiping through stock recovery may be extra step (locking the bootloader will erase your data completely) but I did this to avoid any problem.
3) Now, sideloaded the same file i.e. oxygen OS 4.1.6 or OOS 4.1.7 through the following command:
adb sideload OTA.zip
where OTA is zip file downloaded from oneplus site for oneplus 3t and renamed it as OTA
(For this, you will have to go to stock recovery and select the option of "install from ADB" then a pop up screen will show you that you are in sideload mode. But remember that sideloading the OS is a slow process; so keep patience and do not remove cable in the middle of installation otherwise your device will be bricked.)
4) Now, lock the bootloader from the command in fastboot mode:
fastboot oem lock
after entering the command in fastboot mode, a confirmation will be asked to lock the bootloader for Yes or No, confirm from the volume keys and let boot the phone automatically and wait to finish.
5) If you sideloaded the OOS 4.1.6 in step 3 then you will see the update notification of OOS 4.1.7 which is about 450MB, download it ,install it and reboot.
6) Enjoy............the stock
Thanks to guides on youtubes and xda site.
Please note that if you follow these steps, you will not have any issues because I have done again and again without any issues but I do not take any responsibility of bricked devices if you perform wrong method or skip any thing.
Please hit the like if find this useful, it is absolutely freeeeee.............
What if I currently have no OS installed? Does that matter?
sandeep_kumar said:
Hello Friends,
I have seen several Youtube videos and read the thread of xda senior member the rooter to unroot and revert the oneplus 3t to stock. The senior member guided very beautifully to have the stock ROM with or without the bootloader unlocked and fix DM-verity issue.
The following guide is not my invention, I have taken the sources from internet and xda site. The difference is that I used TWRP to flash official oxygenOS zip file of 4.1.6 and I am surprised that this file also flash stock recovery, therefore I did not flash stock recovery and proceeded further for full wipe and lock bootloader. In the middle of thread, I also alerted and said that if stock recovery is not flashed after installing zip of 4.1.6, then it is mandatory to flash stock recovery from fastboot before locking bootloader, otherwise your devices will be bricked.
1) Flash Oxygen OS 4.1.6 through latest TWRP 3.1.1.2 and remember to wipe system, cache, data and delvic cache excluding internal storage before flashing. Do not wipe completely otherwise you will have TWRP installed again and you will have to flash stock recovery through fastboot method.
Link for official TWRP for oneplus 3t: https://dl.twrp.me/oneplus3t/twrp-3.1.1-2-oneplus3t.img.html
Link for official stock recovery for oneplus 3t: http://downloads.oneplus.net/oneplus-3t/oneplus_3t_oxygenos_4.1.7/ , here go down the page and click on "Download Oxygen Recovey (Optional)"
After booting successfully, go to setting and tap the build number 7 times to enable advanced reboot and usb debugging and connect your mobile with your PC and make sure that you have adb drivers installed on your PC.
Now, extract the folder of fastboot and press the right click of mouse while pressing shift button. Basically you have to open command prompts. Now type: adb reboot recovery and hit enter.
2) Your phone should boot into oxygen stock recovery and if it does not boot to stock recovery then flash stock recovery from fastboot.
2) Now your oneplus 3t is having Oxygen OS 4.1.6 with stock recovery but having DM verity issue. Now, full wipe ( select erase everything) in stock recovery and reboot. This wiping through stock recovery may be extra step (locking the bootloader will erase your data completely) but I did this to avoid any problem.
3) Now, sideloaded the same file i.e. oxygen OS 4.1.6 or OOS 4.1.7 through the following command:
adb sideload OTA.zip
where OTA is zip file downloaded from oneplus site for oneplus 3t and renamed it as OTA
(For this, you will have to go to stock recovery and select the option of "install from ADB" then a pop up screen will show you that you are in sideload mode. But remember that sideloading the OS is a slow process; so keep patience and do not remove cable in the middle of installation otherwise your device will be bricked.)
4) Now, lock the bootloader from the command in fastboot mode:
fastboot oem lock
after entering the command in fastboot mode, a confirmation will be asked to lock the bootloader for Yes or No, confirm from the volume keys and let boot the phone automatically and wait to finish.
5) If you sideloaded the OOS 4.1.6 in step 3 then you will see the update notification of OOS 4.1.7 which is about 450MB, download it ,install it and reboot.
6) Enjoy............the stock
Thanks to guides on youtubes and xda site.
Please note that if you follow these steps, you will not have any issues because I have done again and again without any issues but I do not take any responsibility of bricked devices if you perform wrong method or skip any thing.
Please hit the like if find this useful, it is absolutely freeeeee.............
Click to expand...
Click to collapse
How can i find one plus 3t recovery I cant find both twrp and one plus official recovery.
Hi, second post on the forums, I'm in bigger trouble now.
I unlocked my bootloader and then rooted my VNS-L21 so I could edit my hosts file. I tried going back to official and unrooted firmware afterwards, but something went wrong along the way.
The stages:
-OFW VNS-L21C432B504, obtained bootloader code through DC-unlocker (developer options on, OEM unlock on, debug usb on)
-unlocked bootloader with SRKtool using this method get-instant-huawei-bootloader-unlock-code/
-rooted using Magisk and made a full backup through Revolution Recovery using this method https://ministryofsolutions.com/2018/05/huawei-p9-lite-root-for-nougat-new-method.html
- some tinkering here but don't remember exactly plus I guess it's not that relevant ; I think I got rid of root here
- downgraded from Nougat to MM using dload method according to this thread https://forum.xda-developers.com/hu...torial-rollback-n-to-mm-c432-devices-t3563955 (first flashing rollback package from C432B504 to C900B300, then flashing C432B160 - full)
- everything went fine, bootloader relocked; but I was unable to upgrade to Nougat/B504 - settings-update showed "no updates available", putting update.app in dload folder (obtained from firmware finder, TeamMT, full B504 file) didn't work, pressing three buttons resulted in error (the version not compatible or sth)
-tried dload with previous rollback file
...and now I'm here:
- phone constantly stuck at boot screen (red Huawei logo)
- dload not starting by pressing three buttons
- recovery not starting by pressing volume up
The only thing I can get is white fastboot screen when connected to PC. It says "phone locked" (bootloader) in green, "FRP unlocked" in red. As usb debugging/oem unlock were not enabled this time, platform-tools/adb with command "adb devices" says nothing is connected, similar goes for SRK
Is it hopeless and my phone is thrash or is there anything I can do? Please help!
PS. All I wanted to do with my root was to change hosts file and then unroot/relock phone, seems like it wasn't worth all this work ( https://forum.xda-developers.com/huawei-p9lite/help/retaining-modified-hosts-file-unrooting-t3868641 )
Update: "fastboot devices" in adb directory resulted in detecting my device, next I found and tried command "fastboot oem [PASSWORD]", now there's a change: "This device cannot be trusted" is showing again, in fastboot I see "PHONE Unlocked" in red now. So time to flash some firmware with a command? But which firmware and how exactly to do that?
You have again unlocked your Bootloader? I suggest you flash a Nougat Compatible TWRP and then from within TWRP make wipes. After that use Hurupdater to flash Nougat firmware. First flash TWRP. If it boots into TWRP then format data and then wipe Dalvik/Art Cache, Cache, Data, System and Internal. Next download Hurupdater and stock Nougat Firmware. You need to download three ZIP update.zip, update_data_full_public.zip and regional update file. Next rename them as suggested in Hurupdater thread. Finally place all four files in same folder in SD card and then install and select only Hurupdater.zip to flash. After it complete reboot to stock recovery and factory reset. If all goes well you will be on Nougat.
Thank you so much, HuRU update method was what finally got me from Marshmallow to Nougat
So. I take it your phone is working now? Glad to know and be of help. If you need help with anything then just ask
Yes, it is, I'm currently struggling with systemless hosts on my Magisk rooted Nougat but other than that - everything works fine. Turns out that most of the recoveries I found then were meant for Nougat, only one recovery file worked on Marshmallow (and I've tried quite a few of such files and they were hard to find).
________________
After flashing TWRP recovery, updating Magisk to 17.3 beta and installing newest (4.0.10) version of Adaway - the problem is gone. My guess is that the fault was on Magisk's side as after updating it the "systemless hosts" function in Adaway was no longer grayed out.
I INSTALLED NEW VERSION TWRP RECOVERY IN ASUS ZENFONE MAX M1 BUT PHONE BOOTED STOCK RECOVERY AND MY PHONE BOOTING LONG TIME 15-20 MINTS
Did you unlock your bootloader first, if not, the recovery you wiped will restore itself, but if it cant...?
May also be caused by a/b partitioning? booting wrong boot slot..?
Yes I unlocked Bootloader this phone first time then flashed TWRP RECOVERY for official letest version from BUGJAEGER APP SUCCESSFUL but my phone BOOTING stock recovery AND system BOOTING 15-20 minutes
Because even though you unlocked bootloader, it is still stock bootloader, root it.
I try to many time to root but not working magisk,rootking & iroot but not working . Any suggestions ??
Get stock firmware for your fone.
It should be a zip.
extract that, go into the extracted folder, find boot.img
Place this boot.img in your adb folder
adb push boot.img /storage/emulated/0/Download (note: your dir may be slightly different, notice magisk looks in default folder 'Downloads'? Note the 's' ).
Then install magisk CANARY version, and point it to the boot.img now on your fone.
If your fone is online, it will flash your boot for you at this point. If it can ?
Make a backup of what magisk leaves in your fone. If it does not, backup your bootloader after it's complete, saves the hassle of being online everytime you need to root again
I flashed magisk boot.img now my phone stuck on fastboot mode how to fix ???
Did you flash it manually, via fastboot flash boot magisk_boot.img
or let magisk flash it while online? How did you go about it?
And what size is your bootloader? Some know I'm looking for 32mb bootloaders just now, not the 64mb ones
Also, do you know if your a/b partition?
What OS?
9,10,11,12?
I download boot.img on XDA then flashed magisk after reboot (magisk_patched-23000_YdcW1.img ) this file flashed fastboot mode on.
I don't know Bootloader size
Android 8
Check photo . This is right way ??
I tried "fastboot boot" almost all of KizuYuna's .imgs, tried fastboot boot the lineagerecovery.img. All I get is the fastboot logo and the phone just restarts into OOS... TWRP is same.
About to MSM downgrade to OOS 10 to get recovery working like I did before. Thought it would be better to flash a rom from OOS 11 to get better firmware compatibility but just wont work.
Simply go back to OS 10.3.5 using the MSM Download Tool. Upgrade via OTA to 11..1.1.1, fastboot flash boot magisk_patched-23000_11.1.1.1 from XDA 235Sanders15 post. (you are now rooted with Magisk. Via Magisk install TWRP-Installer-3.5.2_9-0 you are now unrooted but have TWRP installed. Using TWRP flash Magisk v23.0.You are now rooted on OS 11.1.1.1 with TWRP installed. Do not change the Kernel it will cause a Bootloop.
bpambrose said:
Simply go back to OS 10.3.5 using the MSM Download Tool. Upgrade via OTA to 11..1.1.1, fastboot flash boot magisk_patched-23000_11.1.1.1 from XDA 235Sanders15 post. (you are now rooted with Magisk. Via Magisk install TWRP-Installer-3.5.2_9-0 you are now unrooted but have TWRP installed. Using TWRP flash Magisk v23.0.You are now rooted on OS 11.1.1.1 with TWRP installed. Do not change the Kernel it will cause a Bootloop.
Click to expand...
Click to collapse
So you are saying MSM to 10 and then flash official 11.1.1.1 or fastboot flash boot magisk_patched-23000_11.1.1.1 (this is a full 11.1.11.1 OS flash? No need to use twrp from 10?)
Thanks
So I just went thru an Android 10 to 11.1.1.1 upgrade, and it was a bit frustrating. So I'll throw out what I learned along the way.
Note, I have a T-Mobile Variant, so sometimes you need different files/steps for T-Mo.
I flashed the full OTA via Settings > Update > Local Upgrade, which ended up boot-looping.
Via Fastboot, I did fastboot flash boot magisk_patched-23000_11.1.1.1.img; followed by fastboot reboot;
This was still boot-looping, so I shutdown the phone, and booted into recovery, which was now PBRP.
via PBRP, I flashed the full OTA again from my SDCard; then installed PBRP zip;
Reboot to System and got a Successful Boot. Yey.
Reboot to Recovery; Backup Boot.
Reboot to System
Install Magisk App; within Magisk > Install > select my Boot Backup to Patch (per Magisk instructions); I used a file manager to copy to my PC from my phone
Reboot to Fastboot; fastboot flash boot magisk_patched-23000_rJoA.img (the file Magisk created)
Reboot to System; Success!
I guess my morale of the story is, get a clean boot working, go from there. Patch your own boot, don't rely on someone else's.
Fenopy said:
So I just went thru an Android 10 to 11.1.1.1 upgrade, and it was a bit frustrating. So I'll throw out what I learned along the way.
Note, I have a T-Mobile Variant, so sometimes you need different files/steps for T-Mo.
I flashed the full OTA via Settings > Update > Local Upgrade, which ended up boot-looping.
Via Fastboot, I did fastboot flash boot magisk_patched-23000_11.1.1.1.img; followed by fastboot reboot;
This was still boot-looping, so I shutdown the phone, and booted into recovery, which was now PBRP.
via PBRP, I flashed the full OTA again from my SDCard; then installed PBRP zip;
Reboot to System and got a Successful Boot. Yey.
Reboot to Recovery; Backup Boot.
Reboot to System
Install Magisk App; within Magisk > Install > select my Boot Backup to Patch (per Magisk instructions); I used a file manager to copy to my PC from my phone
Reboot to Fastboot; fastboot flash boot magisk_patched-23000_rJoA.img (the file Magisk created)
Reboot to System; Success!
I guess my morale of the story is, get a clean boot working, go from there. Patch your own boot, don't rely on someone else's.
Click to expand...
Click to collapse
So you had to go through all the trouble because you had a bootloop issue when OTA updating to 11? I already got to 11 but am trying to fastboot boot a recovery because I want to flash a custom ROM... When I fastboot boot TWRP.img or LOS Recovery .img it just shows fastboot logo and restarts the phone with no recovery shown..