yashsingh1/xdaforums huggingface dataset:
[Thinkpad Tablet Android Development] drpdr:
Amazing ROM so far. Thank you very much for working on custom roms for our old tablet.

Has anyone experienced issues with the Dual Shock 4? It doesn't work at all. In the previous ROM (16) there was a known kernel issue which prevented the mapping from working. Now, it is connecting (even tried with an USB cable OTG) but only for charging. Weird. An old Afterglow X1 works like a charm, though---without even using 1Controller addon for Magisk.

Any help is appreciated.
[Thinkpad Tablet Android Development] genziutek:
On X304L working very well 👍 Great work
[Thinkpad Tablet Android Development] alexlist:
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...
[Thinkpad Tablet Android Development] badaboum33:
Hello

I have installed the 17.1 rom but I am stuck on the first boot at the LOS boot logo (6 hours..)

Any idea why?

I have a X304X (not very commom but very close to X304L or F)

Thanks
[Thinkpad Tablet Android Development] Rainberry:
Hey I have a request. So if you have got the twrp file of the Lenovo Tab 4 10 TB-X304L could you please share it as everything i found on the internet doesnt work..

Thanks and is the rom stable for the tab?
[Thinkpad Tablet Android Development] Rainberry:
Hey any chance you could send the screenshots of the Lineage 17.1 which you are using ?
[Thinkpad Tablet Android Development] Rainberry:
Hey it would be great if you could send a screenshot of how it looks .

Thanks mate!!
[Thinkpad Tablet Android Development] TNTS:
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.
[Thinkpad Tablet Android Development] NightCode7:
Sorry for the late reply...

Resources:

1. Lineage OS 17.1

2. Rescue and Smart Assistant for Stock Rom (Here only you will get the working Stock Rom)

3. Flame GApps for Google Framwork installation, etc

4. TWRP

5. Magisk

6. QPST for Stock Rom Installation (to get the filehorse download and extract Stock Rom)

In case of device is bricked use QPST to flash Stock Rom...

All the best :)
[Thinkpad Tablet Android Development] NightCode7:
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
[Thinkpad Tablet Android Development] tek3195:
I need to roll back to get developers options again. It's been like 2 yrs since I had this tablet unlocked. Now I can't remember how we did it. Is there a patched stock rom with dev ops ? Or another way to enable developer options ? I have the x304f. Locked and running 8.1.0 with a March 5 2019 security patch.
[Thinkpad Tablet Android Development] NightCode7:
Open Settings.

Tap About tablet.

Seven taps on Build number until “You are now a developer” or “No need, you are already a developer” pops out.

Tap Developer options on Settings interface.
[Thinkpad Tablet Android Development] tek3195:
My tablet has developer options grayed out. Has to be rolled back to something but I can't remember what it is.
[Thinkpad Tablet Android Development] tek3195:
I found it, unfortunately have to use hex editor to unlock.https://xdaforums.com/t/guide-unloc...x304f-l-and-other-qcom-tablets.4201857/page-2
[Thinkpad Tablet Android Development] Geko4501:
This is proving to be a great ROM for this older tablet. The jump from Android 8 (stock) to 10 really brought this thing back to life. I have experienced a couple of random lockups, but overall it's very smooth and usable.

One thing I did notice is that certain apps are not available in the Play Store (like Netflix and Hulu). I can side-load the latest versions and (by following the instructions given by @NightCode7) I can pass SafetyNet checks and the apps load, run, and play normally.

But what's preventing them from being accessible in the Play Store? I have Play Services checked in MagiskHide and I selected a valid fingerprint with MagiskHide Props. That really ought to have been enough to make most apps available in the store and yet still many aren't there. They won't even show in Play Store search results.

Any ideas?
[Thinkpad Tablet Android Development] tek3195:
@Geko4501 try installing Aurora Store. Netflix and others that don't show in Play Store should be there. Haven't tried with this ROM but works on four other devices I have with LOS. If installed from Aurora you will be able to get app updates where sideloads generally don't update. The apps on Aurora are coming straight from google servers.
[Thinkpad Tablet Android Development] NightCode7:
Sure....Here it is
[Thinkpad Tablet Android Development] NightCode7:
Please name some apps that aren't there even after successfully bypassing SafetyNet checks so that I can also check...
[Thinkpad Tablet Android Development] Geko4501:
Netflix and Hulu were the obvious ones I first noticed. They won't even list as available in the Play Store. They don't show up when you search for them. Though, I side-loaded them and they work just fine. Also, Android Auto shows up, but is uninstallable (that one is somewhat understandable on a tablet).

99% of my app library that I would expect to be installable on this device is, so this is a fairly minor point, but curious none the less. I would have thought that with SafetyNet working (confirmed in Magisk) and the fingerprint applied that it would have seen these. Must be something else in the props it's triggering on.
[Thinkpad Tablet Android Development] NightCode7:
But in mine Netflix, Disney+ Hotstar, Amazon Prime Video, etc is showing in Play store as u can see in the attached screenshot and hulu is not available in my Region.

In Magisk Manager settings Hide Magisk Manager(name it manager or something else) and reboot.

After following the steps to bypass SafetyNet just simply Clear Play Store Data and Google Play Services Data and reboot once again. This will definitely work..

PS: You can also check if the safety net is successfully passed from the app SafetyNet Test from Play Store after applying Magisk props from Termux. Don't check from Magisk Manager as most of the times it shows wrong results. And after all this also check in Play Store that the Device is Certified or not as it should show that device is certified.
[Thinkpad Tablet Android Development] Rainberry:
Thanks mate! My TB-X304L OEM Unlocking has been greyed out.. and idk how to use the hex editor.. So can i try to relock the bootloader and check if the grey disappears? Would it be a good idea to try it out?

Thank You!
[Thinkpad Tablet Android Development] Rainberry:
Just out of curiosity, would this tab have any chance of getting LOS 18.1 update?
[Thinkpad Tablet Android Development] NightCode7:
Don't know...also asked this question to the developer in telegram group, he said "Stay Tuned"......... I am also waiting for the same
[Thinkpad Tablet Android Development] NightCode7:
Did you unlock the bootloader already and after that are you getting this issue??...then it is the way it is....after unlocking the bootloader that option greys out.... it's not an an issue. you can proceed to install custom rom
[Thinkpad Tablet Android Development] Rainberry:
So my device state in fastboot says its unlocked but when i see the options in developer settings it says bootloader is already unlocked and the option is greyed and seems to show its turned off. So shall i proceed to install the LOS 17.1??

Yes this only happened after i had unlocked the bootloader and i havent installed twrp yet so can i do it now? Am confused.

Thanks for your time mate!View attachment 5351057
[Thinkpad Tablet Android Development] NightCode7:
Yes, you can install the twrp, custom rom, etc now

The "OEM Unlocking" option is designed like that if you unlock the bootloader then it will grey out simply because there is no use of that button anymore.
[Thinkpad Tablet Android Development] Maheswar Sahoo:
Can you give the link of the Respective Telegram Group
[Thinkpad Tablet Android Development] NightCode7:
LOS Builds(Unofficial) [Lenovo Tablets]

LOS Builds(Unofficial) [Lenovo Tablets]

You can view and join @LenovoTabletsLOS right away.

t.me
[Thinkpad Tablet Android Development] Maheswar Sahoo:
Thanks✌️
[Thinkpad Tablet Android Development] Rainberry:
Mate if my device gets bricked how do i install the original rom. ? Most of the people have said that it does not work. Have ya tried it when you had maybe bricked your device?
[Thinkpad Tablet Android Development] NightCode7:
yes bricked it many times but you can find the stock rom in Lenovo Rescue and smart assistant to fix your device. From there select your device model and download the rom and flash it through QFIL Tool.
[Thinkpad Tablet Android Development] ruiadrmartins:
Just found this thread out of curiosity, and decided to try it out on my Tab 4 10 (tbx304f). And holy **** did this give a new life to the tablet. I used to only use it for watching video or reading with the stock Android 8 ROM. Using the browser was a pain. But now everything is much smoother and not a pain to use at all. It's like I bought a brand new tablet.

The only (possible) issue I found so far is when using a magnetic cover case. The screen wakes up when I open it, but doesn't shut down when I close it.
[Thinkpad Tablet Android Development] hk96:
Working fine here
[Thinkpad Tablet Android Development] ChumaHG:
Sorry for the inconvenience, but could you tell me which version of TWRP and ROM you used them .. ??

I have the same X304F tab and I want to optimize it for my son and his school assignments.

Beforehand thank you very much.
[Thinkpad Tablet Android Development] ruiadrmartins:
Sure. I used TWRP 3.4.0 that is on the OP. -> TWRP 3.4.0

And used this ROM from the OP as well -> ROM

I had the same issue as this guy, but following his steps, I managed to do it.
[Thinkpad Tablet Android Development] ChumaHG:
all excellent, I was able to install the rom just a doubt, I take care of the 6.89gb system, 43% of the total storage .. is it right or did I do something wrong? greetings and thanks for your valuable information
[Thinkpad Tablet Android Development] Rainberry:
is your problem solved?

First boot always takes time so be patient...wait for like 20 to 30mins...
[Thinkpad Tablet Android Development] Mysteriouslog6:
No , I waited for 1.5 hours and it still just kept booting , I reflashed stock rom using Smart Assistant but it wouldnt even boot back to stock rom just show the logo and then restart to 900E.

Edit: I reflashed and this time it will boot but after about 30seconds it will lockup and just crash.
[Thinkpad Tablet Android Development] Rainberry:
what do you mean by lockup... for now just try to reflash the stock rom and then again install the twrp which was 3.2.3 or 3.4 and then yes you even need to have magisk...idk why but most ppl said they had issues when they did not install magisk with the rom.. so install rom magisk and then gapps if you want...and try...if it doesnt work.. you can tell us

and join this group for help

LOS Builds(Unofficial) [Lenovo Tablets]

You can view and join @LenovoTabletsLOS right away.

t.me
[Thinkpad Tablet Android Development] Mysteriouslog6:
Magisk? I didn't try magisk , will try! Did you have issues mounting persist in twrp? If not can you send a backup of your persist from twrp?
[Thinkpad Tablet Android Development] Mysteriouslog6:
@highwaystar_ru Can you please send a dmesg of the rom after boot (Reboot to recovery and then dmesg) mine seems to have a few errors and I wanted to know if they are common or not.

My dmesg is here
[Thinkpad Tablet Android Development] ravenchaser210:
my oem unlock switch is greyed out in developer mode, anybody else having same issue? Googling said there's a "waiting period", is there any truth with that?
[Thinkpad Tablet Android Development] Rainberry:
what does your device state say in fastboot mode? if it says unlocked proceed with the installation of twrp and custom rom.
[Thinkpad Tablet Android Development] ravenchaser210:
it's locked..., btw I am on tb-x304f, android 8.1, any kind of assistance would be great.
[Thinkpad Tablet Android Development] Rainberry:
well then hold up i hava a solution for ya...do this and you will get it..

https://xdaforums.com/t/guide-unloc...and-other-qcom-tablets.4201857/#post-84102591
[Thinkpad Tablet Android Development] ravenchaser210:
thx, just tried that and it work on my tb-x304F, but now rom doesn't, stuck at loading screen... Gonna try 16 later and see...

edit: 16 doesn't work here from here, https://xdaforums.com/t/rom-unofficial-9-0-tbx304f-l-x-lineageos-16-0-for-lenovo-tab4-10.4199623/

the log said it's targeted for L version, so after flashing, it said OS not found for 304F version.

even this 17.1 version said it's for X304L, guessing that's why it stuck at loading screen.
[Thinkpad Tablet Android Development] Rainberry:
Well yeah this rom only for tb x304l but there are roms for tb x304f too you can check them out.
[Thinkpad Tablet Android Development] ravenchaser210:
There is? I searched through pretty much all the threads, all labeled as f/l/x, can't seem to find one that works yet Now I am stucking with a tablet with twrp recovery and no working rom to use. Going back to stock, seems wayyy more work...

edit: Holy, I can't believe this actually works in the end... what a ride.

So, affterrrr going back to the stock rom, version 7.1.1 from another thread, the OEM unlock button actually NOT grey out anymore. (Guessing the 8.1 actually greyed out your oem unlock button). Unlocking the bootloader is only matter of a single command > fastboot oem unlock-go.

So I was like might as well give this v17.1 another try, flash twrp 3.4.0-120408 (updated version I think, latest one I can find) > wipe, reboot recovery > flash rom > reboot > and it works!! Not stucking at the loading screen anymore, yay!!!? Then, bluetooth is crashing as soon as I get the past the loading screen. Finally went back to v16, and everything works so far....and flash the 17 again after 16, and bluetooth issue is fixed, everything works nicely!
[Thinkpad Tablet Android Development] nAsir@Zia:
Thread '[GUIDE] Unlock bootloader of Lenovo Tab 4 10 with OEM unlock "greyed out" (TB-X304F/L and other Qcom tablets)' https://xdaforums.com/t/guide-unloc...ut-tb-x304f-l-and-other-qcom-tablets.4201857/

It worked for me!
[Thinkpad Tablet Android Development] dieselmech_pt:
Hi all, I'm having trouble flashing my tb-x304l with either the 16 or 17 OS linage file.

I can unlock the bootloader and go through the install procedure as detailed in this thread, but when the tablet reboots all I get is a unhappy smile with a circle moving from one side to the other. My tablet is running Android 8, I've tried downgrading to 7, but that fails to boot and just keeps rebooting to the orange Lenovo screen. I've even tried to install Twrp onto the tablet, but that makes the tablet freeze when trying to recover the stock Rom. I usually have to load the stock rom with QFIL because the lenovo software won't recover the tablet, Just complains about the wrong firmware installed. Any help would be greatly appreciated.
[Thinkpad Tablet Android Development] CaliTexan5:
Good evening, all! I currently have the Lenovo TB-X505F and the Lenovo TB-8504F. Can this ROM be installed on either tablet? If not, does anyone know of any custom ROMS for these 2 tablets? I've had them for about a year now and haven't really been able to find much for them. Thanks!
[Thinkpad Tablet Android Development] Geko4501:
Flashed this ROM and it's working great! But I noticed there was no FM Radio app after the upgrade. Has anyone gotten the radio to work? Do I need to sideload the APK? And if so, does anyone have it handy for download?
[Thinkpad Tablet Android Development] tek3195:
Do we need to wipe system and cache or are we supposed to dirty flash this rom over stock system ? The OP makes no mention of it that I've been able to find.
[Thinkpad Tablet Android Development] Y@SSh:
Can you plz tell how did you flashed the 7.1.1 stock rom. It will be a huge help for me.
[Thinkpad Tablet Android Development] tek3195:
qdl is what I had to use for my x304f. For these tablets you have to use emmc for file system in command instead of ufs. I couldn't get QFIL to work as it would lose my device half way through flashing. It would say device was no longer on port COM?? but device manager still showed it the same.

Try it, qdl is really easy to set up and use if you go by the linked guide.
[Thinkpad Tablet Android Development] ravenchaser210:
You have to boot into EDL mode for that to work, do some googling just incase, so that you don't make a mistake and brick your device.
[Thinkpad Tablet Android Development] tek3195:
vol- and vol+ while connecting to PC provided the device is powered off, or while connected hold pwr, vol- vol+ so it will power cycle then connect. Run

lsusb

to check for qualcomm 9008 mode, if it boots into 9008 mode you're good to go.
[Thinkpad Tablet Android Development] koop1955:
First off, I'd like to thank @highwaystar_ru for the excellent work. The ROM is smooth as butter.

I am assuming that everyone uses Magisk for root these days. If you do and you get a SafetyNet failure, one solution is to use MagiskHide Props. Here's the tutorial: https://xdaforums.com/t/module-magiskhide-props-config-safetynet-prop-edits-and-more-v6-1-2.3789228/
[Thinkpad Tablet Android Development] UpgradeToOS:
Hey! I know i am writing this a bit late but can you update the os version to 18?
[Thinkpad Tablet Android Development] c.j.fournier:
Probably silly to ask, but the title has me second guessing: Could this ROM apply to original thinkpad, that was based on the Tegra?

I see someone built a marshmallow-based load for the asus tf101, so it doesn't seem a stretch anymore...
[Thinkpad Tablet Android Development] TECHKESAV:
can anyone share qcn file for x304L tablet i lost imei baseband please help me out
[Thinkpad Tablet Android Development] djdancer94:
I am stuck at the boot animation of lineage os. I tried to flash the os multiple times but it won't works for me.
[Thinkpad Tablet Android Development] djdancer94:
Finally now it working but WI-FI not working. I turn it on but instantly shuting down.

Sorry for double post. I can't delete my previous post.
[Thinkpad Tablet Android Development] aru982:
Please help

Stuck in boot loop

I successfully flashed the zip using TWRP but unfortunately its not moving further from the boot logo.
[Thinkpad Tablet Android Development] aru982:
how

how did you do it please help
[Thinkpad Tablet Android Development] tek3195:
Try flashing this one. It was the only one I could get to boot at one point.
[Thinkpad Tablet Android Development] s16835:
My tab is stuck at the lineage boot logo for nearing 2hrs now pls help
[Thinkpad Tablet Android Development] Antory:
i have same modal tab but it is lenovo tab 4 1 should i install this rom?
[Thinkpad Tablet Android Development] deadman96385:
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.
[Thinkpad Tablet Android Development] themightydeity:
Anyone else who is stuck in lineage boot loop, switch to different recovery. The one that worked for me was Orange-Fox, I tried PitchBlack also but that didn't work either.
[Thinkpad Tablet Android Development] tek3195:
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.
[Thinkpad Tablet Android Development] deadman96385:
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.
[Thinkpad Tablet Android Development] tek3195:
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.
[Thinkpad Tablet Android Development] deadman96385:
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.

TBX304F: Remove telephony support · lenovo-msm8917/android_device_lenovo_TBX304F@863c91e

Contribute to lenovo-msm8917/android_device_lenovo_TBX304F development by creating an account on GitHub.

github.com

tb-common: Remove telephony support · lenovo-msm8917/android_device_lenovo_msm8937-common@2f87949

Contribute to lenovo-msm8917/android_device_lenovo_msm8937-common development by creating an account on GitHub.

github.com
[Thinkpad Tablet Android Development] deadman96385:
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.

https://xdaforums.com/t/rom-unoffic...ageos-17-1-for-lenovo-tab4-8-10-wifi.4466879/
[Thinkpad Tablet Android Development] Thoiareg:
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.
[Thinkpad Tablet Android Development] ibyz:
You are my HERO!! I was stuck at the exact same spot and your instruction completely saved me. Thank you!!
[Thinkpad Tablet Android Development] Y@SSh:
Hi there, can you pls mention the thread u used to get back to Android 7.1.1 cuz I can't find the thread
[Thinkpad Tablet Android Development] ganesh_software_crasher:
Its given above