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

[ROM][UNOFFICIAL][9.0][tbx304f/l/x] LineageOS 16.0 for Lenovo TAB4 10

Search This thread


Jun 9, 2021
So, finally i was able to unlock the bootloader using the firehose file from the stock rom and editing the devinfo.img..
I will make a detailed guide soon, so that others can make use of it.

EDIT: Detailed thread HERE

Hey but the bootloader is unlocked right so why does that matter? I think it happens to every tab after unlocking the bootloader the oem unlocking option gets greyed right?
So we can go ahead and install twrp and rom without worrying about the oem unlocking greyed right?


Senior Member
Hey but the bootloader is unlocked right so why does that matter? I think it happens to every tab after unlocking the bootloader the oem unlocking option gets greyed right?
So we can go ahead and install twrp and rom without worrying about the oem unlocking greyed right?
It's for people who can't unlock bootloader, since OEM unlock is greyed out


New member
Jul 7, 2021
latest build available with the May 2021 security patch.

The sources used were the one provided on page 1 based on Lenovo-devs work.

All I did was sync the repo and build - the latest security patch was added by the LOS team.

Hope this helps,

View attachment 5311231

LOS16 Downloads for TB-X304
2021, May 5th security patch
md5sum : 71feddfe107e253a1e0188f8029acc1c
[GDrive] : https://drive.google.com/file/d/15_jmv6MJMTn80Bh6wzsWpvUJnVF9HTkf/view?usp=sharing
[ MEGA ] : https://mega.nz/file/HY1l2agI#7NpVBecrq5LYmx6DWlnsJnrz8jmu-G0jHlg97JuRYT4
[Yandex] : https://disk.yandex.com/d/rR9B2qrIMTg9Ew

good morning

I'm about to venture to change the stock rom of my X304F for the LOS 16.0 rom.

Specifically, if I am on Android 8.1.0, I would have to put only these 2 things:

1.- twrp-3.4.0-20210407
2.- lineage-16.0-20210515-UNOFFICIAL-TBX304


Would I need to reset the factory to bring it to 7.1 ??

I hope you can support me with the information, in advance thank you very much for your time.


Senior Member
Aug 21, 2018
LG V20
Xiaomi Redmi Note 5 Pro

Top Liked Posts

  • There are no posts matching your filters.
  • 11

    * I'm not responsible for bricked devices, dead SD cards, thermonuclear war, or you getting fired because the alarm app failed (like it did for me...).
    * 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 9 (pie), 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 works:
    Calls/SMS/Mobile data
    FM radio
    WLAN and USB tethering
    You tell me

    Source code:
    device : https://github.com/lenovo-devs/android_device_lenovo_TBX304, https://github.com/lenovo-devs/android_device_lenovo_tb-common/tree/lineage-16.0-msm8937
    kernel: https://github.com/lenovo-devs/android_kernel_lenovo_msm8953/tree/lineage-16.0-tbx304
    vendor: https://github.com/lenovo-devs/proprietary_vendor_lenovo/tree/lineage-16.0-msm8937

    • Added double tap to wakeup option
    • Added hall sensor
    • Fixed error in sepolicy
    mailru: lineage-16.0-20201212-UNOFFICIAL-TBX304.zip
    gdrive: lineage-16.0-20201212-UNOFFICIAL-TBX304.zip

    Previous versions:

    How to install
    You have to had TWRP installed from this thread TWRP and ROOT for Tab 4 8/10 (Plus) (TB-8704X/F/V,TB-X704L/F, TB-8504X/F, TB-X304L/F or one from link below

    In TWRP clean Data if you coming from stock ROM and do Install of this ROM. If you have android 8 stock rom installed you have to format Data with data loss, because used encryption is incompatible with android 7.1

    Built from omnirom android 9.0 source (twrp 3.3.1), includes same kernel as Lineage build, with support for pstore (kernel logs after crash), exfat, ntfs, reboot to EDL mode.
    mailru: tbx304-twrp-3.4.0-20201207.img
    gdrive: tbx304-twrp-3.4.0-20201207.img

    XDA:DevDB Information
    [ROM][UNOFFICIAL][9.0][tbx304f/l/x] LineageOS 16.0 for Lenovo TAB4 8, ROM for the Lenovo Thinkpad Tablet

    Source Code: https://github.com/lenovo-devs/android_kernel_lenovo_msm8953/tree/lineage-16.0-tbx304

    ROM OS Version: 9.x Pie
    ROM Kernel: Linux 3.10.x
    Based On: LineageOs

    Version Information

    Created 2020-03-04
    Last Updated 2020-03-19
    • Added double tap to wakeup option
    • Added hall sensor
    • Fixed error in sepolicy
    Have you got anywhere with this? I have exact same issue you have on X304F and I am very unsure why and if it could possibly be fixed. I'll be very sad if I cannot make this work.... Love LOS....

    Please let me know.


    From what I am reading in this thread, it would look like this LOS package would be actually intended for the L version and not working properly on the F version, both of them probably sharing some but not all hardware.
    I am unsure but It would like screen might be different hardware, maybe even resolution.
    I had the same problem using the TWRP version provided without the 'F' at the end (just x304 no letter) and touch was not aligned right.
    Now could this be fixed easily? I dont know of LOS enough to tell that, maybe someone do? @highwaystar_ru ?
    I'd be more than happy to test on my device or provide data which could help fix the ROM for the F device.
    Could you please test this TWRP build https://cloud.mail.ru/public/AU29/uv1CLEfEs

    x304 source code really helps, fixed fast charger and fixed some code in touchscreen driver. Please check if test twrp fixes touchsreen issue. Lineage 17.1 with updated kernel is on the way.
    Twrp works well without touchscreen issue but i, the same touch screen issue is now in rom itself, please tell how to fix ?
    You have to use new rom. Here is Lineage 17.1 (android 10) build https://forum.xda-developers.com/t/...8-rom-for-the-lenovo-thinkpad-tablet.4259205/
    I dont get it, why arent you switching to android Q then? Its higher android version right? Or am i not getting somthing?
    Well moving to latest version available is not always the wisest thing to do. Things that worked for you may end up not working anymore (let's say you use a specific app which does not have an update for Q yet), even more for old devices which were not really designed to support such a new release (some drivers may be missing or not updated and such). New versions of OS usually need more Ram to function, leaving you will less Ram for you to use, and again that can be a problem.
    As goes the famous saying : 'When it works, don't fix it' ;)

    However you are right at some point you have no other choice but to update, even if that comes with a tradeoff. For example once NetFlix (or any of the few other apps I want to keep using) will drop P support, I wont have a choice but to move. But I still have time. But at the moment there is no appealing feature on Q which makes me want to update unconditionally.

    At the time being, I am just happy with applying google security patches every now and then. Probably more often as soon as I can figure out how to build for multiple devices on same LOS version.