yashsingh1/xdaforums huggingface dataset:
[Shield Tablet Android Development] Scavenger87:
Yes you have to wipe the device first in TWRP to install this rom.

Maybe a little general guide for everyone here who want to try this build in this early state and help tracking bugs :)

For an clean Installation its important to wipe the device first with TWRP like shown on the first Screenshot.

After this go to Advanced and choose everything choosen on the second Screenshot.

Now you shutdown the Tablet and insert the SD Card or plug in the cable for sideloading.

After turning on the Tablet and choose Recovery Mode again, first install the Rom of course then choose Wipe cache/dalvik.

Now you have to install Gapps if you want to use it. Its recommend to use only the Pico Package.

Wipe cache/dalvik again and restart the device.

If you use Sideload it might says in the Shutdown Menu :

No OS installed !

Which is a bug in my opinion of the new TWRP 3.5-9.0 Package but please use this Version of TWRP in any case that the basement of the installation is everywhere the same !

This is IMHO the way to install a Rom in a clean way and helps tracking down bugs better when everyone used the same methodes.

@john_matrix

I installed the Rom today on a K1 16GB with the methode i described above and did it with my regular SDCard i use in all my Tablets. In comparsion to installing over sideload it didnt get the No OS installed! message at TWRP and i didnt had that 1 minute freeze at begin of the install-wizzard after the LOS Logo.

Also the Rom seems to be same stable as the one on the 32GB model.

But i have to test it a bit more side by side to make valid statements

Also Nvidia Games working nice as you can see on the Screenshots :)
[Shield Tablet Android Development] Jackill:
Hi guys, so, long story short i got scammed on a dutch advertising portal and ended up with one of them shield tablets which were recalled a few years ago. Yep, those with the defective battery that may burst in flame one day :)

Anyways, i figured that since it hasnt happened until now, i might just be lucky and give it a shot.

Its great to see that there is still some active development of this device! flashed this rom and i gotta say im positively surprised. Its running nice and smooth and even though it crashed on me a few times after the first boot, but a few reboots later and its running like a charm! i didnt bother with gapps, root or anything yet though. really great job devs!
[Shield Tablet Android Development] airtower:
My tablet was completely wiped with no OS so I just pushed the ROM, pico gapps, and magisk over USB onto internal storage with MTP/TWRP. Flashed it all from there and it worked fine. No issues or errors. I don't think it's at all necessary to sideload to use an external SD.
[Shield Tablet Android Development] Scavenger87:
In this Thread beginning from here i share my informations so far about the two type of batteries and changing them out if you interested:

https://xdaforums.com/t/finding-replacement-battery-in-2017.3653760/post-83639687

I did these two type installation because @john_matrix mentioned to use a SD Card which is formated with FAT32 instead of exFAT. I didnt had one lying around so i used sideload this time.
[Shield Tablet Android Development] john_matrix:
Thank you everyone and Scavenger87 for your feedback! ;-)

About stability, I guess the culprit is the fact I have played with the new userspace LMK but for me it's not stable enough to be used as daily.

For example, Youtube often continue to play videos greeny and blocky and this is annoying :(

I will try to fine tune the best settings for LMK.

About battery, I have changed mine too with this one:

https://fr.aliexpress.com/item/32807531204.html

It works good but require to use the board of the original battery.
[Shield Tablet Android Development] mattsslug:
Seems to be going well so far for me, battery life seems good and for the general use I have had time to do it's worked well.

One crash that caused a reboot, after testing the hdmi output the tablet rebooted when I unplugged the hdmi cable from the tablet.
[Shield Tablet Android Development] Scavenger87:
Ok that means there is still some kind of memory leak problem with our tablets or is the memory managment on android 9 and higher not really suited for our low ram devices ?

I also read something about drawbacks with the in-kernel LMK as you can see here :

Drawbacks of in-kernel LMK driver

Android deprecates the LMK driver due to a number of issues, including:

Low-RAM devices had to be tuned aggressively, and even then would perform poorly on workloads with large file-backed active pagecache. The poor performance resulted in thrashing and no kills.

The LMK kernel driver relied on free-memory limits, with no scaling based on the memory pressure.

Because of the rigidity of the design, partners often customized the driver so that it would work on their devices.

The LMK driver hooked into the slab shrinker API, which wasn't designed for heavy operations such as searching for targets and killing them, which slowed down the vmscan process.

Is the zRam function now activated by standart on Android 9 and higher to compress amount memory is needed ?

I try to stresstest it today with a website that have a lot pictures sadly i cant use instagram anymore because you need a account now 😅
[Shield Tablet Android Development] john_matrix:
Shield Tablet can't be considered as a "low ram device" as Google defined them with up to 512MB (Android Go?)

Android performance optimization | Android Open Source Project

source.android.com

I also have devices with 2GB that are currently performing Lineage 17.1 very well (Sony Z3C and Nexus 4)

I don't know if zRAM is activated by default in Android but you still have the choice to activate it or no (in the kernel or in the fstab.

Additionnally, I don't know what is the policy to activate zRAM (my Mi9 have 6GB RAM and have zRAM activated by Xiaomi so...)

Another thing about zRAM is there are lot and lot of options you can activate such as compression, lz4, clear caching, etc... depending of your needs and I am not skilled enough to say exactly what will be the consequences of these options (but it cost nothing to try).

You also have to keep in mind that zRAM will consume more CPU times (as KSM).

Similarly, you can fine tune the CPU governor and IO scheduling (often I see CFQ by default but on the other way I have saw that Noop and Deadline gives best results).

Feel free to share your experience and if you have other ideas on what you would like to integrate in this ROM (as the best possible).

You are right to stress test the OS, you can also debug the memory and the weight attributed on the processes.
[Shield Tablet Android Development] Scavenger87:
Ok but 2GB is really not much these day also this article from android source is really old i think i read there something about kitkat or so 😁

But your right i also was suprised to see that my xperia z3 compact i have lying around is able to run lineageos 17.1 and even is supported by the LOS Team :LOL:

Which leads me to the question is the memory managment on the Qualcomm SOC so much better ? Ok the Ram there is on the SOC itself instead of external like on our Tegra based devices.

I think i install tonight Triodexes 15.1 with zram to compare the effect it has.

I also noticed the hw acceleration crashes the most on the firefox browser like i told in the 15.1 Thread you can start one video and it runs if you leave everything untouched but your not able to start a second one even with autoplay.

Btw about the LMK i know its maybe a dumb question but did you try the original settings from the Oem Rom ?

Edit : The original values in minfree are: 18432,23040,27648,32256,36864,46080

And zRam is already activated on the LOS 16.0 Build with 511MB same like the oem rom :)
[Shield Tablet Android Development] Trevor_g:
Thanks SO much for looking into this for me! You mentioned later that the controller wasn't recognized by the tablet, however I'm also curious if the Accessories app from the ShieldTV might help. Thanks again, in advance!
[Shield Tablet Android Development] Steel01:
Fwiw, there's a bunch of framework patches needed for the wifi direct controller to work. I've yet to get them all straight. Haven't had that working since cm-12.1. See the incomplete set for 16.0 here:

https://review.lineageos.org/q/topic:shield-blake-p

That's on top of:

https://review.lineageos.org/q/topic:nvidia-shieldtech-p

And there's no nvidia pairing app that works with a touch interface. It's a mess atm. I did get blake to pair to foster on 15.1, but only while the pairing wizard was open. As soon as I hit back to close it, the autonomous group goes down and the connection is lost. And now, it's close to impossible since nvidia didn't release the nvwifi prebuilt jar to link against. And the one from O doesn't work on P.
[Shield Tablet Android Development] Scavenger87:
Hi @Steel01

Thank you for keeping us updated on your work with the controller and also for your work for this device in general :)(y)

I already tought its not easy to bring wifi support back for the old controller but i think also there is no high priority since the second gen is working fine over bluetooth and they already cheap to buy used.

Other than this the rom is suprisingly good running for this early stage and most of the stuff is working 😊

Is there something that needs special attention for testing at the moment to help you developing ?

Like i mentioned in a other Thread i have every generation of the Shield Tablet and Controller. Only on my LTE Modell the SIM Card Reader is unfixable broken 😅

But i still hunting for a fully working device.
[Shield Tablet Android Development] danielandross:
Before I flash this Rom: Why do I habe to wipe internal storage?
[Shield Tablet Android Development] Scavenger87:
Well i dont know if its really needed to wipe the internal storage but i think by the reason we testing here a new Rom in a really early stage we should give it the cleanest basement as possible to exclude problems that might caused by left over data that interference with the Rom ;)
[Shield Tablet Android Development] danielandross:
I flashed the rom today. It works great!

Gamepass streaming is working great. (did not at lineage15)

Dualshock Bluetooth works better than on 14.

From start a few hickups when opening "Settings" Application. But worked better after a few reboots. Will report any bugs I encounter.

Thank you for your work!
[Shield Tablet Android Development] Sapeur90:
Hi,

Thanks a lot for the great work!

I clean flashed this rom few days ago + formatted the SD in FAT32. Here is my feedback:

- Compared to LOS 14.1 I had before (14.1-20191023), the battery consumes much faster.

- Some apps are crashing at the first run, but runs fine afterwise.

- Brawl stars & Clash Royale shows many graphical glitches.

Other that that, it is all good!
[Shield Tablet Android Development] Trevor_g:
Hard to argue with that logic! I just happen to have 3 WiFi controllers kicking around, but most people probably don't. :)

One final controller-related question. When using the newest Shield controller (over bluetooth), will the headphone jack work on it?
[Shield Tablet Android Development] Scavenger87:
Dont get me wrong i also would like to see the old controller working wireless again but i think it wasnt the smartest move from nvidia to go with wifi instead of bluetooth 😅

Like Steel said its super hard to make it running again because of the lack of the app and i'm also wondering what wifi-protocol they used because you cant see the controller over wifi in general.

But i also like the controller especially the trackpad that you can use as a mouse :)

To your second question the headphone jack does work just fine on the new controller with LOS 16.0 and 15.1
[Shield Tablet Android Development] Steel01:
Old info dump about the controller stuff (and a few other things):

https://xdaforums.com/t/shield-apps-for-cyanogenmod-12.3070116/post-59831597

The wifi direct controllers are actually using several open protocols. Like the name indicates, they use wifi direct to pair, it's wps push button stuff. The controller itself is usb internally, then the ozwpan driver is used to forward that over wifi. I've had the controller paired wirelessly to a desktop before (then some hid changes broke ozwpan entirely...). The issue is that Android supports virtually none of these. So the frameworks have to be modified in several places to make stuff play.
[Shield Tablet Android Development] john_matrix:
New build has been uploaded
[Shield Tablet Android Development] Sapeur90:
Thanks a lot John_matrix for the new build.

Would you lke to share the updates you made so we can give a more focused feedback?

So far, I don't see a big difference versus the build of Jan 4th.
[Shield Tablet Android Development] Scavenger87:
The new build is much more stable now i would say it has about 1/3 of the crashes and omx glitches compared to the older build very good job ! :cool:(y)

I also started to stresstest it a bit with running youtube in chrome and in the app side by side and it starts glitching but they go away fast now even without killing the app. Only firefox is still refusing to play videos more than once but to be honest it also could be firefox's fault because its in general more problematic with playing videos on websites on all roms 😅
[Shield Tablet Android Development] Scavenger87:
Thanks @Steel01 for the detailed informations how that stuff works. I'm not really expirienced when it comes to programming but for me it sounds like its really hard to get this working again because its not just the app thats missing also the drivers.

Is reverse engineering of the android tv version of the app a option to may add touchscreen support and to find out what also needed ?
[Shield Tablet Android Development] maxroddupuy:
Hi! I need help :|

I was coming from LineageOS 14, from TWRP I did the dalvik and cache wipe, then the factory restart wipe. After this, I installed the latest realease of v16 and didn't see any error on the screen and proceed with the gapps installation. After this, I get stuck on the lineageos loading animation. It loads for a while and then restarts to TWRP. Did some more wipings, but still the same.

Any suggestion?

Thanks in advance for your help!
[Shield Tablet Android Development] john_matrix:
Try with wiping Cache, Dalvik cache, System and Data (rm -rf in TWRP should be sufficient as format will take ages)

Afterthat reboot in TWRP and try to reinstall the ROM with the GApps
[Shield Tablet Android Development] john_matrix:
New build uploaded:

lineage-16.0-20210116-UNOFFICIAL-shieldtablet.zip

PLATFORM_SECURITY_PATCH := 2021-01-05

https://review.lineageos.org/c/LineageOS/android_build/+/300853/

Applied patches:

https://review.lineageos.org/q/topic:nvidia-enhancements-p+status:open

https://review.lineageos.org/c/LineageOS/android_hardware_interfaces/+/265297

https://review.lineageos.org/c/LineageOS/android_bionic/+/268655

Selinux:

Permissive

ROM is signed with private keys.
[Shield Tablet Android Development] Sapeur90:
Many thanks John_matrix.

So far, didn't see too much difference vs previous build: graphical glitches in Brawl stars & Clash Royale and green screens in Youtube.

Thanks for the security & other patches.
[Shield Tablet Android Development] dzello:
Installed the last build, but not the first. Rendered the tablet unusable. Anything was sluggish and after a few minutes of usage, Webview stopped working altogether, in all apps.
[Shield Tablet Android Development] Sapeur90:
If you come from a different ROM, make sure you do a clean install (backup your data and Factory reset in TWRP before flashing).
[Shield Tablet Android Development] Scavenger87:
Hi John thanks again for the updated build :)(y)

About the stability its about the same as the last one i would say. Still some green screens and random app crashes at start. I tried to catch the errors with logcat but after something crashed which seems to me its something framework related ADB wasnt working also 😅

But after everything setteled a bit i was able to use the debug bridge again and i was able to record this error which was trowing the error codes i put in the zip file over and over again.

I also noticed the gain in stability came with deactivated vulcan because those benchmarks arent available anymore in 3DMark.

I try to catch some more errors but at the moment i'm also busy with testing different replacement batteries ☺
[Shield Tablet Android Development] dzello:
I install Android on rooted devices for at least 10 years. I wipe and reformat the filesystems every time.

The only thing that could pose a problem is my local DNS. Hostname serving ads are resolved to 0.0.0.0 but it didn't cause any problem with Lineage 15.1.
[Shield Tablet Android Development] maxroddupuy:
Thanks for the fast response! I was not lucky with your suggestion, and also tried the latest build with no luck. I ended up installing lineage 15 and that one is working.

Will keep an eye here for another build to see if I can get it working.

Many thanks!
[Shield Tablet Android Development] pfout:
hmm i have an issue logging into the tablet with the 20210116 build. Tablet boots and starts fine but wont connect to servers to complete setup.

this is on a clean install coming from lineage 14

edit : i think there might be a wifi issue
[Shield Tablet Android Development] herrJones:
Yep, I can second that. Tablet is no longer in heavy use but thanks to this room still working fine.

however, I am unable to complete the initial setup (so it keeps on coming back). WiFi and apps are working fine so far

Kind regards,

Jan
[Shield Tablet Android Development] kbeezie:
The Rom by itself and GApps Pico seem to be working ok (other than I think my K1's battery is kind of shot but working), but when trying to do root such as with Magisk it has moments of freezes and doesn't pass SafetyNet Anyways even with the 2021 fixes.

But least it seems to be running with Pie unrooted with no major slow downs.

Not sure what to do with it at this point considering I have a Galaxy Tab S6 (256GB/8GB) now, seems not everything in the play store that I once had are compatible with 9.0 anymore.
[Shield Tablet Android Development] Disrupthor:
Well if you are planning on donating it queue me on the line..
[Shield Tablet Android Development] kbeezie:
Just so happened that I just donated it to my younger brother, who in turn gave me a Kindle Fire 8 (2018) and Kindle Fire 7 (2017) of which I both just soft rooted with the toolkit and will give the 8" one to my wife (since it'll probably be way better than her old 2015 Kindle Fire 7, especially with everything debloated).
[Shield Tablet Android Development] Mikesraxx:
Thanks for the rom but has a lot of bugs please fix!!!
[Shield Tablet Android Development] Mikesraxx:
Thank for the rom but has a lot of bugs
[Shield Tablet Android Development] Jackill:
You are being utterly disrespectful posting stuff like this. Mind that the dev of this rom does it mainly in his free time and there is absolutely nothing in the world that forces him to support such eol device. If you want to support, do some research about how to post bug logs and come up with something constructive rather than just "please fix". Behave or leave.
[Shield Tablet Android Development] Mikesraxx:
I’m not trying to be disrespectful I’m just saying the rom has a lot of bugs I appreciate what y’all do for the community
[Shield Tablet Android Development] Inganno:
Hello,

Just wanted to share my experience and say thanks to john_matrix for developing this.

Pulled out of the grave my shield k1 with the idea of trying a de-google it; so far so good, but the overall experience is still a little buggy. Installed recent update for TWRP, wiped everything and installed last build; patched with nanodroid and installed magisk, than installed nanodroid as modules for microG, f-droid, aurora and osm. It was a little bit difficult to get everything to run, but it works.

Battery drain is kinda normal, given that the device is quite old, and noticed that theres no intense battery drain if the tablet is left in standby (3-4 days with wifi on but not using it) and this was a nice surprise.

Videos with newpipe are handled well, no sort of bugs or stuttering, bluetooth is ok, managed to pair standard audio speakers and also a miband through gadgetbrige, GPS is ok, setup through OSM and MicroG is a litle bit tricky but it works and so weather for cLock

One big downside i noticed is that when battery is low the device starts being unresponsive in the way the apps must be launched 3-4 times because at first they crash. Also while having 3-4 apps opened the device became a little unstable, but i guess thats because of low RAM or something related.

Overall the experience is not bad if conscious of those downsides and avoid low battery/multitasking, its really cool to see this deviced still usable and maintened from the community! :)

Was wondering whats the best alternative if im trying to seek something more stable where to try maybe bank apps and sheltering apps, i saw the LOS 15.1 with OMX Fixed but the fact that theres 2 version (no Zram, Zram) confuses me a little, last rom used was i think LOS 14.1 so im looking for an indication on what to install for a daily use.

Thanks guys and thanks again john_matrix!!
[Shield Tablet Android Development] Mikesraxx:
I’m using 15.1 rom by the-saint2k for my k1 it’s better more stable give it a try until 16.0 is more stable
[Shield Tablet Android Development] Mikesraxx:
Here’s the custom rom I’m using
[Shield Tablet Android Development] john_matrix:
Hello,

A new build has been uploaded.

It's about the new security patch updated and more: https://www.lineageoslog.com/16.0
[Shield Tablet Android Development] Mikesraxx:
Thank you for this build will test and tell how it goes!
[Shield Tablet Android Development] Mikesraxx:
I’ve tested the new rom still a bit buggy apps crash a lot can’t use HW on Mx player and can’t really get acestream to work properly
[Shield Tablet Android Development] john_matrix:
Hello,

A new build has been uploaded (20210208).

Nothing more than the zRAM that have been pushed to 1GB and memory management use the new LMKD rules.

First boot should be sluggish but after tablet will be fine.

Need some testers for this.
[Shield Tablet Android Development] Mikesraxx:
Sure I’ll test it for you
[Shield Tablet Android Development] Jsoares82:
I've just tested 16.0 20210208 and Nvidia Dabbler throws up loads of graphical glitches. (background should be white, image flickers as its being drawn. I don't think the rom like tegra graphics very much? Let me know what i can do to help troubleshoot this issue. (I've already tried different versions of dabbler, same issue)

Edit: Oh, youtube is broken, green flashes. Settings doesn't work.

Edit 2: I tried again and youtube and settings are actually working. Tried to play with developer settings to see if i could improve things on dabbler but no luck. Will keep testing and will let you know what i find.

Edit 3: When connecting bluetooth headphones whilst watching youtube, it made the video get all pixelated and glitchy. Restarting youtube fixed it and reconnecting headphones again did not replicate the glitch. Strange...