[GUIDE] Mi Mix 2 stock MIUI - Unroot, upgrade to Android Oreo OTA, re-root - Xiaomi Mi Mix 2 Guides, News, & Discussion

Disclaimer: I take no responsibility for your device. Use at your own risk!
If you have a rooted stock MIUI Mi Mix 2 running 7.x Nougat with encrypted data and wish to upgrade to 8.x Oreo via OTA:
Make sure you have fastboot on your PC. I'm not going to go into that here. Search and you will find it. If not, then flashing is not for you.
On your device: Open Magisk Manager and click Uninstall. This will remove root.
On your PC, download and install XiaoMi Flash Tool to install device drivers:
https://xiaomiflashtool.com/download/xiaomi-flash-tool-20170425
Download recovery.img to your PC from:
https://www.dropbox.com/s/bmz1xsqhb3v95mz/recovery.img?dl=0
Download this version of TWRP to your PC:
http://www.mediafire.com/file/nvrh79gbgrgio6d/Twrp+supersu_oreo.zip
Download no-verity-opt-encrypt 1.6 to your Mi Mix 2 from here:
https://www.nextgen-networks.de/de/...evices-recovery/29-no-verity-opt-encrypt.html
Download Magisk to your Mi Mix 2 from here:
https://forum.xda-developers.com/attachment.php?attachmentid=4450387&d=1521348853
Power off your Mi Mix 2 and boot into Fastboot mode by holding volume down and power.
Connect your device to PC with USB cable.
Open a command prompt and run
Code:
fastboot devices
to make sure your device is recognized.
Then run
Code:
fastboot flash recovery C:\recovery.img
making sure to put in the correct path to the recovery img that you downloaded from above.
Now reboot your device and go to Settings, About Phone, System Update, Check for Updates and install the OTA.
Your device should reboot and install the OTA and apply it.
Once you verify the OTA is installed, power off your device and return it to fastboot mode.
Open a command prompt and verify your device appears in fastboot
Then run
Code:
fastboot flash recovery C:\Twrp__chinese_Android8.img
making sure to put in the correct path to the TWRP img that you downloaded from above
After the TWRP recovery is installed, immediately boot into recovery (not system) by holding volume up and power.
Once in TWRP Enter your device passcode to allow access to device memory.
Flash no-verity-opt-encrypt 1.6 to prevent overwrite of TWRP by stock recovery.
Flash Magisk-v16.2(1620).zip to re-enable root.
Reboot to system

Thank you.

loomis666 said:
Thank you.
Click to expand...
Click to collapse
No problem!

Do I need to have an unlocked bootloader to upgrade to Oreo?
Thanks!

lasset said:
Do I need to have an unlocked bootloader to upgrade to Oreo?
Thanks!
Click to expand...
Click to collapse
If you don't have an unlocked bootloader, you should be able to just accept the OTA upgrade and it will install properly.

colorado_al said:
If you don't have an unlocked bootloader, you should be able to just accept the OTA upgrade and it will install properly.
Click to expand...
Click to collapse
Ok, thanks!

Thanks, this worked as a charm.

Im on miui pro rom, and i want to go back to miui because its more fluid. Since dowmload page is not working i cant download fastboot rom. Is there alternate way for this

goxthak0 said:
Im on miui pro rom, and i want to go back to miui because its more fluid. Since dowmload page is not working i cant download fastboot rom. Is there alternate way for this
Click to expand...
Click to collapse
http://en.miui.com/thread-2654431-1-1.html

Related

[ROOT][TWRP 3.0.2]Unlock Bootloader And Flash Twrp3.0.2 in lenovo vibe x3(all models)

Warning: i am not responsible for anything that happens to your device. Do this flashing at your own risk,if the process is done incorrectly then it may brick your device and your device warranty will be void after unlocking the bootloader.
The bootloader of lenovo vibe x3 can be unlocked on stock mashmallow. this process will not work in lollipop stock rom. so update your phone to mashmallow.
Now i suppose all of you know about adb,fastboot,twrp,etc.
so i start explaining the process:
Firstly backup all your important data in your pc
2.Now download all the files mentioned in downloads below
3.Now unlock your phone and enable developers options(how to unlock developers option is mentioned below).
4.Then enable oem unlocking and android debugging.(you should have your phone drivers installed in your pc.)
5.Now open the adb folder which you have installed from the downloads
6.Shift+right click to start a command prompt in adb folder
7.Then first check if your device has enabled the adb or not by typing this command: adb devices
8.Then type: adb reboot bootloader(lenovo logo appears on the phone screen).now your device is in fastboot mode.
9.Then run the fastboot command: fastboot oem unlock-go.
10.Displays turn off. That's all you have unlocked the bootloader.
11.Then type: fastboot reboot (and it will restart your device)
12.Now after the device turn on open the twrp zip and extract it.
13.In twrp folder you will find Flash-TWRP ( this command is used to flash the twrp recovery permanetly)and Run-TWRP(this command is used to flash the twrp recovery temporarly only for one boot up).
14.As you click either of the above file the process of flashing is starts and if the twrp is flashed successfully then your device will boot up in twrp recovery.
15.Once the twrp is booted up, it will ask for permission to change the system access, click the read only or you got into a bootloop.
16.Once the above process is done then go to install option and flash the twrp3.0.2 file, which you should have copied in your phone memory.
17.Once the img. is flashed restart your device in recovery mode(twrp menu->reboot->recovery)
18.It will take some time to restart into recovery, but it will surely restart.
19.Now the device is restarted in twrp3.0.2 but the initial language is chinese, but you an change it, to change the twrp language see screen shots
https://drive.google.com/file/d/0B0UFTLtCIxamZG1qcDcxV3U3LTQ/view?usp=sharing
https://drive.google.com/file/d/0B0UFTLtCIxamVENjNWRyUmt2S3c/view?usp=sharing
20.That's all guys you have successfully flashed the twrp 3.0.2 in your lenovo vibe x3.
21.Now if you want to get your device rooted then, just flash the super su file and your device will get root permissions.
Developers options unlocking:
Go to about phone
2.Find build number.
3.Multiple tap on it(approx 7 times.)
4.Developers option is unlocked in setting above the about phone option.
NOTE: After flashing the twrp2.8.7.7, when you boot it first time select the read only option otherwise your device will surely stuck in bootloop, due to secure boot of device.
If you want any help, then you can comment below
Hit like and thanks button if this post helps you.
Downloads
adb and fastboot:http://https://drive.google.com/file/d/0B0UFTLtCIxamLVFWT1RaU1NPZUU/view?usp=sharing
twrp2.8.7.7:http://https://drive.google.com/file/d/0B0UFTLtCIxamcWd3eVJ1dUxwTW8/view?usp=sharing
twrp3.0.2:https://drive.google.com/file/d/0B0UFTLtCIxamM1VoajVmejZqWFU/view?usp=sharing
supersu:https://drive.google.com/file/d/0B0UFTLtCIxamRWpsOTlsQWI0c2c/view?usp=sharing
The above downloads are collected from different sources. I am not the one who created it.
"lenovo vibe x3(all models)" - That's not true. it's only for Vibe X3C40.
Vibe X3C50 model don't have OEM Unlock option in developer menu available, so you can't enable it in this model. And no description how to enable it.
vibe x3 lite
vibe x3 lite as welll?
thank you
xmexme said:
"lenovo vibe x3(all models)" - That's not true. it's only for Vibe X3C40.
Vibe X3C50 model don't have OEM Unlock option in developer menu available, so you can't enable it in this model. And no description how to enable it.
Click to expand...
Click to collapse
mnfaceira said:
vibe x3 lite as welll?
thank you
Click to expand...
Click to collapse
Its depend which model you have EU or Chinese. If chnese then probably no.
If you can enable oem unlock in development option in your model then this metod will work for you.
mnfaceira said:
vibe x3 lite as welll?
thank you
Click to expand...
Click to collapse
vibe x3 lite is totally different model. It is a mtk device and vibe x3 is a qualcomm device. so i dont think it work on that. The twrp are all different for different phones. so the twrp wont work on vibe x3 lite.
xmexme said:
"lenovo vibe x3(all models)" - That's not true. it's only for Vibe X3C40.
Vibe X3C50 model don't have OEM Unlock option in developer menu available, so you can't enable it in this model. And no description how to enable it.
Click to expand...
Click to collapse
i have tried this method on x3a40(indain version). and the bootloader is already unlocked in chinese version. If it is locked then you can flash the x3a40 stock rom then unlock it with this method. it will work
Data
Will this wipe the data?
srikarss said:
Will this wipe the data?
Click to expand...
Click to collapse
no data will not be wiped in unlocking bootloader, unless you wipe the data yourself.
Can't OEM unlock
I try your method until fastboot oem unlock-go, display still on but everything in command say ok. Can't install TWRP. Please help Thank.
PrinceMSak said:
I try your method until fastboot oem unlock-go, display still on but everything in command say ok. Can't install TWRP. Please help Thank.
Click to expand...
Click to collapse
Which file have you run flash twrp.bat or run twrp.bat??
flash twrp after finish it's reboot to normal not recovery
---------- Post added at 06:16 PM ---------- Previous post was at 06:13 PM ----------
After run Flash TWRP it's boot to normal not recovery
PrinceMSak said:
flash twrp after finish it's reboot to normal not recovery
---------- Post added at 06:16 PM ---------- Previous post was at 06:13 PM ----------
After run Flash TWRP it's boot to normal not recovery
Click to expand...
Click to collapse
First place the twrp folder in phone memory(or memo card). Then Instead of flash twrp.bat, try run twrp.bat it will boot your phone in twrp, after getting into twrp select read-only option, then open install and go into twrp folder in memory, you will find your twrp img file select it, then flash it in recovery partition and its done your recovery is flashed permanently. Reboot your phone in recovery to check it.
Still can't use TWRP
I try new method but still not working, when reboot to recovery still on lenovo recovery not twrp. In my opinion oem unlock is not working because when i send command the display is still on not off.
PrinceMSak said:
I try new method but still not working, when reboot to recovery still on lenovo recovery not twrp. In my opinion oem unlock is not working because when i send command the display is still on not off.
Click to expand...
Click to collapse
You are having marshmallow as stock right?
TWRP OK Now
I fix't now by use twrp flash supersu 2.79 first then use second method to flash inside phone. Working now. my phone is stock 6.01 maybe chinese build. Thank for quick response.
PrinceMSak said:
I fix't now by use twrp flash supersu 2.79 first then use second method to flash inside phone. Working now. my phone is stock 6.01 maybe chinese build. Thank for quick response.
Click to expand...
Click to collapse
No problem
This procedure work on Lenovo VIBE X3 K51c78 with android 5.1 ROM VIBEUI_V2.9_1616_5.1340.1_ST_K51c78?
I have several problems with this device and I try update de ROM throught recovery mode but is not allowed, when it will start install (appear 0%), appear a X symbol in red.
So I need update the ROM but the device don't allow, anyone can help me?
r_m_f_f said:
This procedure work on Lenovo VIBE X3 K51c78 with android 5.1 ROM VIBEUI_V2.9_1616_5.1340.1_ST_K51c78?
I have several problems with this device and I try update de ROM throught recovery mode but is not allowed, when it will start install (appear 0%), appear a X symbol in red.
So I need update the ROM but the device don't allow, anyone can help me?
Click to expand...
Click to collapse
No this process only work with stock marshmallow, so you have to update your phone to marshmallow then, only you can unlock your bootloader and install twrp.
tarun yadvendu said:
No this process only work with stock marshmallow, so you have to update your phone to marshmallow then, only you can unlock your bootloader and install twrp.
Click to expand...
Click to collapse
thanks tarun yadvendu.
the question is how I can update my phone to stock marshmallow? When I try update it dont allow.
r_m_f_f said:
thanks tarun yadvendu.
the question is how I can update my phone to stock marshmallow? When I try update it dont allow.
Click to expand...
Click to collapse
Download the qfil zip rom and install it with qfil software. Follow this link for installing stock rom using qfil, select s217 rom file for marshmallow https://forum.xda-developers.com/android/development/rom-lenovo-vibe-x3-row-x3a40-stock-t3328461

Unable to Unbrick phone

Hey guys,
My younger brother had TWRP installed on his OP3. Yesterday he applied OTA and his phone got bricked. I unbricked it from MSMtool method (Qualcom Driver). It got unbricked and i have stock rom now however phone is stuck at android is upgrading (45 minutes). I tried restarting it and now it is in boot loop. i tried to flash latest OxygenOS from adb sideload and it got bricked again. Can anyone tell me what to do now or what is wrong with the device.
abdullah.ahsan11 said:
Hey guys,
My younger brother had TWRP installed on his OP3. Yesterday he applied OTA and his phone got bricked. I unbricked it from MSMtool method (Qualcom Driver). It got unbricked and i have stock rom now however phone is stuck at android is upgrading (45 minutes). I tried restarting it and now it is in boot loop. i tried to flash latest OxygenOS from adb sideload and it got bricked again. Can anyone tell me what to do now or what is wrong with the device.
Click to expand...
Click to collapse
You have TWRP installed? Use Method 2 of the unbrick guide. Now you want to wipe every partition then adb push your rom (not sideload) and manually flash it. Make sure you are on the latest Bluspark twrp.
Puddi_Puddin said:
You have TWRP installed? Use Method 2 of the unbrick guide. Now you want to wipe every partition then adb push your rom (not sideload) and manually flash it. Make sure you are on the latest Bluspark twrp.
Click to expand...
Click to collapse
I am using method 2, the OS gets stuck on bootloop that's why i tried to sideload later
I don't have a working recovery, all i can get is stock recovery, how can i install twrp?
I've tried flashing (fastboot flash recovery recovery.img) it but it is not working
abdullah.ahsan11 said:
I am using method 2, the OS gets stuck on bootloop that's why i tried to sideload later
I don't have a working recovery, all i can get is stock recovery, how can i install twrp?
I've tried flashing (fastboot flash recovery recovery.img) it but it is not working
Click to expand...
Click to collapse
Why is it not working? Does it give an error or something?
Puddi_Puddin said:
Why is it not working? Does it give an error or something?
Click to expand...
Click to collapse
Yes, it says flashing partition not allowed.
I suppose it is because usb debugging is off.
abdullah.ahsan11 said:
Yes, it says flashing partition not allowed.
I suppose it is because usb debugging is off.
Click to expand...
Click to collapse
Nah, In windows, go to Device Manager. How does your device show up? It has to do with wrong drivers.
Puddi_Puddin said:
Nah, In windows, go to Device Manager. How does your device show up? It has to do with wrong drivers.
Click to expand...
Click to collapse
Yes It shows up correctly.
abdullah.ahsan11 said:
Yes It shows up correctly.
Click to expand...
Click to collapse
What is correctly? What does it say? You might want to try different ADB drivers. You should be able to always flash In fastboot..
abdullah.ahsan11 said:
Yes, it says flashing partition not allowed.
I suppose it is because usb debugging is off.
Click to expand...
Click to collapse
Check again the bootloader to be unlocked. Use the tool for that, is it on OP3 forum, then retry to get a stock rom up before anything else (TWRP, custom rom, etc)
Sent from my OnePlus3 using XDA Labs
follow this instruction -
1- go into twrp and wipe everything even internal and formate it .
2- unistall all adb driver and oneplus driver also .. then clean tmp file from window
3rd- install latest adb+ oneplus 3 driver ..again restrat ..
4th-boot in fastboot mod and lock your bootloader
5th-flast latest build of oxygen stock recovery from fastboot
6th than again wipe or factory reset the device via stock recovery
7th open stock recoery than flash latest build of oxygen os via sideload
8th reboot the device and setup quikly
9th-unlock bootloader, flash bluespark recovery , flash rom, flash supersu ..
10th play with device

help please root mi8

hello everyone
Buy a Chinese mi8, unlock it waiting for the days that xiaomi tells you.
I installed the global version, and everything works correctly, but I want to change the rom.
I've tried to install TWRP with adb and it's impossible, it tells me the ADB template that OKEY, but never restarts in recovery mode with TWRP, so I can not install magisk, or any rom that is not official.
Is there any way to install a ROM (.zip) without TWRP?, how do I do Root without magisk? Has it happened to anyone?
thanks!
First of all, you're in the wrong section.
Second you should install via fastboot as described a thousand times AND reboot directly to your TWRP image via fastboot command.
The you can flash another from and root it.
Third, I'd like to strongly advice you to do some research about android, flashing etc to make sure that you know what you are doing.... So many people are moaning about bricked devices....
trahzebuck said:
First of all, you're in the wrong section.
Second you should install via fastboot as described a thousand times AND reboot directly to your TWRP image via fastboot command.
The you can flash another from and root it.
Third, I'd like to strongly advice you to do some research about android, flashing etc to make sure that you know what you are doing.... So many people are moaning about bricked devices....
Click to expand...
Click to collapse
Thanks for your help
It's not the first cell phone I've flashed that you're not smart.
I have followed the steps as they are, and as you can see in the image, everything seems to be installed correctly. But whenever I restart in recovery mode, I get the xiaomi no twrp.
Do you know why?
cheteuk said:
Thanks for your help
It's not the first cell phone I've flashed that you're not smart.
I have followed the steps as they are, and as you can see in the image, everything seems to be installed correctly. But whenever I restart in recovery mode, I get the xiaomi no twrp.
Do you know why?
Click to expand...
Click to collapse
You are trying to be smart? Well...
Why didn't you post your exact steps with fastboot in the first post?
Now it's clear what you did wrong. I already expected it. And you did NOT read what I wrote:
You are rebooting your device with fastboot reboot. In this case your twrp is wiped out by the XIAOMI recovery. Use: fastboot boot yourimagename.
btw, why are you using such an old TWRP? You won't be able to flash actual roms.
So I'd like to come back to my advice in the first answer....
cheteuk said:
Thanks for your help
It's not the first cell phone I've flashed that you're not smart.
I have followed the steps as they are, and as you can see in the image, everything seems to be installed correctly. But whenever I restart in recovery mode, I get the xiaomi no twrp.
Do you know why?
Click to expand...
Click to collapse
fastboot boot recovery.img
not fastboot reboot
Sent from my MI 8 using Tapatalk
Vuska said:
fastboot boot recovery.img
not fastboot reboot
Sent from my MI 8 using Tapatalk
Click to expand...
Click to collapse
I've tried twrp-3.3.1-0-dipper too, and fastboot boot xxxx.img.
And it hasn't been restarted either.
cheteuk said:
I've tried twrp-3.3.1-0-dipper too, and fastboot boot xxxx.img.
And it hasn't been restarted either.
Click to expand...
Click to collapse
Use the all in one tool, to remove encryption and flash a compatible TWRP.
tsongming said:
Use the all in one tool, to remove encryption and flash a compatible TWRP.
Click to expand...
Click to collapse
What is the all in one tool?
cheteuk said:
What is the all in one tool?
Click to expand...
Click to collapse
Try this. There is all you need.
https://tradingshenzhen.com/de/cont...sh-tutorial-global-firmware-xiaomieu-firmware
Upps, in German. You can choose English.
Goalach said:
Try this. There is all you need.
https://tradingshenzhen.com/de/cont...sh-tutorial-global-firmware-xiaomieu-firmware
Upps, in German. You can choose English.
Click to expand...
Click to collapse
Thanks for the help.
But all the steps that indicate, I have passed them and I never install the TWRP correctly.
1. my mobile phone is unlocked (with the padlock open)
2. I have the official rom installed
3. I try to install twrp with all the commands you have told me, and I never restart the mobile with twrp. I've tried new, intermediate and older versions. and nothing
Is there any way to install an unofficial rom without TWRP?
cheteuk said:
Thanks for the help.
But all the steps that indicate, I have passed them and I never install the TWRP correctly.
1. my mobile phone is unlocked (with the padlock open)
2. I have the official rom installed
3. I try to install twrp with all the commands you have told me, and I never restart the mobile with twrp. I've tried new, intermediate and older versions. and nothing
Is there any way to install an unofficial rom without TWRP?
Click to expand...
Click to collapse
You can't flash a ROM without TWRP and Magisk is the only way you can root your phone that I know of. If you don't even know these simple things/haven't done simple research you might risk to softbrick or even hardbrick your new and shiny phone. There are many guides on how to flash TWRP but you can PM me if you want more help.
Also you don't install TWRP with adb, you need to use fastboot...
cheteuk said:
What is the all in one tool?
Click to expand...
Click to collapse
The number 1 result
http://bfy.tw/Nvtb
You can try this
Make sure you have activated the usb debugging in developer options.
1. Download the tools from here: bit.ly/FlashToolMi8
2. Install the minimal_adb_fastboot_v1.3.1_setup
3. Copy the twrp-3.2.3-0-dipper.img to Minimal ADB and Fastboot Folder
4. Turn off your phone completely. then press power button + volume down to boot in fastboot mode.
5. Run CMD as Administrator then cd to the installed Minimal ADB and Fastboot folder. (Ex: cd C:\Program Files (x86)\Minimal ADB and Fastboot)
6. Use this command on your cmd: fastboot flash recovery twrp-3.2.3-0-dipper.img
7. Then: fastboot boot twrp-3.2.3-0-dipper
8. And: fastboot reboot recovery
9. You're now in twrp recovery mode
10. Copy Disable_Dm-Verity_FEC_v1.1 and Magisk-v18.1 to your phone
11. Install Disable_Dm-Verity_FEC_v1.1 from twrp
12. Then install Magisk-v18.1
13. Reboot, Your phone now rooted

The classic way to install TWRP、Magisk and more

Installing magisk_patched is unnecessary.
download ADB here
download TWRP here
download magisk here
first ,we must unlock bootloader.
Settings->About phone->tap at Build number 7 times.Now,we unlocked the "Developer options". open it and turn the OEM unlocking on.
Reboot to bootloader&Run this command on your computer with ADB:
fastboot oem unlock
Use Volume key to select&Power key to enter.
(Ensure you have fully backed up all your files first because the device will be wiped back to default factory state but with an unlocked bootloader)
reboot to bootloder&connect us phone to computer.
Run this command on your computer with ADB:
fastboot boot twrp-3.3.1-2-guacamole.img
then,the phone will reboot to TWRP,but this not end for install, it will be broke after you reboot again, we must install the twrp-installer-3.3.1-2-guacamole.zip In this TWRP.
after this step we got the TWRP installed.
then use TWRP to install the last release magisk.
now we got magisk installed & SafetyNet-pass.
you can install xposed or not .
thanks all&enjoy.
This guide completely misses unlocking the bootloader, changing the option in developer settings to OEM unlock is NOT unlocking the bootloader. Please amend your guide to show the missing steps:
Running the following in the bootloader is how to correctly unlock the bootloader :
fastboot devices
Make sure your device is reported correctly
fastboot oem unlock
(Ensure you have fully backed up all your files first because the device will be wiped back to default factory state but with an unlocked bootloader)
djsubterrain said:
This guide completely misses unlocking the bootloader, changing the option in developer settings to OEM unlock is NOT unlocking the bootloader. Please amend your guide to show the missing steps:
Running the following in the bootloader is how to correctly unlock the bootloader :
fastboot devices
Make sure your device is reported correctly
fastboot oem unlock
(Ensure you have fully backed up all your files first because the device will be wiped back to default factory state but with an unlocked bootloader)
Click to expand...
Click to collapse
reedit now,thx
May want to fix Ture to True and after flashing the TWRP-installer reboot back to TWRP to make sure it sticks(Recovery Installed) before you flash Magisk zip.
Don't forget to flash to both slots to get everything to stick.
Its pretty hard to fail safetynet. I've flashed many different things on this phone and never failed it.
JeSUS! FINALLY! After trying out that other method of rooting, installing twrp and magisk (by using patched images) THIS worked. I updated to 9.5.6 (back to stock, but still bootloader unlocked) and then followed this guide to rooting this phone. Finally! Whew! Wish I had done this from the start. I'm able to go get some sleep now! Thanks OP!
So many great minds here! Best community for a specified device that ive ever had the pleasure of being a part of. Can't wait to try this when my unlock token comes in ?
roaduardo said:
JeSUS! FINALLY! After trying out that other method of rooting, installing twrp and magisk (by using patched images) THIS worked. I updated to 9.5.6 (back to stock, but still bootloader unlocked) and then followed this guide to rooting this phone. Finally! Whew! Wish I had done this from the start. I'm able to go get some sleep now! Thanks OP!
Click to expand...
Click to collapse
This is the classic way to get root,happy to help you
Purest said:
Don't forget to flash to both slots to get everything to stick.
Click to expand...
Click to collapse
I am waiting for the gsi of resurrection remix, curing twrp now is unnecessary
just making sure:
adb devices
adb reboot bootloader
fastboot devices
fastboot oem unlock (have it checked in dev options first)
reboot into bootloader after phone setup
fastboot boot twrp ................img
install twrp..............zip
install magisk
reboot?
equlizer said:
just making sure:
adb devices
adb reboot bootloader
fastboot devices
fastboot oem unlock (have it checked in dev options first)
reboot into bootloader after phone setup
fastboot boot twrp ................zip
install twrp..............zip
install magisk
reboot?
Click to expand...
Click to collapse
Did u try it ? Im waiting on confirmation as well
This is the method that I have been doing all along and it works everytime without any issues.
equlizer said:
just making sure:
adb devices
adb reboot bootloader
fastboot devices
fastboot oem unlock (have it checked in dev options first)
reboot into bootloader after phone setup
fastboot boot twrp ................zip
install twrp..............zip
install magisk
reboot?
Click to expand...
Click to collapse
Should be fastboot boot TWRP.img then install either twrp.zip if there's an installer or twrp.img if not
JTruj1ll0923 said:
Should be fastboot boot TWRP.img then install either twrp.zip if there's an installer or twrp.img if not
Click to expand...
Click to collapse
fixed my post so this method i dont have to worry about slots a and b right? Then what about when an update comes. Do i flash the full update or can i do an OTA? If i flash a full .zip will i loose my data? I'm coming from a pixel 2 xl.
Can someone please clarify. If I do this on slot A, how do I change over to Slot B to do it?
BlueMemory said:
Installing magisk_patched is unnecessary.
download ADB here
download TWRP here
download magisk here
first ,we must unlock bootloader.
Settings->About phone->tap at Build number 7 times.Now,we unlocked the "Developer options". open it and turn the OEM unlocking on.
Reboot to bootloader&Run this command on your computer with ADB:
fastboot oem unlock
Use Volume key to select&Power key to enter.
(Ensure you have fully backed up all your files first because the device will be wiped back to default factory state but with an unlocked bootloader)
reboot to bootloder&connect us phone to computer.
Run this command on your computer with ADB:
fastboot boot twrp-3.3.1-2-guacamole.img
then,the phone will reboot to TWRP,but this not end for install, it will be broke after you reboot again, we must install the twrp-installer-3.3.1-2-guacamole.zip In this TWRP.
after this step we got the TWRP installed.
then use TWRP to install the last release magisk.
now we got magisk installed & SafetyNet-pass.
you can install xposed or not .
thanks all&enjoy.
Click to expand...
Click to collapse
Flashing twrp Breaks wifi.
ashokmor007 said:
Flashing twrp Breaks wifi.
Click to expand...
Click to collapse
Does it really? I just ordered a 7 Pro yesterday so I don't have mine yet.
Hi everyone its not working for me i wonder why i am on gm1915
H4X0R46 said:
Does it really? I just ordered a 7 Pro yesterday so I don't have mine yet.
Click to expand...
Click to collapse
No it doesn't. I flashed the twrp installer zip with magisk and my wifi is working just fine.
---------- Post added at 09:24 PM ---------- Previous post was at 09:21 PM ----------
schmeggy929 said:
May want to fix Ture to True and after flashing the TWRP-installer reboot back to TWRP to make sure it sticks(Recovery Installed) before you flash Magisk zip.
Click to expand...
Click to collapse
schmeggy what up. I see you're still rockin the Bad BoyZ siggy

[Recovery] TWRP (Unofficial/Experimental) for Samsung M40

We got our first recovery for Samsung M40 (SM-M405F). This one is ported using Samsung Auto TWRP recovery porter by Team Hovatek
Please try and let everyone know if it works for you or not.
(If you want to do it yourself for any other Android OS version, you can refer to the original Hovatek post.)
You must disable dm_verity before flashing TWRP.
TWRP based on version: 3.5.*
Details of base recovery used for porting:
Source: Extracted from downloaded firmware
Version: Android 11
Build Date: Mon, 12 Apr 2021 07:54:43 +0000
Security Patch Level: 2021-04-01
Product code: INS
PDA: M405FDDU2CUD2
CSC: M405FODM2CUD2
If this works for you, please post here so everyone will know.
If something goes wrong you need and any stock img/file let me know, I will share that too.
Update 1 =>
NOTE: Unfortunately, I can not test this recovery for few more days as this M40 is the only device that I have and it is also source of internet access for me and my laptop. If this mobile is turned off for any reason I wont have internet access so looking for fixes would be difficult.
But I have rooted some devices before and know how things work so I will help in every possible way if someone stuck at any place while trying this recovery.
Also, if someone confirms this recovery does not work, I am planning to port TWRP from scratch.
Update 2 =>
Instructions for NON-Rooted and Bootloader locked device-
Unlocking Bootloader:
Allow bootloader unlocking in Developer options → OEM unlocking
Reboot to download mode: power off your device and press Volume Up + Volume Down and plug in your device to a PC to boot into download mode.
Long press volume up to unlock the bootloader. This will wipe your data and automatically reboot.
Go through the initial setup. Skip through all the steps since data will be wiped again in later steps. Connect the device to Internet during the setup.
Enable developer options, and confirm that the OEM unlocking option exists and is grayed out. This means the VaultKeeper service has unleashed the bootloader.
Your bootloader now accepts unofficial images in download mode
Disable DM_Verity (Android Verified Boot):
Copy the vbmeta.img (download from attachments) into your adb and fastboot folder
You can now flash the vbmeta.img using fastboot to remove dm_verity from your device
// Enable USB Debugging and enter following commands in CMD/Terminal after connecting device to computer.
adb devices
// You should see your device listed
adb reboot-bootloader
// Device should reboot to bootloader
fastboot devices
// You should see your device listed
fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img
// OR if the command above doesn't work, try below
fastboot flash vbmeta vbmeta.img
// DONE
////////////////////////////////++++++++++++++++++++++++++////////////////////////////////
Note: For Magisk Rooted devices above steps are not required, as Magisk already patches vbmeta.img and disabled dm_verity (Android Verified Boot)
Flash TWRP with/without Root using Odin
1. Download and install Odin on your PC
2. Download the attached recovery.img, convert it into .tar
3. Reboot to download mode: power off your device and press Volume Up + Volume Down and plug in your device to a PC to boot into download mode.
4. Select recovery.tar under AP_ and Uncheck “Auto Reboot” in Options!
5. Flash the device
6. Now do not power on to System, enter into Recovery/TWRP mode using key combination.
Once TWRP is booted, TWRP will patch the stock ROM to prevent the stock ROM from replacing TWRP. If you don't follow this step, you will have to repeat the install.
*DONE*
Enjoy TWRP!
Can you tell step by step procedure for flashing twrp in m40.
How to disable dm-verity?
I guess this didn't work in my device.
"reason recovery: error verifying vbmeta image: invalid vbmata header" error is coming.
Shashvatsawar said:
I guess this didn't work in my device.
"reason recovery: error verifying vbmeta image: invalid vbmata header" error is coming.
Click to expand...
Click to collapse
You must disable dm_verity before flashing TWRP.
Is your device rooted?
How did you flash this TWRP?
Please share your device info.
did you already tested it on your device??
rohitrss said:
You must disable dm_verity before flashing TWRP.
Is your device rooted?
How did you flash this TWRP?
Please share your device info.
Click to expand...
Click to collapse
My Product code : SM-M405FZBDINS
My device is rooted using magisk patch.
I flashed twrp before root using odin.
I didn't disable dm_verity.
How can I disable dm_verity?
deadinside322 said:
did you already tested it on your device??
Click to expand...
Click to collapse
Unfortunately no, I can not do any testing for few more days as this M40 is the only device that I have and it is also source of internet access for me and my laptop. If this mobile is turned off for any reason I wont have internet access so looking for fixes would be difficult.
But I have rooted some devices before and know how things work so I will help in every possible way if someone stuck at any place while trying this recovery.
Also, if someone confirms this recovery does not work, I am planning to port TWRP from scratch.
Thread title and note updated.
Shashvatsawar said:
My Product code : SM-M405FZBDINS
My device is rooted using magisk patch.
I flashed twrp before root using odin.
I didn't disable dm_verity.
How can I disable dm_verity?
Click to expand...
Click to collapse
As you have flashed TWRP before root, it failed at verification stage. You need to disable dm_verity, please follow https://forum.hovatek.com/thread-32719.html based on your OS version.
Otherwise, you can flash TWRP after rooting as Magics already disables dm_verity.
rohitrss said:
As you have flashed TWRP before root, it failed at verification stage. You need to disable dm_verity, please follow https://forum.hovatek.com/thread-32719.html based on your OS version.
Otherwise, you can flash TWRP after rooting as Magics already disables dm_verity.
Click to expand...
Click to collapse
I tried it But I am not able to boot into recovery then.
It just reboots.
Shashvatsawar said:
I tried it But I am not able to boot into recovery then.
It just reboots.
Click to expand...
Click to collapse
Did you try key combination or adb command?
Also, could you please share what all have you tried/done so far so I will have better idea?
I unlocked the bootloader, then booted my device to download mode.. change .img file extension to .tar then tried to flashing it using oden and selected recovery.tar in AP slot.. but it's stuck on file analysis.
Any help? Any step I did wrong? Let me know
Akhil137 said:
I unlocked the bootloader, then booted my device to download mode.. change .img file extension to .tar then tried to flashing it using oden and selected recovery.tar in AP slot.. but it's stuck on file analysis.
Any help? Any step I did wrong? Let me know
Click to expand...
Click to collapse
As you have flashed TWRP before root, it failed at verification stage. You need to disable dm_verity, please follow https://forum.hovatek.com/thread-32719.html based on your OS version.
Otherwise, you can flash TWRP after rooting as Magics already disables dm_verity.
rohitrss said:
Did you try key combination or adb command?
Also, could you please share what all have you tried/done so far so I will have better idea?
Click to expand...
Click to collapse
I followed this thread to root my device
https://forum.xda-developers.com/t/root-sm-m405f-galaxy-m40.3951491/
There was no option of dm verity while patching stock rom using magisk.
Though My phone was successfully rooted.
I can't use fastboot as it's not showing my device in devices list ( tried a lot).
Finally I flashed your recovery using odin but after going to recovery mode it rebooted only. For recovery mode I tried key combination first and then a root app after device booted.
Updated post with detailed flashing instructions.
rohitrss said:
Updated post with detailed flashing instructions.
Click to expand...
Click to collapse
did the recovery work for you?
Is there any update?
When i try to go to bootloader, my device always go to download mode. how can i fix this???
rohitrss said:
Unfortunately no, I can not do any testing for few more days as this M40 is the only device that I have and it is also source of internet access for me and my laptop. If this mobile is turned off for any reason I wont have internet access so looking for fixes would be difficult.
But I have rooted some devices before and know how things work so I will help in every possible way if someone stuck at any place while trying this recovery.
Also, if someone confirms this recovery does not work, I am planning to port TWRP from scratch.
Click to expand...
Click to collapse
Bro, I am going to use twrp in my main phone M40.
And I don't care if it gets bricked :>

Categories

Resources