[ROM][UNOFFICIAL][10.0][tbx304f/l/x] LineageOS 17.1 for Lenovo TAB4 8, ROM for the Lenovo Thinkpad Tablet

Search This thread

s16835

New member
Mar 17, 2022
2
0
Wasted lots of time until I found your reply ;) - installed this on a 4 10, works like a charm. Thanks @highwaystar_ru and @ahecht! You rock!
Is there a chance we will see 18.1 on these devices soon, and maybe have them officially supported?

Any way I can help?

I've got decades of Linux experience, but not as a dev, and flashing Android devices is rather new for me...
My tab is stuck at the lineage boot logo for nearing 2hrs now pls help
 

deadman96385

Retired Forum Moderator / Recognized Developer
Aug 19, 2011
2,262
7,819
Saint Paul, Minnesota
Just a quick mention here, but I am working on Lineage 18.1 for TB-X304F/X. Focused on TB-8504F/X because that is what I have in hand right. But they are almost exactly the same so most of my work will also apply to TBX304F/X. Currently waiting for my X304 to arrive in the mail.
 
Just a quick mention here, but I am working on Lineage 18.1 for TB-X304F/X. Focused on TB-8504F/X because that is what I have in hand right. But they are almost exactly the same so most of my work will also apply to TBX304F/X. Currently waiting for my X304 to arrive in the mail.
If you can, will you see about removing instances for secure element SIM1 &SIM2 from manifest ? Wifi tablet with telephony stuffs is crazy on batt. drain. Performance suffers a lot also. If you open a logcat it never slows down complaining of secure element not working. I built one a while back and removed the instances for secure element and tablet runs a lot smoother. I don't use it much but only have to charge it once a month. I swapped to a new m.2 drive and sources didn't get transfered. All I have left is the one installed on tab.
 

deadman96385

Retired Forum Moderator / Recognized Developer
Aug 19, 2011
2,262
7,819
Saint Paul, Minnesota
If you can, will you see about removing instances for secure element SIM1 &SIM2 from manifest ? Wifi tablet with telephony stuffs is crazy on batt. drain. Performance suffers a lot also. If you open a logcat it never slows down complaining of secure element not working. I built one a while back and removed the instances for secure element and tablet runs a lot smoother. I don't use it much but only have to charge it once a month. I swapped to a new m.2 drive and sources didn't get transferred. All I have left is the one installed on tab.
Yeah that was my major focus on the wifi variant of the 8 inch model it had the same issues. I'll see if I can generate a new 17.1 build for X304F so there is something that performs well before 18.1 happens.
 
Yeah that was my major focus on the wifi variant of the 8 inch model it had the same issues. I'll see if I can generate a new 17.1 build for X304F so there is something that performs well before 18.1 happens.
I'm sure you've seen or will see where someone had the unify.sh script removing all the telephony apps but it wouldn't boot. I'm not a developer yet, I know just enough to get frustrated or in trouble trying things. It almost seems like it would be easier to leave the lte parts and for lack of a better term #comment them out. That's what OEM's do most of the time when they don't forget. My Samsung Tab S6 on latest wifi firmware from Samsung is constantly running and writing errors looking for LTE parts that aren't there. Hope you get it worked out, good luck.
 

deadman96385

Retired Forum Moderator / Recognized Developer
Aug 19, 2011
2,262
7,819
Saint Paul, Minnesota
I'm sure you've seen or will see where someone had the unify.sh script removing all the telephony apps but it wouldn't boot. I'm not a developer yet, I know just enough to get frustrated or in trouble trying things. It almost seems like it would be easier to leave the lte parts and for lack of a better term #comment them out. That's what OEM's do most of the time when they don't forget. My Samsung Tab S6 on latest wifi firmware from Samsung is constantly running and writing errors looking for LTE parts that aren't there. Hope you get it worked out, good luck.
Leaving it all in is what is currently being done. In general it works assuming you go through and properly flag stuff in the source to hide when there is no telephony. Sadly there is a lot of stuff in aosp/qualcomm code that doesn't have proper filtering so it gets left on. Which really makes the wifi only experience worse. Samsung and other oems have teams of devs working to handle all of that. So for the rom community its just better to split the wifi only variant out. But that normally means the developer needs the wifi variant in the first place. Which didn't happen for tb-x304 and tb-8504, but is happening now.

If you are interested in what changes I am doing here are the two commits to remove telephony support from the current device trees.


 
Last edited:
  • Like
Reactions: tek3195

deadman96385

Retired Forum Moderator / Recognized Developer
Aug 19, 2011
2,262
7,819
Saint Paul, Minnesota
Here is an updated build specifically for the wifi only variant TB-X304F. It uses the same trees and source as HighwayStar just with all of the telephony related stuff removed to provide a much better experience.

 

Thoiareg

Member
Aug 31, 2016
39
6
Just a quick mention here, but I am working on Lineage 18.1 for TB-X304F/X. Focused on TB-8504F/X because that is what I have in hand right. But they are almost exactly the same so most of my work will also apply to TBX304F/X. Currently waiting for my X304 to arrive in the mail.
Thanks,
It's good to see that this tablet is not totally forgotten.
Good luck with your work, we can't wait to see the result.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 10
    http%3A%2F%2Ffiles.paulfasola.fr%2FCyanogenMod%2FLineageOS.png


    Code:
    /*
    * 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
    Wifi
    Bluetooth
    GPS
    Camera
    Audio
    FM radio
    WLAN and USB tethering
    Broken
    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-17.1-msm8937
    kernel: https://github.com/lenovo-devs/android_kernel_lenovo_msm8953/tree/lineage-17.1-tbx304
    vendor: https://github.com/lenovo-devs/proprietary_vendor_lenovo/tree/lineage-17.1-msm8937

    2021-04-08
    • Initial release
    • Fixed fast charger and OTG
    • Fixed touchscreen issues
    mailru: lineage-17.1-20210408-UNOFFICIAL-TBX304.zip
    gdrive: lineage-17.1-20210408-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

    TWRP
    Built from omnirom android 9.0 source (twrp 3.4.0), 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][10.0][tbx304f/l/x] LineageOS 17.1 for Lenovo TAB4 8, ROM for the Lenovo Thinkpad Tablet

    Contributors
    highwaystar_ru
    Source Code: https://github.com/lenovo-devs/android_kernel_lenovo_msm8953/tree/lineage-17.1-tbx304

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

    Version Information
    Status:
    Testing
    3
    I can't get it to flash. TWRP has been sitting for hours at:

    Unmounting System... Target: Lenovo/LenovoTB-X304:/X304L:8.1.0/0PM1.171019029/S001017_190709_ROW:user/release-keys

    EDIT: Fixed by flashing TWRP instead of just booting it. The steps I followed were:

    1. Install the Lenovo Driver from here
    2. Install fastboot and adb on your PC, e.g. from here
    3. Enable developer options and in there select to unlock your bootloader by enabling OEM unlock and enable USB debugging
    4. Connect your PC to your tablet and run
      Code:
      adb reboot bootloader
      using adb on command line. The tablet will reboot into bootloader mode where you will only see the text on the screen. Now you use
      Code:
      fastboot oem unlock-go
      to unlock. This will factory reset your device
    5. Setup the tablet again, enable USB debugging, and reboot again to the bootloader
    6. Download tbx304-twrp-3.4.0-20201207.img (TWRP) from the OP
    7. Then run
      Code:
      fastboot boot tbx304-twrp-3.4.0-20201207.img
      to temporarily boot into TWRP.
    8. Select to keep system read only when TWRP starts to avoid modification which will make OTAs impossible
    9. In TWRP, go to WIPE, click on "Format Data" in the lower right, and follow the instructions.
    10. Go back to the TWRP home screen, choose "Reboot", and click "Recovery"
    11. In TWRP, go to the Backup tab, and backup the boot, recovery, and system image. Keep this backup for OTA updates.
    12. Go back to the TWRP home screen, hit the reboot button in TWRP, and choose "Bootloader".
    13. Then run
      Code:
      fastboot flash recovery tbx304-twrp-3.4.0-20201207.img
      to permanently install TWRP.
    14. Once installed, press the volume button until it says "Recovery Mode" in red letters on the top, then hit the power button to boot back into TWRP.
    15. Load the LineageOS zip file from your computer onto the tabled by using
      Code:
      adb push [NAME_OF_LINEAGE_ZIP_FILE] /sdcard/
      . If you are going to install gapps (Google Play Store, etc.), download it from here and push it to the tablet the same way
    16. From the TWRP home screen, go to Install and install the LineageOS zip file. Once that is completed, repeat the process to install gapps, if you're using them.
    17. Select the option to reboot. If everything worked correctly, it should boot into LineageOS.
    1
    Does this work on the tab4 10??
    1
    This says tab4 8... Does this work for the tab4 10 model tb-x304f ?
    Maybe it's a typo...
    I am using this on x304f (wifi only) tab. It's smooth and stable
    1
    Thanks for the great ROM! It works well on my Tab 4 10 X304L. The only thing I have trouble with is that I can't get safetynet to pass and Netflix can't be installed. Otherwise, it's running pretty well.
    Solve Safetynet issue:
    1. Enable MagiskHide in the options of the Magisk
    2. Install MagiskHide Props
    3. After install MagiskHide and reboot
    4. Install any terminal emulator from the PlayStore/F-Droid
    5. Open termux and write the following commands

    su > allow su permission

    props > wait for loading

    Select 1

    Select f

    Select Lenovo

    Select Lenovo Tab 4 10 Plus TB-X704L (7.1.1)

    Confirm and reboot