• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!
  • Fill out your device list and let everyone know which phones you have!    Edit Your Device Inventory

[ROM][UNOFFICIAL][11][TB-X704F/L] LineageOS 18.1 for Lenovo Tab4 10 Plus

Search This thread

ensmed

Senior Member
Nov 1, 2010
335
60
Stockholm
On the X704F (ID 73)
After flashing LOS 18.1 from this tread i lost Wifi and Bluetooth.
Reflashing stock rom i now have Wifi drivers crashing constantly.
Have something obvious flewn over my head ?
if someone has any suggestions and so thanks in advance
1. flash twrp 3.5.2_9-0 x704F img
2. wipe all except usb or microsd
3. flash lineage-18.1-20210511-UNOFFICIAL-TBX704.zip
4. flash https://sourceforge.net/projects/nikgapps/files/Releases/NikGapps-R/14-May-2021 any package you like
5. Finally flash https://magiskapp.com/zip/#download-now and wipe dalvik/cache, reboot
 
  • Like
Reactions: 1907Fb1907

1907Fb1907

Member
Oct 4, 2020
13
2
Last edited:

LumenReaper

Senior Member
Nov 26, 2018
102
166
Lenovo Thinkpad Tablet
Google Pixel 3
Eagerly waiting for new build with working FP sensor from @LumenReaper 😅
any updates on when it could be available ?

PS: Highly appreciate your work, thanks for carrying it forward 😊
I do not intend to release a new version before the June security patch is available in LineageOS. Apart from that, it depends on how I find or decide to spend time. The amount of time I have invested in the rom over the last few weeks is no longer something I can dedicate. If you already want to use the current changes, there is always the possibility to build the rom from source.

Apart from the FP sensor, there will probably be hardly any changes, which means that the rom will be as stable/unstable as before.

You must always remember that all this is created in my free time, so contributors are welcome.

Edit: You can expect a new version next weekend at the latest. There will also be a few changes.
Edit 2: Waiting for the
June patch to get merged.
 
Last edited:

Googole

Senior Member
I do not intend to release a new version before the June security patch is available in LineageOS. Apart from that, it depends on how I find or decide to spend time. The amount of time I have invested in the rom over the last few weeks is no longer something I can dedicate. If you already want to use the current changes, there is always the possibility to build the rom from source.

Apart from the FP sensor, there will probably be hardly any changes, which means that the rom will be as stable/unstable as before.

You must always remember that all this is created in my free time, so contributors are welcome.
I could understand that.
My tablet freezes and turns off itself randomly sometimes and I would appreciate it if you fix this issue sometine.
 

Jawarens

Member
Aug 9, 2010
10
0

mbryantuk

Member
Feb 21, 2012
7
0
It might not be related to this ROM as such but I am stuck with my Lenovo Tab 4 Plus 10, I was on this ROM a month back but after some stability issues (and wanting Sky Go working) i used the Rescue and Smart Assistance Tool to revert to Stock but now the tablet freezes 30 seconds after boot and restarts and continues in this loop. The Bootloader is locked and because it freezes so quickly after booting, therefore I cannot enable ADB Debugging to then reflash this ROM. Any ideas before this ends up in the bin!
 

flouli

Member
Apr 13, 2021
17
7
Düsseldorf
www.nmr.hhu.de
It might not be related to this ROM as such but I am stuck with my Lenovo Tab 4 Plus 10, I was on this ROM a month back but after some stability issues (and wanting Sky Go working) i used the Rescue and Smart Assistance Tool to revert to Stock but now the tablet freezes 30 seconds after boot and restarts and continues in this loop. The Bootloader is locked and because it freezes so quickly after booting, therefore I cannot enable ADB Debugging to then reflash this ROM. Any ideas before this ends up in the bin!
Couldn't you use this description (in #1) to unlock your bootloader, boot into fastboot and reflash?
 

LumenReaper

Senior Member
Nov 26, 2018
102
166
Lenovo Thinkpad Tablet
Google Pixel 3
New build is up

2021-06-15

  • Upstream changes (including June security patch)
  • Fingerprint sensor bring up
  • Rebase kernel on kuntao (Lenovo P2)

Rebasing the kernel is associated with massive changes. On the one hand, there are bug fixes that prevent the kernel from crashing due to an exception in the WiFi driver. On the other hand, new problems can come along with it.

The new version (and the old ones) can now be found exclusively on GitHub. The link is in the first post.
 

mbryantuk

Member
Feb 21, 2012
7
0
Couldn't you use this description (in #1) to unlock your bootloader, boot into fastboot and reflash?
Might
Couldn't you use this description (in #1) to unlock your bootloader, boot into fastboot and reflash?
Thanks :) the problem i am having is with this step :
  1. Enable developer options and in there select to unlock your bootloader by enabling OEM unlock and enable USB debugging
As i cannot get into Android to enable Developer options.

When i run fastboot oem unlock-go i get:
...
FAILED (remote: oem unlock is not allowed)
finished. total time: 0.016s
 
  • Sad
Reactions: flouli

tabbeber

New member
Nov 23, 2019
2
2
Following this project with great interest. Currently using Android 10 on my tablet. I'm just waiting for SeLinux to work properly, then I'm definitely downloading this.
 
  • Like
Reactions: mbryantuk

flouli

Member
Apr 13, 2021
17
7
Düsseldorf
www.nmr.hhu.de
Might

Thanks :) the problem i am having is with this step :
  1. Enable developer options and in there select to unlock your bootloader by enabling OEM unlock and enable USB debugging
As i cannot get into Android to enable Developer options.

When i run fastboot oem unlock-go i get:
...
FAILED (remote: oem unlock is not allowed)
finished. total time: 0.016s
And if you try another reflash with the Lenovo Moto Smart Assistant (LMSA)?
 

mbryantuk

Member
Feb 21, 2012
7
0
And if you try another reflash with the Lenovo Moto Smart Assistant (LMSA)?
Thanks @flouli, tried that repeatedly to no avail... now I am getting FAIL as the outcome of that process.

Starting to think its time it goes in the bin, with the way Lenovo treated me on this device I think this community has given me more life out of this tablet than I ever expected especially just after purchase reading this device was effectively dead on arrival in regard to updates.

I will definitely do a lot more research on its replacement.
 

flouli

Member
Apr 13, 2021
17
7
Düsseldorf
www.nmr.hhu.de
Thanks @flouli, tried that repeatedly to no avail... now I am getting FAIL as the outcome of that process.

Starting to think its time it goes in the bin, with the way Lenovo treated me on this device I think this community has given me more life out of this tablet than I ever expected especially just after purchase reading this device was effectively dead on arrival in regard to updates.

I will definitely do a lot more research on its replacement.
Maybe a last try to enable developer options via adb: Boot to fastboot and have a look at this.
 

GRöder

Member
May 18, 2021
12
2
New build is up

2021-06-15

  • Upstream changes (including June security patch)
  • Fingerprint sensor bring up
  • Rebase kernel on kuntao (Lenovo P2)

Rebasing the kernel is associated with massive changes. On the one hand, there are bug fixes that prevent the kernel from crashing due to an exception in the WiFi driver. On the other hand, new problems can come along with it.

The new version (and the old ones) can now be found exclusively on GitHub. The link is in the first post.
First of all: Thank you very much for voluntarily supporting this technically quiete nice device for which lenovo dropped support right after releasing it. (y) From Android 7 to 11 thanks to custom ROMs - that is amazing! 🥳 (And btw. the longest time custom ROM supported device I ever had.)

I just installed your current version with fingerprint support (coming from LOS 16), and the FP scanner works perfectly to unlock the device, though apps which normally offer to utilize the FP scanner to unlock them (password managers, magisk, etc...) claim that the device does not have any fingerprint hardware / support. May this have something to do with the Selinux state ?
 
  • Like
Reactions: Nuclear Blast

LumenReaper

Senior Member
Nov 26, 2018
102
166
Lenovo Thinkpad Tablet
Google Pixel 3
First of all: Thank you very much for voluntarily supporting this technically quiete nice device for which lenovo dropped support right after releasing it. (y) From Android 7 to 11 thanks to custom ROMs - that is amazing! 🥳 (And btw. the longest time custom ROM supported device I ever had.)
Your welcome. Let's see how many more versoins will be possible.
I just installed your current version with fingerprint support (coming from LOS 16), and the FP scanner works perfectly to unlock the device, though apps which normally offer to utilize the FP scanner to unlock them (password managers, magisk, etc...) claim that the device does not have any fingerprint hardware / support. May this have something to do with the Selinux state ?
I noticed that too, in fact that's why I wrote "Fingerprint bring up" in the changelog. I don't think it has anything to do with SELinux, especially because my test builds are already enforcing. Maybe a configuration is still missing somewhere or it has something to do with the keystore, but these are just speculations.
 

GRöder

Member
May 18, 2021
12
2
@LumenReaper
I noticed another weirdness (which seems to be rooted in the firmware / partition design of this tablet, not in your ROM). Whenever one of the root-apps I use tried to even read from the /system partition (e.g. MiXplorer's root-explorer feature), the system freezes completely and must be shut down forcefully.
I remembered that I had a similar problem when I flashed the Android 9 / LOS 16 ROM for the first time, looked at the thread and found the following:
[...]
Mounting system rw
This is impossible on our tablet. The bootloader enforces verity check, which causes this issue.
The only possibility is to modify bootloader, what is dangerous and requires good knowledge.
there is a workaround using magisk with a mod. which mounts your system rw on mount:
https://forum.xda-developers.com/showpost.php?p=79681018&postcount=259
[...]
I appearently used that magisk module successfully on LOS 16, as I never had any problem with system freezes again. I now tried use the same zip in Magisk to regain the abillity to access /system, but appearently it does not work anymore on LOS 18.1 since it still freezes when trying to access anything on /system after flashing the zip via magisk.
Do you have / has anyone else got access to /system on this ROM ?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 9
    New build is up

    2021-06-27

    • SELinux Enforcing
    • Support fingerprint authentication in apps
    • Build kernel with clang compiler
    • Adjust kernel (add Wireguard VPN, drop zcache and legacy filesystems, etc.)
    As communicated in the last release, build is available on GitHub. Those who have an account there can also be notified of new versions from GitHub by clicking on "Watch".

    Otherwise, we are close to the goal, from my side, only the GPS needs to be fixed. Someone who has the appropriate tablet would have to work on mobile data. Everything else should work, as far as I know or have been told.
    2
    @LumenReaper
    I noticed another weirdness (which seems to be rooted in the firmware / partition design of this tablet, not in your ROM). Whenever one of the root-apps I use tried to even read from the /system partition (e.g. MiXplorer's root-explorer feature), the system freezes completely and must be shut down forcefully.
    I remembered that I had a similar problem when I flashed the Android 9 / LOS 16 ROM for the first time, looked at the thread and found the following:

    I appearently used that magisk module successfully on LOS 16, as I never had any problem with system freezes again. I now tried use the same zip in Magisk to regain the abillity to access /system, but appearently it does not work anymore on LOS 18.1 since it still freezes when trying to access anything on /system after flashing the zip via magisk.
    Do you have / has anyone else got access to /system on this ROM ?
    Since I am neither the developer of the module nor have I ever used it myself, I would like to kindly point out that I do not offer support for third-party modifications.

    Nevertheless, it may help you with your research that the module you linked does nothing more than execute the following command:

    Code:
    mount -o rw,remount -t ext4 /system
    1
    Flashed from LOS 16.1 to this version 18.1.
    Started with a factory reset from TWRP which was on v 3.2.2.0. Flashed the new rom, some gapps that were linked a page back, and magisk.

    Seems mostly very good and stable. Couple of issues, formatted my 200 GB SD card as internal storage but it shows as a 256Gb card. Formatting as removable it shows correct size.

    question; should it pass safety net with magisk hide enabled? Cleared cache etc but play store shows as not certified end CTS fails. Working for anyone? Or suggestions to pass safety net check?

    Great work though, really great!
    1
    I upgraded to 2021.06.15 and have not had any spontanous reboot since.
    I have now upgraded to 2021.06.27.
    No more SELinux warning, and I can confirm that finger print sensor works.
    BUT: I cannot upgrade any apps throug the app-store.
    Every time I tries to update an app, I get the notification "Not enough storage space. Free up space.." I have several GB available on the internal memory as well as on the sdcard.
    If I try to install a new app, I get the possibility to remove another app. The selected app is removed, but I still cannot install a new app.
    1
    Problem is solved, I forgot the permissions - currently works fine, but I used the email.apk from 17.1 LOS from xiaomi A2 lite (8.2 MB) version 10. In Codeworks rom only 6.2MB, another version? I hope you can add version 11 of email.apk in a few weeks ... Many Thanks
    The email app was removed in LineageOS 18.1. This is nothing specific for this device but for LOS 18.1 in general. The advice from the LOS team AFAIK was to use another client, like e.g. K9 or FairEmail.
  • 13
    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.

    Your warranty is now void.

    I am 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 this ROM
    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.

    3rd PARTY ADDONS/MODS
    While we have no issues with people using supersu/magisk/xposed/custom kernels/etc, we can't provide support for users who have them installed.


    HOW TO INSTALL LINEAGEOS
    - Upgrade to latest available official firmware
    - Upgrade to latest available TWRP
    - Download the LineageOS zip(s). (see Downloads)
    - Copy the LineageOS zip to internal/external sdcard.
    - Unlock bootloader and install TWRP.
    - Boot into TWRP.
    - Perform a backup of your current ROM. (Optional)
    - RECOMMENDED: Do a factory reset! No support if you didn't!
    - Flash LineageOS.
    - Optional: Install the Google Apps addon package.
    - Reboot


    HOW TO UPDATE LINEAGEOS
    - Download the LineageOS zip(s). (see Downloads)
    - Copy the LineageOS zip to internal/external sdcard.
    - Flash LineageOS.
    - Update the Google Apps addon package if it is installed on your current LineageOS version.
    - Reboot

    WHAT WORKS:
    Wifi
    Bluetooth
    Audio
    Camera
    LED
    USB
    Encryption
    Hall sensor
    DT2W (disabled by default in settings)
    Fingerprint
    Selinux Enforcing

    BROKEN:
    GPS
    SIM card (help needed as I have the wifi-only-tablet)

    DOWNLOADS
    LineageOS 18.1: GitHub
    TWRP: XDA Thread

    DEVELOPER RESOURCES
    GitHub

    MANY THANKS TO THE CONTRIBUTORS
    @Coffeinflash
    9
    New build is up

    2021-06-27

    • SELinux Enforcing
    • Support fingerprint authentication in apps
    • Build kernel with clang compiler
    • Adjust kernel (add Wireguard VPN, drop zcache and legacy filesystems, etc.)
    As communicated in the last release, build is available on GitHub. Those who have an account there can also be notified of new versions from GitHub by clicking on "Watch".

    Otherwise, we are close to the goal, from my side, only the GPS needs to be fixed. Someone who has the appropriate tablet would have to work on mobile data. Everything else should work, as far as I know or have been told.
    7
    New build is up

    2021-06-15

    • Upstream changes (including June security patch)
    • Fingerprint sensor bring up
    • Rebase kernel on kuntao (Lenovo P2)

    Rebasing the kernel is associated with massive changes. On the one hand, there are bug fixes that prevent the kernel from crashing due to an exception in the WiFi driver. On the other hand, new problems can come along with it.

    The new version (and the old ones) can now be found exclusively on GitHub. The link is in the first post.
    4
    I had the 17.1 Version of LineageOS installed on my Tablet and I am glad that there are People like you to support these Devices in their leisure Time. Thank you so much for your effort.

    Soon I will test your 18.1 Version.

    These Firms like Lenovo treat us like idiots and dont offer updates. I will never buy a new Lenovo Tablet.
    4
    Unfortunately, I cannot get GPS to work. I have tried with GPSTEST, and it keeps notifying me, that "GPS/GNSS is deactivated. Activate now?". But location is activated.
    Can confirm the problem. I have already made some progress and got rid of the message in GPSTest, but the current location is still not displayed. I will probably have to look further.
    I've flashed the latest build of Lineage OS 18.1 and I'm satisfied with it.
    The ROM is now stable for daily use.
    I'm glad to hear that. With the next version, the rom will be even better, as the fingerprint scanner will then work. The hint from @Ecthelion4 was decisive, the same code also works on 18.1.