yashsingh1/xdaforums huggingface dataset:
[HTC Excalibur] Ryanmo5:
Cool thanks for the heads up on that! Sorry gix and rip for not giving you 2 a shout out. See you guys there for those of you getting the g1!!!
[HTC Excalibur] gospeed.racer:
Heck yeah, I already got the bunny up and running with brainwave protection so we can safely operate the G1!
[HTC Excalibur] stylez:
Lotza love being spread around here but no mention of me? :( Feeling rather left out even the clown got in there, you knowz who you iz :D
[Thinkpad Tablet Android Development] adazem009:
/*
I'm 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 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.
*/

LineageOS is a free, community built, aftermarket firmware distribution of Android 11 (R), 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's working :

Boot

RIL (Calls, SMS, Data)

Wi-Fi

Bluetooth

Camera

Camcorder

Video Playback

Audio

Sensors

LED

GPS/GNSS

Instructions :

Download the ROM and Magisk (Optional)

Wipe System, Data, Dalvik, Cache.

Flash the ROM, Magisk (Optional).

Reboot and Enjoy.

Download :

Sourceforge

Device sources: https://github.com/TB8504
[Thinkpad Tablet Android Development] adazem009:
Reserved.
[Thinkpad Tablet Android Development] rohityadav07009:
Bro I have installed this rom, thnks for ur work but it's lagging ... is it only happening with me or with everyone !! so i decided to give a try to ur crDroid rom , again u guys are doing gr8 work !!
[Thinkpad Tablet Android Development] adazem009:
It's happening to all of us (see the "Known issues" section above). Updating some vendor blobs should fix it, but I think I'll need some help with it.
[Thinkpad Tablet Android Development] adazem009:
Probably a week, but I don't know if I'll be able to find a fix.
[Thinkpad Tablet Android Development] jfbaudio:
Thanks for working on this tablet, looking forward to seeing what you can come up with. I have one of these and its sister (Tab 4 8+) and they've been reliable for me, but only because the dev community keeps them alive!
[Thinkpad Tablet Android Development] 96carboard:
So the main issue with this is a GPU lag, right? That being the case, I wonder how difficult it would be to switch to freedreno+mesa?

And come to think of it, the msm8917 (snapdragon 425) is basically the same as the msm8916 (snapdragon 410) found in the Dragonboard 410c, which is very well supported by upstream kernel and moderately by AOSP/Linaro. Probably wouldn't be too terrible of a job to get this thing running blob free on upstream code.
[Thinkpad Tablet Android Development] nAsir@Zia:
@adazem009 Can you port it for Lenevo TB-X304L
[Thinkpad Tablet Android Development] adazem009:
I can't test properly without actually having the device, but it's possible. And I'm already busy with a lot of devices.
[Thinkpad Tablet Android Development] Natuuu:
Hello is there any update about this rom? I was thinking of trying it but I have seen the lag problem and I use it to play. I'm using your Lineage 17.1 Rom and it works really good you are doing a incredible work!
[Thinkpad Tablet Android Development] adazem009:
1. Yes, a new build is coming in a few days. Unfortunately, the lag issue still isn't fixed.

2. I've tested some games and they're working fine. It probably depends on HW acceleration in games.

3. I didn't build LineageOS 17.1, that one is by @highwaystar_ru .
[Thinkpad Tablet Android Development] Natuuu:
Sry I meant Resurrection OS
[Thinkpad Tablet Android Development] adazem009:
Update

Download

September 2021 security patch

SELinux enforcing

Updated kernel from CAF tag LA.UM.8.6.c26
[Thinkpad Tablet Android Development] dinesh.kr.soni@gmail.com:
I tried on tbx-304L but not working 😔
[Thinkpad Tablet Android Development] Hausemaster:
This rom is meant only for the lenovo tb-8504x/f it obviously won't work on tb-x304
[Thinkpad Tablet Android Development] prozac:
Error Updater process endet with error 7:

Error installing Zipfile SDcard1/lineage...

...Updating partition details... and Load ... load...load... on TB-8504 F
[Thinkpad Tablet Android Development] adazem009:
Please send the full error message.
[Thinkpad Tablet Android Development] adazem009:
Update

Download

November 2021 security patch.
[Thinkpad Tablet Android Development] Spawacz_Reduktor:
Hi. GPU rendering issue fixed?
[Thinkpad Tablet Android Development] Hausemaster:
No, it's not fixed yet...
[Thinkpad Tablet Android Development] Spawacz_Reduktor:
Cool that you are building Android for such an old tablet :). Will android 12 be on it ???
[Thinkpad Tablet Android Development] Hausemaster:
@adazem009 Is the maintainer of this rom,full credits to him, I'm not the developer of this rom... And about android 12, well that depends, because a newer 4.19 kernel has to be ported, a12 can be run using 3.18 kernel, but it's way too much effort,and things will break like crazy, and, porting to 4.19 is a task in of itself, porting from 3.18.x to 3.18.y may be a bit simple, but from 3.18 to 4.19, it's a huge task, and is quite complex,so, it will be a while or never, it depends on the interest of the dev, but porting now isn't a good option,as, there are no stable custom roms based on a12, and I know that aosp is stable, but no one except a few prefer that...
[Thinkpad Tablet Android Development] Nick Chan_:
The ROM works but I have to patch the props check in the installer because my device identifies itself as tb_8504x instead of TB-8504X
[Thinkpad Tablet Android Development] adazem009:
That could be because of the TWRP build you're using. Try another one.
[Thinkpad Tablet Android Development] Hausemaster:
Try this twrp, credits to @highwaystar_ru

twrp-3.3.1-1-TB8504.img

drive.google.com

This is the best recovery for this device, as far as installs go...
[Thinkpad Tablet Android Development] Nick Chan_:
Thanks! That worked. However touchscreen only works after I sleep the device for 5 seconds and wake it up thereafter in TWRP.
[Thinkpad Tablet Android Development] Hausemaster:
Its a known issue, it takes some time after twrp for the touch driver to start, that's why it does that, apart from that, this recovery works fine...
[Thinkpad Tablet Android Development] adazem009:
I've never had touch issues in TWRP...
[Thinkpad Tablet Android Development] Hausemaster:
Mine is the 8MP variant, I have to let the screen sleep after i enter recovery mode for touch to start working, and it's been like that for a long time... Maybe the variant difference is the cause for it?
[Thinkpad Tablet Android Development] ZONTAC:
Your tab boot into recovery through power off + vol up combination or any combination??? , Because mine 8 mp variant can't boot into recovery through any combination😔😔 so i need pc everytime to😑😑 boot into recovery etc...
[Thinkpad Tablet Android Development] Hausemaster:
Yes, I can boot to recovery using key combinations, or, by rebooting to recovery from the rom itself... BTW, as soon as you see the splash screen, leave the power button and keep holding the volume up button until recovery shows up, if it doesn't and boots to os, done force reboot, let it start, then shutdown, then try recovery key combination again...
[Thinkpad Tablet Android Development] ZONTAC:
I have tried it more than 1000+ times but nothing happens tab normally booted into system.

Actually this tab was provided by an institute and they locked tab many functions but after

That i did hard reset through adb ,but from starting tab never booted into recovery through button combination also i have flashed firmwares from lenovo asistant and qfil but nothing changes even in custom roms tab can't able to boot into recovery through button combination 😓

Tab details:-screenshot(currently i am on stock rom due to bank apps)

Tab 8504x ,2gb ram,quelcomm425, 8 mp
[Thinkpad Tablet Android Development] Hausemaster:
I do not live in Delhi...

Also, just flash the stock rom using qfil only, that's more then enough, messing with device partitions is dangerous and there's also a slim chance that you might hard brick it...

But, I think that your school might have made some extremely low level changes to it, or might have paid Lenovo extra to remove direct boot to recovery mode...

For now, the temporary ways to enter recovery mode without adb are,

To reboot to recovery from magisk or from the power menu itsef...
[Thinkpad Tablet Android Development] Hausemaster:
I can't help much, since, i don't have the issue you mentioned, and my device boots into recovery with the key combos just fine, not sure why that happes to you...
[Thinkpad Tablet Android Development] ZONTAC:
i live in delhi and also tab given by school😅😅

According to you i just need to do repartition in qfil ,

Thanks bro i will try this one after few months.
[Thinkpad Tablet Android Development] Nick Chan_:
can KVM be enabled in the kernel or does the CPU not support virtualization?
[Thinkpad Tablet Android Development] ZONTAC:
I will do this after few months and i have backup of imei,mac, etc as i already faced blank imei corrupt mac address and i know how to repair My imei,mac etc through qualcomm tool(qfil and rebuilder) as i already did many many experiments on this tab(except wiping partition) .

Btw thanks.
[Thinkpad Tablet Android Development] Hausemaster:
I dont think this cpu can support virualization, even if it did, the performance would not be that great, and as of the enabling part, I'm not really sure...
[Thinkpad Tablet Android Development] VN Tinkerman:
Hello, I'm a newbie here, and I aslo suffer from the same symptom like you as a result of installing a custom rom on my TB-8504x(crDroid 6.24). However, I managed to QFIL this guy with its stock rom of Nougat(android 7) and can finally fix this problem. Anyway, I hope this can work on your device.
[Thinkpad Tablet Android Development] adazem009:
Update

Download

December 2021 security patch

... Merry Christmas :)
[Thinkpad Tablet Android Development] Herroos:
Thanks for supporting this device!

I'm considering moving to this from your crDroid ROM but wondering what this means:

GPU rendering lag

How does it affect everyday use?
[Thinkpad Tablet Android Development] Nick Chan_:
Frequent FPS drops, doesn't really affect the "actual" performance. Stuff still get done in a reasonable amount of time.
[Thinkpad Tablet Android Development] Nick Chan_:
(Unrelated to above) For some reason the device would occasionally black screen and requires a force reset, especially during extreme loads.
[Thinkpad Tablet Android Development] Hausemaster:
Im not sure why, it happens to me too, I wish I had my pc on hand, i could get logs, and the gallery go app causes this issue which is funny...

Edit: It happens for me mainly when I keep a photo open for a few minutes in the google gallery go app...
[Thinkpad Tablet Android Development] Herroos:
So would you still recommend this ROM instead of a more stable Android 10 ROM? As I said, running crDroid and it works great.
[Thinkpad Tablet Android Development] Hausemaster:
I wouldn't if you need snappy systemui feel...

EdIT: WheN you scroll down for quick settings it lags, android P and Q navigation lags...

But everything else is fine other than these...
[Thinkpad Tablet Android Development] Lê Hữu Huy:
Are you still developing this project? Can Tab4 8 update to Android 12? How can I donate to you to keep this project going? Thank you, hope to hear from you soon.
[Thinkpad Tablet Android Development] Pixel Experience Lover:
Yeah so, I would like to request pixel experience ROM for lenovo x304l/f/x. I own the device and can test the ROM if you want. You might be busy but if can make the rom, I would be grateful.
[Thinkpad Tablet Android Development] adazem009:
Yes, I'm still working on it. I'm still waiting for Android 12 CAF releases targeting to msm8937. After they''re there, it should be possible to build it using the device trees from Android 11 (with a few changes).
[Thinkpad Tablet Android Development] adazem009:
Update

Download

January 2022 security patch.
[Thinkpad Tablet Android Development] Pixel Experience Lover:
Bro can you make custom ROM for lenovo tab 4 10?. Please?
[Thinkpad Tablet Android Development] adazem009:
I don't have that device
[Thinkpad Tablet Android Development] Nick Chan_:
So I guess I just have to work with the gpu rendering lag and random blackscreens... (panic? but i don't have serial cable to further investigate) and /proc/last_kmsg is not a thing on this device.
[Thinkpad Tablet Android Development] Pixel Experience Lover:
I have the device, i can test it for you as well please bro make pixel experience plus rom.
[Thinkpad Tablet Android Development] Pixel Experience Lover:
I have the device, just make it I will test for you as well, pixel experience plus rom please.
[Thinkpad Tablet Android Development] adazem009:
I don't have time for that anyway and it''s really difficult to get a ROM working when I don't have the device.
[Thinkpad Tablet Android Development] adazem009:
Update

Download

February 2022 security patch
[Thinkpad Tablet Android Development] Hausemaster:
It's stable, and I'd also suggest you to remove "No VoLTE" from the known issues section since it doesn't make sense to get that working when the stock rom itself needs a magisk module to enable this feature...
[Thinkpad Tablet Android Development] Nick Chan_:
I would not say that it's really stable when I still get the random black screen bug where I have to force reboot... (Using March 2022 update)
[Thinkpad Tablet Android Development] Nick Chan_:
No
[Thinkpad Tablet Android Development] adazem009:
Update

Download

March 2022 security patch
[Thinkpad Tablet Android Development] adazem009:
Update

Download

April 2022 security patch.
[Thinkpad Tablet Android Development] /dev/encrypt:
Flashed the April build yesterday and besides the known GPU Lag issue, everything's working fine. I also got scrcpy working by just changing the encoder. It doesn't work with crDroid.

However, I noticed that MTP File Transfer doesn't work with Windows for some reason. It allows copying files "to" the device but not "from" it. It throws "Unspecified error". I don't know if this is Magisk at play.

Thanks for maintaining this ROM.
[Thinkpad Tablet Android Development] /dev/encrypt:
Alright. I flashed the stock firmware and re-flashed this ROM. MTP is working fine now.

Be advised if you care about SafetyNet. It fails on this ROM by default. Basic Integrity passes with the kdrag0n's SafetyNext Fix Magisk module. But to pass the CTS profile check, you need to change the ro.build.fingerprint and the ro.build.version.security_patch prop values with MagiskHidePropsConfig module.

PS: I also tested Resurrection Remix for the scrcpy bug and it does fail. This ROM seems to be the only one to not have the scrcpy bug.
[Thinkpad Tablet Android Development] adazem009:
Update

Download

May 2022 security patch
[Thinkpad Tablet Android Development] Hausemaster:
Thank you!
[Thinkpad Tablet Android Development] Phoebuscy:
Hello.

Could someone please clarify a bit more what the 'GPU rendering lag' is all about? It sounds as if this would make the device completely unusable, no?

Thanks.

P.
[Thinkpad Tablet Android Development] ZONTAC:
Lags during animations like when you pull down statusbar etc
[Thinkpad Tablet Android Development] Phoebuscy:
Thanks. So I assume that also affect things like gaming etc, right?
[Thinkpad Tablet Android Development] Hausemaster:
No it doesn't
[Thinkpad Tablet Android Development] Hausemaster:
Games run fine, things like android animations lag as android uses the GPU to render those...
[Thinkpad Tablet Android Development] deadman96385:
I reached out to @adazem009 but will also post it here in case someone stumbles on here in the future. To fix the animations lagging/stuttering. You need to disable the animation render cleanup in the device tree.

Device tree:

TB8504: Set TARGET_DISABLE_POSTRENDER_CLEANUP := true · deadman96385/android_device_lenovo_TB8504@024e3ca

To fix the bad UI lag we are experiencing. Change-Id: I3edb25f93c58b87431a1802726f31123200f75d3

github.com

Frameworks/Native patch

SurfaceFlinger: Don't cleanup resources from previous frame · LineageOS/android_frameworks_native@be8423f

Causes bad lag on some legacy devices. Change-Id: I89913d214c7377c73bd307696dbf9aac2f9a5c0a

github.com
[Thinkpad Tablet Android Development] adazem009:
Update

Download

June 2022 security patch

Fixed animation lags (thanks to @deadman96385)
[Thinkpad Tablet Android Development] Hausemaster:
Nice!
[Thinkpad Tablet Android Development] deadman96385:
Been working on getting TB-8504F support more in line with the X variant. In the future I will be releasing a TB-8504F specific build that way telephony related apps won't crash all the time and lower battery life. As well as removing broken/strange telephony leftovers where android doesn't properly hide then. It also will be a way to convert TB-8504X to be wifi only to save on power if you do not plan to use those LTE features at all. I've sent some more fixes over to @adazem009 as well.

Fixed the ION driver crash on early boot and randomly (May fix the random black screen we will see)

Remove LED flash permission (Now apps won't assume we have flash when we don't)

Sepolicy improvements (Mainly for TB-8504F but some others as well)

Lineage Recovery now boots and works properly (Needed a missing ramdisk script)

Vulkan support is now properly disabled (Our gpu does not support it)

I have also fixed the touchscreen issue that plagued TB-8504F users on the various twrp recoveries. I am working on getting TB-8504F/X and TB-X304F/X moved to being official with twrp so there will be auto-built recoveries soon.
[Thinkpad Tablet Android Development] ZONTAC:
Wow amazing

Wow thanks man for improvement but is there any fix for Volte(as from android 10 volte broken🙁)
[Thinkpad Tablet Android Development] deadman96385:
I only have the Wifi only variants so I can't easily help with anything LTE/Calling. But if you provide some logs I can maybe take a look at it. You will need to be rooted for this:

Factory reset the tablet

Bootup with an active sim card in the tablet

Quickly go through the setup wizard skipping everything

Turn on adb

Enter the following three commands:

adb root

adb logcat > ims-log.txt

adb shell dmesg > ims-dmesg.txt

Either upload those files or paste their contents into patebin/hastebin or other hosting.

If you don't have adb root, change the dmesg command to this: adb shell su -c dmesg > ims-dmesg.txt and accept the su request on magisk or whatever you use.
[Thinkpad Tablet Android Development] adazem009:
I can do that on my device too, I'll send you the logs today...
[Thinkpad Tablet Android Development] Hausemaster:
Major changes, this is the golden era of development for this device!
[Thinkpad Tablet Android Development] ZONTAC:
Dev. Almost all bugs are fixed(in android 11) so is there any hope for crdroid 7 because lineage 18.1 don't have much features. If possible pleassssssssssss build it.
[Thinkpad Tablet Android Development] adazem009:
Yes, I'm planning to build it this month.
[Thinkpad Tablet Android Development] ZONTAC:
Also , is it possible to add double tap wake up😅
[Thinkpad Tablet Android Development] adazem009:
It shouldn't be a problem if it works in stock ROM.
[Thinkpad Tablet Android Development] ZONTAC:
I think stock doesn't support it🙁
[Thinkpad Tablet Android Development] Hausemaster:
It doesn't as far as I know...
[Thinkpad Tablet Android Development] deadman96385:
Yeah neither of the touchscreens used on the tab 4 8" and the 10" for that matter have support for dt2w in their kernels.
[Thinkpad Tablet Android Development] K-BOX2022:
@adazem009 I have a huge request. Could you add support for Project Treble in your Custom Rom, I would really like to fire up Android 13.
[Thinkpad Tablet Android Development] adazem009:
This device does not support Project Treble, but it's possible to add support manually by editing the partition table structure (which I'm not going to do).

I don't expect this device to be even able to run Android 12 (read the note about legacy devices here).
[Thinkpad Tablet Android Development] K-BOX2022:
I have a huge request. Will you send me a tutorial or a link on how to modify the partition table structure to get GSI support. I will be very grateful.
[Thinkpad Tablet Android Development] adazem009:
This might help you: https://xdaforums.com/t/guide-q-a-treble-from-stock-to-treble-everything-you-need-to-know.3793734/

But make sure you know how to unbrick the device in case you do something bad.
[Thinkpad Tablet Android Development] nikkpap:
I want to thank you for the ROM and ask you for gapps and magisk please 🙏
[Thinkpad Tablet Android Development] adazem009:
@nikkpap

Open GApps: https://opengapps.org/

Magisk: https://magiskmanager.com/
[Thinkpad Tablet Android Development] nikkpap:
I tried the gapps 11 arm64 stock and magisk 25.1.zip and I had boot loops... Stuck in lineageos logo also I tried one by one and both... The same situation
[Thinkpad Tablet Android Development] adazem009:
I haven't actually ever tried Open GApps on Android 11, try Flame GApps instead.
[Thinkpad Tablet Android Development] nikkpap:
Can you send me your solution... Please because again I have boot loops even with flame gapps (latest for 11)
[Thinkpad Tablet Android Development] adazem009:
Have you tried it without Magisk?
[Thinkpad Tablet Android Development] nikkpap:
I found my mistake... I was flashing the ROM then boot it... The correct way is flash the ROM then flash the flame gapps then boot... Now I will risk again with magisk ;)
[Thinkpad Tablet Android Development] nikkpap:
Can someone help how to install magisk on LOS 18.1 please
[Thinkpad Tablet Android Development] adazem009:
Flash Magisk ZIP in TWRP.
[Thinkpad Tablet Android Development] nikkpap:
this way i get boot loop on latest LOS 18.1
[Thinkpad Tablet Android Development] adazem009:
Which Magisk version did you flash?
[Thinkpad Tablet Android Development] Hausemaster:
Just for information, the latest canary version works for me flawlessly on the newest build!
[Thinkpad Tablet Android Development] adazem009:
Update

Download

July 2022 security patch

Removed camera flash permission (these devices don't have camera flash)

SELinux denial fixes

Removed Vulkan support (the GPU does not support it).

Added ION driver updates from lineage Motorola msm8953 kernel lineage-18.1

Thanks to @deadman96385 for helping with the development.
[Thinkpad Tablet Android Development] BlackBird921:
having boot loop after update via twrp
[Thinkpad Tablet Android Development] adazem009:
1. Do you see the boot animation?

2. Did you have GApps or Magisk installed before the update?

3. Does the previous build boot if you downgrade?
[Thinkpad Tablet Android Development] ZONTAC:
Hey dev when we can expect for crdroid 7😅
[Thinkpad Tablet Android Development] BlackBird921:
boot animation shwoing.

Gapps and magisk was installed before update
[Thinkpad Tablet Android Development] BlackBird921:
after re-flashing gapps and magisk it booted just fine. thanks
[Thinkpad Tablet Android Development] nikkpap:
Can I dirty flash from June to July version?
[Thinkpad Tablet Android Development] adazem009:
Tomorrow.
[Thinkpad Tablet Android Development] adazem009:
https://xdaforums.com/t/rom-unofficial-11-0-tb8504f-x-crdroid-7-x-for-lenovo-tab4-8.4473173/