Official LineageOS for Redmi 9 - Redmi 9 / Poco M2 Guides, News, & Discussion

There is official release of LineageOS 20 for Redmi 9:
Info about lancelot | LineageOS Wiki
wiki.lineageos.org
Pity, no support on XDA.

I have installed and tested a bit. Install sequence was like that:
- Flash MIUI 12 A11 with MiFlash. I have used EEA version, but maybe last global A11 would be more safe.
- Insert SD card with all software needed (Lineageos, gapps, lygisk).
- Go to fastboot and flash Lineageos recovery. Then immediately go to recovery by pressing volume up + power.
- In recovery do factory reset, format data.
- Flash Lineageos from SD (apply update in recovery).
- Flash MindTheGapps from SD.
- Reboot.
You can flash form adb instead of SD, but I haven't tried it.
If you want to pass SafetyNet, flash Lygisk and install Universal Safetynet Fix. Magisk should work too, but it wont survive OTA with Lineageos recovery.
This is not my main phone, so I haven't tested much. System looks and works OK, no obvious problems. Some WiFi channels on 5GHz are missing, like on others custom ROMs.

Bootloop with recent update.

Thanks for the pointer. I tried it and finally got LineageOS working on my Redmi 9 that had MIUI 13 (bootloader unlocked) already.
Here are the steps I did:
Download twrp-3.4.2_A12-lancelot-dimenzino.img from https://sourceforge.net/projects/recovery-for-xiaomi-devices/files/lancelot
Download miui_LANCELOTEEAGlobal_V13.0.3.0.SJCEUXM_f7755ce0ba_12.0.zip (or similar, should be the version currently on your phone) from https://xiaomirom.com/en/rom/redmi-9-lancelot-europe-fastboot-recovery-rom/.
Open miui_LANCELOTEEAGlobal..., extract vbmeta.img and rename it to vbmeta-miui.img.
Open https://download.lineageos.org/devices/lancelot, download
lineage-20.0-20230322-nightly-lancelot-signed.zip and vbmeta.img and recovery.img from the same build. Rename the latter two to vbmeta-lineage.img and recovery-lineage.img).
Download MindTheGapps-13.0.0-arm64-20221025_100653.zip from https://androidfilehost.com/?fid=14871746926876840643
Copy these files to your SD card:
- lineage-...-signed.zip
- MindTheGapps....zip
- miui_LANCELOT..._12.0.zip
Now:
1) Boot into fastboot. "FASTBOOT" in orange letters must be on screen.
2) fastboot --disable-verity --disable-verification flash vbmeta vbmeta-miui.img
3) fastboot flash recovery twrp-3.4.2_A12-lancelot-dimenzino.img
boot into recovery
4) fastboot reboot recovery
(TWRP comes up)
5) In TWRP, do wipe/factory reset.
6) In TWPR, install miui_LANCELOT..._12.0.zip, then reboot.
(MIUI logo comes up for a few mintues, then MIUI 12.5 starts)
7) In MIUI, power off phone
8) Boot into fastboot. "FASTBOOT" in orange letters must be on screen.
9) fastboot --disable-verity --disable-verification flash vbmeta vbmeta-lineage.img
10) fastboot --disable-verity --disable-verification flash recovery recovery-lineage.img
11) fastboot reboot recovery
(LineageOS recovery comes up)
12) In LOS recovery, install lineage-...-signed.zip and MindTheGapps....zip. Then reboot to system. It asks whether to erase data. Answer yes.
13) LineageOS boots. Yay!
IMEIs etc are all preserved.

Experience after one day on my Redmi 9 EEA (3/32GB):
LineageOS 20 runs much better than MIUI 13. It boots much quicker, it is more responsive, more apps can stay in RAM.
Finally, I get notifications reliably when someone sends me a mail or Whatsapp msg.
Downsides:
- status bar cannot show transfer speed (not supported)
- system settings (pull downwards from top of screen) aren't as nice. Only 4 buttons visible as buttons are really big. Have to pull down twice to change screen brightness.
- Update: camera cannot record 1080p video properly. 720p works.

I was able to install it correctly by following the official lineage tutorial that can be found at the following link: https://wiki.lineageos.org/devices/lancelot/install
I hope it helps you

Hi everybody,
after upgrading to lineage-20.0-20230405-nightly-lancelot-signed.zip google services crash. (mindthegapps 2023-03-23)
When downgrading to lineage-20.0-20230329-nightly-lancelot-signed.zip everything works fine again.

Karl-D said:
Hi everybody,
after upgrading to lineage-20.0-20230405-nightly-lancelot-signed.zip google services crash. (mindthegapps 2023-03-23)
When downgrading to lineage-20.0-20230329-nightly-lancelot-signed.zip everything works fine again.
Click to expand...
Click to collapse
The same thing happened to me when installing the gapps (in this case, litegapps) did not start the system and entered a type of bootloop. I better leave lineage and install bananadroid and I'm doing great.

On version 22-Mar-2023 Nightly.
After turning on Wi-Fi Calling for either of my SIM cards, I get the error:
com.mediatek.ims.ImsApp keeps stopping
and then after that, Wi-Fi Calling options disappear from SIM card settings.
Any ideas of things to try?

Can't install lineageOS 20, tried almost everything
I install miui 13 (android 12), dimensino a12 twrp (it only works with android 12), but there's no way to start lineageos recovery
any suggestions?

tenssa said:
Can't install lineageOS 20, tried almost everything
I install miui 13 (android 12), dimensino a12 twrp (it only works with android 12), but there's no way to start lineageos recovery
any suggestions?
Click to expand...
Click to collapse
See my post above (Saturday at 10:51 AM) how I went from MIUI 13 to LineageOS 20.
First fastboot flash dimenzino TWRP, using that flash MIUI 12.5, from MIUI 12.5 fastboot you can install LineageOS 20 recovery, and using that LineageOS 20.

hvdh said:
Thanks for the pointer. I tried it and finally got LineageOS working on my Redmi 9 that had MIUI 13 (bootloader unlocked) already.
Here are the steps I did:
Download twrp-3.4.2_A12-lancelot-dimenzino.img from https://sourceforge.net/projects/recovery-for-xiaomi-devices/files/lancelot
Download miui_LANCELOTEEAGlobal_V13.0.3.0.SJCEUXM_f7755ce0ba_12.0.zip (or similar, should be the version currently on your phone) from https://xiaomirom.com/en/rom/redmi-9-lancelot-europe-fastboot-recovery-rom/.
Open miui_LANCELOTEEAGlobal..., extract vbmeta.img and rename it to vbmeta-miui.img.
Open https://download.lineageos.org/devices/lancelot, download
lineage-20.0-20230322-nightly-lancelot-signed.zip and vbmeta.img and recovery.img from the same build. Rename the latter two to vbmeta-lineage.img and recovery-lineage.img).
Download MindTheGapps-13.0.0-arm64-20221025_100653.zip from https://androidfilehost.com/?fid=14871746926876840643
Copy these files to your SD card:
- lineage-...-signed.zip
- MindTheGapps....zip
- miui_LANCELOT..._12.0.zip
Now:
1) Boot into fastboot. "FASTBOOT" in orange letters must be on screen.
2) fastboot --disable-verity --disable-verification flash vbmeta vbmeta-miui.img
3) fastboot twrp-3.4.2_A12-lancelot-dimenzino.img
boot into recovery
4) fastboot reboot recovery
(TWRP comes up)
5) In TWRP, do wipe/factory reset.
6) In TWPR, install miui_LANCELOT..._12.0.zip, then reboot.
(MIUI logo comes up for a few mintues, then MIUI 12.5 starts)
7) In MIUI, power off phone
8) Boot into fastboot. "FASTBOOT" in orange letters must be on screen.
9) fastboot --disable-verity --disable-verification flash vbmeta vbmeta-lineage.img
10) fastboot --disable-verity --disable-verification flash recovery recovery-lineage.img
11) fastboot reboot recovery
(LineageOS recovery comes up)
12) In LOS recovery, install lineage-...-signed.zip and MindTheGapps....zip. Then reboot to system. It asks whether to erase data. Answer yes.
13) LineageOS boots. Yay!
IMEIs etc are all preserved.
Click to expand...
Click to collapse
I tried your method but failed. First --disable-verity was not recognized by fastboot and then miui_LANCELOTEEAGlobal_V13.0.1.0.SJCEUXM_64ecf18c80_12.0.zip did not installed - got error. Is it possible to flash LOS directly using recovery twrp-3.4.2_A12-lancelot-dimenzino.img?

bokel said:
I tried your method but failed. First --disable-verity was not recognized by fastboot and then miui_LANCELOTEEAGlobal_V13.0.1.0.SJCEUXM_64ecf18c80_12.0.zip did not installed - got error. Is it possible to flash LOS directly using recovery twrp-3.4.2_A12-lancelot-dimenzino.img?
Click to expand...
Click to collapse
Is your bootloader unlocked?
Did you disable PIN/fingerprint/pattern lock? (Not sure it is required, but some say to do that and I did it)
Was "FASTBOOT" on screen orange or blue (must be orange)?
Is you PC fastboot somewhat recent (mine is from Android SDK platform tools 29.0.6)?
Can you paste you fastboot cmdline and output here?
"Is it possible to flash LOS directly using recovery twrp-3.4.2_A12-lancelot-dimenzino.img?"
No, I tried that. LOS does not boot then. It needs the boot process (not sure which partitions) from MIUI 12. The one from MIUI 13 does not work.

hvdh said:
Is your bootloader unlocked? - Yes
Did you disable PIN/fingerprint/pattern lock? (Not sure it is required, but some say to do that and I did it) - yes
Was "FASTBOOT" on screen orange or blue (must be orange)? - orange
Is you PC fastboot somewhat recent (mine is from Android SDK platform tools 29.0.6)? android-tools-33.0.3-3
Can you paste you fastboot cmdline and output here?
Click to expand...
Click to collapse
[[email protected] Redmi9]$ fastboot --disable-verity --disable-verification flash vbmeta vbmeta-miui.img
Rewriting vbmeta struct at offset: 0
Sending 'vbmeta' (4 KB) OKAY [ 0.011s]
Writing 'vbmeta' OKAY [ 0.002s]
Finished. Total time: 0.015s
[[email protected] Redmi9]$ fastboot flash recovery twrp-3.4.2_A12-lancelot-dimenzino.img
Sending 'recovery' (65536 KB) OKAY [ 2.502s]
Writing 'recovery' OKAY [ 0.910s]
Finished. Total time: 3.415s
[[email protected] Redmi9]$
hvdh said:
"Is it possible to flash LOS directly using recovery twrp-3.4.2_A12-lancelot-dimenzino.img?"
No, I tried that. LOS does not boot then. It needs the boot process (not sure which partitions) from MIUI 12. The one from MIUI 13 does not work.
Click to expand...
Click to collapse

bokel said:
[[email protected] Redmi9]$ fastboot --disable-verity --disable-verification flash vbmeta vbmeta-miui.img
Rewriting vbmeta struct at offset: 0
hvdh said:
Thanks for the pointer. I tried it and finally got LineageOS working on my Redmi 9 that had MIUI 13 (bootloader unlocked) already.
Here are the steps I did:
Download twrp-3.4.2_A12-lancelot-dimenzino.img from https://sourceforge.net/projects/recovery-for-xiaomi-devices/files/lancelot
Download miui_LANCELOTEEAGlobal_V13.0.3.0.SJCEUXM_f7755ce0ba_12.0.zip (or similar, should be the version currently on your phone) from https://xiaomirom.com/en/rom/redmi-9-lancelot-europe-fastboot-recovery-rom/.
Click to expand...
Click to collapse
Click to expand...
Click to collapse
this recovery file is for MUI 13 not MUI 12.5, maybe I should try with miui_LANCELOTGlobal_V12.5.6.0.RJCMIXM_725b167c13_11.0.zip
Download Redmi 9 / 9 Prime (lancelot) V12.5.6.0.RJCMIXM MIUI 12.5 Stable Full Rom | XiaomiROM.com
The Stable update V12.5.6.0.RJCMIXM has been officially released for Redmi 9 / 9 Prime (codename is lancelot). Before updating, please make sure you …
xiaomirom.com
bokel said:
hvdh said:
Open miui_LANCELOTEEAGlobal..., extract vbmeta.img and rename it to vbmeta-miui.img.
Open https://download.lineageos.org/devices/lancelot, download
lineage-20.0-20230322-nightly-lancelot-signed.zip and vbmeta.img and recovery.img from the same build. Rename the latter two to vbmeta-lineage.img and recovery-lineage.img).
Download MindTheGapps-13.0.0-arm64-20221025_100653.zip from https://androidfilehost.com/?fid=14871746926876840643
Copy these files to your SD card:
- lineage-...-signed.zip
- MindTheGapps....zip
- miui_LANCELOT..._12.0.zip
Now:
1) Boot into fastboot. "FASTBOOT" in orange letters must be on screen.
2) fastboot --disable-verity --disable-verification flash vbmeta vbmeta-miui.img
3) fastboot twrp-3.4.2_A12-lancelot-dimenzino.img
boot into recovery
4) fastboot reboot recovery
(TWRP comes up)
5) In TWRP, do wipe/factory reset.
6) In TWPR, install miui_LANCELOT..._12.0.zip, then reboot.
(MIUI logo comes up for a few mintues, then MIUI 12.5 starts)
Click to expand...
Click to collapse
Click to expand...
Click to collapse
MIUI 13 starts again, not 12.5
bokel said:
hvdh said:
7) In MIUI, power off phone
8) Boot into fastboot. "FASTBOOT" in orange letters must be on screen.
9) fastboot --disable-verity --disable-verification flash vbmeta vbmeta-lineage.img
10) fastboot --disable-verity --disable-verification flash recovery recovery-lineage.img
11) fastboot reboot recovery
(LineageOS recovery comes up)
12) In LOS recovery, install lineage-...-signed.zip and MindTheGapps....zip. Then reboot to system. It asks whether to erase data. Answer yes.
13) LineageOS boots. Yay!
IMEIs etc are all preserved.
Click to expand...
Click to collapse
Sending 'vbmeta' (4 KB) OKAY [ 0.011s]
Writing 'vbmeta' OKAY [ 0.002s]
Finished. Total time: 0.015s
[[email protected] Redmi9]$ fastboot flash recovery twrp-3.4.2_A12-lancelot-dimenzino.img
Sending 'recovery' (65536 KB) OKAY [ 2.502s]
Writing 'recovery' OKAY [ 0.910s]
Finished. Total time: 3.415s
[[email protected] Redmi9]$
Click to expand...
Click to collapse
It worked up until final reboot, LOS recovery didn't start

I did it finally. I had to downgrade from Miui 13 to Miui 12.5 first using Miflash https://xiaomirom.com/en/download-xiaomi-flash-tool-miflash/ with fastboot rom https://xiaomirom.com/en/download/redmi-9-9-prime-lancelot-stable-V12.5.6.0.RJCMIXM/. At the end it gave an error because the phone was unlocked. But it was OK. After that just followed the LOS installation guide and it worked flawlessly.

bokel said:
I did it finally. I had to downgrade from Miui 13 to Miui 12.5 first using Miflash https://xiaomirom.com/en/download-xiaomi-flash-tool-miflash/ with fastboot rom https://xiaomirom.com/en/download/redmi-9-9-prime-lancelot-stable-V12.5.6.0.RJCMIXM/. At the end it gave an error because the phone was unlocked. But it was OK. After that just followed the LOS installation guide and it worked flawlessly.
Click to expand...
Click to collapse
Glad to hear that. I was out of ideas why my sequence did not work.

hvdh said:
Glad to hear that. I was out of ideas why my sequence did not work.
Click to expand...
Click to collapse
Could it be because you are using the same Miui 13, have you tried same sequence with with Miui 12.5? LOS won't boot into recovery with android 12. Anyways, the phone now works amazingly and I bought it only for 80$ like a new. Big thanks to all the people doing this great job with LOS and people like yourself! I am so happy!

bokel said:
Could it be because you are using the same Miui 13, have you tried same sequence with with Miui 12.5? LOS won't boot into recovery with android 12. Anyways, the phone now works amazingly and I bought it only for 80$ like a new. Big thanks to all the people doing this great job with LOS and people like yourself! I am so happy!
Click to expand...
Click to collapse
I had MIUI 13 installed, but reverted to 12.5 using dimenzino TWRP. I also booted MIUI 12.5 once in case it initializes somthing on first boot.

hvdh said:
See my post above (Saturday at 10:51 AM) how I went from MIUI 13 to LineageOS 20.
First fastboot flash dimenzino TWRP, using that flash MIUI 12.5, from MIUI 12.5 fastboot you can install LineageOS 20 recovery, and using that LineageOS 20.
Click to expand...
Click to collapse
Tried it twice, everything went fine during installation, but after reboot it won't go into (lineage) recovery (this is MIUI 13, android 12).
When i downgraded to MIUI 12.5 (android 11), lineageOS recovery works, but after installation there's bootloop.
I'll try during next week some other tricks, if i catch some free time.
Anyone tried to flash LOS with other twrp on android 11? With orange recovery or similar?

Related

How to install GSIs the proper way.

So, You've grown tired of stock and wanna try out some Custom ROM that is not available for DRG? GSIs are the way to go! Let's see how to flash them properly.
*Disclaimer*
Code:
You will need to unlock your bootloader for flashing GSIs.
Failing to properly follow these steps will most likely end up in your phone getting bricked w/ data loses. Please follow the instructions carefully
Thanks to user - @Paul98rulez for original guide. I'm modifying it to add some more information.
Before you do any of this, Please remove the screen lock from the current ROM. It's just to be safe.
Method 1A - Fastboot
This is method I recommend you follow.
1. Download the vbmeta file attached(Thanks to @Phusson)
2. Reboot to Fastboot mode/Download mode
3. Open cmd
4. Pass the command
Code:
fastboot --disable-verity --disable-verification flash vbmeta_a vbmeta.img
5. Pass the command
Code:
fastboot --disable-verity --disable-verifiaction flash vbmeta_b vbmeta.img
(It looks similar, But dont skip passing both the commands)
6. Pass the command
Code:
fastboot erase system_a
7. Pass the command
Code:
fastboot erase system_b
8. Now, To install the GSI, Pass the command
Code:
fastboot flash system_a 'nameofgsi.img'
9. Now, We will flash the GSI to the other slot
Code:
fastboot flash system_b 'nameofgsi.img'
10. Now pass the command
Code:
fastboot getvar all
This is to see which is the current boot slot utilised by our device.
11. If the active boot slot is A then pass
Code:
fastboot --set-active=a
12, If the active boot slot is B then pass
Code:
fastboot --set-active=b
(If either of the set boot slot command fails, Simple add an underscore to the command. EG - 'fastboot --set-active=_a)
13. Now, Pass the command
Code:
fastboot reboot bootloader
14. Fastboot TWRP, Go to wipe, Swipe to factory reset.
15. Now again go to wipe, tap on system - change or repair filesystem - tap on resize. This will allow you to flash gapps
(You will need to do this only once)
16. Now reboot your phone.
17. Profit.
Method 1B - TWRP
1. Download the vbmeta file attached(Thanks again to @Phusson)
2. Reboot to Fastboot mode/Download mode
3. Open cmd
4. Pass the command
Code:
fastboot --disable-verity --disable-verification flash vbmeta_a vbmeta.img
5. Pass the command
Code:
fastboot --disable-verity --disable-verifiaction flash vbmeta_b vbmeta.img
(It looks similar, But dont skip passing both the commands)
6. Fastboot TWRP
7. Go to install
8. Select "Install Image" option
9. Select the GSI
10. Swipe down and find the System option and select it
11. Swipe to flash
12. Now go back to the main screen - Wipe and swipe to factory reset
13. Tap on system - change or repair filesystem - resize partition - swipe to resize
(Need to do it only once)
14. Go back to install
15. Install gapps
16. reboot system.
And you're done. Welcome to your new GSI!
Get the vbmeta here - Vbmeta
(Thanks to user @phhussonn)
For TWRP Method, won't I have to change slots?
Sid127 said:
For TWRP Method, won't I have to change slots?
Click to expand...
Click to collapse
You don't have to.
How about vendor image, when to flash it...
I'm sorry, I'm still don't understand this treble/GSI things...
R324D said:
How about vendor image, when to flash it...
I'm sorry, I'm still don't understand this treble/GSI things...
Click to expand...
Click to collapse
Vendor should be after flashing gsi/rom iirc. I'd love to see someone clarify this.
Where's the download link for vbmeta file?
Please share vbmeta file again. Can i install GSI rom Android 10 ?????
Volski_ said:
Where's the download link for vbmeta file?
Click to expand...
Click to collapse
Post updated.
Le Van Tieu said:
Please share vbmeta file again. Can i install GSI rom Android 10 ?????
Click to expand...
Click to collapse
Post updated.
Yes you can install Android 10 GSI but make sure it based on Android 10, Android 9 GSIs maybe will not boot on Android 10's vendor.
I'm install Miui 11 (Android 10) rom with Method 1A successful but not boot to system, stop at logo "Powered by Android)
Le Van Tieu said:
I'm install Miui 11 (Android 10) rom with Method 1A successful but not boot to system, stop at logo "Powered by Android)
Click to expand...
Click to collapse
Try repartitioning and flash again.

TWRP on DOOGEE N20PRO

Hi all
i want to install TWRP on my Doogee N20PRO . i cannot find a TWRP File on the internet to install. I could find some for the N20 but not for the N20PRO. it´s an Helios P60 Processor with an MTK6771. I tried to install the HAVOC 3.7 but i get the Message "writing 1/15 failed (remote: this partition doesn´t exist)
beinfo said:
Hi all
i want to install TWRP on my Doogee N20PRO . i cannot find a TWRP File on the internet to install. I could find some for the N20 but not for the N20PRO. it´s an Helios P60 Processor with an MTK6771. I tried to install the HAVOC 3.7 but i get the Message "writing 1/15 failed (remote: this partition doesn´t exist)
Click to expand...
Click to collapse
This is simple about TWRP: Your phone have МТК Helio Р60 MT6771V/CA WITH Android 10.0 and it's a NEW phone now. So no developments yet.
For install GSI ROMs your need unlock bootloader and after follow the correct instructions to new phones shipped with A10!
If you only want install GSI so I suggest:
1- Have stock ROM first, always!!;
2- With security 1- you should unlock bootloader;
3- You can install GSI with stock recovery without problems.
The only part is: you cannot backup userdata.....
DragonPitbull said:
This is simple about TWRP: Your phone have МТК Helio Р60 MT6771V/CA WITH Android 10.0 and it's a NEW phone now. So no developments yet.
For install GSI ROMs your need unlock bootloader and after follow the correct instructions to new phones shipped with A10!
If you only want install GSI so I suggest:
1- Have stock ROM first, always!!;
2- With security 1- you should unlock bootloader;
3- You can install GSI with stock recovery without problems.
The only part is: you cannot backup userdata.....
Click to expand...
Click to collapse
Cool This helps already a lot.
i unlocked the Bootloader properly, but then i got a partition error. I assume i´ve an error in the command line. The phone was anyway only an interim solution till my POco F2 was back from repair. now i use it as a playground.
fastboot erase system - there i get a partition error.
erasing the User data was sucessful
but then
fastboot flash system system.img it stops at step 1/15 again for the partition error (partition doesn´t exist) Stock rom is available.
somebody knows the options i´ve to add to the command line?
beinfo said:
The phone was anyway only an interim solution till my POco F2 was back from repair. now i use it as a playground.
fastboot erase system - there i get a partition error.
erasing the User data was sucessful
but then
fastboot flash system system.img it stops at step 1/15 again for the partition error (partition doesn´t exist) Stock rom is available.
somebody knows the options i´ve to add to the command line?
Click to expand...
Click to collapse
Try but REMENBER I am not responsible for any errors. Bootloader should unlocked by adb-fastboot!!
Spoiler: Instructions
1. You need know the difference about fastboot and FASTBOOTD in your device!!
Your device has bootloader mode: recovery - fastboot - reboot (system)
Stock recovery has very options: reboot system - reboot to bootloader - wipe - Enter fastboot - ...
reboot to bootloader => normal fastboot
Enter fastboot => FASTBOOTD
FASTBOOTD => some options
2. Device in fastboot
Code:
fastboot --disable-verification flash vbmeta vbmeta.img
vbmeta file from stock ROM or pulled from device
3.
Code:
fastboot -w
4.
Code:
fastboot reboot fastboot
(you MUST be at the FASTBOOTD menu now. If not, you will not be able to flash the GSI successfully)
5.
Code:
fastboot erase system
or
Code:
fastboot delete-logical-partition system
6.
Code:
fastboot delete-logical-partition product
- deletes the product partition, allowing a larger system partition
I not need resize-logical-partition product. But if you want:
You will need a larger system partition to flash a GSI. There are 2 ways to achieve this
6A. fastboot resize-logical-partition product 509344768
6B. fastboot resize-logical-partition system 3089272064 or 3889272064
resizes product and system partitions. This gives you about 3GB of system partitions. You can adjust or arrive at your own numbers if you want different sizes.
7.
Code:
fastboot --disable-verity --disable-verification flash system GSI.img
8.
Code:
fastboot -w
for confirm great & fast start GSI
9.
Code:
fastboot reboot bootloader
9A.
Code:
fastboot erase userdata
for confirm and boot clean
10. Reboot to system
Code:
fastboot reboot
Enjoy
I also have an N20 Pro which I received Dec 2020. Had some trouble setting it up. I got the OEM ROM from Doogee customer support and was able to extract the boot image and patch it with Magisk. I then burned it with the SP Flash tool. It wouldn't boot until I burned a special vbmeta.img to turn off encryption. Now it's working fine.
Sorry this doesn't help you with TWRP but I think most people looking for TWRP are really looking to root their phone.
beinfo said:
Hi all
i want to install TWRP on my Doogee N20PRO . i cannot find a TWRP File on the internet to install. I could find some for the N20 but not for the N20PRO. it´s an Helios P60 Processor with an MTK6771. I tried to install the HAVOC 3.7 but i get the Message "writing 1/15 failed (remote: this partition doesn´t exist)
Click to expand...
Click to collapse
Okay so what ive seen is that you should avoid flashing custom roms via adb fastboot especially with our doogee phones, and also there are many incompatiable roms so what you will need is to unlock bootloader and do the whole twrp install thing adn also install magisk
before hand install treble info from google playstore and take down the information "arm64 a/b" and search for roms with that information to install custom os/rom/gsi properly. GSI versions are more preferred if your phone supports treblle
if your twrp keeps getting wiped after reboot open file :mount your system and connect to pc via usbcable (mtp if not showing disable mtp and re- enable it )
now got to where build.prop is saved there will be a file called recovery from boot.p , copy the file to pc , open with notepad, remove everything , save and copy back to phone (overwrite)
then go ahead and install magisk
make sure your magisk is working install edxposed, riru core , and busybox ndk get the apps you need for them (edxposed manager...) and then instal and activate a module which you can test if its working(if framework is active in edxposed manager and the module working correctly then you can go ahead and
Install custom os through twrp
follow these instructions ( https://forum.xda-developers.com/t/...lexperience-10-gsi-android-10-stable.4081685/ ) with your custom rom (corvus, havoc, lineage...
(the g-apps didnt flash for me (error code 64) but i just rebooted and everything was working fine (including gapps but camera sucked (doogee's rear camera setup was just terrible))
https://forum.xda-developers.com/t/...lexperience-10-gsi-android-10-stable.4081685/
** i can confirm follow instructions properly and it should work (i used this pixel experience on my doogee n20 make sure you unzip the .xz file and youre flashing a .img file
**also make sure its the gsi file (

fastboot - not booting to recovery.

Hello, owner of the RN 5 here
After the command fastboot boot twrp.img my device do not enter the twrp, but displays the mi logo and "unlocked" status.
The same happens when I use orange fox recovery.
What might have caused that?
The device is unlocked (the official way) .
Connection (cable, drivers, etc) seems to be ok (anyhow I did unlocked the BL)
C:\redmi-unlock\platform-tools_r30.0.2-windows\platform-tools>fastboot devices
ec976afd fastboot
C:\redmi-unlock\platform-tools_r30.0.2-windows\platform-tools>fastboot boot C:\redmi-unlock\twrp-3.3.1-0-vince.img
Sending 'boot.img' (36784 KB) OKAY [ 0.778s]
Booting OKAY [ 0.143s]
Finished. Total time: 0.964s
C:\redmi-unlock\platform-tools_r30.0.2-windows\platform-tools>
Please, advice
tman_pl said:
Hello, owner of the RN 5 here
After the command fastboot boot twrp.img my device do not enter the twrp, but displays the mi logo and "unlocked" status.
The same happens when I use orange fox recovery.
What might have caused that?
The device is unlocked (the official way) .
Connection (cable, drivers, etc) seems to be ok (anyhow I did unlocked the BL)
C:\redmi-unlock\platform-tools_r30.0.2-windows\platform-tools>fastboot devices
ec976afd fastboot
C:\redmi-unlock\platform-tools_r30.0.2-windows\platform-tools>fastboot boot C:\redmi-unlock\twrp-3.3.1-0-vince.img
Sending 'boot.img' (36784 KB) OKAY [ 0.778s]
Booting OKAY [ 0.143s]
Finished. Total time: 0.964s
C:\redmi-unlock\platform-tools_r30.0.2-windows\platform-tools>
Please, advice
Click to expand...
Click to collapse
Flash OrangeFox Recovery by using the fastboot flash recovery recovery.img command
Reboot into OrangeFox by pressing the power + volume up keys, until you see the OrangeFox splash screen (the keys may be may vary on your device)
From here
Installing OrangeFox Recovery
wiki.orangefox.tech
Copy the downloaded recovery image (.img file) to the folder where you have placed your ADB and Fastboot.
Or read this
Android Tip: Boot into twrp or cwm recovery without flashing
Yes, that’s true. You can boot into any recovery of your choice on your Android phone by following this guide. No need to flash and replace the stock bootloader. Though I have tested this met…
aubykhan-wordpress-com.cdn.ampproject.org
joke19 said:
Copy the downloaded recovery image (.img file) to the folder where you have placed your ADB and Fastboot.
Or read this
Click to expand...
Click to collapse
Well, that didnt work - copying both twrp and orange recovery changed nothing (still MI logo and "unlocked" status after the command fastboot boot image_file.img).
joke19 said:
Flash OrangeFox Recovery by using the fastboot flash recovery recovery.img command
Reboot into OrangeFox by pressing the power + volume up keys, until you see the OrangeFox splash screen (the keys may be may vary on your device)
From here
Installing OrangeFox Recovery
wiki.orangefox.tech
Click to expand...
Click to collapse
Well, I am not an expert - I am just affraid of doing that while fastboot boot file.img didnt work. Is it safe?
I guess I have onlu one chance to try.. Will you help me in case I dont succeed?
tman_pl said:
Well, I am not an expert - I am just affraid of doing that while fastboot boot file.img didnt work. Is it safe?
I guess I have onlu one chance to try.. Will you help me in case I dont succeed?
Click to expand...
Click to collapse
When you download the right recovery it will work
Or ask here
[Official][Recovery][TWRP]TWRP For Xiaomi Redmi 5 Plus/Redmi Note 5
Team Win Recovery Project 3.x, or TWRP3.x for short, is a custom recovery built with ease of use and customization in mind. Its a fully touch driven user interface no more volume rocker or power buttons to mash. The GUI is also fully XML driven...
forum.xda-developers.com
Maybe this can be a problem
Maximum Path Length Limitation - Win32 apps
Maximum path length limitation.
docs.microsoft.com
OMG, I am soooo lame.
I just installed android app "Device ID" and it turned out I AM ON WHYRED codename (not venice). I was pretty sure whyred = RN5 Pro, while regular RN5 - vince...
Well, Mi forum https://c.mi.com/thread-1911812-1-1.html confirms what I thought, but...
soooo ashamed.
Now I have to read again and check everything again..

Question [SOLVED] Invalid sparse file format at header magic

can someone help me, got this error when I flash GSI on fastbootD
C:\adb2>fastboot flash system sys.img
Invalid sparse file format at header magic
after the flash continue, I reboot on BL, wipe data, reboot and go directly on standard fastboot.....can't boot anymore on BL
I tried with PixelExperience_Plus_arm64-ab-vndklite-11.0-20210825-UNOFFICIAL.img
and also system-roar-arm64-ab-vndklite-floss.img
got same error and result
thanks
I have tested several gsi, from phh AOSP, CAOS and settled on LiR (most recent).
"Invalid sparse file format at header....."​happens always. But I had never any issues. Here my steps (always flashing from Linux Lappy):
1, Flashing MIUI stock (when coming from Xiaomi.eu e.g.)
2. reboot to bootloader
3. fastboot flash vbmeta vbmeta.img
4. ./fastboot reboot fastboot
5. fastboot flash system LiR....
6. reboot in stock recovery
7. wipe data
8. If not coming from MIUI, then I do fastboot -w, after flashing the image
Working always
ydd0ras said:
I have tested several gsi, from phh AOSP, CAOS and settled on LiR (most recent).
"Invalid sparse file format at header....."​happens always. But I had never any issues. Here my steps (always flashing from Linux Lappy):
1, Flashing MIUI stock (when coming from Xiaomi.eu e.g.)
2. reboot to bootloader
3. fastboot flash vbmeta vbmeta.img
4. ./fastboot reboot fastboot
5. fastboot flash system LiR....
6. reboot in stock recovery
7. wipe data
8. If not coming from MIUI, then I do fastboot -w, after flashing the image
Working always
Click to expand...
Click to collapse
thank's for your answer
1, I'm on stock eu and W10.. is miui stock different than eu??
2, where can I get vbmeta
5, where can I get Lir
or where can I get AOSP...or maybe it's for a different device..
You have to be on stock MIUI. Didn't worked here from Xiaomi.eu.
If you have Telegram look for phhtreble or gsi treble. You'll find all you need there. Can help you there.
I have an Mi 11 lite 5G as well
gr0ndpa
ginally got GSI flashed.....will do a tuto later...
@rayman95 oh please, can you share how you solved it? Stuck at the same spot right now ..
RootedLee said:
@rayman95 oh please, can you share how you solved it? Stuck at the same spot right now ..
Click to expand...
Click to collapse
hi, it seems that this issue can't be solved, I mean the error message, but if you wait the flash continue without error at the end but look here I made a tuto to bypass HERE
for me after error , boot only fastboot , after long set power buton its sleep and not react... please help?

General [SHARED][RECOVERY][UNOFFICIAL][fleur] TWRP-3.7.0 ONLY FOR A11

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 a lot of our own features. It's a fully touch driven user interface , no more volume rocker or power buttons to mash. The GUI is also fully XML driven and completely theme-able. You can change just about every aspect of the look and feel.
Changelog:
• Updated sources to latest
• Almost Everything working fine.
Only for MIUI 13 Android 11
Creator: @Aghora7
Download
Installation instructions
whats is with data encrypten? is it working or problems with: "cant decrypt fbev2 partition"?
lurchiii said:
whats is with data encrypten? is it working or problems with: "cant decrypt fbev2 partition"?
Click to expand...
Click to collapse
I can't answer to this question, because it depends on you made any mistakes during the installation or not
Its support for A12 miui 13.0.4
Does it support A12 eea europe rom ?
xristos1925 said:
Does it support A12 eea europe rom ?
Click to expand...
Click to collapse
it supports a11
It seems Poco M4 Pro is not supported by TWRP and OrangeFox and that this unofficial TWRP is only for Android 11..
In my case I rooted (with magisk) from the latest ROM with Android 12..
And then installed LineageOS (Android 13). Everything works fine..
But I want to have a custom recovery for installing e.g. Gapps...
How can I do that?
Or do I need to rollback to previous ROM, install this TWRP then root with magisk and then go and install Lineage OS (and in that case I will still have TWRP and rooted)?
Thanks for any details..
sanjibukai said:
It seems Poco M4 Pro is not supported by TWRP and OrangeFox and that this unofficial TWRP is only for Android 11..
In my case I rooted (with magisk) from the latest ROM with Android 12..
And then installed LineageOS (Android 13). Everything works fine..
But I want to have a custom recovery for installing e.g. Gapps...
How can I do that?
Or do I need to rollback to previous ROM, install this TWRP then root with magisk and then go and install Lineage OS (and in that case I will still have TWRP and rooted)?
Thanks for any details..
Click to expand...
Click to collapse
Once you have lineageos installed, you must to flash twrp via fastboot and then flash Gapps
1. Flash system ( when it's done, don't reboot phone, just flash twrp
2. If you already are on twrp flash your Google apps
3. When you're done with flashing gapps, restart phone to system (twrp will be gone after reboot)
4. You have installed Gapps
i don't know how to flash twrp permanently, if you want further informations about this recovery, then join fleur telegram development channel
BloxetPL said:
1. Flash system ( when it's done, don't reboot phone, just flash twrp
Click to expand...
Click to collapse
Hello and thanks for the reply..
Currently when I'm installing LineageOS I do the following:
Code:
# SMINORI SCRIPT
fastboot flash system system.img
fastboot reboot fastboot
fastboot getvar is-userspace
fastboot erase system
fastboot delete-logical-partition product_a
fastboot flash system system.img
# <- here?
fastboot reboot recovery
Do you mean that after installing LineageOS above, I need to run:
Code:
fastboot flash boot twrp.img
fastboot boot twrp.img
# Booting in TWRP despite the error
adb sideload gapps_file.zip
And then just install Gapps using the TWRP GUI?
sanjibukai said:
Hello and thanks for the reply..
Currently when I'm installing LineageOS I do the following:
Code:
# SMINORI SCRIPT
fastboot flash system system.img
fastboot reboot fastboot
fastboot getvar is-userspace
fastboot erase system
fastboot delete-logical-partition product_a
fastboot flash system system.img
# <- here?
fastboot reboot recovery
Do you mean that after installing LineageOS above, I need to run:
Code:
fastboot flash boot twrp.img
fastboot boot twrp.img
# Booting in TWRP despite the error
adb sideload gapps_file.zip
And then just install Gapps using the TWRP GUI?
Click to expand...
Click to collapse
Remove "fastboot reboot recovery" from SMINORI tool and instead of this type "fastboot flash boot twrp.img
fastboot boot twrp.img"
I currently have MIUI13 and Android 11.
Tried to install TWRP with the instructions given but my phone will keep on bootloop.
TWRP interface shows for a few seconds but it shuts down after.
Im looking everywhere for answers but couldnt find any
globalfandemic said:
I currently have MIUI13 and Android 11.
Tried to install TWRP with the instructions given but my phone will keep on bootloop.
TWRP interface shows for a few seconds but it shuts down after.
Im looking everywhere for answers but couldnt find any
Click to expand...
Click to collapse
I saw that your question on telegram, as they said do "fastboot reboot recovery" no "fastboot boot twrp.img"
BloxetPL said:
I saw that your question on telegram, as they said do "fastboot reboot recovery" no "fastboot boot twrp.img"
Click to expand...
Click to collapse
Already tried, still same issue.
Tried using a couple new commands too with no result:
fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img
fastboot flash boot_a twrp.img
fastboot flash boot_b twrp.img
fastboot reboot recovery
Also tried using only the commands you gave:
fastboot flash boot twrp.img
fastboot reboot recovery

Categories

Resources