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

[ROM][UNOFFICIAL][8.1.0][TB-X704F] LineageOS 15.1 for Lenovo Tab4 10 Plus

Search This thread

yener90

Senior Member
Dec 10, 2018
152
330
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 8.1 (Oreo), 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:
Wifi
Bluetooth
Audio
LED
USB
RIL
Encryption
Fingerprint
Camera (partly)

Broken
Camera (autofocus & hdr)
Hall sensor
Selinux Enforcing

Source code:
device: https://github.com/yener90/android_device_lenovo_TBX704
kernel: https://github.com/yener90/android_kernel_lenovo_msm8953
vendor: https://github.com/yener90/android_vendor_lenovo_TBX704

Important
If you are using this ROM first time, wipe data. Wipe data completely. I mean the option where you need to enter "yes". Use this option and then flash the rom.
This ROM only works with the TWRP I added.

If you want to use GAPPS, flash it directly after flashing ROM. Don't let the ROM boot. Otherwise your device will not get certification, so you will not have Google Access.


Instructions (thx @matshias, just changed few lines to get ROM flashing working)

  1. Put your ROM (and GApps) onto your sdcard (sdcard must be exfat or fat32, NTFS not supported)
  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 Lenovo logo. Now you use
    Code:
    fastboot oem unlock-go
    to unlock. This will factory reset your device
  5. Don't setup, cause you will need to format your tablet later again. Shutdown tablet. Hold volume up and power button to start to bootloader
  6. Then run
    Code:
    fastboot flash recovery twrp-3.2.3-0-<your-filename>.img
    to flash TWRP
  7. Select with volume buttons "Recovery Mode" and press power button
  8. Select to write to system, otherwise you can't flash ROM
  9. Backup at least system and boot partitions to your sdcard cause you will wipe data in next step. Choose "System Image" for the system partition backup.
  10. Format data using this tutorial
  11. Flash ROM
  12. Optionally flash SuperSU or Magisk in TWRP which should install system less. Keep OEM unlock enabled if you flash or modify anything
  13. Restart


Download
2019-04-08
• changes to fingerprint
• changes to sdcard (careful those who are using sd card as internal)
• security updates: 2019-04-05
• updated TB-X704L fix file for fingerprint support
ROM
TB-X704L fix
TWRP

Older downloads

2019-04-05
• partly fixed camera (autofocus & hdr dont work), use Open Camera
• some debugging features disabled, should improve performance
ROM

2019-03-30
• fixed fingerprint
• first attemps fixing camera (will take longer than expected...)
ROM

2019-03-27
• intital release
ROM


Optional downloads
Dolby Digital Plus (use the TWRP one)
GAPPS (use 8.1 arm64; I suggest using pico variant)

Thanks
@highwaystar_ru (he gave me the important hint, also used his sources and his thread :eek:)
@LumenReaper (for his work with CM14.1, where I took big part of his device tree :fingers-crossed:)
@Flowah123 for the TB-X704L files :fingers-crossed:

Donations
For donations you can click here
Thanks to @rorzer, @Preyer11, @Tschumi, @MrMagic, @max_work & 5 x anonymous :D

Please don't support Lenovo and buy their tablets
Code:
[I]Updates vary depending on the model where our tablets receive Android and security updates after the introduction. 
We announced Tab 4 10 Plus in February 2017 and since then it has received seven OTA updates. 
However, this model has reached the end of its update cycle and will not receive any more updates in the future.
- Lenovo (2018-05-11)[/I]
Just seven updates and not even one major upgrade, please don't support them.

Reporting bugs
Please tell what mods you are using and what tablet variant (TB-X704F or L or ABCDEFGH..)
If your tablet doesnt start:
go to TWRP. use file manager, go to sys/fs/pstore, copy the files and upload it here.
if your tablet starts and bug appears later:
go to TWRP. use file manager, go to sys/fs/pstore, copy the files
start your tablet normal, let the bug appear, enter adb root
use adb logcat and adb shell dmesg, copy the content to a text file and upload here

XDA:DevDB Information
[ROM][UNOFFICIAL][8.1.0][TB-X704F] LineageOS 15.1 for Lenovo Tab4 10 Plus, ROM for the Lenovo Thinkpad Tablet

Contributors
yener90
ROM OS Version: 8.x Oreo

Version Information
Status: Testing

Created 2019-03-27
Last Updated 2019-05-13
 

Attachments

  • TB-X704L_fix.zip
    480.5 KB · Views: 189
Last edited:

LumenReaper

Senior Member
Nov 26, 2018
106
176
Lenovo Thinkpad Tablet
Google Pixel 3
The system itself runs very well. Also TWRP is very nice in landscape.

Maybe some notes after a short test phase, because your post is not so detailed yet.

Works:
- Encryption (forceencrypt is enabled)
- Clearly better audio quality than in Lineage 14.1 (Yener has already made me aware of my mistake)
- Significantly newer kernel (3.18.115 instead of 3.18.31)

Broken:
- Hall sensor
- selinux (for completeness only)

All in all very good rom. Thank you Yener!
 

peterCR56

Member
Apr 28, 2013
35
9
london
ROM loaded and running with no problems so far so thanks to @yener90, also thanks to @LumenReaper for starting the whole ball rolling. one thing I noticed is after doing Format data and wiping system, data and the caches i'm re-encrypted, it's not a major problem though, when i do another update in the future i'll format data again and see if encryption goes away :)

---------- Post added at 04:38 PM ---------- Previous post was at 04:38 PM ----------

ROM loaded and running with no problems so far so thanks to @yener90, also thanks to @LumenReaper for starting the whole ball rolling. one thing I noticed is after doing Format data and wiping system, data and the caches i'm re-encrypted, it's not a major problem though, when i do another update in the future i'll format data again and see if encryption goes away :)
 

LumenReaper

Senior Member
Nov 26, 2018
106
176
Lenovo Thinkpad Tablet
Google Pixel 3
ROM loaded and running with no problems so far so thanks to @yener90, also thanks to @LumenReaper for starting the whole ball rolling. one thing I noticed is after doing Format data and wiping system, data and the caches i'm re-encrypted, it's not a major problem though, when i do another update in the future i'll format data again and see if encryption goes away :)

This rom has force encrypt enabled, so it will not go away ;)
 
  • Like
Reactions: peterCR56

nvoll84

New member
Mar 30, 2019
1
1
Orlando
Thank you for doing this!!!

Thank you for working on this device!!! I thought the Tab 4 10 Plus I imported for Korea was never going to see another update after I read the news awhile back. I took the plunge and installed TWRP and rooted my device tonight. I can't wait to get Oreo or even Pie installed on my tablet in the future!
 
  • Like
Reactions: n1aplh8r

Sparkrite

Senior Member
Jan 9, 2014
885
314
First off, very well done @yener90 and @LumenReaper, thank you.
Am I correct in thinking that if I flash this to my TB-X704V it should work except for the SIM functions ?

Also are Gapps included?

TIA
 
Last edited:

yener90

Senior Member
Dec 10, 2018
152
330
First off, very well done @yener90 and @LumenReaper, thank you.
Am I correct in thinking that if I flash this to my TB-X704V it should work except for the SIM functions ?

Also are Gapps included?

I'm not sure, if X704V works. Try to boot from the recovery, I uploaded, from your pc.
For this switch to bootloader mode and enter fastboot boot twrp.img
If you get on your screen an error like: no dtb found, than your device requires special fix.

Don't try it out then.
 

Sparkrite

Senior Member
Jan 9, 2014
885
314
I'm not sure, if X704V works. Try to boot from the recovery, I uploaded, from your pc.
For this switch to bootloader mode and enter fastboot boot twrp.img
If you get on your screen an error like: no dtb found, than your device requires special fix.

Don't try it out then.

Cheers, for fast reply.
I'll certainly try that out later today and let you know.


EDIT:
Just tried it and booted to your TWRP just fine, nice landscape view BTW.
All appears OK, but while it "saw" the ext SD I couldn't explore it but I could the explore the internal SD.

Just one thing, when I went to exit by rebooting to system, it crashed and just hung there.
 
Last edited:

yener90

Senior Member
Dec 10, 2018
152
330
Cheers, for fast reply.
I'll certainly try that out later today and let you know.


EDIT:
Just tried it and booted to your TWRP just fine, nice landscape view BTW.
All appears OK, but while it "saw" the ext SD I couldn't explore it but I could the explore the internal SD.

Just one thing, when I went to exit by rebooting to system, it crashed and just hung there.

Thats normal. Install twrp and boot to recovery. There it will never freeze.
Try it out. Before you do copy your system files to your pc. Maybe for your device some files are required.
 

MiSSigNNo

Senior Member
Feb 7, 2006
207
39
37
Madrid
4p.marketing
I'm thinking on buying this tablet, but I've heard that the 5ghz wifi has some dropouts. Have anyone test it out with this rom with iperf? (Wifi Speed Test app for example)

Also I'm interested to know what issues have been found with the fingerprint. (1 minute before the dev solved it) :)
 

yener90

Senior Member
Dec 10, 2018
152
330
I'm thinking on buying this tablet, but I've heard that the 5ghz wifi has some dropouts. Have anyone test it out with this rom with iperf? (Wifi Speed Test app for example)

Also I'm interested to know what issues have been found with the fingerprint.

Don't buy it please.
Don't support Lenovo. That ******* dont care about their customers.
I just developed that rom, to show that ****** that its not hard to build an Oreo ROM for this nice tablet.
 

MiSSigNNo

Senior Member
Feb 7, 2006
207
39
37
Madrid
4p.marketing
Don't buy it please.
Don't support Lenovo. That ******* dont care about their customers.
I just developed that rom, to show that ****** that its not hard to build an Oreo ROM for this nice tablet.

What would you recommend instead?

I come from a CHUWI Hipad that was a complete disaster: really hard to even create a TWRP
I've been looking for other alternatives and essentially we have:
Huawei and Kirin: 0% development with closed Kirin processors
Samsung/LG/Asus/Xiaomi: The cheapest with 3Gb goes for over $250 (there aren't many brands with cheap tablets in fact)
Chuwi, Teclast, ... all are **** brands with Mediatek processors that are even worse than Kirin for dev purposes.

So essentially for under $200 with 3Gb+ RAM there is only one Snapdragon tablet called Lenovo Tab4 10 Plus :)

But the only issue I've found so far reading reviews are the dropouts with 5Ghz WIFI AC band.
 
Last edited:

yener90

Senior Member
Dec 10, 2018
152
330
What would you recommend instead?

I come from a CHUWI Hipad that was a complete disaster: really hard to even create a TWRP
I've been looking for other alternatives and essentially we have:
Huawei and Kirin: 0% development with closed Kirin processors
Samsung: The cheapest with 3Gb goes for over $250
Chuwi, Teclast, ... all are **** brands with Mediatek processors that are even worse than Kirin for dev purposes.

So essentially for under $200 with 3Gb+ RAM there is only one Snapdragon tablet called Lenobo Tab4 10 Plus :)

But the only issue I've found so far reading reviews are the dropouts with 5Ghz WIFI AC band.

Hehehe I also had a Chuwi Tablet and was a disaster . 5GHz was solved with latest update.
Xiaomi Mi Pad 4 Plus sounds nice for me. Xiaomi also has a much better support. It came out after my Lenovo Tablet. If that would be available than, I would buy Xiaomi.
 

ashus

Senior Member
Feb 4, 2008
50
24
Ostrava
ashus.ashus.net
Thanks for this. Great job.
Can we have R/W system? AdAway freezes when trying to overwrite system hosts file. Basically I would be happy with your first release supporting hosts file linked to other path either even without fingerprint or camera support.
 

MiSSigNNo

Senior Member
Feb 7, 2006
207
39
37
Madrid
4p.marketing
Hehehe I also had a Chuwi Tablet and was a disaster . 5GHz was solved with latest update.
Xiaomi Mi Pad 4 Plus sounds nice for me. Xiaomi also has a much better support. It came out after my Lenovo Tablet. If that would be available than, I would buy Xiaomi.

Yeah, I like Xiaomi Mi Pad 4 Plus, the problem is that the cheapest in my country is for $400, if I buy in Aliexpress it goes for nearly $300... and I found this tablet for just $180 (half the price!) in Amazon :)
I understand that most brand OS support is **** (including Samsung), and I definitely have a Xiaomi Pocophone F1 because they have a really great support not only in ROM dev, but good prices for replacements (screens and all that).

But If they have solved the 5Ghz issue, then I believe that we should even try in the future to go for official Lineage 16 as they did on the oldie Yoga Tab 3 Plus :)
 

Top Liked Posts

  • There are no posts matching your filters.
  • 21
    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 8.1 (Oreo), 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:
    Wifi
    Bluetooth
    Audio
    LED
    USB
    RIL
    Encryption
    Fingerprint
    Camera (partly)

    Broken
    Camera (autofocus & hdr)
    Hall sensor
    Selinux Enforcing

    Source code:
    device: https://github.com/yener90/android_device_lenovo_TBX704
    kernel: https://github.com/yener90/android_kernel_lenovo_msm8953
    vendor: https://github.com/yener90/android_vendor_lenovo_TBX704

    Important
    If you are using this ROM first time, wipe data. Wipe data completely. I mean the option where you need to enter "yes". Use this option and then flash the rom.
    This ROM only works with the TWRP I added.

    If you want to use GAPPS, flash it directly after flashing ROM. Don't let the ROM boot. Otherwise your device will not get certification, so you will not have Google Access.


    Instructions (thx @matshias, just changed few lines to get ROM flashing working)

    1. Put your ROM (and GApps) onto your sdcard (sdcard must be exfat or fat32, NTFS not supported)
    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 Lenovo logo. Now you use
      Code:
      fastboot oem unlock-go
      to unlock. This will factory reset your device
    5. Don't setup, cause you will need to format your tablet later again. Shutdown tablet. Hold volume up and power button to start to bootloader
    6. Then run
      Code:
      fastboot flash recovery twrp-3.2.3-0-<your-filename>.img
      to flash TWRP
    7. Select with volume buttons "Recovery Mode" and press power button
    8. Select to write to system, otherwise you can't flash ROM
    9. Backup at least system and boot partitions to your sdcard cause you will wipe data in next step. Choose "System Image" for the system partition backup.
    10. Format data using this tutorial
    11. Flash ROM
    12. Optionally flash SuperSU or Magisk in TWRP which should install system less. Keep OEM unlock enabled if you flash or modify anything
    13. Restart


    Download
    2019-04-08
    • changes to fingerprint
    • changes to sdcard (careful those who are using sd card as internal)
    • security updates: 2019-04-05
    • updated TB-X704L fix file for fingerprint support
    ROM
    TB-X704L fix
    TWRP

    Older downloads

    2019-04-05
    • partly fixed camera (autofocus & hdr dont work), use Open Camera
    • some debugging features disabled, should improve performance
    ROM

    2019-03-30
    • fixed fingerprint
    • first attemps fixing camera (will take longer than expected...)
    ROM

    2019-03-27
    • intital release
    ROM


    Optional downloads
    Dolby Digital Plus (use the TWRP one)
    GAPPS (use 8.1 arm64; I suggest using pico variant)

    Thanks
    @highwaystar_ru (he gave me the important hint, also used his sources and his thread :eek:)
    @LumenReaper (for his work with CM14.1, where I took big part of his device tree :fingers-crossed:)
    @Flowah123 for the TB-X704L files :fingers-crossed:

    Donations
    For donations you can click here
    Thanks to @rorzer, @Preyer11, @Tschumi, @MrMagic, @max_work & 5 x anonymous :D

    Please don't support Lenovo and buy their tablets
    Code:
    [I]Updates vary depending on the model where our tablets receive Android and security updates after the introduction. 
    We announced Tab 4 10 Plus in February 2017 and since then it has received seven OTA updates. 
    However, this model has reached the end of its update cycle and will not receive any more updates in the future.
    - Lenovo (2018-05-11)[/I]
    Just seven updates and not even one major upgrade, please don't support them.

    Reporting bugs
    Please tell what mods you are using and what tablet variant (TB-X704F or L or ABCDEFGH..)
    If your tablet doesnt start:
    go to TWRP. use file manager, go to sys/fs/pstore, copy the files and upload it here.
    if your tablet starts and bug appears later:
    go to TWRP. use file manager, go to sys/fs/pstore, copy the files
    start your tablet normal, let the bug appear, enter adb root
    use adb logcat and adb shell dmesg, copy the content to a text file and upload here

    XDA:DevDB Information
    [ROM][UNOFFICIAL][8.1.0][TB-X704F] LineageOS 15.1 for Lenovo Tab4 10 Plus, ROM for the Lenovo Thinkpad Tablet

    Contributors
    yener90
    ROM OS Version: 8.x Oreo

    Version Information
    Status: Testing

    Created 2019-03-27
    Last Updated 2019-05-13
    7
    @rorzer i will add a link :eek:

    Good news guys, last important function is fixed:
    Camera works now :fingers-crossed:
    7
    i wish i could help you ;)

    like to have getprop from my L Model ?

    Need a lil bit more time.

    Great dev @highwaystar_ru ported Pie to Tab3, so now I am also working on it :eek:
    5
    The system itself runs very well. Also TWRP is very nice in landscape.

    Maybe some notes after a short test phase, because your post is not so detailed yet.

    Works:
    - Encryption (forceencrypt is enabled)
    - Clearly better audio quality than in Lineage 14.1 (Yener has already made me aware of my mistake)
    - Significantly newer kernel (3.18.115 instead of 3.18.31)

    Broken:
    - Hall sensor
    - selinux (for completeness only)

    All in all very good rom. Thank you Yener!