• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[RECOVERY] TWRP 3.x for Lenovo Tab2 A7-10F (MT8127)

Search This thread

pix106

Senior Member
Oct 16, 2010
1,093
570
1609311548375.png


TWRP 3.x
for Lenovo Tab2 A7-10F
(MT8127 only)


Disclaimer
Code:
#include
/*
* Your warranty is now void.
*
* I am not responsible for bricked devices, dead SD cards, thermonuclear war,
* or you getting fired because the alarm app failed.
* Please do some research if you have any concerns about features included in this
* recovery before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you.
*
* Always backup your device before flashing any rom/recovery/whatever
*/

Introduction

TWRP 3 built from Omnirom 5.1 sources
+ Omnirom 6.0 sources (TWRP 3.0.2)
+ Omnirom 7.1 (TWRP 3.0.3 and 3.1.x)
+ Omnirom 8.0 (TWRP 3.2.1)
+ Omnirom 8.1 (TWRP 3.2.3)
+ Omnirom 9.0 (TWRP 3.3.1)
+ Teamwin 9.0 (TWRP 3.4.0, 3.5.2)

Prebuilt stock 3.10.54 kernel

Features
  • TWRP functions (flash zip, flash img, backup, restore...)
  • USB OTG, Internal and external SD cards
  • NTFS support
  • Crypto enabled (don't know if it works though)
  • Extra languages

Changelog
  • 3.5.2 (2021/04/24) :
    Updated TWRP sources from Teamwin 9.0 branch (2021/04/20)
    Allows flashing Magisk apk

  • Older versions

    • 3.4.0 (2020/08/11) : updated TWRP sources from Teamwin 9.0 branch (2020/07/30)
      Allows flashing Magisk zip
    • 3.3.1 (2019/07/07) : updated TWRP sources from Omnirom 9.0 branch (2019/07/07)
    • 3.2.3 (2018/08/12) : updated TWRP sources from Omnirom 8.1 branch (2018/08/09)
    • v0.96 : updated TWRP 3.2.1 sources from Omnirom 8.0 branch (2017/12/08)
    • v0.64 : updated TWRP 3.1.1 sources from Omnirom 7.1 branch (2017/05/12)
      Wipes should be faster
    • v0.41 : updated TWRP 3.1.0 sources from Omnirom 7.1 branch (2017/03/18)
    • v0.24 : updated TWRP 3.0.3 sources from Omnirom 7.1 branch (2017/02/13)
    • v0.18 : updated TWRP 3.0.3 sources from Omnirom 7.1 branch (2017/01/03)
    • v0.13 : mount USB Storage working, updated source (2016/07/03)
    • v0.12 : (removed) initial xda release, updated sources (2016/06/19)

Downloads
  • latest file from androidfilehost
  • If you use an unmodified stock KK or LP rom, stock recovery will be self installing again unless you flash KK_LP_no_stock_recovery.zip patch.
    In TWRP, you need to be sure that "Mount system partition read-only" is unchecked in "Mount" menu before flashing this patch

Installation instructions

3 ways to install this recovery
  • Using SP Flash Tool
    • Prerequisites
      • Install MTK USB Drivers (windows xp/vista/7 - Windows 8/8.1/10 - other windows 10)
      • SP Flash Tool (howto)
      • In SP Flash Tool, always use "Download Only" mode when not explicitly asked to do otherwise (you could lose your IMEI/WIFI/BT) or if you don't know what you are doing.

        Please do NOT ask about any problem with USB drivers or SP Flash Tool here in this thread, this is not the right place for it as these problems are not related to THIS particular recovery but to YOUR computer setup. There are other threads and/or sites about such problems.
    • Installation
      • power off the tablet
      • launch SP Flash Tool, click on "Download" tab
      • click "scatter-loading" button and choose the downloaded scatter file (MT8127_Android_scatter-recovery_only.txt is based on LP stock rom)
      • on the "RECOVERY" line, click the empty "Location", and choose the downloaded recovery img file
      • click "Download"
      • plug your tablet on USB

  • Using previous already installed TWRP
    • reboot to recovery
    • "Install"
    • "Install Image"
    • choose the recovery img to flash
    • choose "Recovery" partition
    • "swipe to confirm Flash"

  • Using an application (root needed)
    such as Rashr

Boot to recovery
  • Turn your tablet off
  • Push Power button + Volume- + Volume+ buttons
  • Keep the buttons pushed untils boot logo appears
Thanks to/Credits

Contributors
pix106
Source Code: https://github.com/LenovoTab2A7
 
Last edited:

[email protected]

Senior Member
Mar 19, 2016
1,447
7,198
Ottawa
www.mtk-dev.com
Ok, i may try some other rom though.
Thanks for your advice.

Do you have any info/link to mediatek sources ?
You can try out official sources with stock kernel , i have only links for mt6582 and mt6592 sources for now.

Sent from my A311 using XDA-Developers mobile app

---------- Post added at 03:31 AM ---------- Previous post was at 02:52 AM ----------

You can try out official sources with stock kernel , i have only links for mt6582 and mt6592 sources for now.

Sent from my A311 using XDA-Developers mobile app
Can you link me any device/vendor tree . I'll try to compile cm12.1.

Sent from my A311 using XDA-Developers mobile app
 

pix106

Senior Member
Oct 16, 2010
1,093
570
You can try out official sources with stock kernel , i have only links for mt6582 and mt6592 sources for now.

Sent from my A311 using XDA-Developers mobile app

---------- Post added at 03:31 AM ---------- Previous post was at 02:52 AM ----------


Can you link me any device/vendor tree . I'll try to compile cm12.1.

Sent from my A311 using XDA-Developers mobile app

A few month ago, with a friend we did this for omnirom, we got boot (prebuilt kernel), graphics, but no wifi etc... : https://github.com/PixNDom/android_device_lenovo_Tab2A710F https://github.com/PixNDom/android_vendor_lenovo_Tab2A710F (other repos https://github.com/PixNDom).
We stopped as we did not know how to go on.

Yesterday after your advice i started a cm12.1 branch on my github (https://github.com/pix106/android_device_lenovo_Tab2A710F/blob/cm12.1), and got TWRP running using cm12.1 sources (with wrong device id, but it does not matter now).

I tried building the kernel again using lenovo sources (https://github.com/pix106/android_kernel_lenovo_Tab2A710F/tree/lenovo_osc_201511), with cm12, i got the same result than i got with omnirom : no graphics, "GTP Reset", i2C errors...

Thanks for your help :)
 
Last edited:

mayank22

Senior Member
Mar 23, 2015
751
275
Indore
while trying to perform wipe using this recovery, my tab's system and data partition got corrupted. And now only boot splash screen showing. plz help me. What should i do now??
 

pix106

Senior Member
Oct 16, 2010
1,093
570
while trying to perform wipe using this recovery, my tab's system and data partition got corrupted. And now only boot splash screen showing. plz help me. What should i do now??
I don't see how it could be only related to this recovery, i have wiped partitions at least a hundred times with it without any problem.
I don't know what corrupted your partitions, I suppose you'll have to restore your latest backup, or flash a rom if you don't have a backup.
 

mayank22

Senior Member
Mar 23, 2015
751
275
Indore
I don't see how it could be only related to this recovery, i have wiped partitions at least a hundred times with it without any problem.
I don't know what corrupted your partitions, I suppose you'll have to restore your latest backup, or flash a rom if you don't have a backup.

Yeah i have the backup but it too can't be restored. It gets stuck at wiping system partition....
I tried flashing stock firmware, bt sp flash tool is giving error, " error passing bootrom. May be device power on too soon" while i can see vcom device attached and functional in windows device manager. Now what should i try??
 

pix106

Senior Member
Oct 16, 2010
1,093
570
Yeah i have the backup but it too can't be restored. It gets stuck at wiping system partition....
I tried flashing stock firmware, bt sp flash tool is giving error, " error passing bootrom. May be device power on too soon" while i can see vcom device attached and functional in windows device manager. Now what should i try??
You can try "use rm -rf instead of formatting" in twrp options.
Or search for a partition corruption thread, as it's not a problem of this recovery.
 

mayank22

Senior Member
Mar 23, 2015
751
275
Indore
@pix106 bro, i tried to install your recovery again but sp flash tools didn't have success. But through rashr flash tool, it got installed. But again on wiping cache, i got stuck and the partition got corrupted. I just restored stock firmware. I think i will just have to use the older version of twrp :(
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 19
    1609311548375.png


    TWRP 3.x
    for Lenovo Tab2 A7-10F
    (MT8127 only)


    Disclaimer
    Code:
    #include
    /*
    * Your warranty is now void.
    *
    * I am not responsible for bricked devices, dead SD cards, thermonuclear war,
    * or you getting fired because the alarm app failed.
    * Please do some research if you have any concerns about features included in this
    * recovery before flashing it! YOU are choosing to make these modifications, and if
    * you point the finger at me for messing up your device, I will laugh at you.
    *
    * Always backup your device before flashing any rom/recovery/whatever
    */

    Introduction

    TWRP 3 built from Omnirom 5.1 sources
    + Omnirom 6.0 sources (TWRP 3.0.2)
    + Omnirom 7.1 (TWRP 3.0.3 and 3.1.x)
    + Omnirom 8.0 (TWRP 3.2.1)
    + Omnirom 8.1 (TWRP 3.2.3)
    + Omnirom 9.0 (TWRP 3.3.1)
    + Teamwin 9.0 (TWRP 3.4.0, 3.5.2)

    Prebuilt stock 3.10.54 kernel

    Features
    • TWRP functions (flash zip, flash img, backup, restore...)
    • USB OTG, Internal and external SD cards
    • NTFS support
    • Crypto enabled (don't know if it works though)
    • Extra languages

    Changelog
    • 3.5.2 (2021/04/24) :
      Updated TWRP sources from Teamwin 9.0 branch (2021/04/20)
      Allows flashing Magisk apk

    • Older versions

      • 3.4.0 (2020/08/11) : updated TWRP sources from Teamwin 9.0 branch (2020/07/30)
        Allows flashing Magisk zip
      • 3.3.1 (2019/07/07) : updated TWRP sources from Omnirom 9.0 branch (2019/07/07)
      • 3.2.3 (2018/08/12) : updated TWRP sources from Omnirom 8.1 branch (2018/08/09)
      • v0.96 : updated TWRP 3.2.1 sources from Omnirom 8.0 branch (2017/12/08)
      • v0.64 : updated TWRP 3.1.1 sources from Omnirom 7.1 branch (2017/05/12)
        Wipes should be faster
      • v0.41 : updated TWRP 3.1.0 sources from Omnirom 7.1 branch (2017/03/18)
      • v0.24 : updated TWRP 3.0.3 sources from Omnirom 7.1 branch (2017/02/13)
      • v0.18 : updated TWRP 3.0.3 sources from Omnirom 7.1 branch (2017/01/03)
      • v0.13 : mount USB Storage working, updated source (2016/07/03)
      • v0.12 : (removed) initial xda release, updated sources (2016/06/19)

    Downloads
    • latest file from androidfilehost
    • If you use an unmodified stock KK or LP rom, stock recovery will be self installing again unless you flash KK_LP_no_stock_recovery.zip patch.
      In TWRP, you need to be sure that "Mount system partition read-only" is unchecked in "Mount" menu before flashing this patch

    Installation instructions

    3 ways to install this recovery
    • Using SP Flash Tool
      • Prerequisites
        • Install MTK USB Drivers (windows xp/vista/7 - Windows 8/8.1/10 - other windows 10)
        • SP Flash Tool (howto)
        • In SP Flash Tool, always use "Download Only" mode when not explicitly asked to do otherwise (you could lose your IMEI/WIFI/BT) or if you don't know what you are doing.

          Please do NOT ask about any problem with USB drivers or SP Flash Tool here in this thread, this is not the right place for it as these problems are not related to THIS particular recovery but to YOUR computer setup. There are other threads and/or sites about such problems.
      • Installation
        • power off the tablet
        • launch SP Flash Tool, click on "Download" tab
        • click "scatter-loading" button and choose the downloaded scatter file (MT8127_Android_scatter-recovery_only.txt is based on LP stock rom)
        • on the "RECOVERY" line, click the empty "Location", and choose the downloaded recovery img file
        • click "Download"
        • plug your tablet on USB

    • Using previous already installed TWRP
      • reboot to recovery
      • "Install"
      • "Install Image"
      • choose the recovery img to flash
      • choose "Recovery" partition
      • "swipe to confirm Flash"

    • Using an application (root needed)
      such as Rashr

    Boot to recovery
    • Turn your tablet off
    • Push Power button + Volume- + Volume+ buttons
    • Keep the buttons pushed untils boot logo appears
    Thanks to/Credits

    Contributors
    pix106
    Source Code: https://github.com/LenovoTab2A7
    3
    TWRP 3.2.3 update is available in "Downloads" tab
    3
    TWRP 3.4.0 build is up
    2
    Plz provide the link to the version of spflah tool that u used. Will be helpfull for all ?
    Yeah sure......
    I used v5.1524.00 from http://spflashtool.com/