[Thinkpad Tablet Android Development] ChasTechProjects:
View attachment 5442621

LineageOS
​

/*
* I'm 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 the products you find here 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.
* Your warranty will be void if you tamper with any part of your device / software.
* Same statement for XDA.
*/

LineageOS is a free, community built, aftermarket firmware distribution of Android 11, which is designed to increase performance and reliability over stock Android for your device.

LineageOS is based on the Android Open Source Project with extra contributions from many people within the Android community. It can be used without any need to have any Google application installed. Linked below is a package that has come from another Android project that restore the Google parts. LineageOS does still include various hardware-specific code, which is also slowly being open-sourced anyway.

All the source code for LineageOS is available in the LineageOS Github repo. And if you would like to contribute to LineageOS, please visit out Gerrit Code Review.

What's working:

WiFi

Bluetooth

Audio

Camera

Fingerprint

SELinux enforcing

Encryption

Torchlight

What's not working:

FM radio, at least in the stock app

Wireless display

SIM card not detected on LTE model

Downloads:

TWRP: XDA thread

ROM (latest version): GitHub

Older versions available on releases page.

Installation instructions:

To install you should be running stock firmware, you can restore using the Lenovo Rescue and Smart Assistant (LMSA) tool on a PC, then follow the instructions in the app to rescue the device. Make sure to unlock the bootloader as well.

Now grab a copy of TWRP recovery from here. Install fastboot and adb on your PC by following this tutorial on XDA.

Boot your device into fastboot mode (power + volume down). You should know when you are in fastboot mode as it will show on the screen.

Open up the terminal or command prompt and run:

fastboot flash recovery <path to twrp.img>

Now turn off your device by pressing power until the screen is black, then boot into recovery (power + volume up).

TWRP should boot up. DO NOT ERASE SYSTEM, OTHERWISE YOUR DEVICE WILL HANG ON THE LINEAGE LOGO. Go to Advanced, tap ADB sideload, then run the following on your PC.

adb sideload <path to rom.zip>

Once it's finished sideloading, install any additional packages (eg GAPPS) and then go to Wipe and swipe factory reset. Now reboot.

It will take a couple of minutes to load and then you should see setup. You can now setup your device. Enjoy LineageOS 18.1 and Android 11 on your Lenovo Tab 4 8 Plus!

Credits:

lenovo-devs for the original, Android 10 device tree.

LumenReaper for updating the kernel to work with Android 11.

ChasTechProjects for updating the device tree and vendors for Android 11.

Sources:

Device tree: https://github.com/ChasTechProjects/android_device_lenovo_TB8704

Kernel: https://github.com/ChasTechProjects/android_kernel_lenovo_msm8953

Vendor: https://github.com/ChasTechProjects/proprietary_vendor_lenovo