[GUIDE] How to unlock bootloader on Moto E(6) Plus (pokerp) [WINDOWS ONLY] - Moto E6 Plus Guides, News, & Discussion

* I'm not responsible for bricked devices, dead SD cards, thermonuclear war, or you getting fired because the alarm app failed (like it did for me...).
* YOU are choosing to make these modifications, and if you point the finger at me for messing up your device, I will laugh at you.
* Your warranty will be void if you tamper with any part of your device / software.
Click to expand...
Click to collapse
Please read this carefully before making any changes to your device.
Click to expand...
Click to collapse
I am not going to include recovery in this tutorial, you are free to choose what to use
Prerequisites:
Download SP FlashTool version 5.1916 (If you use another it probably won't work properly)
Download the old version of the stock rom from this link
Extract the Flashtool and the stock rom into your preferred folders
Don't forget to get the MT67xx preloader drivers
Don't forget to have adb and motorola drivers installed
Steps to unlock the bootloader:
Start flashtool, go to options and disable the option "check lib da match"
Select the DA (Download Agent) of the stock rom, also load the stock scatter and finally load the .auth that is in the stock rom
Start flashing the stock rom without first connecting your device, once you have used the download button you can connect your device, wait for the flashing to finish
Once the old system is flashed, disconnect the computer and go to fastboot (use the power and volume down buttons)
From fastboot use the command "fastboot flashing unlock" or "fastboot flashing unlock_critical" with that the bootloader is already unlocked, but it is necessary to flash 3 files to be able to use a custom recovery
To flash those files use these commands
fastboot flash lk lk.img
fastboot flash vbmeta vbmeta.img
fastboot flash recovery (recovery name) .img
Suggestions:
I recommend flashing dm-verity and force encrypt disabler (currently recoveries do not support encryption)
Once you flash that file from the recovery go to wipe, and from wipe touch the option "format data" and type "yes"
Credits:
[email protected]
@GarfieldФернандо

reserved

The drivers for this device are not installed. (Code 28) tried installing about a dozen drivers, do you have the specific one? for fastboot

Related

Couldn't install Update fix

if you have any problems with updating just follow this instructions
First of all you need unlocked bootloader
1.Download and install adb and drivers (if you did it then skip this)
2. download stock rom there - https://forum.xda-developers.com/mi-a2/how-to/ota-v9-6-5-0-odimife-t3823445
(i recommenting to download your current rom version)
3.download ota flasher from here - https://downloadmirror.co/2CVe/mi-a2-OTAFlasher.zip
4.extract ota flasher and .img files to the same folder
5.switch off your phone and go to Fatsboot mode (press power + volume down button for 8sec)
6.connect your phone to pc and double click to 'OTAflasher.bat'
7.wait for finish
8. restart your phone and update it
this method worked for me and i wanted to share it with you guyz
if you need any help lemme know
have good day
You need to unlock critical partitions then only can flash stock rom
Use this command -
fastboot flashing unlock_critical
ckpv5 said:
You need to unlock critical partitions then only can flash stock rom
Use this command -
fastboot flashing unlock_critical
Click to expand...
Click to collapse
but this will earse all my data right?
Yes .. if I remember correctly this unlock_critical will erase data. That's why it is advised to do it right after unlocking bootloader.
BTW .. the OTA Flasher that is linked at item no. 3, also available at originally posted on XDA - https://forum.xda-developers.com/showpost.php?p=78123332&postcount=457
can download without waiting time.

[GUIDE] [WIKI] [Realme XT] Unlocking, Unbricking, Custom recovery, GSI guide and more

Realme XT Wiki
For convenience : https://www.androidfilehost.com/?w=files&flid=304989
First things first.
DISCLAIMER : Use this guide at your own risk. I won't be responsible for you bricking your device due to following this guide. It's also necessary to back up your data before you attempt anything.
Realme XT is not really a developer friendly device as they claim to be for the following reasons.
- Bootloader restricts flashing critical partitions and certain fastboot options are disabled like
Code:
fastboot boot recovery.img
- The flash tool is only available to service centres.
- Kernel sources are not actively updated by realme.
- Nil response to developer's queries.
Code:
[B][U]Table of contents :[/U][/B]
- Unlocking the bootloader
- Unbrick guide
- TWRP guide
- Upgrade guide
- Downgrade guide
- Project Treble for Realme XT
- Links
For unlocking the bootloader, follow the official instrutions from here :
https://c.realme.com/in/post-details/1184740422732218368
As of 28/03/20, you can unlock the bootloader in Realme UI. The official guide for XT is still not updated by realme, but the bootloader unlock app tool that was released for realme3pro works for XT.
UNBRICK GUIDE FOR REALME XT : (FASTBOOT)
Most bricks that happen with devices are softbricks. This means you can boot into stock recovery using key combination or you can access fastboot.
Hardbricks are where your device basically does nothing no matter what you do.
If you are on Color OS 6 or realme UI on locked bootloader :
- Switch off your device
- Press volume up + power button hold it until it finishes starting up.
- You will see the recovery menu now
- Press online update and connect it to wifi and follow instructions
If you are on color os 6 on unlocked bootloader :
Prerequisite:
1. You need to have unlocked bootloader
2. Platform tools setup and added to system environmental variables under windows
OR
Just install this : https://forum.xda-developers.com/showthread.php?t=2317790
Since custom ROMS don't deal with critical partitions, there is very less chance that the critical partitions are messed up. Majority of the times you would be fine with just flashing the boot image, system image, vendor image, vbmeta.
Instructions for color os 6 (Android pie firmware) :
Download the stock pie A16 fastboot image from the links section and extract it :
Just flash by executing the following commands :-
Code:
fastboot flash boot boot.img
fastboot flash system system.img
fastboot flash vendor vendor.img
fastboot flash vbmeta vbmeta.img
fastboot flash dtbo dtbo.img
fastboot flash oppo_sec oppo_sec.img
fastboot flash modem modem.img
fastboot flash splash splash.img
fastboot flash DRIVER DRIVER.img
fastboot reboot
If you are on Realme UI on unlocked bootloader :
Prerequisite :
Download the stock Realme UI fastboot image from the links section and extract it :
Note : The zip file has other partitions too. Hopefully, you shouldn't need them.
Just flash the boot,system,vendor and vbmeta by executing the following commands
Code:
fastboot flash boot boot.img
fastboot flash system system.img
fastboot flash vendor vendor.img
fastboot flash vbmeta vbmeta.img
fastboot flash dtbo dtbo.img
fastboot flash oppo_sec oppo_sec.img
fastboot flash modem modem.img
fastboot flash splash splash.img
fastboot flash DRIVER DRIVER.img
fastboot reboot
Guide to Custom Recovery:
Prerequisite:
1. You need to have unlocked bootloader
2. Platform tools setup and added to system environmental variables under windows
OR
Just install this : https://forum.xda-developers.com/showthread.php?t=2317790
TWRP Recovery
Orangefox Recovery
Instructions to install TWRP recovery:
Run this command
Code:
fastboot flash recovery TWRP.img
You can install orangefox recovery by flashing it via TWRP recovery or by extracting the recovery.img from orangefox recovery.zip file.
Upgrade guide :
You can always find the latest update from here : https://www.realme.com/in/support/software-update
Upgrading from android pie to android 10 carries the risk of bricking your device. Be it locked or unlocked. Thus proceed with caution and ONLY use stock recovery to update from android pie to android 10.
If you are on locked bootloader,
Step 1 :Simply download the update of your choice from the Links section and try to open it in stock file manager.
Note : If it doesn't show the update option in stock file manager, just rename the file from *.zip to *.ozip and try again
Step 2 : Press reboot immediately after the flashing is done
Step 3 (Very important) : Pray that everything works. Bricks can happen to anyone.
If you are on unlocked bootloader,
Step 1:In case you already have TWRP working on pie, simply flash the official stock android pie A16 through twrp and let it boot.
Step 2:Now, let it fully boot into the system
Step 3: Go to stock file manager and follow similar instructions as is for locked bootloader that's written above.
Downgrade guide :
Prerequisite:
In case you are in realme UI (Android 10) and want to roll back to android pie for any reason, you need to backup your data and flash stock pie A16 via TWRP
Step 0 : Back up your data and download stock A16 firmware from the links section below
Step 1 : Go to TWRP and flash stock pie
Step 2 : Flash stock pie again
Step 3 : Format data and reboot
Project Treble for Realme XT :-
You could refer here for what works and what doesn't
https://github.com/phhusson/treble_experimentations/wiki/realme-XT
Prerequisite :
1. You need to have unlocked bootloader
2. Platform tools setup and added to system environmental variables under windows
OR
Just install this : https://forum.xda-developers.com/showthread.php?t=2317790
3. You need to be on realme UI (Android 10)
Typically, you could install GSI without even using TWRP.
Step 1: Download any A/B arm64 GSI of your choice
Step 2: Erase userdata using the command
Code:
fastboot -w
Step 3: Flash system.img using fastboot command
Code:
fastboot erase system && flash system system.img
Step 4: Flash RUI vbmeta with flags
Code:
fastboot flash --disable-verity --disable-verification vbmeta vbmeta.img
Optional : Flashing TWRP helps with installing magisk and device specific treble fixes and is highly recommended.
USEFUL LINKS :
Recovery (Both stock and TWRP), Fastboot images and Official Updates
https://www.androidfilehost.com/?w=files&flid=304989
Realme XT Android 10 C01 (Realme UI)
https://download.c.realme.com/osupdate/RMX1921EX_11_OTA_1010_all_yuEH87qmmZhw.ozip
Realme XT Android pie A16
https://download.c.realme.com/osupdate/RMX1921EX_11_OTA_0160_all_CcmkxwAnmByA.ozip
Realme XT stock vbmeta Android 10 C01 (Realme UI)
Help!!
I am on coloros 6 (a16) and i have unlocked bootloader (twrp not installed) so how can i update it to rui. Via stock file manager method or just install twrp in a16 and flash rui(c_02) ozip in twrp. So, Which will be a better and safe way to update and avoid bricking the phone according to you.
mehtakush007 said:
I am on coloros 6 (a16) and i have unlocked bootloader (twrp not installed) so how can i update it to rui. Via stock file manager method or just install twrp in a16 and flash rui(c_02) ozip in twrp. So, Which will be a better and safe way to update and avoid bricking the phone according to you.
Click to expand...
Click to collapse
Use the stock recovery for update and wait for official OTA.
Reset Device
My device is locked and now i forgot my password and when i am trying to wipe data from realme ui recovery its asking for password again is there anyway to bypass that security and reset my device please help i cant go to sevice centers right now due to lockdown in my country.
Leamusex said:
My device is locked and now i forgot my password and when i am trying to wipe data from realme ui recovery its asking for password again is there anyway to bypass that security and reset my device please help i cant go to sevice centers right now due to lockdown in my country.
Click to expand...
Click to collapse
So u must wait for that. . Me waiting for tutorial to downgrade realme ui to a16 or. How to unlock bootloader with realmeui firmware.
Leamusex said:
My device is locked and now i forgot my password and when i am trying to wipe data from realme ui recovery its asking for password again is there anyway to bypass that security and reset my device please help i cant go to sevice centers right now due to lockdown in my country.
Click to expand...
Click to collapse
Unfortunately no. you must input password or your data is a lost cause.
krizhiel said:
So u must wait for that. . Me waiting for tutorial to downgrade realme ui to a16 or. How to unlock bootloader with realmeui firmware.
Click to expand...
Click to collapse
The tutorial is already there in the wiki. Although make sure you backup your data first.
PS C:\adb> fastboot flash recovery C:\adb\TWRP_RMX1921_pjgowtham_290320.img
sending 'recovery' (65536 KB)...
it did not flash it just stayed there forever
I have bricked my device. I have a bootloop. Combinations of keys don't work, recovery doesn't show up. Bootloader is locked. Can anyone help?
dmmas21 said:
I have bricked my device. I have a bootloop. Combinations of keys don't work, recovery doesn't show up. Bootloader is locked. Can anyone help?
Click to expand...
Click to collapse
Same problem i have..Any help please..
dmmas21 said:
I have bricked my device. I have a bootloop. Combinations of keys don't work, recovery doesn't show up. Bootloader is locked. Can anyone help?
Click to expand...
Click to collapse
You locked manually?
akashavel said:
You locked manually?
Click to expand...
Click to collapse
yes, me too. And now i have hardbrick and dont know how to fix this without service centre
bro Did You fixed it ?
I am on RMX1921_11_C.04 is there anyway to install custom recovery?
I bought a realme xt and upgraded it to realme ui version c04 but I get some random crash reports I don't know what is it they just randomly pop up 1-2 times per day along with a screenshot I am uploading those please can someone check.
My device bootloop'ed after following your downgrade tutorial. Tried boot unbrick it like your tutorial to no avail
Anyone who is now used to with this device and have done all these steps from Unlocking bootloader to flashing recoveries to installing custom & Stock Roms, can you please tell me what are the senarios in which this device can brick and only restored by Realme service center? I mean what possible error we can make that gives error of boot/recovery destroyed and only needs to visit realme service center?
I am very new to realme, before getting started with unlocking bootloader, i want to be sure about my steps, actually all i need is to use titanium backup for old data transfer of apps, my phone records etc, and most importantly using viper4android. This is all i am going to do after unlocking bootloader.
Raju Sah said:
Same problem i have..Any help please..
Click to expand...
Click to collapse
A reply this late isnt probably useful. But for others who refer this thread, once locked, it can be saved only by flashtool if you cant access stock recovery.
Fastboot commands not working
Hey there.
I am using realme xt with realme UI and i tried to unlock the bootloader. The bootloader is unlocked successfully but the fastboot commands arent working now on the device. This is whats happened while relocking the bootloader and same error for flashing recovery.
D:\Root\platform-tools>adb devices
* daemon not running; starting now at tcp:5037
* daemon started successfully
List of devices attached
f40db298 device
D:\Root\platform-tools>adb reboot bootloader
D:\Root\platform-tools>fastboot devices
f40db298 fastboot
D:\Root\platform-tools>fastboot flashing lock
FAILED (Write to device failed (Unknown error))
fastboot: error: Command failed
D:\Root\platform-tools>fastboot flashing lock
< waiting for any device >
^C
D:\Root\platform-tools>fastboot devices
D:\Root\platform-tools>
this also happened while flashing recovery also. And I am kind of stuck i cant relock the bootloader and cant install custom recovery to root the device.
Kindly, guide me to solve this problem. Thanks in Advance.
Hi, anybody can help me? I want to sell my phone so i wanted to flash stock rom and lock the bootloader. But i dont find any post or something like that to do so... Do you know how can i flash the stock rom and relock the bootloader like we can do with xiaomi phones?

[Unofficial] TWRP for Xperia 10 II [10.0]

TWRP for Xperia 10 II
Code:
/*
*Disclaimer
*
* Your warranty may be void.
*
* We're not responsible for bricked devices, dead OTGs or you getting fired because the alarm app failed.
* Please do some research if you have any concerns about features included in this ROM
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at us for messing up your device, we will laugh at you.
*/
Download: Github
Bugs: sideload
How to flash:
Unlock bootloader is necessary!
1. Download the TWRP image file to your PC.
2. Put your device into fastboot by volume up key.
3. Type the following command to flash the recovery:-
Code:
fastboot flash recovery recovery.img
4. Unplug the USB cable, hold power + volume down.
Might be useful:
If you can't enter twrp, you need to do:
Code:
fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img
Decryption failed in twrp:
This might happen if you just unlocked bootloader.
Solution: Format data, enter twrp again.
Relock bootloader: See this
Contributors: @Sjll
Thanks to mauronofrio
Source: Github
Date: 2020-11-14
Make Xperia Great Again!
Thank you very much!
Awesome!
Is it possible to flash Magisk and root Stock Sony Firmware now?
How to get vbmeta.img?
I think yes, you'll just need to disable the verity checks:
Bash:
fastboot flash --disable-verity --disable-verification vbmeta vbmeta.img
fastboot flash --disable-verity --disable-verification vbmeta_system vbmeta_system.img
For the needed images: You may extract them from Sonys .sin files or (I think) as you disable the checks anyways, you could use the .img-s from any other rom for that device.
Thank you, I´ll give it a try after I downloaded Stock Firmware.
Thank you, works great !
wheal said:
Is it possible to flash Magisk and root Stock Sony Firmware now?
Click to expand...
Click to collapse
You can also root stock firmware with Magisk and fastboot, without the need of TWRP.
Does stock twrp 20201115 work with android 11.
Can adroid 11 use it?
Hi guys, i am a newbie here. I have a Sony xperia 10ii and want to root it so that i can install viper4android to improve its music experience. Can someone tell me how to do it step by step coz i havent found a conclusive method yet in the forums? thanks
philshifley said:
Hi guys, i am a newbie here. I have a Sony xperia 10ii and want to root it so that i can install viper4android to improve its music experience. Can someone tell me how to do it step by step coz i havent found a conclusive method yet in the forums? thanks
Click to expand...
Click to collapse
Follow this guide to unlock the bootloader. Once the bootloader's unlocked you can follow any guides on this forum to install any of these ROMs or recoveries. If all you want to do is root it, then you'll have to follow a Magisk installation guide and you'll need the firmware for the phone so you can extract the boot.img for Magisk to patch. Use XperiFirm here to download the proper stock firmware for your phone, then follow this Magisk installation guide using the boot.img you extracted from the stock firmware to get it rooted with Magisk.
Thanks for your response. i unlocked the bootloader, installed the magisk apk in my phone and downloaded the firmware using xperifirm. where is the boot.img file that will be rooted with magisk?cant find it in the firmware folder.
dreDREb13 said:
Follow this guide to unlock the bootloader. Once the bootloader's unlocked you can follow any guides on this forum to install any of these ROMs or recoveries. If all you want to do is root it, then you'll have to follow a Magisk installation guide and you'll need the firmware for the phone so you can extract the boot.img for Magisk to patch. Use XperiFirm here to download the proper stock firmware for your phone, then follow this Magisk installation guide using the boot.img you extracted from the stock firmware to get it rooted with Magisk.
Click to expand...
Click to collapse
f
philshifley said:
Thanks for your response. i unlocked the bootloader, installed the magisk apk in my phone and downloaded the firmware using xperifirm. where is the boot.img file that will be rooted with magisk?cant find it in the firmware folder.
Click to expand...
Click to collapse
Hmm that's a good question. Looks like you'll need a few more things.
Use the "boot_X-FLASH-ALL.sin" file you'll find in the firmware folder you downloaded. In my case I would use the Customized UK XQ-AU52 one, but depends on what model you have or are using. If you have trouble knowing what model/region your phone is then use the Emma tool from Sony directly and it'll tell you what firmware you use (this is also useful to keep around should you need to do a full factory reset for any reason).
With that boot.sin file, use UnSIN to convert the file into an .img file and rename to boot.img. That should ideally work.
Please keep in mind that I cannot confirm this to be totally correct! I use LineageOS which provides a boot.img file in the zip already, so have never done this method to root my phone with the stock OS. I would advise looking around forums and doing a few more Google searches for your own sake just to be sure. But so far as I am aware this is the proper method! When all else fails, factory reset and try again.
Yes my phone is a Sony xperia 10ii XQ-AU52.
I converted the boot_X-FLASH-ALL.sin using the unsin software and managed to run the commands as given in the magisk guide page. After successfully doing so, well the phone got stuck in a bootloop, so i had to use Emma to restore it. so am back where i started again.hehe
philshifley said:
Yes my phone is a Sony xperia 10ii XQ-AU52.
I converted the boot_X-FLASH-ALL.sin using the unsin software and managed to run the commands as given in the magisk guide page. After successfully doing so, well the phone got stuck in a bootloop, so i had to use Emma to restore it. so am back where i started again.hehe
Click to expand...
Click to collapse
Ah yes, I was worried that may happen... I had my own issues trying to flash bits and pieces of the firmware versus just flashing the whole thing itself.
Unfortunately that's the best advice I know to give. Only other thing I could say is perhaps try flashing the entire firmware package downloaded via Xperifirm to your device using Newflasher, and THEN do the UnSIN and try again with the boot.img since you'll be certain that the boot files align with one another. Could be an issue that the boot.img for that firmware isn't compatible with the firmware you had already installed on your phone?
Hello Dear People i got a Question because i dont wanna break my Phone or something like that i have the Sony Xperia 10 II and it seems like this Version is a little bit Older !(meant TWRP)! It has the Newest Update etc etc Android 11 and its Unlocket Complety (Bootloader) Is this working with this Version here still or is there a better Version to use at the moment i tried a lot on my Phone in the couple of days but sadly a lot of work from me got resetet at the end ( because i needed to so i would be really Thankfull for the Help :>D
Можно ли использовать TWRP в android 11?
Android 11 does not seem to work normally, will it continue to be updated?
感谢楼主!!
最近我安装magisk后,使用“"选择并修补一个文件"时,遇到了下述错误——
****************************
Output file is written to
/storage/emulated/0/Download/magisk_patched-22100_o51xN.img
****************************
cp: can't preserve ownership of 'busybox': Operation not permitted
cp: can't preserve ownership of 'magisk32': Operation not permitted
cp: can't preserve ownership of 'magisk64': Operation not permitted
cp: can't preserve ownership of 'magiskboot': Operation not permitted
cp: can't preserve ownership of 'magiskinit': Operation not permitted
- All done!
感觉是权限不够,因此想通过twrp来安装magisk,看能不能解决上述问题。
many thanks
i have a question: what's the difference between twrp-20201115-SODP.zip and twrp-20201115-stock.zip?
now i have another question, it seems that twrp doesn't work well:
Is twrp outdate?
i tried to install Magisk-v20.4.zip, but failed which showed like below

[RECOVERY][UNOFFICIAL][3.5.0][monet] TWRP Xiaomi Mi 10 Lite 5G

Team Win Recovery Project 3.x, or twrp3 for short, is a custom recovery built with ease of use and customization in mind. Its a fully touch driven user interface no more volume rocker or power buttons to mash. The GUI is also fully XML driven and completely theme-able. You can change just about every aspect of the look and feel
/*
*
* We are not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this ROM
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at us for messing up your device, we will laugh at you.
*
*/
Features:
- Decryption works
- Otg works
- Flash Rom works
- F2FS support
- Fastboot boot command support
- Android 11 support (Tested with RevOS and MIUI.EU R)
- Backup restore and image flash (boot-recovery)
Not working:
- Fastbootd
- Adb sideload
- Backup restore and image flash (system-vendor-product)
Instructions:
fastboot flash recovery twrp350-xxxx-spak.img
Reboot to TWRP
fastboot boot twrp350-xxxx-spak.img
Download link:
SOURCEFORGE
Telegram link for support:
https://t.me/monetdevreleases
Source
https://github.com/Teamwin/android_bootable_recovery
https://github.com/spakkkk/device_xiaomi_monet_recovery/tree/twrp-11.0
Hello, I installed, then I installed magisk, restarted the phone normally, then to test I restarted the phone in recovery, asked for my pattern and it worked. After starting the phone again, twrp no longer asked for a default, and all the encrypted folders appeared.
Can setup on vangogh ?
Can we flash it as a image in twrp 3.4?
Depump said:
Can setup on vangogh ?
Click to expand...
Click to collapse
No, its for monet only
Alec Chan said:
Can we flash it as a image in twrp 3.4?
Click to expand...
Click to collapse
Yup, flash to recovery partition
tectonny said:
Hello, I installed, then I installed magisk, restarted the phone normally, then to test I restarted the phone in recovery, asked for my pattern and it worked. After starting the phone again, twrp no longer asked for a default, and all the encrypted folders appeared.
Click to expand...
Click to collapse
I tested with RevOS and some users tested with Miui.EU R and it works
Hello ,
My bootloader is unlock, TWRP flashed. In TWRP Ican reboot to TWRP recovery again, but when I reboot normally, use my phone, then reboot to recovery , it's MI recovery, no more TWRP.
Any idea to keep TWRP ?
Regards
Woah very nice recovery . One that actually works properly, thanks for your work.
zedmel said:
Hello ,
My bootloader is unlock, TWRP flashed. In TWRP Ican reboot to TWRP recovery again, but when I reboot normally, use my phone, then reboot to recovery , it's MI recovery, no more TWRP.
Any idea to keep TWRP ?
Regards
Click to expand...
Click to collapse
When you install twrp go to recovery and install magisk and then the twrp will not be deleted
thanks you I'll try
Nickosolki said:
When you install twrp go to recovery and install magisk and then the twrp will not be deleted
Click to expand...
Click to collapse
Hello,
After a second reboot TWRP and magisk disapears.
Have you an idea?
Thanks for your work
tectonny said:
Hello, I installed, then I installed magisk, restarted the phone normally, then to test I restarted the phone in recovery, asked for my pattern and it worked. After starting the phone again, twrp no longer asked for a default, and all the encrypted folders appeared.
Click to expand...
Click to collapse
Same for me.
What can we do?
Thanks
Thank you so much @spakkkk
Finally i can flash xiaomi.eu R
pbonamy said:
Same for me.
What can we do?
Thanks
Click to expand...
Click to collapse
Try the steps again.
fastboot flash recovery recovery.img (i suggest you if you have different name rename it to recovery.img)
fastboot boot recovery.img
and then try install magisk and then wipe cache and dalvik
I have a question.
Why so many people ask frecuently about magisk?
I used to have it on my phones when installing GCAM required root. But some years ago, it's not necessary and I don't root my xiaomis anymore.
Nickosolki said:
Try the steps again.
fastboot flash recovery recovery.img (i suggest you if you have different name rename it to recovery.img)
fastboot boot recovery.img
and then try install magisk and then wipe cache and dalvik
Click to expand...
Click to collapse
Not working, the same...
Thanks for help
If fastboot and adb sideload doesn't work how can I push your ROM into the phone?
I would like to install MIUI EU so i have to format...
chris-89 said:
Thank you so much @spakkkk
Finally i can flash xiaomi.eu R
Click to expand...
Click to collapse
How can u flash it if Adb sideload and fastboot does not work?
Spennacchionr said:
How can u flash it if Adb sideload and fastboot does not work?
Click to expand...
Click to collapse
Boot to recovery, wipe everything, format data.
Then reboot to recovery, connect your phone with PC, copy ROM to internal storage and then happy flashing
Btw don't forget to make a backup.

[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