[How-to]: OTA updates with (Magisk) rooted devices - Moto G5 Plus Guides, News, & Discussion

Hi,
I present here my last guide for OTA upgrades with rooted devices, in this case with Magisk.
Previous similar work:
http://forum.xda-developers.com/g5-plus/how-to/guide-simple-ota-update-rooted-unlocked-t3610895
http://forum.xda-developers.com/moto-g4/how-to/guide-simple-ota-update-rooted-unlocked-t3510126
This guide is tested by me for an upgrade from NPNS25.137-33-5 to NPNS25.137-33-11 using the incremental OTA (the official upgrade you get in the smartphone). Please, note that this guide is for advanced users!
Starting point:
- STOCK ROM with an untouched SYSTEM partition.
- Flashed custom TWRP as recovery.
- Flashed custom kernel with disabled Data encryption enforcement.
- MagiskSU installed, and any other changes that you like (i.e. Xposed) but all Systemless.
- USB Debug mode enabled in Developer Options and access granted from your PC.
- One SD card with almost 16GB of size.
Warning: If you use PIN or any other lock procedure, I recommend to disable it before backups and enable after restore!
PROCEDURE:
Step 1:
Backup your SD-Internal (to PC or SD-CARD). This is required because the TWRP backup doesn't backup this data.
Step 2:
Reboot to TWRP, Make backup of "Data", "Logo" & "Boot" (you will restore them after the upgrade).
Step 3:
Reboot to Bootloader and flash ORIGINAL partitions "Recovery", "Logo" & "Boot" using a PC:
Code:
# fastboot flash logo logo.bin
# fastboot flash boot boot.img
# fastboot flash recovery recovery.img
Or if you have a TWRP backup of these patitions, then you could restore them from TWRP (instead of using a PC).
Note: If you have modified SYSTEM and/or OEM partitions, then also flash them (or restore them from a TWRP backup):
Code:
# fastboot flash system system.img
# fastboot flash oem oem.img
Step 4:
Reboot.
Note: from this point your "Data" partition is now fully encrypted, so not execute any relevant command as you will lose any update when restore the "Data" after the OTA update. At this point you have the smartphone in "pure" Stock mode.
Step 5:
Go to check "System Updates", download the update & install the OTA (the device reboots).
Step 6:
After rebooting the OTA file is executed. If it ends with an "ERROR" message, then something is erroneous (check your partitions!).
If the device reboots without an error check your new firmware. The upgrade is completed!
Step 7:
From this point you would like to restore your previous state: data, root, Magisk, etc.
If you like to save a TWRP backup of current partitions (for the next OTA upgrade) then do this:
- Reboot to bootloader mode and boot a non-flashable TWRP (like then Multi-ROM version: "fastboot boot mr-twrp-3.1.1-potter-20170521.img") and complete a backup of the new "Recovery", "Boot", "Logo", "System" & "Oem" partitions to the SDCard.
NOTE: The Multi-ROM TWRP can't backup/mount the OEM partition! Use another method or complete the backup after (you can backup SYSTEM and OEM after).
ALTERNATIVE: Open Terminal and do a manual dump of "Recovery", "Boot", "Logo" and/or "System", "OEM":
Code:
# dd if=/dev/block/bootdevice/by-name/recovery of=/external_sd/recovery.img
# dd if=/dev/block/bootdevice/by-name/boot of=/external_sd/boot.img
# dd if=/dev/block/bootdevice/by-name/logo of=/external_sd/logo.img
Code:
# dd if=/dev/block/bootdevice/by-name/system of=/external_sd/system.img
# dd if=/dev/block/bootdevice/by-name/oem of=/external_sd/oem.img
Step 8:
a) Restore or Flash a recent version of TWRP: "fastboot flash recovery twrp-3.1.1-4-GtrCraft.img" (this version has support for backup/restore OEM!)
b) Reboot to the TWRP recovery and inside it...
c) I recommend first to make now a backup of SYSTEM and OEM paritions (for the next OTA).
d) Format your "Data" partion with "f2fs".
e) Restore your "Data" (and "Logo" & "Cache") from the backup at step #2.
f) Install the ZIP of your custom kernel (or as alternative apply "disable dm-verity").
g) Install the ZIP of Magisk for root.
Step 9:
Re-boot an enjoy your upgraded system!
Remeber to restore your Internal SD card data (from the step #1).
Enable your preferable security option.
:victory:

Nice guide!
One question: How do we flash original items (e.g. OEM, system, boot) if we are on a version with no official firmware? For example, I'm on NPN25.137-83. As far as I know, there is no full firmware for that version; it's only offered as an OTA. If I'm offered an OTA, how can I restore an unmodified system, boot, recovery, etc?

Jrhotrod said:
Nice guide!
One question: How do we flash original items (e.g. OEM, system, boot) if we are on a version with no official firmware? For example, I'm on NPN25.137-83. As far as I know, there is no full firmware for that version; it's only offered as an OTA. If I'm offered an OTA, how can I restore an unmodified system, boot, recovery, etc?
Click to expand...
Click to collapse
If you lost your original SYSTEM, OEM and BOOT partitions, then you need to flash from another place.
For example, you can use download from this post
http://forum.xda-developers.com/g5-plus/how-to/firmwares-moto-g5-plus-t3593160
In any case, I recommend to:
- Use OTAs for upgrading, as it's safe for update your modem and other device stuff (IMEI, etc.) in sync.
- If you like to go from Custom ROM to Stock ROM then restore the last Stock version in your device and apply OTAs from this point.
Regards!

Hi,
More than a week with this GUIDE and only one user puts feedback?

Which TWRP?
manos78 said:
Hi,
More than a week with this GUIDE and only one user puts feedback?
Click to expand...
Click to collapse
This is because we are all still stunned by this cool guide!
However, before I give it a try: in Step 7, why does it have to be
"fastboot boot mr-twrp-3.1.1-potter-20170521.img"?
Can't I use
"fastboot boot twrp-3.1.1-4-GtrCraft.img" here, already? What is it, the craft TWRP cannot do? At least I am able to boot it that way.
Thanks in advance,
Nick.

G5 Plus Mate said:
This is because we are all still stunned by this cool guide!
However, before I give it a try: in Step 7, why does it have to be
"fastboot boot mr-twrp-3.1.1-potter-20170521.img"?
Can't I use
"fastboot boot twrp-3.1.1-4-GtrCraft.img" here, already? What is it, the craft TWRP cannot do? At least I am able to boot it that way.
Thanks in advance,
Nick.
Click to expand...
Click to collapse
Yes, the Fastboot boot command will work for any TWRP image for this phone.

Jrhotrod said:
Yes, the Fastboot boot command will work for any TWRP image for this phone.
Click to expand...
Click to collapse
Cool, so as it seems, we now only need two tools for rooting, unrooting and OTA updates. The Craft TWRP and Magisk v14.0 (or higher). Well, or SuperSU. Booth seem to remove "force encryption" and the "dm-verify-test".
So, we also do not need any further custom kernel or anything else anymore(?)
Well, my XT1687 (which will replace my XT1685, I need a compass!) is supposed to arrive tomorrow. :fingers-crossed:
I'll give it all a try and some comments, too...

G5 Plus Mate said:
Cool, so as it seems, we now only need two tools for rooting, unrooting and OTA updates. The Craft TWRP and Magisk v14.0 (or higher). Well, or SuperSU. Booth seem to remove "force encryption" and the "dm-verify-test".
So, we also do not need any further custom kernel or anything else anymore(?)
Well, my XT1687 (which will replace my XT1685, I need a compass!) is supposed to arrive tomorrow. :fingers-crossed:
I'll give it all a try and some comments, too...
Click to expand...
Click to collapse
Most people with this phone use custom kernels in order to be able to use magisk modules. The stock kernel does not allow for neither passing safetynet nor installing modules. If you would like to use something like systemless Xposed Framework, I'd recommend flashing ElementalX.

Jrhotrod said:
Yes, the Fastboot boot command will work for any TWRP image for this phone.
Click to expand...
Click to collapse
OK, thank you for confirm it!

G5 Plus Mate said:
Cool, so as it seems, we now only need two tools for rooting, unrooting and OTA updates. The Craft TWRP and Magisk v14.0 (or higher). Well, or SuperSU. Booth seem to remove "force encryption" and the "dm-verify-test".
So, we also do not need any further custom kernel or anything else anymore(?)
Click to expand...
Click to collapse
Hi,
If you save a full dump of the SYSTEM partition, then you can use "dm-verity" disable. However, I don't recomment it. Use MagiskSU with a custom kernel (like ElementalX). A custom kernel que provide: Magisk loop mount, non forced encryption, and SafetyNet pass with Magisk running.
Summarizing, you need: custom kernel, Magisk and TWRP.

Slightly modified
Hi.
first of all, thanks again, Manos 78, for the wonderful guide. Playing around with it for several days, I have come up with a slightly modified solution that might be easier to handle. However, it's based on your guide.
So, this guide is for people who (like me) want
- a rooted Moto G5 Plus (might work on other phones, too)
- an unencrypted data partition (e.g. to be able to backup it)
- a relatively easy way to do a system upgrade.
Also, this guide goes for categories of people who start from here with a phone
Cat-1
- with an unencrypted data partition (rooted)
Cat-2
- which is a blank new phone
Cat-3
- with an encrypted data partition
Instead of Magisk, you can probably use SuperSU as well. Also, it doesn't matter if you flash or load TWRP with fastboot. I would recommend flashing it like described below. I have tested it once with XT1687 only, and then with transferring images from my XT1685. Both worked.
So, first you should find yourself a stock-rom suitable for your phone. As for now (let's hope that this won't change) you need to download it once and then use it again for all upcoming future updates as we do the OTA-update.
I used for
XT1687 : POTTER_NPNS25.137-35-5_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC
XT1685: POTTER_NPN25.137-35_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC
After transferring from XT1685 to XT1687, the Dual-SIM handling app froze automatically and I am now on software channel reteu. However, as we update as described below, it doesn't matter.
Let's start with
Cat-1:
01. Disable PIN or any other lock procedure and TWRP-Backup of all partitions (precaution, but you will definitely need data, boot and logo!). Also backup all data of your internal SD-card as it will be wiped. External SD-card will stay untouched.
02. Flash latest elementalX Kernel (optional) and Magisk (14.0 or later) to be on the same version before and after the update (precaution).
Either
03a. Flash any valid old(er) Stock-Rom, fitting to the update channel of your phone. If one works, use it again each time you update.
03b. Perform OTA update (after reboot wait for the message saying it's done!)
or
04. Download and install latest Stock-Rom and install
05. Flash TWRP "twrp-3.1.1-4-GtrCraft.img"
06. Flash latest elementalX Kernel(optional, but recommended) and then MAGISK (14.0 or later)
07. Reboot to TWRP
08. Format data
09. Reboot to TWRP
10. Restore data, boot und logo
11. Reboot
12. In Developer Options disable automatic update
13. Install / upgrade Magisk Manager app
14. Flash logo.bin (optional to get rid of the ugly initial warning screen)
done.
Cat-2
Perform steps 03a/b, 5,6,7,8,9,12,13,14. Boot-loader needs to be unlocked, of course.
Cat-3
As you cannot backup an unencrypted partition (for now) you will have to backup your data conventionally. Titanium Backup and app's own functionalities might help. However, this needs to be done only once as you will be unencrypted afterwards.
After this, re-flash Stock-Rom and proceed like for Cat-2.
Note:
Once again: this is a system-less variant, so it doesn't touch the system partition. If you want to keep it that way, then in TWRP never swipe to allow modifications! Choose system partition read only.
The following might need to be confirmed, but I believe, that if you do it once, the device will recognize it and when you go into boot loader the device will from now on display the system to be modified. I haven't found a way to get rid of that again.
If you leave it untouched, then this message will not come up and after locking the boot loader again you will have a device like new again. I think you will not get into any warranty trouble once something is broken.
Maybe some one can comment on this to be right or wrong…
And, just in case you have similar problems:
On windows I was not able to unlock my boot-loader.. I got the message that the boot-loader cannot be unlocked. On Mint Linux it just worked fine. Also flashing logo.bin did not work on windows but on Linux.
On Linux again flashing the stock-rom does not work, but on windows. I am not sure if I want a comment on that.

Stuck in Your device will boot in 5 seconds screen
Hi,
At step 3, I didnt have the original partitions. So I used the partitions from the firmware POTTER_AMZ_7.0_NPNS25.137-35-5_cid18_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip.
After rebooting it, my phone is stuck in the screen. At one point it showed error.
What should I do??
Help

Why data partition format to f2fs
Is it important to format data partition to f2fs? Can I just wipe data partition and restore from the backup without formatting?
manos78 said:
Hi,
I present here my last guide for OTA upgrades with rooted devices, in this case with Magisk.
Previous similar work:
http://forum.xda-developers.com/g5-plus/how-to/guide-simple-ota-update-rooted-unlocked-t3610895
http://forum.xda-developers.com/moto-g4/how-to/guide-simple-ota-update-rooted-unlocked-t3510126
This guide is tested by me for an upgrade from NPNS25.137-33-5 to NPNS25.137-33-11 using the incremental OTA (the official upgrade you get in the smartphone). Please, note that this guide is for advanced users!
Starting point:
- STOCK ROM with an untouched SYSTEM partition.
- Flashed custom TWRP as recovery.
- Flashed custom kernel with disabled Data encryption enforcement.
- MagiskSU installed, and any other changes that you like (i.e. Xposed) but all Systemless.
- USB Debug mode enabled in Developer Options and access granted from your PC.
- One SD card with almost 16GB of size.
Warning: If you use PIN or any other lock procedure, I recommend to disable it before backups and enable after restore!
PROCEDURE:
Step 1:
Backup your SD-Internal (to PC or SD-CARD). This is required because the TWRP backup doesn't backup this data.
Step 2:
Reboot to TWRP, Make backup of "Data", "Logo" & "Boot" (you will restore them after the upgrade).
Step 3:
Reboot to Bootloader and flash ORIGINAL partitions "Recovery", "Logo" & "Boot" using a PC:
Code:
# fastboot flash logo logo.bin
# fastboot flash boot boot.img
# fastboot flash recovery recovery.img
Or if you have a TWRP backup of these patitions, then you could restore them from TWRP (instead of using a PC).
Note: If you have modified SYSTEM and/or OEM partitions, then also flash them (or restore them from a TWRP backup):
Code:
# fastboot flash system system.img
# fastboot flash oem oem.img
Step 4:
Reboot.
Note: from this point your "Data" partition is now fully encrypted, so not execute any relevant command as you will lose any update when restore the "Data" after the OTA update. At this point you have the smartphone in "pure" Stock mode.
Step 5:
Go to check "System Updates", download the update & install the OTA (the device reboots).
Step 6:
After rebooting the OTA file is executed. If it ends with an "ERROR" message, then something is erroneous (check your partitions!).
If the device reboots without an error check your new firmware. The upgrade is completed!
Step 7:
From this point you would like to restore your previous state: data, root, Magisk, etc.
If you like to save a TWRP backup of current partitions (for the next OTA upgrade) then do this:
- Reboot to bootloader mode and boot a non-flashable TWRP (like then Multi-ROM version: "fastboot boot mr-twrp-3.1.1-potter-20170521.img") and complete a backup of the new "Recovery", "Boot", "Logo", "System" & "Oem" partitions to the SDCard.
NOTE: The Multi-ROM TWRP can't backup/mount the OEM partition! Use another method or complete the backup after (you can backup SYSTEM and OEM after).
ALTERNATIVE: Open Terminal and do a manual dump of "Recovery", "Boot", "Logo" and/or "System", "OEM":
Code:
# dd if=/dev/block/bootdevice/by-name/recovery of=/external_sd/recovery.img
# dd if=/dev/block/bootdevice/by-name/boot of=/external_sd/boot.img
# dd if=/dev/block/bootdevice/by-name/logo of=/external_sd/logo.img
Code:
# dd if=/dev/block/bootdevice/by-name/system of=/external_sd/system.img
# dd if=/dev/block/bootdevice/by-name/oem of=/external_sd/oem.img
Step 8:
a) Restore or Flash a recent version of TWRP: "fastboot flash recovery twrp-3.1.1-4-GtrCraft.img" (this version has support for backup/restore OEM!)
b) Reboot to the TWRP recovery and inside it...
c) I recommend first to make now a backup of SYSTEM and OEM paritions (for the next OTA).
d) Format your "Data" partion with "f2fs".
e) Restore your "Data" (and "Logo" & "Cache") from the backup at step #2.
f) Install the ZIP of your custom kernel (or as alternative apply "disable dm-verity").
g) Install the ZIP of Magisk for root.
Step 9:
Re-boot an enjoy your upgraded system!
Remeber to restore your Internal SD card data (from the step #1).
Enable your preferable security option.
:victory:
Click to expand...
Click to collapse

androidgeek121 said:
Is it important to format data partition to f2fs? Can I just wipe data partition and restore from the backup without formatting?
Click to expand...
Click to collapse
Hi,
- The "f2fs" is the default format in Stock ROM. If you don't select it in TWRP it will be formated as "ext4".
- The "f2fs" filesystem it's better than "ext4" for the internal eMMC storage (faster writes and more robust).
- If you format as "ext4" it will continue working. So, if you restore without forcing the format perhaps you don't care that the filesystem it's changed.
Regards!

Are OTA updates possible 1. without TWRP and 2. with preserved encryption?
I have a Samsung Galaxy S7 edge, international version, Android 6, unlocked bootloader, first rooted with CF-auto-root, now installed Magisk via modified boot.img, pure stock rom.

Forgive me for sounding dense but this method could work on a Moto G4 Plus (athene) correct? ?

G5 Plus Mate said:
Hi.
first of all, thanks again, Manos 78, for the wonderful guide. Playing around with it for several days, I have come up with a slightly modified solution that might be easier to handle. However, it's based on your guide.
So, this guide is for people who (like me) want
- a rooted Moto G5 Plus (might work on other phones, too)
- an unencrypted data partition (e.g. to be able to backup it)
- a relatively easy way to do a system upgrade.
Also, this guide goes for categories of people who start from here with a phone
Cat-1
- with an unencrypted data partition (rooted)
Cat-2
- which is a blank new phone
Cat-3
- with an encrypted data partition
Instead of Magisk, you can probably use SuperSU as well. Also, it doesn't matter if you flash or load TWRP with fastboot. I would recommend flashing it like described below. I have tested it once with XT1687 only, and then with transferring images from my XT1685. Both worked.
So, first you should find yourself a stock-rom suitable for your phone. As for now (let's hope that this won't change) you need to download it once and then use it again for all upcoming future updates as we do the OTA-update.
I used for
XT1687 : POTTER_NPNS25.137-35-5_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC
XT1685: POTTER_NPN25.137-35_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC
After transferring from XT1685 to XT1687, the Dual-SIM handling app froze automatically and I am now on software channel reteu. However, as we update as described below, it doesn't matter.
Let's start with
Cat-1:
01. Disable PIN or any other lock procedure and TWRP-Backup of all partitions (precaution, but you will definitely need data, boot and logo!). Also backup all data of your internal SD-card as it will be wiped. External SD-card will stay untouched.
02. Flash latest elementalX Kernel (optional) and Magisk (14.0 or later) to be on the same version before and after the update (precaution).
Either
03a. Flash any valid old(er) Stock-Rom, fitting to the update channel of your phone. If one works, use it again each time you update.
03b. Perform OTA update (after reboot wait for the message saying it's done!)
or
04. Download and install latest Stock-Rom and install
05. Flash TWRP "twrp-3.1.1-4-GtrCraft.img"
06. Flash latest elementalX Kernel(optional, but recommended) and then MAGISK (14.0 or later)
07. Reboot to TWRP
08. Format data
09. Reboot to TWRP
10. Restore data, boot und logo
11. Reboot
12. In Developer Options disable automatic update
13. Install / upgrade Magisk Manager app
14. Flash logo.bin (optional to get rid of the ugly initial warning screen)
done.
Cat-2
Perform steps 03a/b, 5,6,7,8,9,12,13,14. Boot-loader needs to be unlocked, of course.
Cat-3
As you cannot backup an unencrypted partition (for now) you will have to backup your data conventionally. Titanium Backup and app's own functionalities might help. However, this needs to be done only once as you will be unencrypted afterwards.
After this, re-flash Stock-Rom and proceed like for Cat-2.
Note:
Once again: this is a system-less variant, so it doesn't touch the system partition. If you want to keep it that way, then in TWRP never swipe to allow modifications! Choose system partition read only.
The following might need to be confirmed, but I believe, that if you do it once, the device will recognize it and when you go into boot loader the device will from now on display the system to be modified. I haven't found a way to get rid of that again.
If you leave it untouched, then this message will not come up and after locking the boot loader again you will have a device like new again. I think you will not get into any warranty trouble once something is broken.
Maybe some one can comment on this to be right or wrong…
And, just in case you have similar problems:
On windows I was not able to unlock my boot-loader.. I got the message that the boot-loader cannot be unlocked. On Mint Linux it just worked fine. Also flashing logo.bin did not work on windows but on Linux.
On Linux again flashing the stock-rom does not work, but on windows. I am not sure if I want a comment on that.
Click to expand...
Click to collapse
Many thanks for this method. I used Cat -1 today and ran into a little problem with repeated com.android.phone has stopped working errors after just flashing the partitions listed here. So I just did a complete Stock reflash and that resolved that error. Then was able to proceed with the rest of the steps without any issues!
I am on RETUS and applied the November 1st update. Surprised on how well it worked!

manos78 said:
Hi,
I present here my last guide for OTA upgrades with rooted devices, in this case with Magisk.
Previous similar work:
http://forum.xda-developers.com/g5-plus/how-to/guide-simple-ota-update-rooted-unlocked-t3610895
http://forum.xda-developers.com/moto-g4/how-to/guide-simple-ota-update-rooted-unlocked-t3510126
This guide is tested by me for an upgrade from NPNS25.137-33-5 to NPNS25.137-33-11 using the incremental OTA (the official upgrade you get in the smartphone). Please, note that this guide is for advanced users!
Starting point:
- STOCK ROM with an untouched SYSTEM partition.
- Flashed custom TWRP as recovery.
- Flashed custom kernel with disabled Data encryption enforcement.
- MagiskSU installed, and any other changes that you like (i.e. Xposed) but all Systemless.
- USB Debug mode enabled in Developer Options and access granted from your PC.
- One SD card with almost 16GB of size.
Warning: If you use PIN or any other lock procedure, I recommend to disable it before backups and enable after restore!
PROCEDURE:
Step 1:
Backup your SD-Internal (to PC or SD-CARD). This is required because the TWRP backup doesn't backup this data.
Step 2:
Reboot to TWRP, Make backup of "Data", "Logo" & "Boot" (you will restore them after the upgrade).
Step 3:
Reboot to Bootloader and flash ORIGINAL partitions "Recovery", "Logo" & "Boot" using a PC:
Code:
# fastboot flash logo logo.bin
# fastboot flash boot boot.img
# fastboot flash recovery recovery.img
Or if you have a TWRP backup of these patitions, then you could restore them from TWRP (instead of using a PC).
Note: If you have modified SYSTEM and/or OEM partitions, then also flash them (or restore them from a TWRP backup):
Code:
# fastboot flash system system.img
# fastboot flash oem oem.img
Step 4:
Reboot.
Note: from this point your "Data" partition is now fully encrypted, so not execute any relevant command as you will lose any update when restore the "Data" after the OTA update. At this point you have the smartphone in "pure" Stock mode.
Step 5:
Go to check "System Updates", download the update & install the OTA (the device reboots).
Step 6:
After rebooting the OTA file is executed. If it ends with an "ERROR" message, then something is erroneous (check your partitions!).
If the device reboots without an error check your new firmware. The upgrade is completed!
Step 7:
From this point you would like to restore your previous state: data, root, Magisk, etc.
If you like to save a TWRP backup of current partitions (for the next OTA upgrade) then do this:
- Reboot to bootloader mode and boot a non-flashable TWRP (like then Multi-ROM version: "fastboot boot mr-twrp-3.1.1-potter-20170521.img") and complete a backup of the new "Recovery", "Boot", "Logo", "System" & "Oem" partitions to the SDCard.
NOTE: The Multi-ROM TWRP can't backup/mount the OEM partition! Use another method or complete the backup after (you can backup SYSTEM and OEM after).
ALTERNATIVE: Open Terminal and do a manual dump of "Recovery", "Boot", "Logo" and/or "System", "OEM":
Code:
# dd if=/dev/block/bootdevice/by-name/recovery of=/external_sd/recovery.img
# dd if=/dev/block/bootdevice/by-name/boot of=/external_sd/boot.img
# dd if=/dev/block/bootdevice/by-name/logo of=/external_sd/logo.img
Code:
# dd if=/dev/block/bootdevice/by-name/system of=/external_sd/system.img
# dd if=/dev/block/bootdevice/by-name/oem of=/external_sd/oem.img
Step 8:
a) Restore or Flash a recent version of TWRP: "fastboot flash recovery twrp-3.1.1-4-GtrCraft.img" (this version has support for backup/restore OEM!)
b) Reboot to the TWRP recovery and inside it...
c) I recommend first to make now a backup of SYSTEM and OEM paritions (for the next OTA).
d) Format your "Data" partion with "f2fs".
e) Restore your "Data" (and "Logo" & "Cache") from the backup at step #2.
f) Install the ZIP of your custom kernel (or as alternative apply "disable dm-verity").
g) Install the ZIP of Magisk for root.
Step 9:
Re-boot an enjoy your upgraded system!
Remeber to restore your Internal SD card data (from the step #1).
Enable your preferable security option.
:victory:
Click to expand...
Click to collapse
Thank you so much you wonderful person. Successfully upgraded to NPNS25. 137-93-4 and security patch January, 1 2018 with an unlocked bootloader. I had to flash recovery, logo, boot, system.parts & oem for it succeed. I won't forget this anytime soon.

Just a little hint:
In step 8 you say
e) Restore your "Data" (and "Logo" & "Cache") from the backup at step #2.
Click to expand...
Click to collapse
It should be "Boot" instead of "Cache" as we made a backup of "Data", "Logo" & "Boot" in step 2.

manos78 said:
Hi,
I present here my last guide for OTA upgrades with rooted devices, in this case with Magisk.
Previous similar work:
http://forum.xda-developers.com/g5-plus/how-to/guide-simple-ota-update-rooted-unlocked-t3610895
http://forum.xda-developers.com/moto-g4/how-to/guide-simple-ota-update-rooted-unlocked-t3510126
This guide is tested by me for an upgrade from NPNS25.137-33-5 to NPNS25.137-33-11 using the incremental OTA (the official upgrade you get in the smartphone). Please, note that this guide is for advanced users!
Starting point:
- STOCK ROM with an untouched SYSTEM partition.
- Flashed custom TWRP as recovery.
- Flashed custom kernel with disabled Data encryption enforcement.
- MagiskSU installed, and any other changes that you like (i.e. Xposed) but all Systemless.
- USB Debug mode enabled in Developer Options and access granted from your PC.
- One SD card with almost 16GB of size.
Warning: If you use PIN or any other lock procedure, I recommend to disable it before backups and enable after restore!
PROCEDURE:
Step 1:
Backup your SD-Internal (to PC or SD-CARD). This is required because the TWRP backup doesn't backup this data.
Step 2:
Reboot to TWRP, Make backup of "Data", "Logo" & "Boot" (you will restore them after the upgrade).
Step 3:
Reboot to Bootloader and flash ORIGINAL partitions "Recovery", "Logo" & "Boot" using a PC:
Code:
# fastboot flash logo logo.bin
# fastboot flash boot boot.img
# fastboot flash recovery recovery.img
Or if you have a TWRP backup of these patitions, then you could restore them from TWRP (instead of using a PC).
Note: If you have modified SYSTEM and/or OEM partitions, then also flash them (or restore them from a TWRP backup):
Code:
# fastboot flash system system.img
# fastboot flash oem oem.img
Step 4:
Reboot.
Note: from this point your "Data" partition is now fully encrypted, so not execute any relevant command as you will lose any update when restore the "Data" after the OTA update. At this point you have the smartphone in "pure" Stock mode.
Step 5:
Go to check "System Updates", download the update & install the OTA (the device reboots).
Step 6:
After rebooting the OTA file is executed. If it ends with an "ERROR" message, then something is erroneous (check your partitions!).
If the device reboots without an error check your new firmware. The upgrade is completed!
Step 7:
From this point you would like to restore your previous state: data, root, Magisk, etc.
If you like to save a TWRP backup of current partitions (for the next OTA upgrade) then do this:
- Reboot to bootloader mode and boot a non-flashable TWRP (like then Multi-ROM version: "fastboot boot mr-twrp-3.1.1-potter-20170521.img") and complete a backup of the new "Recovery", "Boot", "Logo", "System" & "Oem" partitions to the SDCard.
NOTE: The Multi-ROM TWRP can't backup/mount the OEM partition! Use another method or complete the backup after (you can backup SYSTEM and OEM after).
ALTERNATIVE: Open Terminal and do a manual dump of "Recovery", "Boot", "Logo" and/or "System", "OEM":
Code:
# dd if=/dev/block/bootdevice/by-name/recovery of=/external_sd/recovery.img
# dd if=/dev/block/bootdevice/by-name/boot of=/external_sd/boot.img
# dd if=/dev/block/bootdevice/by-name/logo of=/external_sd/logo.img
Code:
# dd if=/dev/block/bootdevice/by-name/system of=/external_sd/system.img
# dd if=/dev/block/bootdevice/by-name/oem of=/external_sd/oem.img
Step 8:
a) Restore or Flash a recent version of TWRP: "fastboot flash recovery twrp-3.1.1-4-GtrCraft.img" (this version has support for backup/restore OEM!)
b) Reboot to the TWRP recovery and inside it...
c) I recommend first to make now a backup of SYSTEM and OEM paritions (for the next OTA).
d) Format your "Data" partion with "f2fs".
e) Restore your "Data" (and "Logo" & "Cache") from the backup at step #2.
f) Install the ZIP of your custom kernel (or as alternative apply "disable dm-verity").
g) Install the ZIP of Magisk for root.
Step 9:
Re-boot an enjoy your upgraded system!
Remember to restore your Internal SD card data (from the step #1).
Enable your preferable security option.
:victory:
Click to expand...
Click to collapse
I am kind'a novice at this - also it's my first time installing the latest RETUS OTA update 93-10. Would someone please clarify the questions below?
I do not recall if I modified SYSTEM and/or OEM partitions when I rooted the phone, is it OK to go ahead and flash? :
Code:
# fastboot flash system system.img
# fastboot flash oem oem.img
In Step 7 - do I restore "Data", "Logo" & "Boot" with TWRP from back-up in Step 2?
Everything else from Step 8 down is optional?

Related

Help me understand the whole A/B partitioning format

Can anyone help me understand the whole procedure now that we have A/B partitions? I'm coming from a Nexus 5 and this A/B partition thing kinda complicates things, but I'm sure I have got 80% the gist of it. That being said, I don't have my Pixel XL YET, but I want to be prepared.
1)Enable Developer Options
2)Enable OEM Unlock Bootloader and USB Debugging
3)Boot into bootloader
4)Flash latest factory image downloaded from Google(Android 8.1, January as of this post)
5)Boot into the system and re-enable Developer Options and USB debugging. (I guess OEM Unlock Bootloader will BE enabled by default now)
6)Use a PC with fastboot.exe and type "fastboot boot twrp_name_goes_here.IMG" (this ONLY boots TWRP)
7)Boot into TWRP and wipe /system, /data, /cache and ART.
8)Flash the custom ROM of my choice.
9)Flash the GApps of my choice(I use Aroma OpenGapps)
10)Flash Kernel of my choice.
11)Flash Magisk 15.2 (15.2 as of this post)
12Flash TWRP_name_goes_here.ZIP (So I won't lose TWRP)
13)??????
14)Profit
Do tell me if I made a mistake in the whole process and suggest what I should do instead. The whole A/B partitioning system kinda scares me. xD
I've also come across this kernel https://forum.xda-developers.com/pixel-xl/development/kernel-oreo-8-0-exnoshadez-eas-stable-t3709035 that states it doesn't support TWRP. Does it mean that I won't have a custom recovery due to the size of the kernel and I will have to, instead, use a PC every time I want to flash a different ROM and/or Kernel by using the "fastboot boot TWRP_name_goes_here.IMG" command?
Thanks a lot for your time and sorry for this TL;DR post. =D
1)Enable Developer Options
2)Enable OEM Unlock Bootloader and USB Debugging
3)Boot into bootloader
4)unlock boot loader (use command “fastboot flashing unlock) and it's permanent
5)Download latest factory image downloaded from Google and unzip it into your adb platform-tool path
6)Boot into bootloader>use command “fastboot --set-active=b”>now click on “flash-all.bat” in your adb platform-tool path>let it reboot.
6) Do not set your device, just reboot it back to bootloader> use command “fastboot --set-active=a”>now click on “flash-all.bat” in your adb platform-tool path>let it reboot.
5)To flash TWRP download “twrp-3.2.0-0-marlin.img” and “twrp-pixel-installer-marlin-3.2.0-0.zip” because as far as I know, twrp 3.2.1 has some decrypting issue. Download them and put “twrp-3.2.0-0-marlin.img” into your pc adb platform-tool path and move “twrp-pixel-installer-marlin-3.2.0-0.zip” to internal memory on your phone
6)Boot into bootloader>use command “fastboot boot twrp-3.2.0-0-marlin.img” (this ONLY boots TWRP). In TWRP locate and flash “twrp-pixel-installer-marlin-3.2.0-0.zip”
7)Boot in to system and remove your screen lock if you have set up any
8)Download the custom ROM of your choice and compatible GApps and move them in to internal memory on your phone.
9)Boot in to recovery and do a “factory reset” via TWRP> flash custom ROM>flash “twrp-pixel-installer-marlin-3.2.0-0.zip”>boot in to system (do not set up screen lock)
10)Boot in to recovery and flash GApps and Magisk 15.2 via TWRP>boot in to system
Please be noted this is for stock based ROMs only. If you to flash AOSP based rom follow this guide after step 9.Please be noted below guide taken from this ROM thread https://forum.xda-developers.com/pixel-xl/development/rom-lineageos-15-1-pixel-xl-marlin-t3725985 and credits goes to "razorloves"
Download latest vender.img (same one in latest factory images).
Flashing Lineage Rom:
a - Go to `Wipe` and swipe to `Factory Reset`
b - Go to `Install` and select the lineage zip file on the device. Swipe to install
c - Go to `Install` and select the TWRP zip file on the device. Swipe to install
d - Go to `Reboot` and take note of the current slot. Then select `Recovery` to reboot into the installed TWRP
Note: after performing the previous step, you may get a "No OS is installed" warning from TWRP. That's normal. It is ok to swipe to proceed.
e - After rebooting, go to `Reboot` and note the current slot. It should be in the opposite slot from what you were in during the previous step. That switch automatically happens after you flash a custom rom. If you're still in the same slot then something went wrong and you should start over. If you are in the opposite slot, then go back to TWRP home and continue with the next step.
f - Go to `Install` and select `Install Image` and select the stock vendor img, then select `Vendor` partition.
g - Go to `Mount` and select to mount `Vendor`. Go back to TWRP home
h - Go to `Advanced` - > `File Manager`. Navigate to /vendor/overlay/, then click the checkmark in the bottom right. Select `Delete`. Then go back to TWRP home
i - Go to `Install` and select the Opengapps zip file. Swipe to install (This step is optional. Only needed if you want google apps.)
j - After installation completes, select `Reboot System`
k - You should now see the LineageOS boot animation. The initial boot may take several minutes
Flashing Magisk: (Optional)
Note: If you want root you can flash magisk at any time in the future, but not during the initial install. You must boot into lineage rom at least once.
a - Reboot into twrp and go to 'Reboot' and make sure you're in the same slot you were in at step 3.e
b - Go to `Install` and select the Magisk zip file. Swipe to install
c - After installation completes, select `Reboot System`
Why do I have to flash the vendor.img? When do I flash the vendor.img? And why do I need to delete the /vendor/overlay/ folder?

H931 Devices Possibly Other Variants Wifi Fix Android 10 Roms (Liquid 10, LineageOs)

Short Story: Updated to pie us99830b kdz after flashing some things and clean flashed 10 roms again and somehow wifi wanted work ok since then. I also made backups but I am not clear if they will work without first getting pie blobs through kdz. This fix is not necessary on all LG V30 variants so first check if your model works with the roms fine. May also want to double check Zachs adb shell commands do not work on your device or do that also just in case (bottom).
Suggestions: This may actually take some time if you run into problems. Might be good idea to throw your sim in another phone so you don't stress. Smoke a bowl or open a beer.
Warning: AOSP rules may apply here although everything seems well with both permissive/enforcing for me. See that thread. Proceed at your own risk. If anytime you are not detected in download mode you must flash an oreo stock twrp zip such as h93120h or us99820e.
Files: Wifi working for me with this method on each 10 rom I have tested(Liquid, Lineage, AEX, ION, Havoc) so find one of those. You may also need us99820b kdz(us99810d if 20b doesn't boot clean some reason), the h93030q twrp zip, kernel(huamea 1.9.3 suggested) and h930 22j modem (https://drive.google.com/file/d/16o93WU262HWv2fKPYnMxC81GY6bJ3Txd/view?usp=sharing).
Quick Steps:
20b kdz partion all boot to setup screen then power down+fastboot+install/boot twrp+ magisk-decrypt-ak3remover zips+boot to setup screen again(don't setup) then power down+download mode+ 30b kdz partition all. Decrypt error for me first boot with 30b kdz so "reset phone" may be needed if greeted with that screen. Get to actual setup screen on 30b then power down+fastboot+twrp(cancel on encrpyt error)+format+wipe all(but sd)+reboot recovery. Then finally your selected poison havoc q+open gapps+magisk+decrypt for a clean flash. After booting in once I then reboot to twrp and flash huamea because it temporarilly removes root which needs to be reflashed.
Troubleshooting Suggested Steps:
Prior Potentially Unecessary Steps*
i. First install the 10 rom without wifi and make a backup or use mine below of chosen rom (in my case us99830b clean flashed to liquid/lineage)
ii. Clean flash h93030q twrp zip +magisk+disable encrypt+22j modem.img boot to startup screen then reboot to recovery
iii. Format data then wipe all but sdcard/otg and restore the Q backup. Goal here is to get the wifi initially clicked in, but the calling quite likely will still not work now. You can attempt to flash some stock modems to see if they work for you but I had no such luck. Reflash 22j modem after if you do test others.
iv. If the 30b kdz has not been booting up flash us99820b kdz partition all then reinstall twrp. If the 20b kdz restarts by itself after booting up you must partition dl all us99810d kdz first before 20b.
Steps
1. Format data then wipe all but micro sd don't reboot
2. Go back and reboot recovery
3. Magisk+disable encrypt
4. Power off then download mode(volume up while plugging in cable)
5. Partition dl all us99830bkdz using patch lgup
6. Let it boot to first welcome screen but don't setup anything
7. power off then fastboot mode(volume down while plugging in cable)
8. In adb & fastboot enter fastboot flash recovery then fastboot boot twrp.img
9. Will get decrypt error still in twrp for second just hit cancel
10. Repeat steps 1 & 2
11. FLash Liquid 10.1+Opengapps or Microg if wanted+ Magisk+ disable decrypt zips and boot it to start screen but don't setup
12. -Optional-Reboot Recovery Flash Humea kernel 1.5-1.9.3 or another to stabilize wifi/ better battery life(could possibly be done in prior step, may possibly lose root) and reboot
13. Andy's Fingerprint fix for internal error promp at startup(some roms ok without): Download osmosis busybox and magisk props config hide. Reboot then type "su" in any terminal then "props", follow prompts and select lg-v30 h930. The error should go away on boot.
*The prior steps here initally fixed wifi for me but I still didn't have calling, so I chose partition dl all partitions(only way kdz seems to boot) using patched lgup back to us99830b to test again which I assumed would cancel this procedure out so alas still not 100% sure if required. A dev has said though if you get wifi on your device once you will always have it. Wifi has been sticking for me afterwards until flashing any oreo kdz then I must re follow quick steps.
Backups - magisk w/ huamei Kernel 1.5, opengapps, fingerprint fixed
LineageOs 17 https://drive.google.com/drive/folders/1uQSDWDYFjGlEQ-gdyyn8QVgT5tB6Cjku?usp=sharing
Liquid 10 https://drive.google.com/drive/folders/1w9e_oLWpDR5bWk5jhs4xs1H9Q-AOv0NI?usp=sharing
Zachs Faster Wifi Fix for some lucky LG V30 users:
" - you need a kernel with dm-verity disabled (custom kernel, etc.) - for now the one of the haumea_I.base kernels allow this process
- Magisk must be installed (root permissions)
- get into a shell and become root (adb shell -> su ; or via other means)
- cp -a /vendor/etc/wifi/WCNSS_qcom_cfg.ini /mnt/vendor/persist-lg/wifi/WCNSS_qcom_cfg.ini
- in my example wlan_mac.bin is copied to /storage/emulated/0/joan_int/wlan_bins/wlan_mac.bin (that's internal storage and a newly created folder joan_int and subfolder wlan_bins)
so the final command to "fix" all is
cp -a /vendor/etc/wifi/WCNSS_qcom_cfg.ini /mnt/vendor/persist-lg/wifi/WCNSS_qcom_cfg.ini
cp /storage/emulated/0/joan_int/wlan_bins/wlan_mac.bin /mnt/vendor/persist-lg/wifi/wlan_mac.bin
chmod 644 /mnt/vendor/persist-lg/wifi/wlan_mac.bin
you copy over the WCNSS_qcom_cfg.ini file to the expected place (the symbolic link is wrong)
and copy over the missing wlan_mac.bin also to the expected place"
wlan_mac.bin here https://drive.google.com/file/d/1GM-IBe0CJ9hA4s2TAzas8IJcN67FOMR3/view?usp=sharing
Shouts out to @ChazzMatt , @SGCMarkus, @kherio, Andy, Zach, Chiru, Harris, and others on telegram for the group think. Any difficulities after following these steps you can hit up @tyl xda / Andy on telegram, he was able to use a slightly differed spin using persist lg files which may work for you. I will try to update as things get figured out

How To Guide How to flash ROM and TWRP on POCO F3 / k40 / mi11x. And an explanation. A very important guide

Mandatory instructions for beginners (and not only beginners) to install ROM and other on poco f3​Prerequisite, unlocking the bootloader​For questions, if something is not clear, please write to "Conversations", I will try to correct it in a post with a simpler explanation. And I will answer the question (I am not a 24/7 support service, so duplicate your question in the ROM discussion thread in order to give an answer if I'm busy)​
This is your last chance. After this, there is no turning back. You take the blue pill - the story ends, you wake up in your bed and believe whatever you want to believe. You take the red pill - you stay in Wonderland and I show you how deep the rabbit-hole goes
Click to expand...
Click to collapse
!!! The spoiler below is a must-read before doing anything with your device. !!!​
Spoiler: Let's discuss several points at once
Spoiler: 1. Drivers and utilities - download immediately and install so that there are no further questions
1. Fastboot and adb - Tools_r31.0.3
2. Miflash or Mi Flash Tool
3. USBDrivers - QDloader
Spoiler: 2. Features and disadvantages of our device
2.1 We have a so-called A/B partition structure - this is when two spaces are used for system partitions (read more in google) the essence is that there are "Firmware" partitions
Spoiler: code
Code:
"dsp.img", "/dev/block/bootdevice/by-name/dsp_a"
"dsp.img", "/dev/block/bootdevice/by-name/dsp_b"
"xbl_config.img", "/dev/block/bootdevice/by-name/xbl_config_a"
"xbl_config.img", "/dev/block/bootdevice/by-name/xbl_config_b"
"modem.img", "/dev/block/bootdevice/by-name/modem_a"
"modem.img", "/dev/block/bootdevice/by-name/modem_b"
"tz.img", "/dev/block/bootdevice/by-name/tz_a"
"tz.img", "/dev/block/bootdevice/by-name/tz_b"
"bluetooth.img", "/dev/block/bootdevice/by-name/bluetooth_a"
"bluetooth.img", "/dev/block/bootdevice/by-name/bluetooth_b"
"abl.img", "/dev/block/bootdevice/by-name/abl_a"
"abl.img", "/dev/block/bootdevice/by-name/abl_b"
"featenabler.img", "/dev/block/bootdevice/by-name/featenabler_a"
"featenabler.img", "/dev/block/bootdevice/by-name/featenabler_b"
"keymaster.img", "/dev/block/bootdevice/by-name/keymaster_a"
"keymaster.img", "/dev/block/bootdevice/by-name/keymaster_b"
"uefisecapp.img", "/dev/block/bootdevice/by-name/uefisecapp_a"
"uefisecapp.img", "/dev/block/bootdevice/by-name/uefisecapp_b"
"qupfw.img", "/dev/block/bootdevice/by-name/qupfw_a"
"qupfw.img", "/dev/block/bootdevice/by-name/qupfw_b"
"xbl.img", "/dev/block/bootdevice/by-name/xbl_a"
"xbl.img", "/dev/block/bootdevice/by-name/xbl_b"
"cmnlib.img", "/dev/block/bootdevice/by-name/cmnlib_a"
"cmnlib.img", "/dev/block/bootdevice/by-name/cmnlib_b"
"cmnlib64.img", "/dev/block/bootdevice/by-name/cmnlib64_a"
"cmnlib64.img", "/dev/block/bootdevice/by-name/cmnlib64_b"
"devcfg.img", "/dev/block/bootdevice/by-name/devcfg_a"
"devcfg.img", "/dev/block/bootdevice/by-name/devcfg_b"
"hyp.img", "/dev/block/bootdevice/by-name/hyp_a"
"hyp.img", "/dev/block/bootdevice/by-name/hyp_b"
"imagefv.img", "/dev/block/bootdevice/by-name/imagefv_a"
"imagefv.img", "/dev/block/bootdevice/by-name/imagefv_b"
"aop.img", "/dev/block/bootdevice/by-name/aop_a"
"aop.img", "/dev/block/bootdevice/by-name/aop_b"
and there are partitions directly ROM /data, /system /system_ext, /vendor, /product, /odm, /vendor_boot, /boot
2.2 miui based ROMs update all of these sections. In the case of firmware, they are put in both slots at once. Although this is not necessary in essence.
ROMs of a custom type, those based on a "pure" android are often flashed for only partitions of the ROM, but not in 100% case
2.3 For our device, there are 3 types of ROM installation files, 2 of which are divided into two types of installation methods
2.3.1 Let's start simple, Official miui image for fastboot - installation is recommended via miflash, has all partitions inside the archive. There are also 3 files inside - for easy installation of all partitions, for installing all partitions and formatting the memory, as well as for installing all partitions and locking the bootloader (the memory is formatted automatically), the name of the .bat files speaks for themselves
2.3.2 Next - the installation .zip archive of unofficial MIUI for TWRP. Not all partitions, but the main ones (always stitched into section A), including firmware (stitched into both slots A and B)
2.3.3 Sideload type firmware (99% of all custom ROMs) are divided into two installation methods.
Inside the archive there is a payload.bin file in which the rom and sometimes firmware sections are packed
Installation always goes to the adjacent NOT active memory slot, and after completion, makes the adjacent slot active to load the firmware
Installation via PC, via ADB (on the phone, AOSP recovery adb sideload/twrp adb sideload mode) or installation via TWRP directly from the device
2.4 Custom ROMs for fastboot, usually used for a clean installation, which implies cleaning and data from memory (pictures, etc.) inside sometimes have firmware sections and always rom sections. Inside, as the author saw fit, there are .bat launchers for updating (does not erase all data) and for a clean installation (erases all data)
2.5 Another very important feature of the AB structure in our case is two types of fastboot mod. It is called bootloader - official miui is completely flashed through it, and there is a fastbootD mode that is built into the boot sector in aosp recovery or in twrp, it is also needed for flashing img images. Ask what are the differences if this and that fastboot?
The answer is idiotic
Bootloader can flash all main partitions only in both A and B sections at the same time command type - "fastboot flash system_ab system.img"
He knows how to essentially flash a couple of partitions into a certain slot, we only need in this case vendor_boot and boot command type "fastboot flash boot_a boot.img" or instead of A you need to write B
FastbootD, on the other hand, can flash img images separately into the desired slot A or B
2.6 Poco f3/k40/mi11x does not have a separate partition for recovery/twrp,the whole thing is stored in the boot sector in the ramdisk, and the kernel is also stored there. Several factors follow from this knowledge.
2.6.1 To install TWRP, you must first boot into a temporary TWRP, the command type is "fastboot boot twrp.img". Inside TWRP, in the Advanced tab, click install recovery ramdisk, and select the img twrp image on the phone
2.6.3 To install aosp recvoery, you need to flash boot "fastboot boot boot.img"
2.6.4 After installing magisk, as it is stored in the RAMDISK. If you install TWRP again in ramdisk, the magisk will be deleted
2.6.5 When installing the magisk, TWRP does not crash
2.6.6 When installing kernel.zip via TWRP, TWRPis not deleted.
2.6.7 After updating the ROM, or changing the ROM, the TWRPis deleted, since the boot sector is bundled with all the ROMs as a whole and mainly with aosp recovery included, some romodels can immediately push TWRP into it. But it's better to play it safe and flash it yourself
2.6.8 When entering TWRP, it writes the installation .zip archives to the active slot, and always works with the active slot A or B, the exception concerns firmware, wrote above in paragraph 2.3
2.6.9 install recovery ramdis on surveillance writes TWRP to both slots
Spoiler: 3. Regarding TWRP and AOSP recovery
3.1 There are currently only 2 TWRPs from Nebrassy and from vasishath. What is the difference? God knows. In fact, they are bugged equally strongly, so I will write instructions using the example of Nebrassy, from experience there are no problems with it.
3.2 AOSP recovery is like it was 10 years ago cwm recovery if anyone remembers. Serves only for switching to fastbootD and ADB sideload mode, updating the firmware over the air, and sometimes cleaning the data. Supplied by many ROM developers as a necessary component (in fact, not so)
Now, based on the knowledge above, we have an understanding of how and what works. Now we need to disassemble the installation procedure. Here, too, not everything is so simple. There are two options for each installation. And in addition, we have 10 ways to install firmware. Why 10? And all due to the fact that I was unaware and had to write a small script called DFE. Isn't there a ready-made one on the Internet? According to my tests, they simply don't work.
Spoiler: Briefly about DFE
Somewhere 90% of ROM Developers out of the box have such a function as data encryption, DFE removes "flags" from one file in the /vendor section so that the system encrypts the data "Entire /data section" at startup therefore, just like with TWRP, after changing or updating the firmware, you need to flash it through TWRP.
- Why should I remove encryption? - ask a question
I will answer, in fact, there is no need, if only you are ready to always back up all data to a flash drive or PC from the internal memory of the phone when changing the firmware, because not all firmware have the same encryption keys, and you can install the firmware, but it is simply will not start at best, at worst everything will be encrypted over a new one and all files will be lost.
But literally all the instructions from the developers of the ROM are written precisely taking into account the fact that you will format the date when installing their firmware. Also, if encryption is disabled, TWRP will not ask for a password to see the memory, and therefore your data is at risk when the phone is stolen, since it will not be difficult to pull them out.
For all cases, you cannot do format data before installing the firmware, otherwise the PC will not see the memory, format data is done only at the end of the installation.
Spoiler: Installing temporary TWRP
Method 1:
1. We drop twrp.img into the folder with adb
2. In windows, hold down shift + right mouse button in an empty space in the folder, open a shell or cmd
3. The console will open, in the case of win10 / 11, if this is a shell, you need to register cmd
4. Reboot the phone into fastboot mode / bootloader (volume down + power button) and connect it to the computer via the wire
5. We write to the command "fastboot boot twrp.img"
6. TWRP will start by itself
Method 2:
1.Download TWRP Autoruner https://drive.google.com/file/d/1HsA1XAEzFgEo0n7K1Vf0QqPlyEICzkpd/view?usp=sharing
2. Unpack anywhere
3. Boot into FastBoot
4. Run the batch file in the folder
Spoiler: Setting TWRP to "permanent" - within the same ROM (Before the first ROM update, or before the first ROM change)
Method 1: Works ALWAYS
1. Go to the advanced tab and select install recvoery ramdisk
2. Find the twrp.img file on your phone and select it
3. If TWRP shows "Error opening: No such file or directory"
then you need to change the active slot in the Reboot contribution, then back and flash TWRP into the ramdisk again
Method 2: For TWRP from Nebrassy does not work 100% of the time
In the same place, in the advanced tab, click flash current TWRP
Method 3: For TWRP from Vasishath. does not work 100%
In the same place, in the advanced tab, click Inject TWRP
Before flashing custom, it is recommended to install a miui stock or a custom miui. It is advisable to drain through a fastboot by analogy with the spoiler instruction, from point 1 to point 9
This is done in order to update all sections in memory, remove tails from other ROMs. Refresh the markup of the sections. Otherwise, there may be errors, not working conditional nfc, lags, whatever. In the best case, the ROM simply won't be installed. At worst, there will be a bad opinion about the ROM because of your own wrong actions and an extra day for flashing and configuring another or the same ROM.
All files are additional here​
Spoiler: If the memory in TWRP is not visible
1. You saw that the PC does not see the memory on the device, or the TWRP is empty (this already means that all the data has been erased)
2. Download one of these TWRO to your computer
recovery_vasishath_nonflags.img or recovery_nebrassy_nonflags.img
3. Through that TWRP where everything is empty, we do format data (yes)
4. Reboot bootloader
5. On the PC we prescribe "fastboot boot twrp.img" any of the post
6. TWRP is loaded (the computer and TWRP sees the memory, but this is not all, nothing will work)
7. In the advanced tab, click fix context
8. In the mounts tab, remove the checkbox from the date and put it back.
9. Now you can upload files from your computer
10. You flash the ROM, you can not do the date format again, when the system boots, it will erase everything from memory, and if you did not set dfe, then the date itself will be encrypted, if you set the data in the same way, it will be erased, but there will be no encryption.
Note:
These TWRPs will not see the date (files in memory) if the data is encrypted, usually TWRP asks for a password when entering it, or you can see it in the security tab.
This TWRP works fine with the already decrypted date, if you use the DFE patch, everything works normally
In this TWRP, the encryption flags are simply removed, so that after the date format when entering TWRP, the date is not encrypted with keys from TWRP and does not break from this
Spoiler: Installation using DFE patch (HentaiOS and Proton AOSP excluded)
When using DFE, you should not use internal methods of updating in ROM, when the firmware is updated in the background, and when you reboot it is already updated, as I wrote earlier, the sections are updated, and therefore the DFE stops working, and it is rather difficult to predict when the system has updated itself, and if DFE will stop working, all data will be deleted, and the ROM simply will not start, so it's better to manually set everything.​
Spoiler: ROM Type Official MIUI Fastboot
1. Download zip with fastboot image MIUI
2. Unpack it to a convenient place
3. You need to go to the folder, and look for the flash_all_except_storage.bat file there
4. You need to open it with a text editor and delete the last line with the text "fastboot reboot"
5. Now, through miflash, we look for the directory with this file
6. We transfer the phone to fastboot mode (Hold the power button + volume rocker down)
7. We connect the device with a wire to the computer and, in the program, select the bottom right flash_all_except_storage.bat, press flash
8. After the end of the process, you need to boot into TWRP
9. In TWRP, if you did everything correctly, then the memory is not erased.
10. We transfer DFE from the computer to the phone, or if you did it in advance, then we flash it. in 99% of cases, an inscription will come out that you need to pre-flash SystemRW_1.32. Then we do it.
11. In the case of SystemRW, you need to reboot into TWRP, then either put it in RamDisk and just reboot, or click reboot bootloader and boot from the computer back to TWRP.
12. Repeat step 10.
13. If you have not used DFE before, then you need to do format DATA (yes). If you have updated the firmware in this way, then you do not need to do Format data. If you have changed the firmware, it is recommended to do wipe data, otherwise either the firmware will not boot, or it will not work correctly
Spoiler: ROM type Pyaload.bin for TWRP
1. Install TWRP in ramdisk and / or go into it
2. Flash .zip ROM file
3. Install TWRP in ramdisk
4. Reboot into TWRP
5. Flash DFE.zip
6. If you have not used DFE before, then you need to do format DATA (yes). If you have updated the firmware in this way, then you do not need to do Format data. If you have changed the firmware, it is recommended to do wipe data, otherwise either the firmware will not boot, or it will not work correctly
Spoiler: ROM type Payload.bin for ADB sideload via PC
1. Download the .zip ROM to your PC. Upload the archive to the adb folder
2. Then, according to the instructions from the developer, you can flash the vendor and vendor_boot ROM provided by the developer, or load into the temporary TWRP from nebrassy "fastboot flash boot twrp.img", or through the autoinstall script
3. Further, in the case of AOSP recovery fastboot --set-active = a and fastboot reboot recovery
5. In twrp, select the advanced section and click adb sideload. in AOSP recovery select Install update through ADB
6. In the console from the adb folder in which the archive from the ROM is located, write "adb sideload name_file_PZU.zip"
7. Flash DFE.zip
8. If you have not used DFE before, then you need to do format DATA (yes). If you have updated the firmware in this way, then you do not need to do Format data. If you have changed the firmware, it is recommended to do wipe data, otherwise either the firmware will not boot, or it will not work correctly
Spoiler: ROM Type Custom MIUI (For example Xiaomi.eu)
1. Download CustomMIUI.zip
2. Install TWRP in ramdisk and / or go into it
3. Flash CustomMIUI.zip ROM file
4. Install TWRP in ramdisk
5. Reboot into TWRP
6. Flash DFE.zip
7. If you have not used DFE before, then you need to do format DATA (yes). If you have updated the firmware in this way, then you do not need to do Format data. If you have changed the firmware, it is recommended to do wipe data, otherwise either the firmware will not boot, or it will not work correctly
Spoiler: ROM type Custom fastboot image.
1. Download fastboot ROM on PC
2. Unzip to a convenient place, and go to the folder, find the update.bat file there, you need to open it with a text editor and delete the last line with the text "fastboot reboot"
3. We transfer the phone to fastboot mode (Hold the power button + volume down)
4. Run update.bat and wait for the end of the procedure
5. After the end of the process, you need to boot into TWRP
9. In TWRP, if you did everything right, then the memory is not erased. Otherwise, I recommend using this method so that the memory appears.
10. We transfer DFE from the computer to the phone, or if you did it in advance, then we flash it.
11. If you have not used DFE before, then you need to do format DATA (yes). If you have updated the firmware in this way, then you do not need to do Format data. If you have changed the firmware, it is recommended to do wipe data, otherwise either the firmware will not boot, or it will not work correctly
Spoiler: Standard installation methods
Spoiler: ROM Type Official MIUI Fastboot
1. Download zip with fastboot image MIUI
2. Unpack it to a convenient place
3. Now, through miflash, we look for the directory with this file
4. We transfer the phone to fastboot mode (Hold the power button + volume ring down)
5. We connect with a wire to the PC and first select in the program at the bottom right flash_all_except_storage.bat (For updating), flash_all.bat (For Clean installation) flash_all_lock.bat (for clean installation and locking the bootloader) or press flash
6. The system will reboot itself. Ready
7. Additionally (Magisk, gapps and other zip) after a clean install with all files removed:
7.1 After loading into the system, we go through the device configuration, and we must put a pin or a graphic key
7.2 Flash temporary TWRP
7.3 If you need a TWRP on an ongoing basis, then we flash it into a ramdisk (Imstall recvoery ramdisk), the img image of the TWRP must be on the device
7.4 Flash the zip archives you need
7.5 You can make Wipe data to set up your phone again
8. If you updated your phone, you can do steps 7.2-7.4 Immediately after installing the update
Spoiler: ROM type Pyaload.bin for TWRP
1. Install TWRP in ramdisk and / or go into it
2. Flash .zip ROM file
3. Install TWRP in ramdisk
4. Make Format Data as indicated in the instructions of the firmware developer, or wipe date if you change it from custom to custom (does not always work), or just boot into the system (Risky !!)
5.Additional (Magisk, gapps and other zip):
5.1 If you have updated the ROM, you can flash additional files
5.2 If you have made format data, you need to boot into the system, go through the setup, put the lock key and reboot into TWRP, after that you can put an additional zip. and make wipe data to configure it again
Spoiler: ROM type Payload.bin for ADB sideload via PC
1. Download the .zip ROM to your PC. Upload the archive to the adb folder
2. Further, you can follow the instructions either from the developer, flash the vendor and vendor_boot provided by the developer, or boot into the temporary TWRP from nebrassy "fastboot flash boot twrp.img", or through the autoinstall script
3. Further, in the case of AOSP recovery fastboot --set-active = a and fastboot reboot recovery
5. In twrp, select the advanced section and click adb sideload. in aosp recovery select Install update through ADB
6. In the console, from the adb folder in which the archive with the firmware is located, write adb sideload_file_name.zip
7. At the end of the process, make Format Data as indicated in the developer's instructions, or wipe the date, if you change it from custom to custom (it does not always work), or just boot into the system
8.Additional (Magisk, gapps and other zip):
8.1 After loading into the system, we go through the device configuration, and we must put a pin or a graphic key
8.2 Reboot the phone into fastboot mode (volume down and hold down the power button) connect the computer, flash the temporary TWRP
8.3 If you need a TWRP for a constant, then we flash it into a ramdisk (Imstall recvoery ramdisk), the img image of a TWRP must be on the device
8.4 Flash the zip archives you need
9. If you updated your phone, you can do steps 8.2-8.4 Immediately after installing the update
Spoiler: ROM Type Custom MIUI (For example Xiaomi.eu)
1. Download CustomMIUI.zip
2. Install TWRP in ramdisk and / or go into it
3. Flash CustomMIUI.zip ROM file
4. Install TWRP to ramdisk
5. Reboot into TWRP
6. Make Format Data as indicated in the Developer's instructions, or wipe date, if you change miui to miui (does not always work), or just boot into the system
7.Additional (Magisk, gapps and other zip):
7.1 In case you have updated the ROM, you can flash additional files
7.2 If you have made format data, you need to boot into the system, go through the setup, put the lock key and reboot into TWRP, after that you can put an additional zip. and make wipe data to configure it again
Spoiler: ROM type Custom fastboot image.
1. Download fastboot ROM on PC
2. Unzip to a convenient place, and go to the folder, find the update.bat file and installformat.bat there FirestInstall.bat
3. Go into fastboot mode, connect the device to the PC and select the desired installer, or update, to update, or for a clean install installformat.bat or FirestInstall.bat (all data will be erased, including memory
4. Additionally (Magisk, gapps and other zip) after a clean install with all files removed:
4.1 After loading into the system, we go through the device configuration, and we must put a pin or a graphic key
4.2 Reboot the phone into fastboot mode (volume down and hold down the power button) connect the computer, flash the temporary TWRP
4.3 If you need TWRP for Permanent then we do it
4.4 Flash the zip archives you need
4.5 You can make Wipe data to set up your phone again
5. If you updated your phone, you can do steps 4.2-4.4 Immediately after installing the update
Thank you VERY much for the fantastic guide.
Just one question: what are the differences between the two available TWRP for Alioth: Nebrassi and Vasishath ?
Thanks man
michelD said:
Thank you VERY much for the fantastic guide.
Just one question: what are the differences between the two available TWRP for Alioth: Nebrassi and Vasishath ?
Click to expand...
Click to collapse
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
please read the entire section of the paragraph
LeeGarChat said:
Mandatory instructions for beginners (and not only beginners) to install ROM and other on poco f3​Prerequisite, unlocking the bootloader​For questions, if something is not clear, please write to "Conversations", I will try to correct it in a post with a simpler explanation. And I will answer the question (I am not a 24/7 support service, so duplicate your question in the ROM discussion thread in order to give an answer if I'm busy)​
!!! The spoiler below is a must-read before doing anything with your device. !!!​
Spoiler: Let's discuss several points at once
Spoiler: 1. Drivers and utilities - download immediately and install so that there are no further questions
1. Fastboot and adb - Tools_r31.0.3
2. Miflash
3. USBDrivers - QDloader
Spoiler: 2. Features and disadvantages of our device
2.1 We have a so-called A/B partition structure - this is when two spaces are used for system partitions (read more in google) the essence is that there are "Firmware" partitions
Spoiler: code
Code:
"dsp.img", "/dev/block/bootdevice/by-name/dsp_a"
"dsp.img", "/dev/block/bootdevice/by-name/dsp_b"
"xbl_config.img", "/dev/block/bootdevice/by-name/xbl_config_a"
"xbl_config.img", "/dev/block/bootdevice/by-name/xbl_config_b"
"modem.img", "/dev/block/bootdevice/by-name/modem_a"
"modem.img", "/dev/block/bootdevice/by-name/modem_b"
"tz.img", "/dev/block/bootdevice/by-name/tz_a"
"tz.img", "/dev/block/bootdevice/by-name/tz_b"
"bluetooth.img", "/dev/block/bootdevice/by-name/bluetooth_a"
"bluetooth.img", "/dev/block/bootdevice/by-name/bluetooth_b"
"abl.img", "/dev/block/bootdevice/by-name/abl_a"
"abl.img", "/dev/block/bootdevice/by-name/abl_b"
"featenabler.img", "/dev/block/bootdevice/by-name/featenabler_a"
"featenabler.img", "/dev/block/bootdevice/by-name/featenabler_b"
"keymaster.img", "/dev/block/bootdevice/by-name/keymaster_a"
"keymaster.img", "/dev/block/bootdevice/by-name/keymaster_b"
"uefisecapp.img", "/dev/block/bootdevice/by-name/uefisecapp_a"
"uefisecapp.img", "/dev/block/bootdevice/by-name/uefisecapp_b"
"qupfw.img", "/dev/block/bootdevice/by-name/qupfw_a"
"qupfw.img", "/dev/block/bootdevice/by-name/qupfw_b"
"xbl.img", "/dev/block/bootdevice/by-name/xbl_a"
"xbl.img", "/dev/block/bootdevice/by-name/xbl_b"
"cmnlib.img", "/dev/block/bootdevice/by-name/cmnlib_a"
"cmnlib.img", "/dev/block/bootdevice/by-name/cmnlib_b"
"cmnlib64.img", "/dev/block/bootdevice/by-name/cmnlib64_a"
"cmnlib64.img", "/dev/block/bootdevice/by-name/cmnlib64_b"
"devcfg.img", "/dev/block/bootdevice/by-name/devcfg_a"
"devcfg.img", "/dev/block/bootdevice/by-name/devcfg_b"
"hyp.img", "/dev/block/bootdevice/by-name/hyp_a"
"hyp.img", "/dev/block/bootdevice/by-name/hyp_b"
"imagefv.img", "/dev/block/bootdevice/by-name/imagefv_a"
"imagefv.img", "/dev/block/bootdevice/by-name/imagefv_b"
"aop.img", "/dev/block/bootdevice/by-name/aop_a"
"aop.img", "/dev/block/bootdevice/by-name/aop_b"
and there are partitions directly ROM /data, /system /system_ext, /vendor, /product, /odm, /vendor_boot, /boot
2.2 miui based ROMs update all of these sections. In the case of firmware, they are put in both slots at once. Although this is not necessary in essence.
ROMs of a custom type, those based on a "pure" android are often flashed for only partitions of the ROM, but not in 100% case
2.3 For our device, there are 3 types of ROM installation files, 2 of which are divided into two types of installation methods
2.3.1 Let's start simple, Official miui image for fastboot - installation is recommended via miflash, has all partitions inside the archive. There are also 3 files inside - for easy installation of all partitions, for installing all partitions and formatting the memory, as well as for installing all partitions and locking the bootloader (the memory is formatted automatically), the name of the .bat files speaks for themselves
2.3.2 Next - the installation .zip archive of unofficial MIUI for TWRP. Not all partitions, but the main ones (always stitched into section A), including firmware (stitched into both slots A and B)
2.3.3 Sideload type firmware (99% of all custom ROMs) are divided into two installation methods.
Inside the archive there is a payload.bin file in which the rom and sometimes firmware sections are packed
Installation always goes to the adjacent NOT active memory slot, and after completion, makes the adjacent slot active to load the firmware
Installation via PC, via ADB (on the phone, AOSP recovery adb sideload/twrp adb sideload mode) or installation via TWRP directly from the device
2.4 Custom ROMs for fastboot, usually used for a clean installation, which implies cleaning and data from memory (pictures, etc.) inside sometimes have firmware sections and always rom sections. Inside, as the author saw fit, there are .bat launchers for updating (does not erase all data) and for a clean installation (erases all data)
2.5 Another very important feature of the AB structure in our case is two types of fastboot mod. It is called bootloader - official miui is completely flashed through it, and there is a fastbootD mode that is built into the boot sector in aosp recovery or in twrp, it is also needed for flashing img images. Ask what are the differences if this and that fastboot?
The answer is idiotic
Bootloader can flash all main partitions only in both A and B sections at the same time command type - "fastboot flash system_ab system.img"
He knows how to essentially flash a couple of partitions into a certain slot, we only need in this case vendor_boot and boot command type "fastboot flash boot_a boot.img" or instead of A you need to write B
FastbootD, on the other hand, can flash img images separately into the desired slot A or B
2.6 Poco f3/k40/mi11x does not have a separate partition for recovery/twrp,the whole thing is stored in the boot sector in the ramdisk, and the kernel is also stored there. Several factors follow from this knowledge.
2.6.1 To install TWRP, you must first boot into a temporary tvrp, the command type is "fastboot boot twrp.img". Inside TWRP, in the Advanced tab, click install recovery ramdisk, and select the img twrp image on the phone
2.6.3 To install aosp recvoery, you need to flash boot "fastboot boot boot.img"
2.6.4 After installing magisk, as it is stored in the RAMDISK. If you install tvrp again in ramdisk, the magisk will be deleted
2.6.5 When installing the magisk, tvrp does not crash
2.6.6 When installing kernel.zip via TWRP, TWRPis not deleted.
2.6.7 After updating the ROM, or changing the ROM, the TWRPis deleted, since the boot sector is bundled with all the ROMs as a whole and mainly with aosp recovery included, some romodels can immediately push TWRP into it. But it's better to play it safe and flash it yourself
2.6.8 When entering TWRP, it writes the installation .zip archives to the active slot, and always works with the active slot A or B, the exception concerns firmware, wrote above in paragraph 2.3
2.6.9 install recovery ramdis on surveillance writes TWRP to both slots
Spoiler: 3. Regarding TWRP and AOSP recovery
3.1 There are currently only 2 TWRPs from Nebrassy and from vasishath. What is the difference? God knows. In fact, they are bugged equally strongly, so I will write instructions using the example of Nebrassy, from experience there are no problems with it.
3.2 AOSP recovery is like it was 10 years ago cwm recovery if anyone remembers. Serves only for switching to fastbootD and ADB sideload mode, updating the firmware over the air, and sometimes cleaning the data. Supplied by many ROM developers as a necessary component (in fact, not so)
Now, based on the knowledge above, we have an understanding of how and what works. Now we need to disassemble the installation procedure. Here, too, not everything is so simple. There are two options for each installation. And in addition, we have 10 ways to install firmware. Why 10? And all due to the fact that I was unaware and had to write a small script called DFE. Isn't there a ready-made one on the Internet? According to my tests, they simply don't work.
Spoiler: Briefly about DFE
Somewhere 90% of ROM Developers out of the box have such a function as data encryption, DFE removes "flags" from one file in the /vendor section so that the system encrypts the data "Entire /data section" at startup therefore, just like with TWRP, after changing or updating the firmware, you need to flash it through TWRP.
- Why should I remove encryption? - ask a question
I will answer, in fact, there is no need, if only you are ready to always back up all data to a flash drive or PC from the internal memory of the phone when changing the firmware, because not all firmware have the same encryption keys, and you can install the firmware, but it is simply will not start at best, at worst everything will be encrypted over a new one and all files will be lost.
But literally all the instructions from the developers of the ROM are written precisely taking into account the fact that you will format the date when installing their firmware. Also, if encryption is disabled, TvRP will not ask for a password to see the memory, and therefore your data is at risk when the phone is stolen, since it will not be difficult to pull them out.
For all cases, you cannot do format data before installing the firmware, otherwise the PC will not see the memory, format data is done only at the end of the installation.
Spoiler: Installing temporary TWRP
Method 1:
1. We drop twrp.img into the folder with adb
2. In windows, hold down shift + right mouse button in an empty space in the folder, open a shell or cmd
3. The console will open, in the case of win10 / 11, if this is a shell, you need to register cmd
4. Reboot the phone into fastboot mode / bootloader (volume down + power button) and connect it to the computer via the wire
5. We write to the command "fastboot boot twrp.img"
6. TWRP will start by itself
Method 2:
1.Download TWRP Autoruner https://drive.google.com/file/d/1HsA1XAEzFgEo0n7K1Vf0QqPlyEICzkpd/view?usp=sharing
2. Unpack anywhere
3. Boot into FastBoot
4. Run the batch file in the folder
Spoiler: Setting TWRP to "permanent" - within the same ROM (Before the first ROM update, or before the first ROM change)
Method 1: Works ALWAYS
1. Go to the advanced tab and select install recvoery ramdisk
2. Find the twrp.img file on your phone and select it
3. If TWRP shows "Error opening: No such file or directory"
then you need to change the active slot in the Reboot contribution, then back and flash TWRP into the ramdisk again
Method 2: For TWRP from Nebrassy does not work 100% of the time
In the same place, in the advanced tab, click flash current TWRP
Method 3: For TWRP from Vasishath. does not work 100%
In the same place, in the advanced tab, click Inject TWRP
Before flashing custom, it is recommended to install a miui stock or a custom miui. It is advisable to drain through a fastboot by analogy with the spoiler instruction, from point 1 to point 9
This is done in order to update all sections in memory, remove tails from other ROMs. Refresh the markup of the sections. Otherwise, there may be errors, not working conditional nfc, lags, whatever. In the best case, the ROM simply won't be installed. At worst, there will be a bad opinion about the ROM because of your own wrong actions and an extra day for flashing and configuring another or the same ROM.
All files are additional here​
Spoiler: If the memory in TWRP is not visible
1. You saw that the PC does not see the memory on the device, or the tvrp is empty (this already means that all the data has been erased)
2. Download one of these TVRPs to your computer
recovery_vasishath_nonflags.img or recovery_nebrassy_nonflags.img
3. Through that TWRP where everything is empty, we do format data (yes)
4. Reboot bootloader
5. On the PC we prescribe "fastboot boot twrp.img" any of the post
6. TvRP is loaded (the computer and TWRP sees the memory, but this is not all, nothing will work)
7. In the advanced tab, click fix context
8. In the mounts tab, remove the checkbox from the date and put it back.
9. Now you can upload files from your computer
10. You flash the ROM, you can not do the date format again, when the system boots, it will erase everything from memory, and if you did not set dfe, then the date itself will be encrypted, if you set the data in the same way, it will be erased, but there will be no encryption.
Note:
These TWRPs will not see the date (files in memory) if the data is encrypted, usually TWRP asks for a password when entering it, or you can see it in the security tab.
This TWRP works fine with the already decrypted date, if you use the DFE patch, everything works normally
In this TWRP, the encryption flags are simply removed, so that after the date format when entering TVRP, the date is not encrypted with keys from TWRP and does not break from this
Spoiler: Installation using DFE patch (HentaiOS and Proton AOSP excluded)
When using DFE, you should not use internal methods of updating in ROM, when the firmware is updated in the background, and when you reboot it is already updated, as I wrote earlier, the sections are updated, and therefore the DFE stops working, and it is rather difficult to predict when the system has updated itself, and if DFE will stop working, all data will be deleted, and the ROM simply will not start, so it's better to manually set everything.​
Spoiler: ROM Type Official MIUI Fastboot
1. Download zip with fastboot image MIUI
2. Unpack it to a convenient place
3. You need to go to the folder, and look for the flash_all_except_storage.bat file there
4. You need to open it with a text editor and delete the last line with the text "fastboot reboot"
5. Now, through miflash, we look for the directory with this file
6. We transfer the phone to fastboot mode (Hold the power button + volume rocker down)
7. We connect the device with a wire to the computer and, in the program, select the bottom right flash_all_except_storage.bat, press flash
8. After the end of the process, you need to boot into TWRP
9. In TVRP, if you did everything correctly, then the memory is not erased.
10. We transfer DFE from the computer to the phone, or if you did it in advance, then we flash it. in 99% of cases, an inscription will come out that you need to pre-flash SystemRW_1.32. Then we do it.
11. In the case of SystemRW, you need to reboot into TWRP, then either put it in RamDisk and just reboot, or click reboot bootloader and boot from the computer back to TWRP.
12. Repeat step 10.
13. If you have not used DFE before, then you need to do format DATA (yes). If you have updated the firmware in this way, then you do not need to do Format data. If you have changed the firmware, it is recommended to do wipe data, otherwise either the firmware will not boot, or it will not work correctly
Spoiler: ROM type Pyaload.bin for TWRP
1. Install TWRP in ramdisk and / or go into it
2. Flash .zip ROM file
3. Install TWRP in ramdisk
4. Reboot into TWRP
5. Flash DFE.zip
6. If you have not used DFE before, then you need to do format DATA (yes). If you have updated the firmware in this way, then you do not need to do Format data. If you have changed the firmware, it is recommended to do wipe data, otherwise either the firmware will not boot, or it will not work correctly
Spoiler: ROM type Payload.bin for ADB sideload via PC
1. Download the .zip ROM to your PC. Upload the archive to the adb folder
2. Then, according to the instructions from the developer, you can flash the vendor and vendor_boot ROM provided by the developer, or load into the temporary TVRP from nebrassy "fastboot flash boot twrp.img", or through the autoinstall script
3. Further, in the case of AOSP recovery fastboot --set-active = a and fastboot reboot recovery
5. In twrp, select the advanced section and click adb sideload. in AOSP recovery select Install update through ADB
6. In the console from the adb folder in which the archive from the ROM is located, write "adb sideload name_file_PZU.zip"
7. Flash DFE.zip
8. If you have not used DFE before, then you need to do format DATA (yes). If you have updated the firmware in this way, then you do not need to do Format data. If you have changed the firmware, it is recommended to do wipe data, otherwise either the firmware will not boot, or it will not work correctly
Spoiler: ROM Type Custom MIUI (For example Xiaomi.eu)
1. Download CustomMIUI.zip
2. Install TWRP in ramdisk and / or go into it
3. Flash CustomMIUI.zip ROM file
4. Install TWRP in ramdisk
5. Reboot into TWRP
6. Flash DFE.zip
7. If you have not used DFE before, then you need to do format DATA (yes). If you have updated the firmware in this way, then you do not need to do Format data. If you have changed the firmware, it is recommended to do wipe data, otherwise either the firmware will not boot, or it will not work correctly
Spoiler: ROM type Custom fastboot image.
1. Download fastboot ROM on PC
2. Unzip to a convenient place, and go to the folder, find the update.bat file there, you need to open it with a text editor and delete the last line with the text "fastboot reboot"
3. We transfer the phone to fastboot mode (Hold the power button + volume down)
4. Run update.bat and wait for the end of the procedure
5. After the end of the process, you need to boot into TWRP
9. In TWRP, if you did everything right, then the memory is not erased. Otherwise, I recommend using this method so that the memory appears.
10. We transfer DFE from the computer to the phone, or if you did it in advance, then we flash it.
11. If you have not used DFE before, then you need to do format DATA (yes). If you have updated the firmware in this way, then you do not need to do Format data. If you have changed the firmware, it is recommended to do wipe data, otherwise either the firmware will not boot, or it will not work correctly
Spoiler: Standard installation methods
Spoiler: ROM Type Official MIUI Fastboot
1. Download zip with fastboot image MIUI
2. Unpack it to a convenient place
3. Now, through miflash, we look for the directory with this file
4. We transfer the phone to fastboot mode (Hold the power button + volume ring down)
5. We connect with a wire to the PC and first select in the program at the bottom right flash_all_except_storage.bat (For updating), flash_all.bat (For Clean installation) flash_all_lock.bat (for clean installation and locking the bootloader) or press flash
6. The system will reboot itself. Ready
7. Additionally (Magisk, gapps and other zip) after a clean install with all files removed:
7.1 After loading into the system, we go through the device configuration, and we must put a pin or a graphic key
7.2 Flash temporary TWRP
7.3 If you need a TVRP on an ongoing basis, then we flash it into a ramdisk (Imstall recvoery ramdisk), the img image of the TVRP must be on the device
7.4 Flash the zip archives you need
7.5 You can make Wipe data to set up your phone again
8. If you updated your phone, you can do steps 7.2-7.4 Immediately after installing the update
Spoiler: ROM type Pyaload.bin for TWRP
1. Install TWRP in ramdisk and / or go into it
2. Flash .zip ROM file
3. Install TWRP in ramdisk
4. Make Format Data as indicated in the instructions of the firmware developer, or wipe date if you change it from custom to custom (does not always work), or just boot into the system (Risky !!)
5.Additional (Magisk, gapps and other zip):
5.1 If you have updated the ROM, you can flash additional files
5.2 If you have made format data, you need to boot into the system, go through the setup, put the lock key and reboot into tvrp, after that you can put an additional zip. and make wipe data to configure it again
Spoiler: ROM type Payload.bin for ADB sideload via PC
1. Download the .zip ROM to your PC. Upload the archive to the adb folder
2. Further, you can follow the instructions either from the developer, flash the vendor and vendor_boot provided by the developer, or boot into the temporary TWRP from nebrassy "fastboot flash boot twrp.img", or through the autoinstall script
3. Further, in the case of AOSP recovery fastboot --set-active = a and fastboot reboot recovery
5. In twrp, select the advanced section and click adb sideload. in aosp recovery select Install update through ADB
6. In the console, from the adb folder in which the archive with the firmware is located, write adb sideload_file_name.zip
7. At the end of the process, make Format Data as indicated in the developer's instructions, or wipe the date, if you change it from custom to custom (it does not always work), or just boot into the system
8.Additional (Magisk, gapps and other zip):
8.1 After loading into the system, we go through the device configuration, and we must put a pin or a graphic key
8.2 Reboot the phone into fastboot mode (volume down and hold down the power button) connect the computer, flash the temporary TWRP
8.3 If you need a TVRP for a constant, then we flash it into a ramdisk (Imstall recvoery ramdisk), the img image of a tvrp must be on the device
8.4 Flash the zip archives you need
9. If you updated your phone, you can do steps 8.2-8.4 Immediately after installing the update
Spoiler: ROM Type Custom MIUI (For example Xiaomi.eu)
1. Download CustomMIUI.zip
2. Install TWRP in ramdisk and / or go into it
3. Flash CustomMIUI.zip ROM file
4. Install TWRP to ramdisk
5. Reboot into TWRP
6. Make Format Data as indicated in the Developer's instructions, or wipe date, if you change miui to miui (does not always work), or just boot into the system
7.Additional (Magisk, gapps and other zip):
7.1 In case you have updated the ROM, you can flash additional files
7.2 If you have made format data, you need to boot into the system, go through the setup, put the lock key and reboot into tvrp, after that you can put an additional zip. and make wipe data to configure it again
Spoiler: ROM type Custom fastboot image.
1. Download fastboot ROM on PC
2. Unzip to a convenient place, and go to the folder, find the update.bat file and installformat.bat there FirestInstall.bat
3. Go into fastboot mode, connect the device to the PC and select the desired installer, or update, to update, or for a clean install installformat.bat or FirestInstall.bat (all data will be erased, including memory
4. Additionally (Magisk, gapps and other zip) after a clean install with all files removed:
4.1 After loading into the system, we go through the device configuration, and we must put a pin or a graphic key
4.2 Reboot the phone into fastboot mode (volume down and hold down the power button) connect the computer, flash the temporary TWRP
4.3 If you need TWRP for Permanent then we do it
4.4 Flash the zip archives you need
4.5 You can make Wipe data to set up your phone again
5. If you updated your phone, you can do steps 4.2-4.4 Immediately after installing the update
Click to expand...
Click to collapse
Many thanks for making this complete and detailed guide.
It was really needed!
Good job!
LeeGarChat said:
Mandatory instructions for beginners (and not only beginners) to install ROM and other on poco f3​Prerequisite, unlocking the bootloader​For questions, if something is not clear, please write to "Conversations", I will try to correct it in a post with a simpler explanation. And I will answer the question (I am not a 24/7 support service, so duplicate your question in the ROM discussion thread in order to give an answer if I'm busy)​
!!! The spoiler below is a must-read before doing anything with your device. !!!​
Spoiler: Let's discuss several points at once
Spoiler: 1. Drivers and utilities - download immediately and install so that there are no further questions
1. Fastboot and adb - Tools_r31.0.3
2. Miflash
3. USBDrivers - QDloader
Spoiler: 2. Features and disadvantages of our device
2.1 We have a so-called A/B partition structure - this is when two spaces are used for system partitions (read more in google) the essence is that there are "Firmware" partitions
Spoiler: code
Code:
"dsp.img", "/dev/block/bootdevice/by-name/dsp_a"
"dsp.img", "/dev/block/bootdevice/by-name/dsp_b"
"xbl_config.img", "/dev/block/bootdevice/by-name/xbl_config_a"
"xbl_config.img", "/dev/block/bootdevice/by-name/xbl_config_b"
"modem.img", "/dev/block/bootdevice/by-name/modem_a"
"modem.img", "/dev/block/bootdevice/by-name/modem_b"
"tz.img", "/dev/block/bootdevice/by-name/tz_a"
"tz.img", "/dev/block/bootdevice/by-name/tz_b"
"bluetooth.img", "/dev/block/bootdevice/by-name/bluetooth_a"
"bluetooth.img", "/dev/block/bootdevice/by-name/bluetooth_b"
"abl.img", "/dev/block/bootdevice/by-name/abl_a"
"abl.img", "/dev/block/bootdevice/by-name/abl_b"
"featenabler.img", "/dev/block/bootdevice/by-name/featenabler_a"
"featenabler.img", "/dev/block/bootdevice/by-name/featenabler_b"
"keymaster.img", "/dev/block/bootdevice/by-name/keymaster_a"
"keymaster.img", "/dev/block/bootdevice/by-name/keymaster_b"
"uefisecapp.img", "/dev/block/bootdevice/by-name/uefisecapp_a"
"uefisecapp.img", "/dev/block/bootdevice/by-name/uefisecapp_b"
"qupfw.img", "/dev/block/bootdevice/by-name/qupfw_a"
"qupfw.img", "/dev/block/bootdevice/by-name/qupfw_b"
"xbl.img", "/dev/block/bootdevice/by-name/xbl_a"
"xbl.img", "/dev/block/bootdevice/by-name/xbl_b"
"cmnlib.img", "/dev/block/bootdevice/by-name/cmnlib_a"
"cmnlib.img", "/dev/block/bootdevice/by-name/cmnlib_b"
"cmnlib64.img", "/dev/block/bootdevice/by-name/cmnlib64_a"
"cmnlib64.img", "/dev/block/bootdevice/by-name/cmnlib64_b"
"devcfg.img", "/dev/block/bootdevice/by-name/devcfg_a"
"devcfg.img", "/dev/block/bootdevice/by-name/devcfg_b"
"hyp.img", "/dev/block/bootdevice/by-name/hyp_a"
"hyp.img", "/dev/block/bootdevice/by-name/hyp_b"
"imagefv.img", "/dev/block/bootdevice/by-name/imagefv_a"
"imagefv.img", "/dev/block/bootdevice/by-name/imagefv_b"
"aop.img", "/dev/block/bootdevice/by-name/aop_a"
"aop.img", "/dev/block/bootdevice/by-name/aop_b"
and there are partitions directly ROM /data, /system /system_ext, /vendor, /product, /odm, /vendor_boot, /boot
2.2 miui based ROMs update all of these sections. In the case of firmware, they are put in both slots at once. Although this is not necessary in essence.
ROMs of a custom type, those based on a "pure" android are often flashed for only partitions of the ROM, but not in 100% case
2.3 For our device, there are 3 types of ROM installation files, 2 of which are divided into two types of installation methods
2.3.1 Let's start simple, Official miui image for fastboot - installation is recommended via miflash, has all partitions inside the archive. There are also 3 files inside - for easy installation of all partitions, for installing all partitions and formatting the memory, as well as for installing all partitions and locking the bootloader (the memory is formatted automatically), the name of the .bat files speaks for themselves
2.3.2 Next - the installation .zip archive of unofficial MIUI for TWRP. Not all partitions, but the main ones (always stitched into section A), including firmware (stitched into both slots A and B)
2.3.3 Sideload type firmware (99% of all custom ROMs) are divided into two installation methods.
Inside the archive there is a payload.bin file in which the rom and sometimes firmware sections are packed
Installation always goes to the adjacent NOT active memory slot, and after completion, makes the adjacent slot active to load the firmware
Installation via PC, via ADB (on the phone, AOSP recovery adb sideload/twrp adb sideload mode) or installation via TWRP directly from the device
2.4 Custom ROMs for fastboot, usually used for a clean installation, which implies cleaning and data from memory (pictures, etc.) inside sometimes have firmware sections and always rom sections. Inside, as the author saw fit, there are .bat launchers for updating (does not erase all data) and for a clean installation (erases all data)
2.5 Another very important feature of the AB structure in our case is two types of fastboot mod. It is called bootloader - official miui is completely flashed through it, and there is a fastbootD mode that is built into the boot sector in aosp recovery or in twrp, it is also needed for flashing img images. Ask what are the differences if this and that fastboot?
The answer is idiotic
Bootloader can flash all main partitions only in both A and B sections at the same time command type - "fastboot flash system_ab system.img"
He knows how to essentially flash a couple of partitions into a certain slot, we only need in this case vendor_boot and boot command type "fastboot flash boot_a boot.img" or instead of A you need to write B
FastbootD, on the other hand, can flash img images separately into the desired slot A or B
2.6 Poco f3/k40/mi11x does not have a separate partition for recovery/twrp,the whole thing is stored in the boot sector in the ramdisk, and the kernel is also stored there. Several factors follow from this knowledge.
2.6.1 To install TWRP, you must first boot into a temporary tvrp, the command type is "fastboot boot twrp.img". Inside TWRP, in the Advanced tab, click install recovery ramdisk, and select the img twrp image on the phone
2.6.3 To install aosp recvoery, you need to flash boot "fastboot boot boot.img"
2.6.4 After installing magisk, as it is stored in the RAMDISK. If you install tvrp again in ramdisk, the magisk will be deleted
2.6.5 When installing the magisk, tvrp does not crash
2.6.6 When installing kernel.zip via TWRP, TWRPis not deleted.
2.6.7 After updating the ROM, or changing the ROM, the TWRPis deleted, since the boot sector is bundled with all the ROMs as a whole and mainly with aosp recovery included, some romodels can immediately push TWRP into it. But it's better to play it safe and flash it yourself
2.6.8 When entering TWRP, it writes the installation .zip archives to the active slot, and always works with the active slot A or B, the exception concerns firmware, wrote above in paragraph 2.3
2.6.9 install recovery ramdis on surveillance writes TWRP to both slots
Spoiler: 3. Regarding TWRP and AOSP recovery
3.1 There are currently only 2 TWRPs from Nebrassy and from vasishath. What is the difference? God knows. In fact, they are bugged equally strongly, so I will write instructions using the example of Nebrassy, from experience there are no problems with it.
3.2 AOSP recovery is like it was 10 years ago cwm recovery if anyone remembers. Serves only for switching to fastbootD and ADB sideload mode, updating the firmware over the air, and sometimes cleaning the data. Supplied by many ROM developers as a necessary component (in fact, not so)
Now, based on the knowledge above, we have an understanding of how and what works. Now we need to disassemble the installation procedure. Here, too, not everything is so simple. There are two options for each installation. And in addition, we have 10 ways to install firmware. Why 10? And all due to the fact that I was unaware and had to write a small script called DFE. Isn't there a ready-made one on the Internet? According to my tests, they simply don't work.
Spoiler: Briefly about DFE
Somewhere 90% of ROM Developers out of the box have such a function as data encryption, DFE removes "flags" from one file in the /vendor section so that the system encrypts the data "Entire /data section" at startup therefore, just like with TWRP, after changing or updating the firmware, you need to flash it through TWRP.
- Why should I remove encryption? - ask a question
I will answer, in fact, there is no need, if only you are ready to always back up all data to a flash drive or PC from the internal memory of the phone when changing the firmware, because not all firmware have the same encryption keys, and you can install the firmware, but it is simply will not start at best, at worst everything will be encrypted over a new one and all files will be lost.
But literally all the instructions from the developers of the ROM are written precisely taking into account the fact that you will format the date when installing their firmware. Also, if encryption is disabled, TvRP will not ask for a password to see the memory, and therefore your data is at risk when the phone is stolen, since it will not be difficult to pull them out.
For all cases, you cannot do format data before installing the firmware, otherwise the PC will not see the memory, format data is done only at the end of the installation.
Spoiler: Installing temporary TWRP
Method 1:
1. We drop twrp.img into the folder with adb
2. In windows, hold down shift + right mouse button in an empty space in the folder, open a shell or cmd
3. The console will open, in the case of win10 / 11, if this is a shell, you need to register cmd
4. Reboot the phone into fastboot mode / bootloader (volume down + power button) and connect it to the computer via the wire
5. We write to the command "fastboot boot twrp.img"
6. TWRP will start by itself
Method 2:
1.Download TWRP Autoruner https://drive.google.com/file/d/1HsA1XAEzFgEo0n7K1Vf0QqPlyEICzkpd/view?usp=sharing
2. Unpack anywhere
3. Boot into FastBoot
4. Run the batch file in the folder
Spoiler: Setting TWRP to "permanent" - within the same ROM (Before the first ROM update, or before the first ROM change)
Method 1: Works ALWAYS
1. Go to the advanced tab and select install recvoery ramdisk
2. Find the twrp.img file on your phone and select it
3. If TWRP shows "Error opening: No such file or directory"
then you need to change the active slot in the Reboot contribution, then back and flash TWRP into the ramdisk again
Method 2: For TWRP from Nebrassy does not work 100% of the time
In the same place, in the advanced tab, click flash current TWRP
Method 3: For TWRP from Vasishath. does not work 100%
In the same place, in the advanced tab, click Inject TWRP
Before flashing custom, it is recommended to install a miui stock or a custom miui. It is advisable to drain through a fastboot by analogy with the spoiler instruction, from point 1 to point 9
This is done in order to update all sections in memory, remove tails from other ROMs. Refresh the markup of the sections. Otherwise, there may be errors, not working conditional nfc, lags, whatever. In the best case, the ROM simply won't be installed. At worst, there will be a bad opinion about the ROM because of your own wrong actions and an extra day for flashing and configuring another or the same ROM.
All files are additional here​
Spoiler: If the memory in TWRP is not visible
1. You saw that the PC does not see the memory on the device, or the tvrp is empty (this already means that all the data has been erased)
2. Download one of these TVRPs to your computer
recovery_vasishath_nonflags.img or recovery_nebrassy_nonflags.img
3. Through that TWRP where everything is empty, we do format data (yes)
4. Reboot bootloader
5. On the PC we prescribe "fastboot boot twrp.img" any of the post
6. TvRP is loaded (the computer and TWRP sees the memory, but this is not all, nothing will work)
7. In the advanced tab, click fix context
8. In the mounts tab, remove the checkbox from the date and put it back.
9. Now you can upload files from your computer
10. You flash the ROM, you can not do the date format again, when the system boots, it will erase everything from memory, and if you did not set dfe, then the date itself will be encrypted, if you set the data in the same way, it will be erased, but there will be no encryption.
Note:
These TWRPs will not see the date (files in memory) if the data is encrypted, usually TWRP asks for a password when entering it, or you can see it in the security tab.
This TWRP works fine with the already decrypted date, if you use the DFE patch, everything works normally
In this TWRP, the encryption flags are simply removed, so that after the date format when entering TVRP, the date is not encrypted with keys from TWRP and does not break from this
Spoiler: Installation using DFE patch (HentaiOS and Proton AOSP excluded)
When using DFE, you should not use internal methods of updating in ROM, when the firmware is updated in the background, and when you reboot it is already updated, as I wrote earlier, the sections are updated, and therefore the DFE stops working, and it is rather difficult to predict when the system has updated itself, and if DFE will stop working, all data will be deleted, and the ROM simply will not start, so it's better to manually set everything.​
Spoiler: ROM Type Official MIUI Fastboot
1. Download zip with fastboot image MIUI
2. Unpack it to a convenient place
3. You need to go to the folder, and look for the flash_all_except_storage.bat file there
4. You need to open it with a text editor and delete the last line with the text "fastboot reboot"
5. Now, through miflash, we look for the directory with this file
6. We transfer the phone to fastboot mode (Hold the power button + volume rocker down)
7. We connect the device with a wire to the computer and, in the program, select the bottom right flash_all_except_storage.bat, press flash
8. After the end of the process, you need to boot into TWRP
9. In TVRP, if you did everything correctly, then the memory is not erased.
10. We transfer DFE from the computer to the phone, or if you did it in advance, then we flash it. in 99% of cases, an inscription will come out that you need to pre-flash SystemRW_1.32. Then we do it.
11. In the case of SystemRW, you need to reboot into TWRP, then either put it in RamDisk and just reboot, or click reboot bootloader and boot from the computer back to TWRP.
12. Repeat step 10.
13. If you have not used DFE before, then you need to do format DATA (yes). If you have updated the firmware in this way, then you do not need to do Format data. If you have changed the firmware, it is recommended to do wipe data, otherwise either the firmware will not boot, or it will not work correctly
Spoiler: ROM type Pyaload.bin for TWRP
1. Install TWRP in ramdisk and / or go into it
2. Flash .zip ROM file
3. Install TWRP in ramdisk
4. Reboot into TWRP
5. Flash DFE.zip
6. If you have not used DFE before, then you need to do format DATA (yes). If you have updated the firmware in this way, then you do not need to do Format data. If you have changed the firmware, it is recommended to do wipe data, otherwise either the firmware will not boot, or it will not work correctly
Spoiler: ROM type Payload.bin for ADB sideload via PC
1. Download the .zip ROM to your PC. Upload the archive to the adb folder
2. Then, according to the instructions from the developer, you can flash the vendor and vendor_boot ROM provided by the developer, or load into the temporary TVRP from nebrassy "fastboot flash boot twrp.img", or through the autoinstall script
3. Further, in the case of AOSP recovery fastboot --set-active = a and fastboot reboot recovery
5. In twrp, select the advanced section and click adb sideload. in AOSP recovery select Install update through ADB
6. In the console from the adb folder in which the archive from the ROM is located, write "adb sideload name_file_PZU.zip"
7. Flash DFE.zip
8. If you have not used DFE before, then you need to do format DATA (yes). If you have updated the firmware in this way, then you do not need to do Format data. If you have changed the firmware, it is recommended to do wipe data, otherwise either the firmware will not boot, or it will not work correctly
Spoiler: ROM Type Custom MIUI (For example Xiaomi.eu)
1. Download CustomMIUI.zip
2. Install TWRP in ramdisk and / or go into it
3. Flash CustomMIUI.zip ROM file
4. Install TWRP in ramdisk
5. Reboot into TWRP
6. Flash DFE.zip
7. If you have not used DFE before, then you need to do format DATA (yes). If you have updated the firmware in this way, then you do not need to do Format data. If you have changed the firmware, it is recommended to do wipe data, otherwise either the firmware will not boot, or it will not work correctly
Spoiler: ROM type Custom fastboot image.
1. Download fastboot ROM on PC
2. Unzip to a convenient place, and go to the folder, find the update.bat file there, you need to open it with a text editor and delete the last line with the text "fastboot reboot"
3. We transfer the phone to fastboot mode (Hold the power button + volume down)
4. Run update.bat and wait for the end of the procedure
5. After the end of the process, you need to boot into TWRP
9. In TWRP, if you did everything right, then the memory is not erased. Otherwise, I recommend using this method so that the memory appears.
10. We transfer DFE from the computer to the phone, or if you did it in advance, then we flash it.
11. If you have not used DFE before, then you need to do format DATA (yes). If you have updated the firmware in this way, then you do not need to do Format data. If you have changed the firmware, it is recommended to do wipe data, otherwise either the firmware will not boot, or it will not work correctly
Spoiler: Standard installation methods
Spoiler: ROM Type Official MIUI Fastboot
1. Download zip with fastboot image MIUI
2. Unpack it to a convenient place
3. Now, through miflash, we look for the directory with this file
4. We transfer the phone to fastboot mode (Hold the power button + volume ring down)
5. We connect with a wire to the PC and first select in the program at the bottom right flash_all_except_storage.bat (For updating), flash_all.bat (For Clean installation) flash_all_lock.bat (for clean installation and locking the bootloader) or press flash
6. The system will reboot itself. Ready
7. Additionally (Magisk, gapps and other zip) after a clean install with all files removed:
7.1 After loading into the system, we go through the device configuration, and we must put a pin or a graphic key
7.2 Flash temporary TWRP
7.3 If you need a TVRP on an ongoing basis, then we flash it into a ramdisk (Imstall recvoery ramdisk), the img image of the TVRP must be on the device
7.4 Flash the zip archives you need
7.5 You can make Wipe data to set up your phone again
8. If you updated your phone, you can do steps 7.2-7.4 Immediately after installing the update
Spoiler: ROM type Pyaload.bin for TWRP
1. Install TWRP in ramdisk and / or go into it
2. Flash .zip ROM file
3. Install TWRP in ramdisk
4. Make Format Data as indicated in the instructions of the firmware developer, or wipe date if you change it from custom to custom (does not always work), or just boot into the system (Risky !!)
5.Additional (Magisk, gapps and other zip):
5.1 If you have updated the ROM, you can flash additional files
5.2 If you have made format data, you need to boot into the system, go through the setup, put the lock key and reboot into tvrp, after that you can put an additional zip. and make wipe data to configure it again
Spoiler: ROM type Payload.bin for ADB sideload via PC
1. Download the .zip ROM to your PC. Upload the archive to the adb folder
2. Further, you can follow the instructions either from the developer, flash the vendor and vendor_boot provided by the developer, or boot into the temporary TWRP from nebrassy "fastboot flash boot twrp.img", or through the autoinstall script
3. Further, in the case of AOSP recovery fastboot --set-active = a and fastboot reboot recovery
5. In twrp, select the advanced section and click adb sideload. in aosp recovery select Install update through ADB
6. In the console, from the adb folder in which the archive with the firmware is located, write adb sideload_file_name.zip
7. At the end of the process, make Format Data as indicated in the developer's instructions, or wipe the date, if you change it from custom to custom (it does not always work), or just boot into the system
8.Additional (Magisk, gapps and other zip):
8.1 After loading into the system, we go through the device configuration, and we must put a pin or a graphic key
8.2 Reboot the phone into fastboot mode (volume down and hold down the power button) connect the computer, flash the temporary TWRP
8.3 If you need a TVRP for a constant, then we flash it into a ramdisk (Imstall recvoery ramdisk), the img image of a tvrp must be on the device
8.4 Flash the zip archives you need
9. If you updated your phone, you can do steps 8.2-8.4 Immediately after installing the update
Spoiler: ROM Type Custom MIUI (For example Xiaomi.eu)
1. Download CustomMIUI.zip
2. Install TWRP in ramdisk and / or go into it
3. Flash CustomMIUI.zip ROM file
4. Install TWRP to ramdisk
5. Reboot into TWRP
6. Make Format Data as indicated in the Developer's instructions, or wipe date, if you change miui to miui (does not always work), or just boot into the system
7.Additional (Magisk, gapps and other zip):
7.1 In case you have updated the ROM, you can flash additional files
7.2 If you have made format data, you need to boot into the system, go through the setup, put the lock key and reboot into tvrp, after that you can put an additional zip. and make wipe data to configure it again
Spoiler: ROM type Custom fastboot image.
1. Download fastboot ROM on PC
2. Unzip to a convenient place, and go to the folder, find the update.bat file and installformat.bat there FirestInstall.bat
3. Go into fastboot mode, connect the device to the PC and select the desired installer, or update, to update, or for a clean install installformat.bat or FirestInstall.bat (all data will be erased, including memory
4. Additionally (Magisk, gapps and other zip) after a clean install with all files removed:
4.1 After loading into the system, we go through the device configuration, and we must put a pin or a graphic key
4.2 Reboot the phone into fastboot mode (volume down and hold down the power button) connect the computer, flash the temporary TWRP
4.3 If you need TWRP for Permanent then we do it
4.4 Flash the zip archives you need
4.5 You can make Wipe data to set up your phone again
5. If you updated your phone, you can do steps 4.2-4.4 Immediately after installing the update
Click to expand...
Click to collapse
I would propose to add and / or replace in the 1st spoiler "diriver and utilities" the link to this site
to download "miflashtool"
Xiaomi Flash Tool - Official Mi Flash Tool
Download the latest and Official Xiaomi Flash Tool from the Official Xiaomi Flash Tool Website.
xiaomiflashtool.com
where the latest version of the software is present.
RollDload said:
I would propose to add and / or replace in the 1st spoiler "diriver and utilities" the link to this site
to download "miflashtool"
Xiaomi Flash Tool - Official Mi Flash Tool
Download the latest and Official Xiaomi Flash Tool from the Official Xiaomi Flash Tool Website.
xiaomiflashtool.com
where the latest version of the software is present.
Click to expand...
Click to collapse
Okey, I'll do it later
I hope everything in this guide is clear. I just used Google translator. I do not speak English myself ideally
LeeGarChat said:
I hope everything in this guide is clear. I just used Google translator. I do not speak English myself ideally
Click to expand...
Click to collapse
Apparently yes, although I don't speak fluent English either. I can understand it while reading, but not everything, so I use the translator too and I was able to read and understand your guide without any problems. Some native speakers will probably disagree with me .
Very Informative Guide ! A must read for everyone
LeeGarChat said:
in 99% of cases, an inscription will come out that you need to pre-flash SystemRW_1.32. Then we do it.
11. In the case of SystemRW, you need to reboot into TWRP, then either put it in RamDisk and just reboot, or click reboot bootloader and boot from the computer back to TWRP.
Click to expand...
Click to collapse
Hi @LeeGarChat thanks for your interest in my SystemRW / SuperRW feat. MakeRW script
Does it work well on your Poco F3 device? You never sent me your log files...
If you're going to use my SystemRW / SuperRW feat. MakeRW project (or parts thereof) in your thread and make a video about it could you please at least have the decency to include a visible link (not hidden inside of spoiler tags!) to
the official SystemRW / SuperRW feat. MakeRW by lebigmac project thread​in the first post of this thread as well as in your video description? Thanks
And please keep in mind that unauthorized, unverified re-uploads of my SystemRW project files are not allowed!
The official download links in the official SystemRW / SuperRW feat. MakeRW by lebigmac thread work just fine!
I can't offer any customer support for old, unofficial, deprecated, unverified versions of my script which were reuploaded by 3rd parties but I can only offer support for the latest official version of my script downloaded directly from the official SystemRW / SuperRW feat. MakeRW by lebigmac project thread
Thank you!
Good news! New version of © SystemRW / SuperRW feat. MakeRW™ by lebigmac ® coming soon! Stay tuned!​
Hey Guys i need your help, i followed all the steps in that post but i could not find the " Onekey injection" so i ignored that step and installed the xiaomi eu rom. Everything went well, now when i want to boot in recovery mode it shows up the stock recovery
So my question is when i want to update my phone in the future, i have to install it through TWRP and if my data will be lost or no?
Kaddy2727 said:
Hey Guys i need your help, i followed all the steps in that post but i could not find the " Onekey injection" so i ignored that step and installed the xiaomi eu rom. Everything went well, now when i want to boot in recovery mode it shows up the stock recovery
So my question is when i want to update my phone in the future, i have to install it through TWRP and if my data will be lost or no?
Click to expand...
Click to collapse
which version did you flash of xiaomi eu, the weekly or the stable?
The latest versions should flash twrp as well. However, if you only upgrade there is no need to format data, so you do not lose your data, I always recommend that you do a backup before any modding operation because you never know what can happen.
To flash twrp download the image from here:
[RECOVERY] [12] [OFFICIAL] TeamWin Recovery Project
Introduction: Team Win Recovery Project or TWRP for short, is a custom recovery built with ease of use and customization in mind. We started from the ground up by taking AOSP recovery and loading it with the standard recovery options, then added...
forum.xda-developers.com
put the image filenametwrp.img in the folder where there is adb and fastboot
go to the folder where there is adb and fastboot, rename the filenametwrp.img to twrp.img then go to the address bar and type cmd and press enter, (a prompt window should open)
(In the phone) make sure you have enabled usb debug in developer settings and have authorized the pc.
now turn off the phone and start it in fastboot, then connect it to the pc via the usb cable
in the cmd you opened before type this
Code:
fastboot deviced
to check if it is recognized
if the phone code appears you can boot twrp by typing this
Code:
fastboot boot twrp.img
hit enter and the phone should boot into twrp
now in twrp go to advanced and search "install current twrp" in the options at the bottom below and flash.
you should now have twrp.
lebigmac said:
Hi @LeeGarChat thanks for your interest in my SystemRW script.
Does it work well on your Poco F3 device? You never sent me your log files...
Could you please include a link to my project in first post of this thread? Thank you!
Click to expand...
Click to collapse
I'll reply in his stead ....
As of now - latest Xiaomi betas for global 12.5.4 it does not work correctly doing it the way he described ( flashing 1.32rw inside twrp has to be done twice lol ) After flashing it twice you have to flash his patch then reboot the phone and format data.
Now phone will say decrypted but for who knows what reason everything is broken. Lots of silent crashes from the systemui and overall slowdown of the system/several apps refusing to work.
Fast charging is gone as well....
Strangely much less stuff appears to be broken in EEA version of the miui , still needs flashing twice the main script but at least fast charging works afterwards. System is slightly more stable but still overall suffering from slowdown.
I personally found that manual method of creating image from booted android does work somewhat. You only need to do it once by executing systemrw.sh then flashing the super.img .
What's the catch? You can't flash super.img through "fastboot flash super" command , it mangles partitions to the point where /vendor and /odm can't mount inside twrp.
I am curious tho maybe I don't need to enter twrp after flashing super image via fastboot? Maybe his fix is not necessary then and I just need to wipe and boot system to fix /vendor and /odm not being able to mount.... Hmmm
I'll try this when I'm free sometime , but for now I'm not using this due to performance issues mainly.
His script does let you at least get that decrypted status but for who knows what reason lots of stuff is broken... Could be magisk being flashed onto phone before partitions are extracted or overall twrp not being anywhere close to stable enough to handle all of this?
@Rstment ^m^
I can nowhere read sth. about this rw Script . Where does it play a role ? I just wanna flash a xiaomi.eu Rom. Are you talking about the official weekly/stable ?
Eclipse1991 said:
@Rstment ^m^
I can nowhere read sth. about this rw Script . Where does it play a role ? I just wanna flash a xiaomi.eu Rom. Are you talking about the official weekly/stable ?
Click to expand...
Click to collapse
Nah , it's related to decrypting rom. Not something you should worry about...
@Kaddy2727 @RollDload @Rstment ^m^ @Eclipse1991 @__halvar__
I wrote my SystemRW/SuperRW feat. MakeRW script for all Android power users out there that wish to make their stock read-only Android 10+ device read/write-able again to remove annoying bloatware and make more thorough customizations to their device.
If you like my SystemRW / SuperRW feat. MakeRW script and want to share your feedback with me (the original developer of SystemRW / SuperRW feat. MakeRW) or have any questions related to my script then please feel free to ask me in
the official SystemRW / SuperRW feat. MakeRW by lebigmac project thread ​
Rstment ^m^ said:
As of now - latest Xiaomi betas for global 12.5.4 it does not work correctly doing it the way he described ( flashing 1.32rw inside twrp has to be done twice lol ) After flashing it twice you have to flash his patch then reboot the phone and format data.
Click to expand...
Click to collapse
@Rstment ^m^
I do NOT recommend formatting /data after running my SystemRW / SuperRW feat. MakeRW script in recovery! You will lose all your personal files if you do this!
You just have to make sure that /data partition is properly decrypted and mounted in your custom recovery before running my SystemRW / SuperRW feat. MakeRW script. That's all.
im on miui global 12.5.6 do i need to flash the stock rom before flashing custom rom?
I tried the Custom MIUI Process with OneOS and when flashing ROM and after Recovery to Ramdisk and reboot, the internal storage contents disappear. What is the reason ? Caused both on 3.5.2 TWRP and 3.6.0 Official one.
Can be used as reference for xiaomi 11t pro? Cause I didn't see any custom rom for this device

Installing, Updating, Backup and Restore Guide for OP8 Pro

This is a bit late but why not. THIS IS A COMPILATION OF ALL THE OS METHODS YOU NEED FOR THE OP8 Pro.
ENJOY my guide
DISCLAIMER:
*I am not responsible for bricked devices, damage to your device*
Sorry for a long list of methods, some work for others and some don't. But I recommend to pick a method and stick to it. Maybe read the part at the top as some have notes about mine or someone else's experience/recommendation. Don't skip steps and follow each step.
If stuck, just ask and I or anyone else will try and help
I am here to post methods for anyone who is interested/need help. I have tested these myself and helped others who may be struggling
Download
The guide has loads of files/ zips/ tools to use/flash/install. But no worries as everything can be downloaded and there are links AT THE BOTTOM OF THIS THREAD (NOT COMMENTS) to where to download:
SDK Platform Tools (Fastboot tools) from Developer Android
TWRP from infected_
Magisk from topjohnwu
Gapps (Google Apps) from NikGapps. I recommend omni for ROMs that don't include Gapps.
Fastboot ROM for OP8Pro from mauronofrio
MSMDownload tools for OP*Pro from Some_Random_Username
IMPORTANT NOTES!
YOU REQUIRE Platform Tools (Fastboot Tools) IN ORDER TO USE THE METHODS IN THIS GUIDE AS TWRP NEEDS TO BE INSTALLED!
YOU NEED TO HAVE A UNLOCKED BOOTLOADER AS WELL!
For GAPPS, u can use the same or a updated version of the package. But has to be the same type u used to install it like (stock, full, Omni, basic, etc). ONLY FLASH/INSTALL IF the RESTORE SCRIPT DIDN'T SHOW UP during a DIRTY FLASH/UPDATE AND ONLY FLASH AFTER REBOOTING TO RECOVERY AFTER FLASHING/INSTALLING A OS/BUILD ZIP FILE!
How to get Platform Tools
These tools are used to install TWRP, to unlock the bootloader of your device and is needed to use the METHODS in this guide.
Download the platform tools.zip of your software platform (Mac, Windows, Linux)
Extract the platform-tools.zip
To use it go into your platform-tools folder
Press shift + right-click and choose command prompt or PowerShell
Connect your device when it's in fastboot mode and done
How to install TWRP
Sadly this Guide is for Windows, but other platforms like Mac or Linux can be found online.
YOU CAN USE THIS METHOD TO INSTALL A NEWER VERSION OF TWRP or ANY RECOVERY TOO
You need to have downloaded Platform Tools which the link is attached below.
Transfer the TWRP.img file into the platform-tools folder
If you want root download and transfer magisk.apk and the link is supplied below. Also, RENAME from .apk to .zip
Now we must boot into fastboot mode. (Either do it with the advanced reboot in developer options or power off device -> boot recovery Power + Vol + -> boot to bootloader or power off device -> press Vol Up + Vol down + power)
Now connect your device to a Windows device
Press shift + right-click. Choose command prompt or PowerShell
Enter "fastboot devices" and your device should be displayed if it's connected
Type "fastboot flash recovery_a twrpname.img " file name (do twrp + press tab) and press enter
Then press enter and type this: fastboot flash recovery_b twrpname.img
Now choose to boot to recovery using the volume buttons
Enter the password and swipe to allow modifications
You have now installed TWRP and we've now checked that it has been successfully installed!
If you want root do this
Press the back arrow and find your magisk.zip
Swipe to confirm Flash
Reboot to the system and done
Otherwise, just reboot to system. Up to u
How to boot into EDL mode
This will have more than one method to boot into EDL mode.
Method 1
This is the basic method to boot into EDL mode
Turn off device
HOLD BOTH volume buttons
PLUG IN your device
Press the POWER button and CARRY ON HOLDING the volume buttons
You should be in EDL mode now
If your device still isn't in EDL mode try this
Open device manager in windows
Try the steps again
If not then try method 2
Otherwise, well done you have booted into EDL mode
Method 2
If you didn't manage to boot into EDL mode using method 1. If you can boot into system, do this method
Both methods will need you to download and install the All-in-one-tool from the download section
Go into developer options
Turn on USB debugging
Connect your device if u haven't
Press allow
Open the All-in-one-tool
Choose reboot EDL Mode
You should be in EDL mode now
Method 3
If you cannot boot into system and have bricked your device, try this method
This method uses TWRP to boot into EDL mode
IF U STILL CANNOT BOOT INTO EDL MODE and have bricked your device...
Install TWRP in the "How to install TWRP" section
Once you're in the home screen
Press reboot
Choose reboot to EDL
You should be in EDL mode now
Method 4
If you cannot boot into system and have bricked your device, try this method
This method will need you to download and install the All-in-one-tool from the download section
This method works if your on OOS or any ROM. Not after any failed attempt of wiping your device using MSM.
IF U STILL CANNOT BOOT INTO EDL MODE and have bricked your device...
Install TWRP in the "How to install TWRP" section
Once you're in the home screen, press reboot and choose the other slot (If ur current slot is Slot A then choose slot B and vice versa)
Reboot to system
If you're able to boot to the system
Skip the setup screen
Go into developer options
Turn on USB debugging
Connect your device if u haven't
Press allow
Open the All-in-one-tool
Choose reboot EDL Mode
You should be in EDL mode now
Installing a Custom ROM
Method 1
Follow the method suggested in the XDA thread. Stick to each method and follow the process!
If you want root and TWRP do this
Reboot to bootloader
Type: fastboot flash recovery_a twrpname.img
Then press enter and type this: fastboot flash recovery_b twrpname.img
Now boot to recovery
Find the magisk.zip file
Flash Magisk
Reboot to system and done
Otherwise, just reboot to system. Up to u
Method 2
This method uses TWRP and isn't suggested in XDA thread of ROMs. I have tested this method with CrDroid and it works. BUT you will need a usb c OTG device (a device that can connect to ur phone via USB C) as this method will wipe ur internal storage
Transfer TWRP.zip, Build.zip (Custom ROM zip file) into internal storage.
Boot to Bootloader
Type: fastboot flash recovery_a twrpname.img
Then press enter and type this: fastboot flash recovery_b twrpname.img
Now boot to recovery
Flash Build.zip (Custom ROM zip file)
Flash TWRP
Reboot to recovery
Flash Build.zip (Custom ROM zip file)
Flash TWRP
If the ROM doesn't have GApps included do this
Reboot to recovery
Flash Gapps if not included
Format data
Reboot to system
Otherwise, just format data -> reboot to system. Up to u
If you want root do this
Reboot to recovery
Flash Magisk
Reboot to system and done
Otherwise, just reboot to system. Up to u
Backing Up OOS and Custom ROM
Make sure u have installed the latest TWRP version from mauronofrio
You should use TitaniumBackup or Migrate to back up your apps and contacts.
Also, have a copy of your Internal Storage folders if u have important files.
TWRP Backup backs up your OS like Apps, settings and set up, but not internal storage.
NEVER BACKUP SUPER() for OOS! U CAN BUT IT COULD BREAK THE SYSTEM IF YOU RESTORE IT!
Restoring it makes going back way easier like you have never left
Or you can go manually and try and restore everything, but why do that when you got TWRP?
I do both ways of backing up
Backing up OOS
Boot TWRP recovery
Choose Backup
Choose boot, data (You can restore DTBO, EFS, Modem, but DO NOT BACKUP SUPER()) RESTORING SUPER() breaks OOS
Swipe to backup
Once done, either boot to system or mount
Transfer the whole TWRP folder onto a storage device
Done
Backing up a Custom ROM
Boot TWRP recovery
Choose Backup
Choose boot, data (You can restore DTBO, EFS, Modem, YOU CAN BACKUP SUPER()) BUT RESTORING SUPER() could break the ROM
Swipe to backup
Once done, either boot to system or mount
Transfer the whole TWRP folder onto a storage device
Done
Restoring OOS and Custom ROM
To restore OOS use MSM. Fastboot was the fastest and easiest way if u have a TWRP backup. BUT it doesn't work from my testing and only MSM successfully works.
Update: Fastboot ROM currently don't work under my testing. MSM is still the best way to restore to OOS and TWRP backups don't currently work. I don't recommend trying to use the fastboot ROM installer for OOS as you would have file transfer issues...
As of now, use MSM and just transfer what you have backed up. It's sad that TWRP backups don't work, u can try and post how it went. But for now, I don't RECOMMEND RESTORING OR USING TWRP BACKUPS!
I use MSM Download Tool restore for that. It will reset everything and will lock the bootloader. So, it makes for switching/installing a custom ROM a bit annoying.
DOWNLOAD FULL ZIP OF OOS version of your TWRP backup otherwise you could risk doing the whole restore method again OR setup from SCRATCH! IF you aren't restoring a TWRP backup, I recommend either TRANSFER or DOWNLOAD via WiFi or oxygen updater, a UPDATED version of OOS AFTER doing the MSM restore method. As they restore an old or different version of OOS!
Restoring using MSM Download Tool
Download latest MSM version
Extract/ un-zip
Click on MSM tool .exe file
Now we need to boot your device into EDL mode
Turn off device
HOLD BOTH volume buttons
PLUG IN your device IMMEDIATELY
Press the POWER button and CARRY ON HOLDING the volume buttons
If you cannot boot into EDL mode
Try the methods to boot into EDL mode in the "How to boot into EDL mode" section
Otherwise, carry on the method
Connect your phone
Wait for your device to be connected and it should show as green
Click verify to check and press start
Wait till phone reboots
The setup device and u can carrying on restoring your device if u don't want a unlock bootloader or return to what your device was like before. Or u don't have a TWRP backup
Restoring OOS TWRP Backup
If you have a TWRP backup of OOS, follow this method to restore your system data.
Go into developer options
Allow OEM unlocking
Reboot to bootloader
Enter "fastboot devices" to check your device is connected
Enter "fastboot oem unlock"
Swipe for yes
Then it will reboot again
continue to the next method
Once booted into system, set it up and update to OOS version of your TWRP backup.
Download the full zip using the link in the Download Link section.
Transfer the OOS .zip to internal storage.
Go into settings -> system update -> Update via local upgrade -> find zip file and press install
Do this twice to make sure you have installed that version of OOS in both slots
Boot to bootloader
Type "fastboot flash recovery_a twrpname.img " file name (do twrp + press tab) and press enter
Then press enter and type this: fastboot flash recovery_b twrpname.img
Reboot to recovery
Transfer whole TWRP Folder into internal storage
It is suggested to remove the SIM tray before you restore the TWRP backup and it can cause issues
Restore boot and data (You can restore DTBO, EFS, Modem, but DO NOT RESTORE SUPER())
Swipe to restore
Go to the next part to transfer your internal storage files + folders
If you have backed up your internal storage folders do this
Reboot to recovery
Transfer all your internal storage folders
Reboot to system and done
Otherwise, just reboot to system. U can update OOS as well if it's outdated. The method is below to update OOS with ROOT. Up to u
RESTORING TWRP BACKUP HAS ISSUES
You must remove your SIM tray before restoring the TWRP backup
Update: These methods were from my previous compilation guide for the Op6/6T. But as of now, TWRP backups aren't recommended for custom ROMs and I have only tested restoring TWRP backup for OOS. I haven't tested these methods myself nor know someone who has tested/recommends them for custom ROMs.
If u want to switch ROMs or unbrick your device I recommend using the MSM method in restoring with MSM section.
Restoring a Custom ROM TWRP backup 1
Restore fresh like you're going back to OOS.
Choose one method. Fastboot or MSM method.
I prefer the fastboot method.
Restore the device using MSM
Once booted into system, set it up briefly and DO NOT RESTORE ANYTHING.
Boot to bootloader
Type "fastboot flash recovery_a twrpname.img " file name (do twrp + press tab) and press enter
Then press enter and type this: fastboot flash recovery_b twrpname.img
Reboot to recovery
Transfer whole TWRP Folder into internal storage
Restore everything (System.img, vendor.img, boot.img and data)
Swipe to restore. If data couldn't restore then boot system, setup system, boot TWRP and restore data.
Reboot to system. The first reboot might go dodgy and it did for me.
Reboot to system and transfer all your internal storage stuff
done
If this did not work still. Then do the next method...
Restoring a Custom ROM TWRP backup 2
If the previous method has failed for you. Then try this.
Restore fresh like you're going back to OOS.
Choose one method. Fastboot or MSM method.
I prefer the fastboot method.
Restore the device using MSM
Once booted into system, set it up and update to OOS version of your TWRP backup.
Download the full zip using the link in the Download Link section.
Transfer the OOS .zip to internal storage.
Go into settings -> system update -> Update via local upgrade -> find zip file and press install
Do this twice to make sure you have installed that version of OOS in both slots
Boot to bootloader
Type "fastboot flash recovery_a twrpname.img " file name (do twrp + press tab) and press enter
Then press enter and type this: fastboot flash recovery_b twrpname.img
Follow the installation method suggested in the XDA thread for your ROM
Once it has been installed
Reboot to Recovery
Transfer twrp backup
Restore data
Reboot system. Done
If it still fails, repeat steps 1 to 18. But restore everything and you should be back on your custom ROM like you never left.
Updating OOS and Custom ROM
Update OOS with Root (Magisk)
Always do a TWRP backup before updating your OS in case
Update: As of now TWRP backups aren't recommended and haven't been tested, But this method works for updating OOS
Download the full zip file of the latest OOS, transfer the zip file to internal storage NOT IN ANY FOLDER
Go into settings, system update, update via local upgrade and choose the file
Wait till the installation has finished. If failed TRY AGAIN!
DO NOT REBOOT!
Go into Magisk Home
Press install
Press install via inactive slot
Reboot system and done
You will reboot into the next slot
If you want TWRP do this
Reboot to bootloader
Type: fastboot flash recovery_a twrpname.img
Then press enter and type this: fastboot flash recovery_b twrpname.img
Now boot to recovery
Enter the password and swipe to allow modifications
You have now installed TWRP and we've now checked that it has been successfully installed!
Reboot to system and done
Otherwise, just reboot to system. Up to u
You don’t have to repeat the installation to install the latest OOS in the other slot. But you should and I use this method many times and has never let me down.
Updating OOS without root
Go to System Update -> find the update install and reboot.
Or download the zip -> transfer to internal storage -> update via local upgrade -> reboot and done
Update a Custom ROM
Follow the method suggested in the XDA thread. Stick to each method and follow the process!
Method 1
This method is for Custom ROMs that allows OTA updates and include GAPPS
Certain custom ROMs have this feature. Right now: Evo X
Go into settings, system update and press update
Wait till the installation has finished. If failed TRY AGAIN!
DO NOT REBOOT!
Go into Magisk Home
Press install
Press install via inactive slot
Reboot system and done
You will reboot into the next slot
If you want TWRP do this
Reboot to bootloader
Type: fastboot flash recovery_a twrpname.img
Then press enter and type this: fastboot flash recovery_b twrpname.img
Now boot to recovery
Enter the password and swipe to allow modifications
You have now installed TWRP and we've now checked that it has been successfully installed!
Reboot to system and done
Otherwise, just reboot to system. Up to u
Method 2
This method is for Custom ROMs that allows OTA updates and don't include GAPPS
Certain custom ROMs have this feature. This method is for vanilla ROMs: CrDroid
Go into settings, system update and press update
Wait for the update to download and Press install
Wait till the installation has finished. If failed TRY AGAIN!
Press reboot
Done
If you want TWRP do this
Reboot to bootloader
Type: fastboot flash recovery_a twrpname.img
Then press enter and type this: fastboot flash recovery_b twrpname.img
Now boot to recovery
Enter the password and swipe to allow modifications
You have now installed TWRP and we've now checked that it has been successfully installed!
Reboot to system and done
Otherwise, just reboot to system. Up to u
Method 3
For Custom ROMs that don't have OTA updates.
Follow the method suggested in the XDA thread. Stick to each method and follow the process!
Before the last step which is to reboot to system...
If you want root and TWRP do this
Reboot to bootloader
Type: fastboot flash recovery_a twrpname.img
Then press enter and type this: fastboot flash recovery_b twrpname.img
Now boot to recovery
Enter the password and swipe to allow modifications
You have now installed TWRP and we've now checked that it has been successfully installed!
Reboot to system and done
Otherwise, just reboot to system. Up to u
Download Links:
All in one tool Here
SDK Platform Tools (Fastboot Tools) Here
OOS versions for OP8Pro (under Signed Flashable zips) Here
TWRP for OP8Pro Here
Magisk Here
NikGapps Here
MSMDownloadTool for OP8Pro Here
TitanumBackup App Here
Migrate App Here
Credits:
@infected_ For your amazing work on the TWRP recovery and method to install TWRP
@osm0sis For your amazing work on developing a version of TWRP that allows flashing
@mauronofrio All in one tool
@topjohnwu For his work on Magisk
@Nikgapps For their work on creating Gapps
@Some_Random_Username For his Collection of MSMDownloadTool for OP6/6T
@OPTeam For the collection of OOS zips for OP8Pro
@BillGoss For his help to restore TWRP backup on the 8/8T Series
First Comment
Updates
21/10/21 - Released the XDA thread that is a compilation of all methods you need for the OP8 Pro
Not sure about the OP8 sadly as I don't own one and this is a very early version of the XDA thread...
I currently don't have my OP8 Pro yet, but I'll be getting it tomorrow and this guide will definitely help me and many people
24/10/21 - Updated the XDA thread as some methods won't work and haven't been specifically tested for the OP8 Pro
I would require testing, but can't risk my device...
Fastboot ROM by Mauronofrio don't work and only recommended way is using MSM
Added how to boot into EDL mode methods
Crossed out methods that aren't recommended and need testing
23/12/21 - Added method 2 for installing a custom ROM using twrp
Added a link to download the .img and .zip files
13/1/22 - Updated section for Restoring OOS TWRP Backup in Restoring OOS and Custom ROM section
I have tested and successfully restored my boot and data on OOS
29/01/22 - Updated section for booting into EDL mode
Added a new method and changed it to method 3
Changed the previous method 3 to method 4 due to the fact that the method only works if the user has an OS installed. Not if the user did a failed attempt of wiping the system with MSM
31/01/22 - Added credit for BillGoss for his help on finding a method to restore TWRP backups for 8T which works on the 8/8 Pro.
Updated method on restoring TWRP backup for OOS. Made it clear which partition is safe to restore and which isn't
19/02/21 - Something caught my attention on updating custom ROMs... Specifically vanilla ROMs with no gapps.
Added new Method 2 in the Update a custom ROM section and replaced old Method 2 as Method 3
25/03/22 - Updated backup methods for OOS and Custom ROMS
OP8 Pro doesn't have separate system and vendor partitions. Only SUPER() which breaks on OOS.
Updated Backing up on OOS and Custom ROM methods in Backing Up OOS and Custom ROM section.
This could help some people. Thank you.
xtcislove said:
This could help some people. Thank you.
Click to expand...
Click to collapse
It can be quite annoying trying to find methods for different things in terms of installing updating and looking at different websites. Why not just compile them in one XDA thread
Nice guide , Thank you.
OnePlus 8 Pro 256GB RAM Device
OS: OxigenOS 11.0.10.10IN11BA
Rooted device with Magisk 23.0 installed
Good evening
I would like to know if I can install TWRP on my device without losing any data (apps, data, etc.) because my device is in "BOOTLOADER" mode open all the time?
I spotted the version of TWRP for OxygenOS 11 which is: "twrp-op8-3.6.0_11-infected-b5.img" with the following XDA link:
[TWRP][3.7.0-13][instantnoodle]TWRP for OnePlus 8/8Pro ][OFFICIAL][BETA 3]
TWRP for OnePlus 8 and 8 Pro TWRP is an open source, community project. TWRP development is done by a large support community with many people who are willing to answer questions and help people with their devices either through our IRC...
forum.xda-developers.com
On the other hand, this method of installing TWRP removes the Magisk app and the root of the device if I understood correctly and you have to install Magisk again with TWRP and the file “Magisk-v23.0.apk renamed to “Magisk-v23.0.zip”
Finally, is it possible to perform full "Nandroid Backup" backups and restore these backups, as can be done with a Samsung S7 device for example?
I send you all my congratulations on all your work and all your explanations.
Thanks in advance for your advice on installing TWRP!!
Good evening, best regards,
Jean-Noel
nadnan said:
OnePlus 8 Pro 256GB RAM Device
OS: OxigenOS 11.0.10.10IN11BA
Rooted device with Magisk 23.0 installed
Good evening
I would like to know if I can install TWRP on my device without losing any data (apps, data, etc.) because my device is in "BOOTLOADER" mode open all the time?
I spotted the version of TWRP for OxygenOS 11 which is: "twrp-op8-3.6.0_11-infected-b5.img" with the following XDA link:
[TWRP][3.7.0-13][instantnoodle]TWRP for OnePlus 8/8Pro ][OFFICIAL][BETA 3]
TWRP for OnePlus 8 and 8 Pro TWRP is an open source, community project. TWRP development is done by a large support community with many people who are willing to answer questions and help people with their devices either through our IRC...
forum.xda-developers.com
On the other hand, this method of installing TWRP removes the Magisk app and the root of the device if I understood correctly and you have to install Magisk again with TWRP and the file “Magisk-v23.0.apk renamed to “Magisk-v23.0.zip”
Finally, is it possible to perform full "Nandroid Backup" backups and restore these backups, as can be done with a Samsung S7 device for example?
I send you all my congratulations on all your work and all your explanations.
Thanks in advance for your advice on installing TWRP!!
Good evening, best regards,
Jean-Noel
Click to expand...
Click to collapse
That version of twrp is fine and no, installing twrp doesn't remove magisk so u don't have to reinstall it.... There is a method on how to install TWRP as well. For TWRP backups, it's suggested to remove the SIM tray before restoring the backup. I have updated the guide as I have successfully managed to restore a TWRP backup of OOS. So, I have added a method on how to do that.
Only restore boot and data. U can restore DTBO and EFS too, but I honestly can't tell the difference before and after restoring these partitions. U cannot restore Persist as it is a critical partition in the system. From my testing, DO NOT RESTORE SUPER (SYSTEM.IMG, VENDOR.img, ETC)! as this will BRICK YOUR DEVICE! I have tried this from my testing and it doesn't work! But only restoring the other partitions except for persist works fine
Thank you very much for your quick feedback.
My "rooted" Oneplus 8 allows me to use the "Swift Backup" application which makes a complete backup of applications (;apk), data, but also all system settings.
I only used the restore of apps with their data and cfelma works very well.
The TWRP function only serves, for me, to perform a "nandroid backup" image. Is it useful to set up TWRP in this sole objectiof?
The manipulations to perform backups and then, possibly, restores, seem much more complicated to me than my operations carried out years earlier with two Samsung S7 or S7 Edge devices!!
Best regards
Jean-Noel
TWRP can also flash/install magisk to grant root as well. U should still have a nandroid backup like swift may be able to restore app and settings once set up ur device like new again then u have to restore everything manually. With a nandroid backup u restore the boot and data that isn't in the internal storage. After restoring it, boot to system and there'll be nothing else to restore other than ur internal storage files and the system, settings, apps, wifi and security will be there like u never left (password will be removed, but u just need to add a new one and fingerprints + face unlock will be restored). Swift backup can't do that, just keep hold of ur boot, dtbo, efs, persist and data partitions of the TWRP backup and have a copy of it in a storage device in case
Extreme_Ninja2099 said:
TWRP peut également flasher/installer magisk pour accorder également root. Vous devriez toujours avoir une sauvegarde nandroid comme Swift peut être en mesure de restaurer l'application et les paramètres une fois que vous avez configuré votre appareil comme neuf, puis vous devez tout restaurer manuellement. Avec une sauvegarde nandroid, vous restaurez le démarrage et les données qui ne se trouvent pas dans le stockage interne. Après l'avoir restauré, démarrez sur le système et il n'y aura rien d'autre à restaurer que vos fichiers de stockage internes et le système, les paramètres, les applications, le wifi et la sécurité seront là comme si vous ne l'aviez jamais quitté (le mot de passe sera supprimé, mais vous avez juste besoin pour en ajouter une nouvelle et les empreintes digitales + reconnaissance faciale seront restaurées). La sauvegarde rapide ne peut pas faire cela, gardez simplement vos partitions de démarrage, dtbo, efs, persist et données de la sauvegarde TWRP et ayez-en une copie dans un périphérique de stockage au cas où
Click to expand...
Click to collapse
Extreme_Ninja2099 said:
TWRP can also flash/install magisk to grant root as well. U should still have a nandroid backup like swift may be able to restore app and settings once set up ur device like new again then u have to restore everything manually. With a nandroid backup u restore the boot and data that isn't in the internal storage. After restoring it, boot to system and there'll be nothing else to restore other than ur internal storage files and the system, settings, apps, wifi and security will be there like u never left (password will be removed, but u just need to add a new one and fingerprints + face unlock will be restored). Swift backup can't do that, just keep hold of ur boot, dtbo, efs, persist and data partitions of the TWRP backup and have a copy of it in a storage device in case
Click to expand...
Click to collapse
Thank you very much for your information.
I use the Google translator to translate your information into French but I do not fully understand the translation of your message:
- The installation of TWRP does not delete any data from my device and I will not need to redo all the settings already installed: Wifi connection with the Box, applications with data, Nova app settings for example, the phone call log, SMS-MMS, WhatsApp, etc. will not be deleted: is that right?
- Installing TWRP does not remove the root of the device with Magisk in place: is that right?
- Are there particular parameters to indicate to perform 1 “Nandroid Backup” with TWRP?
- Are these the same parameters to be saved as in the attached image made with a Samsung S7 Edge device?
- Does 1 "Nandroid Backup" made with TWRP restore the entire backup, such as an image of a partition made with Acronis True Image on Windows, for example?
- If this is not the case, what should be given as parameters?
- If I understand correctly, if the device is password protected, this password is removed by restoring "Nandroid Backup"?
- All applications, data, messaging settings, Wifi connection with Box, call log, SMS-MMS, WatsApp and others are restored with the "Nandroid Backup)?
- Can “OTA” updates be installed as I can each time an update is notified to me with the “Oxygen Updater” app?
I'm sorry for all these questions but I would like to take advantage of your experience without risking damaging my device which has been working perfectly since it was purchased in October 2020 and which is just rooted, starting with a full version of OxygenOS 10, then OxygenOS 11 and finally all the OTA updates offered by OnePlus.
Again, thank you very much for your help and advice...
Best regards,
Jean-Noel
nadnan said:
Thank you very much for your information.
I use the Google translator to translate your information into French but I do not fully understand the translation of your message:
- The installation of TWRP does not delete any data from my device and I will not need to redo all the settings already installed: Wifi connection with the Box, applications with data, Nova app settings for example, the phone call log, SMS-MMS, WhatsApp, etc. will not be deleted: is that right?
- Installing TWRP does not remove the root of the device with Magisk in place: is that right?
- Are there particular parameters to indicate to perform 1 “Nandroid Backup” with TWRP?
- Are these the same parameters to be saved as in the attached image made with a Samsung S7 Edge device?
- Does 1 "Nandroid Backup" made with TWRP restore the entire backup, such as an image of a partition made with Acronis True Image on Windows, for example?
- If this is not the case, what should be given as parameters?
- If I understand correctly, if the device is password protected, this password is removed by restoring "Nandroid Backup"?
- All applications, data, messaging settings, Wifi connection with Box, call log, SMS-MMS, WatsApp and others are restored with the "Nandroid Backup)?
- Can “OTA” updates be installed as I can each time an update is notified to me with the “Oxygen Updater” app?
I'm sorry for all these questions but I would like to take advantage of your experience without risking damaging my device which has been working perfectly since it was purchased in October 2020 and which is just rooted, starting with a full version of OxygenOS 10, then OxygenOS 11 and finally all the OTA updates offered by OnePlus.
Again, thank you very much for your help and advice...
Best regards,
Jean-Noel
Click to expand...
Click to collapse
Uh idk what u are going on about now... Like this specifically for the OnePlus 8 Pro not S7 Edge... Best to ask in the XDA forum for the S7 Edge. I'm pretty sure I've answered all your questions by now and everything you need to know is in the guide or in my replies
I was just doing a comparison to see if a "Nandroid Bacqup" of a One Plus 8 Pro device with TWRP is the same as the backup made by TWRP for a Sansung S7 Edge device.
I also wanted to know if the restoration was identical between the two devices already mentioned with TWRP.
I'm well advised to go to a forum attributed to the S7 Edge if I need to, but it's not!!
I'm having "buyer's remorse" after trying OOS12. Is it possible to boot back to the other slot? Unless 12 did something I assume it still has OOS11 on it. Probably not though as I haven't seen it mentioned as a downgrade option anywhere. Things have really gotten complicated in the last few years when it comes to this dance.
Hi
I have OOS 11.0.11.11.IN11BA, rooted with Magisk 23.0
And I want to update OOS
The new version in the system update is IN2023_11.C.16_1160_202204222258
I followed the instructions,
downloaded the zip file (with oxygen updater)
(oneplus8prooxygen_15.e.16_ota_1036_all_2204222258_57eced36.zip)
updated via local upgrade
installed Magisk to inactive slot
rebooted
But after the reboot, it still says that there is a system update
Tried also without local upgrade, directly from system update app, again the same.
Any idea?
Hello
OnePlus 8 Pro with OxygenOS IN2023_11_C.15
I installed the “OnePlus8ProOxygen_15.E.15_OTA_1032_all_2204021901_1b9e6.zip” file on April 22 and I set it up by following the following tutorial:
How to Install OTA Updates on Rooted Android Devices using Magisk [Without Losing Root]
An OTA update has arrived, but you cannot install it because your Android device is rooted? Well, that's a known downside of rooting Android. In this guide, you will learn how to install OTA updates…
www.thecustomdroid.com
I follow this procedure for all OTA updates since OxygenOS 10 without any difficulty.
I haven't downloaded the "oneplus8prooxygen_15.e.16_ota_1036_all_2204222258_57eced36.zip" file yet, so I can't tell you what it says next for persistent update reporting.
I think I will perform this very recent update tomorrow and I will inform you of the indications that I can observe.
Best regards
Good evening
I just performed the OTA update just now with the update installation offered in the device settings while following the tutorial that I told you previously.
I did not use the file “OnePlus8ProOxygen_15.E.15_OTA_1032_all_2204021901_1b9e6.zip”
Everything went well and the smartphone is now in version IN2023_11_C.16
The Oxygen Updater application indicates that the system is up to date.
Software update in system settings does not show an update to install.
Have a good evening.
Best regards
nadnan said:
Good evening
I just performed the OTA update just now with the update installation offered in the device settings while following the tutorial that I told you previously.
I did not use the file “OnePlus8ProOxygen_15.E.15_OTA_1032_all_2204021901_1b9e6.zip”
Everything went well and the smartphone is now in version IN2023_11_C.16
The Oxygen Updater application indicates that the system is up to date.
Software update in system settings does not show an update to install.
Have a good evening.
Best regards
Click to expand...
Click to collapse
thank you for your reply
which version of magisk do you have?
This is the latest version currently available...

Question Latest Twrp pros and cons

Today the unlock time for bootloader to unlock will complete and I Intend to install TWRP. I have found the latest officially supported twrp-3.6.1_11-0-alioth.img at https://eu.dl.twrp.me/alioth/. How does it compare to TWRP-3.5.1 https://forum.xda-developers.com/t/recovery-unofficial-twrp-3-5-1-20210702.4300189/.
Can anyone guide me what are the pros and cons of using twrp-3.6.1_11-0-alioth.img and its limitations as compared to TWRP-3.5.1 as I can not find any documentation on twrp-3.6.1_11-0-alioth.img. Any help will be appreciated.
Also does the following limitations of TWRP-3.5.1 also apply to twrp-3.6.1_11-0-alioth.img ?
KNOWN LIMITATIONS:
The following are some known limitations due to either the design nature of Virtual A/B or a problem with ROM themselves. Please read carefully :-
You cannot format data after flashing a ROM zip (Limitation of Virtual A/B). If you want to format, then reboot recovery after flashing ROM. Additionally, if you are encrypted, the newly flashed ROM must be able to decrypt your device. If not, then you have to format data before flashing the ROM It appears, you can actually format data after reboot even if the new ROM cannot decrypt.
You can flash only one ROM in one boot. If you wanna flash another ROM, you must boot to system once. This is again a limitation of Virtual A/B.
Once you have rebooted after flashing a ROM, you cannot write to the data partition until you boot successfully to the new ROM. Android seals the data partition after a ROM flash to prevent any accidental brick since the newly flashed ROM is actually stored in /data. Only data format is allowed in this case. Once you successfully boot to the new ROM, your storage becomes ready for writing again.
Ideally, after flashing a new ROM, you should only need to wipe your data rather than format. But, due to a problem in the device trees current ROMs are using, you will have to format data if you are currently on miui and want to switch to a custom ROM. Specifically, the roms need this commit and to set vendor security patch level to fix this issue. Switching between custom ROMs should not need format, except for hentai OS.
If you are currently on hentai OS, then before using TWRP, you must flash vendor_boot from the link provided in every hentai OS release. Otherwise, you will get black screen. This is only needed when you boot to TWRP for the first time. Do not repeat this step again. Also, do not try this with beta version of the ROM. Use it only with stable.
If you reboot to older slot after flashing new ROM, the new ROM will be cancelled and you will have to reflash again. This is because of how Virtual A/B works.
If you must flash magisk via recovery (it's not recommended now), please uncheck "Inject TWRP after install" else TWRP will remove magisk.
Do not flash magisk after flashing a ROM before reboot. Magisk's zip detects slot in a different way that will cause issues.
Backuptool (used to persist magisk and gapps across ROM updates) will also not work in recovery due to A/B. You will have to flash gapps (or any other zips) everytime after flashing a ROM.
you dont search enough...
this is latest A12 TWRP....
https://dl.akr-developers.com/?dir=skkk/TWRP
Installation:
activateUSB DEBUGGIN and OEM unlocked on Poco
(copy all files in Adb folder) rename the long TWRP file to twrp.img
Disable all security settings like PIN, pattern, fingerprint
start Poco in fastboot
fastboot boot twrp.img"
copy twrp.img to Poco or "adb push twrp.img /sdcard/"
TWRP Menü -> Advanced -> Flash Current TWRP or Install Recovery Ramdisk -> you must test it... both should work
TWRP Menü -> Reboot -> recovery
Magisk and safety net working great...
see also....
Xiaomi devices on Android 12 via Fastboot only:
- Download our ROM zip file
- Unpack downloaded zip file in the PC using WinRAR
- Reboot your device to fastboot mode (press volume down + power)
- Connect to PC via USB cable
- Run fastboot installation script from unpacked zip according your PC operating system:
--- For Windows OS - windows_fastboot_update_rom.bat
--- For Linux - linux_fastboot_update_rom.sh
--- For MacOS - macos_fastboot_update_rom.sh
greeting
hofi01 said:
you dont search enough...
this is latest A12 TWRP....
https://dl.akr-developers.com/?dir=skkk/TWRP
Installation:
activateUSB DEBUGGIN and OEM unlocked on Poco
(copy all files in Adb folder) rename the long TWRP file to twrp.img
Disable all security settings like PIN, pattern, fingerprint
start Poco in fastboot
fastboot boot twrp.img"
copy twrp.img to Poco or "adb push twrp.img /sdcard/"
TWRP Menü -> Advanced -> Flash Current TWRP or Install Recovery Ramdisk -> you must test it... both should work
TWRP Menü -> Reboot -> recovery
Magisk and safety net working great...
see also....
Xiaomi devices on Android 12 via Fastboot only:
- Download our ROM zip file
- Unpack downloaded zip file in the PC using WinRAR
- Reboot your device to fastboot mode (press volume down + power)
- Connect to PC via USB cable
- Run fastboot installation script from unpacked zip according your PC operating system:
--- For Windows OS - windows_fastboot_update_rom.bat
--- For Linux - linux_fastboot_update_rom.sh
--- For MacOS - macos_fastboot_update_rom.sh
greeting
Click to expand...
Click to collapse
I know where the lastest TWRP for Poco F3 is and how to install it as I have already installed it. That was not the question. The question was that "does limitations of TWRP-3.5.1 also apply to twrp-3.6.1_11-0'? Limitattions like being forced to reboot TWRP after flashing a every single zip file and other limitations like it as mentioned above. Thanks for your reply anyways.
so for me, TWRP does not start again, after installing a file.
I install TWRP, boot into TWRP again and install Magisk. after that I boot into the ROM.
TWRP does not restart itself
So, still no decryption on A12?
I wanted to test new custom roms but i dont want to have to reinstall everything from scratch if i go back to my current rom (.EU).
Can twrp make a full backup and restore it despite not having decryption?
If it cant, can I make a full back up of my phone from cmd in fastboot mode? (so i can just flash it from fastboot to restore everything as it is now)

Categories

Resources