mlm-games / twrp_lenovo_7305x_m7_mt8765_P

TWRP device tree for 7305x
0 stars 0 forks source link

Maintainer's notes

Android twrp device tree for Lenovo TB-7305X (mt8765_P)

Works after unlocking bootloader and flashing recovery by fastboot.

fastboot flash recovery recovery.img

You can use the recovery name instead of

Features

Works:

Thanks to

Notes

This device does not have a vbmeta partition so you may have to either replace hexcode of string "verify" in boot.img to 0s or flash the disable_dm_verity_force_decrypt.zip afterwards to disable avb

The kernel (i think but it could also be the modem parts or nvdata as the logcat show errors based on them) does not allow booting into some GSIs (tested, didn't go past boot animation -> lineage-os A14 to A9, arrowos A11, caos-A11, /e/-a10) but it does allow adb logcatting for AOSP A9 (look at the start)...

If you have tried any GSI and it boots, please open an issue


Generic info below

Unofficial TWRP Recovery for Lenovo Tab M7 (TB-7305X)

TWRP Logo

This is an unofficial build of TWRP (Team Win Recovery Project) for the Lenovo Tab M7 (TB-7305X).

Device Information

Device Info Specification
Device Name Lenovo Tab M7
Model Number TB-7305X
Codename TB-7305X
SoC MediaTek MT8321 (32-bit) or 8765B (64 bit)
CPU Quad-core 1.3 GHz Cortex-A7
GPU Mali-400 MP2
RAM 1 GB
Storage 8 GB / 16 GB internal storage
MicroSD Up to 128 GB microSD card support
Battery Non-removable Li-Po 3450 mAh
Display 7.0 inches, 600 x 1024 pixels, IPS LCD
Android OS Android 9.0 Pie (Go edition)
Release Date September 2019
Maintainer [Me]

Features


What's Working


Known Issues


Installation Instructions

Warning: Installing custom recovery and modifying your device can void your warranty and may result in device malfunctions if not done properly. Proceed at your own risk.

Prerequisites

Steps

  1. Enable Developer Options and USB Debugging on Your Device

    • Go to Settings > About Tablet
    • Tap on Build Number seven times until it says "You are now a developer!"
    • Go back to Settings > System > Developer Options
    • Enable USB Debugging
  2. Unlocking the Bootloader

    • Note: This process will erase all data on your device.
    • Connect your tablet to your PC via USB.
    • Open a command prompt or terminal window on your PC.
    • Enter the following commands:

      adb reboot bootloader
      fastboot oem unlock
      (or)
      fastboot flashing unlock
      (or)
      fastboot flashing unlock_critical
    • Follow any on-screen prompts to confirm bootloader unlocking.
  3. Flash TWRP Recovery

    • Place the downloaded twrp.img file in your ADB/Fastboot directory.

    • From the bootloader mode, flash TWRP:

      fastboot flash recovery twrp.img

      (Replace twrp.img with the actual filename if different.)

    • After flashing, boot directly into TWRP to prevent the stock recovery from replacing it:

      fastboot reboot recovery
  4. Optional Steps in TWRP (Depends per device)

    • Prevent Stock Recovery Restoration:
      • In TWRP, go to Mount and ensure System is mounted as Read/Write.
    • Disable DM-Verity and Force Encryption:
      • Flash the Disable DM-Verity and Force Encryption zip file (if applicable).
    • Backup Your Device:
      • It is highly recommended to create a full backup before making further changes.

Build Instructions

To build TWRP for the Lenovo Tab M7 (TB-7305X), follow these steps.

Prerequisites

Steps

  1. Install Required Packages

    sudo apt-get update
    sudo apt-get install git-core repo gnupg flex bison gperf build-essential zip curl zlib1g-dev \
    gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev x11proto-core-dev libx11-dev \
    lib32z-dev ccache libgl1-mesa-dev libxml2-utils xsltproc unzip python
  2. Initialize the Repo

    mkdir twrp-workspace
    cd twrp-workspace
    repo init -u https://github.com/minimal-manifest-twrp/platform_manifest_twrp_omni.git -b twrp-9.0
  3. Sync the Source Code

    repo sync
  4. Clone the Device Tree

    git clone https://github.com/yourusername/android_device_lenovo_TB-7305X.git device/lenovo/TB-7305X
  5. Set Up the Build Environment

    source build/envsetup.sh
  6. Select the Device to Build

    lunch omni_TB-7305X-eng
  7. Start the Build

    mka recoveryimage
  8. Retrieve the Built Recovery Image

    • After the build completes successfully, find the recovery image at:

      out/target/product/TB-7305X/recovery.img

Credits


Disclaimer: Installing custom recovery and modifying your device involves risks. Proceed at your own risk. Neither the developers nor anyone else is responsible for any damage that may occur to your device by using this software.