TWRP for Redmi 8A (olivelite) Global MIUI 10

Search This thread
I have built a derivative of the TeamWin Recovery Project recovery to the new Android device Xiaomi Redmi 8A (olivelite). This recovery has been extensively tested and works perfectly on Global version of the device with latest firmare as of 20.11.2019. on Android Pie (MIUI 10).

https://milankragujevic.com/twrp-for-xiaomi-redmi-8a

IMPORTANT: You must flash vbmeta or your phone will fail to boot (until you restore stock recovery):

https://projects.milankragujevic.com/olivelite/vbmeta.img

fastboot flash vbmeta vbmeta.img

I'm very sorry that I forgot to include this instruction initially. If anyone's phone has failed to boot, you can either flash vbmeta and use my TWRP, or flash the stock recovery without flashing vbmeta.

As is mandatory with GPL software, the source code can be found on the GitHub repo redmi8a/android_device_xiaomi_olivelite.

Copyright (c) 2019 Milan Kragujević and contributors. Licensed under GPL 3.0, available here. You are allowed to copy and create derivative works of this content if you preserve the Copyright notice and license it under GPL, while providing the code.

GPL Notice: This work contains code published by Xiaomi and Qualcomm under the GPL v2.0 license, available here. This work is based upon the TWRP project licensed under GPL v3.0, available here.

To learn more about TWRP, visit the official website.

This project is not sponsored, approved or endorsed by Xiaomi, Google, Qualcomm, or TWRP.

Kernel binary distribution NOTICE: In accordance with Section 3c of GPL v2, I am distributing the device kernel in binary form with a forwarded written notice of copyright and source code distribution from Xiaomi. The kernel is being distributed under the terms of the GPL v2 license by Xiaomi and the claimed source code is available here: https://github.com/MiCode/Xiaomi_Kernel_OpenSource/tree/olive-p-oss

c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.)
GNU General Public License Version 2

For GPL compliance in case of the precompiled redistributed kernel contact the manufacturer at their official website mi.com.
 
Last edited:

ararat1824

Senior Member
Sep 8, 2011
104
25
TURKEY-istanbul
thanks for your work
But there is a problem
fastboot mod is also loading
but the device does not go into recovery mode

And the phone won't turn on only in fastboot mode

---------- Post added at 02:14 AM ---------- Previous post was at 02:12 AM ----------

my rom
miui_OLIVELITEINGlobal_V11.0.1.0.PCPINXM_82d2052d1b_9.0

Could the problem be miui V11 ?
 

sladehaketu

Member
May 17, 2009
15
2
Pune
I'm currently on miui 11. Shall I try this or wait for new update?? Thanks in advance.(mihi 10 /11 has android pie)

Sent from my Redmi 8A using Tapatalk
 
I have tried it on MIUI 11 India ROM, it works the same (but my phone is Global and I flashed MIUI 11 India on it).
@ararat1824:
> And the phone won't turn on only in fastboot mode
I don't quite understand, but you probably bricked your phone.

Restore stock ROM with Mi Flash, then reboot into bootloader by turning off the phone from the OS and holding volume Down and pressing the power until the FASTBOOT logo appears.

Then do "fastboot flash recovery recovery.img" and start pressing volume Up (not Down!) and type "fastboot reboot" while holding the volume button.

It will go into TWRP.
 
  • Like
Reactions: ararat1824

ararat1824

Senior Member
Sep 8, 2011
104
25
TURKEY-istanbul
thank you for the answer
But Don t problem for mi on fastboot second time flashed stock recovery after this yes opened normal

But I haven't tried your recovery
Wait for next update
 

ararat1824

Senior Member
Sep 8, 2011
104
25
TURKEY-istanbul
@milankragujevic
:) google traslete
First time your recovery dont enter to recovery but dont reboot redirected otomatik to fastboot
I tried a lot your recovery but It did not work on my rom V11 india

Ok after I flashed stock recovery ya and opened
never changed because returned stock only flashed recovery

thanks again and new wait for miui V11

I didn't complain I thanked and said miui does not work on V11.
 
Last edited:

rehan992

Senior Member
Sep 5, 2015
121
3
37
Mumbai
Please any one help me need stock recovery miui11 India stable
I don't want flash my redmi 8 a

Sent from my YU5014 using Tapatalk
 

rehan992

Senior Member
Sep 5, 2015
121
3
37
Mumbai
I have built a derivative of the TeamWin Recovery Project recovery to the new Android device Xiaomi Redmi 8A (olivelite). This recovery has been extensively tested and works perfectly on Global version of the device with latest firmare as of 20.11.2019. on Android Pie (MIUI 10).

https://milankragujevic.com/twrp-for-xiaomi-redmi-8a

As is mandatory with GPL software, the source code can be found on the GitHub repo redmi8a/android_device_xiaomi_olivelite.

Copyright (c) 2019 Milan Kragujević and contributors. Licensed under GPL 3.0, available here. You are allowed to copy and create derivative works of this content if you preserve the Copyright notice and license it under GPL, while providing the code.

This project is not sponsored, approved or endorsed by Xiaomi, Google, Qualcomm, or TWRP.
Twrp recovery not working dont flash any one

Sent from my Redmi 8A using Tapatalk
 
Hi, @rehan992,

How is it not working? Did you try it on a Global variant of the phone as I have written in the post?

Your profile says you live in India, and presumably have an India variant of the phone, in which case that is an unsupported configuration and the recovery may or may not work.

If you still want to get it working, you can also try flashing this vbmeta image: https://projects.milankragujevic.com/olivelite/vbmeta.img

fastboot flash vbmeta vbmeta.img

Then retry flashing TWRP.

As I have written in the blog post, the recovery works on my device.
 
@rehan992 Let me know if it worked.

I have added a notice about vbmeta to the first post, I apologize for not doing it earlier.

For anyone with a damaged phone, here are recoveries:

Global MIUI 10 latest as of 24.11.2019.: https://projects.milankragujevic.com/olivelite/stock/recovery/global-miui10/recovery.img
India MIUI 11 latest as of 24.11.2019.: https://projects.milankragujevic.com/olivelite/stock/recovery/india-miui11/recovery.img
India MIUI 10 latest as of 24.11.2019.: https://projects.milankragujevic.com/olivelite/stock/recovery/india-miui10/recovery.img
 
Last edited:
  • Like
Reactions: rehan992

rehan992

Senior Member
Sep 5, 2015
121
3
37
Mumbai
Twrp boot but crupt phone data

Open stock recovery also

I am back with fastboot rom i lost my al data
So it's not working

Sent from my Redmi 8A using Tapatalk
 

ararat1824

Senior Member
Sep 8, 2011
104
25
TURKEY-istanbul
TWRP worked
1- fastboot flash vbmeta vbmeta.img
2-fastboot reboot bootloader
3-fastboot flash recovery (recoveryname.img)
4- manuel entre twrp volume up and power
Bur magisk v20.01 don't work instaling but no root
@milankragujevic Thenk you advanced for your efor
 
Hi @ararat1824, thank you for testing and reporting that it works. Enjoy :)
@rehan992 I have used it, it has no problems. You should always backup your device, but it did work for me both on MIUI 10 and MIUI 11. You are clearly doing something wrong, however you have provided no info so I can't help you.

ararat, about Magisk: there's a boot.img patch for India MIUI 10 and Global MIUI 10:

https://projects.milankragujevic.com/olivelite/magisk/miui-10/global_patched.img - Global MIUI 10 latest as of 24.11.2019.
https://projects.milankragujevic.com/olivelite/magisk/miui-10/indian_patched.img - India MIUI 10 latest as of 24.11.2019.

Try that, it should work. Don't forget to install Magisk Manager v20.1!
 

Top Liked Posts

  • There are no posts matching your filters.
  • 6
    I have built a derivative of the TeamWin Recovery Project recovery to the new Android device Xiaomi Redmi 8A (olivelite). This recovery has been extensively tested and works perfectly on Global version of the device with latest firmare as of 20.11.2019. on Android Pie (MIUI 10).

    https://milankragujevic.com/twrp-for-xiaomi-redmi-8a

    IMPORTANT: You must flash vbmeta or your phone will fail to boot (until you restore stock recovery):

    https://projects.milankragujevic.com/olivelite/vbmeta.img

    fastboot flash vbmeta vbmeta.img

    I'm very sorry that I forgot to include this instruction initially. If anyone's phone has failed to boot, you can either flash vbmeta and use my TWRP, or flash the stock recovery without flashing vbmeta.

    As is mandatory with GPL software, the source code can be found on the GitHub repo redmi8a/android_device_xiaomi_olivelite.

    Copyright (c) 2019 Milan Kragujević and contributors. Licensed under GPL 3.0, available here. You are allowed to copy and create derivative works of this content if you preserve the Copyright notice and license it under GPL, while providing the code.

    GPL Notice: This work contains code published by Xiaomi and Qualcomm under the GPL v2.0 license, available here. This work is based upon the TWRP project licensed under GPL v3.0, available here.

    To learn more about TWRP, visit the official website.

    This project is not sponsored, approved or endorsed by Xiaomi, Google, Qualcomm, or TWRP.

    Kernel binary distribution NOTICE: In accordance with Section 3c of GPL v2, I am distributing the device kernel in binary form with a forwarded written notice of copyright and source code distribution from Xiaomi. The kernel is being distributed under the terms of the GPL v2 license by Xiaomi and the claimed source code is available here: https://github.com/MiCode/Xiaomi_Kernel_OpenSource/tree/olive-p-oss

    c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.)
    GNU General Public License Version 2

    For GPL compliance in case of the precompiled redistributed kernel contact the manufacturer at their official website mi.com.
    2
    Try magisk in recovery

    Twrp working fine but magisk not working in redmi 8a

    Sent from my Redmi 8A using Tapatalk

    ---------- Post added at 03:25 PM ---------- Previous post was at 03:23 PM ----------

    Any way for rooting this device

    Sent from my Redmi 8A using Tapatalk

    Update the magisk manager to the latest version. Then open MM and select recovery mode in the advanced option. go to stock recovery image to patch instead of boot.img.

    Then flash the magisk patched recovery image to the recovery partition using twrp or fastboot. Turn off phone.
    Simply reboot into recovery by pressing volume + and power button. The phone should boot up normally instead of booting into recovery.

    Now check MM to see if magisk is installed
    1
    I have tried it on MIUI 11 India ROM, it works the same (but my phone is Global and I flashed MIUI 11 India on it).
    @ararat1824:
    > And the phone won't turn on only in fastboot mode
    I don't quite understand, but you probably bricked your phone.

    Restore stock ROM with Mi Flash, then reboot into bootloader by turning off the phone from the OS and holding volume Down and pressing the power until the FASTBOOT logo appears.

    Then do "fastboot flash recovery recovery.img" and start pressing volume Up (not Down!) and type "fastboot reboot" while holding the volume button.

    It will go into TWRP.
    1
    @rehan992 Let me know if it worked.

    I have added a notice about vbmeta to the first post, I apologize for not doing it earlier.

    For anyone with a damaged phone, here are recoveries:

    Global MIUI 10 latest as of 24.11.2019.: https://projects.milankragujevic.com/olivelite/stock/recovery/global-miui10/recovery.img
    India MIUI 11 latest as of 24.11.2019.: https://projects.milankragujevic.com/olivelite/stock/recovery/india-miui11/recovery.img
    India MIUI 10 latest as of 24.11.2019.: https://projects.milankragujevic.com/olivelite/stock/recovery/india-miui10/recovery.img
    1
    The twrp provided here by Milan has a problem with unresponsive touch screen. How would I go about adding my driver for my screen which i believe is Novatech?
    add
    /vendor/firmware/novatek_ts_mp.bin
    /vendor/firmware/novatek_ts_fw.bin
    /vendor/firmware/focaltech_ts_fw.bin