• 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] LineageOS 15.1 for Shield Tablet OMX | Camera working

Search This thread

Scavenger87

Senior Member
Nov 6, 2019
95
46
Nvidia Shield Tablet
Hi @xdaggg

Thank you for your honest review yes i also would love to provide a rom for you guys that can take that amount of memory pressure and with no freezes i keep on working at this but i dont sure its stable enough to got released within the next monthly update.

But you can do me a favor if you have rootet your actual Lollipop Rom .

I need the lowmemory settings you found in the sys/modules/lowmemorykiller folder and the build.prop you find at System/

Thanks in advance ! :)
Scavenger87
 
Last edited:
  • Like
Reactions: dennisthemenace85

xdaggg

Member
Feb 29, 2020
15
11
But you can do me a favor if you have rootet your actual Lollipop Rom .

I need the lowmemory settings you found in the sys/modules/lowmemorykiller folder and the build.prop you find at System/

lowmemorykiller settings:
[email protected]:/sys/module/lowmemorykiller/parameters # ls -l
-rw---x--- root system 4096 2021-06-01 09:08 adj
-rw-r--r-- root root 4096 2021-06-01 09:08 cost
-rw-r--r-- root root 4096 2021-06-01 09:08 debug_level
-rw--w---- root system 4096 2021-06-01 09:08 minfree

[email protected]:/sys/module/lowmemorykiller/parameters # cat adj
0,58,117,176,529,1000

[email protected]:/sys/module/lowmemorykiller/parameters # cat cost
32

[email protected]:/sys/module/lowmemorykiller/parameters # cat debug_level
1

[email protected]:/sys/module/lowmemorykiller/parameters # cat minfree
18432,23040,27648,32256,56250,81250

build.prop and some screenshots from kernel manager program attached.
 

Attachments

  • build.prop.txt
    3.5 KB · Views: 21
  • 2.jpg
    2.jpg
    89.3 KB · Views: 48
  • 1.jpg
    1.jpg
    142.3 KB · Views: 49
  • Like
Reactions: dennisthemenace85

Scavenger87

Senior Member
Nov 6, 2019
95
46
Nvidia Shield Tablet
Hi Guys

I just uploaded the latest version of my build after there was a bit of a delay because i had to wait for the June Security Patch getting merged to the LOS Source Files which happend yesterday.

You can find it here : June Update

With this new Build you doesnt just get the newest Security Patch (05.06.2021)
I also optimized the Memory Management as i started on the Nightly Build and i think i found the Sweet Spot for the LowMemoryKiller Values so far and i was even able to set it up without the Android Go Settings which in my case deactivated the LMK and this lead to the freezes. Now the Tablet can take a lot more stress when it come to Memory Pressure without freezing and it had also a very positive effect on the green artefacts in Videos those i dont had anymore since i played around with that settings. But i only tested it with the Youtube App and videoplayback in the Browsers maybe @ogremalfeitor you can test it again with Youtube Vanced ?

Its also still possible to play COC on it even there are some random crashes at starting the Game (at least on my LTE Tablet where i just did a dirty flash of the new Rom) but when its running it runs great as long you have some patience when you open the news section 😅. @Hworangg maybe you could test it by yourself and give me a feedback :)
In any case that Game is a real Memory Hog and i would say it got even more worse with the last update i really dont get why it needs so much Memory :rolleyes:
 
Last edited:
  • Like
Reactions: dennisthemenace85

ogremalfeitor

Member
Jan 26, 2018
48
15
Tested the new build. Clean wipe.

Color me impressed sir!

For now everything looks just fine and dandy. No artifacts on youtube vanced so far, tested with a few 60 fps videos on 1080p and all went well. Picture in picture working fine too while playing those.

Magisk works (w00t!)

Very smooth and responsive (using nova launcher, can't use any device without it). Had settings app crash once, and file manager plus crash once too, but nothing that I could reproduce or (at least for now) nothing like before.

As for games I only tried XCOM EW and it worked fine and seems to me that it's smoother than on LOS 14.1 but it might have been placebo effect, didn't have time to play it for long yet. I don't really own or play many other games on Android than that one so I probably can't test much more than that.

So for now my veredict is... Congratulations and thanks ;)

I don't use this device much these days but I'll try testing some more later.

I have only one small nitpick, but it's really a nitpick that's not a deal breaker or anything like that... my device is not LTE so it doesn't have a SIM card. However when changing volume using hardware buttons it defaults to changing the ring tone, which really doesn't make sense on my device. Sure I can then go to the arrow that appears and select the volume I want to change, but it is inconsistent with what I see with other devices. Did I miss any setting, or is that builtin in the ROM? (edit to add that on other devices and versions the default volume being changed is usually the notifications volume, unless media is playing and in that case it's the media volume)
 

Scavenger87

Senior Member
Nov 6, 2019
95
46
Nvidia Shield Tablet
For now everything looks just fine and dandy. No artifacts on youtube vanced so far, tested with a few 60 fps videos on 1080p and all went well. Picture in picture working fine too while playing those.
Cool i glad to hear that please keep an eye on that if the artifacts stay away 🙂

Magisk works (w00t!)
Oh that also nice to know and strange at the same time as i did nothing to fix this issue already because i was so busy with the ram management of the tablet i decided to take a look on that after this release but yeah its great its working and i will test this now every time before i release a update.

I have only one small nitpick, but it's really a nitpick that's not a deal breaker or anything like that... my device is not LTE so it doesn't have a SIM card. However when changing volume using hardware buttons it defaults to changing the ring tone, which really doesn't make sense on my device. Sure I can then go to the arrow that appears and select the volume I want to change, but it is inconsistent with what I see with other devices. Did I miss any setting, or is that builtin in the ROM? (edit to add that on other devices and versions the default volume being changed is usually the notifications volume, unless media is playing and in that case it's the media volume)

Yes i also noticed this behavior before and it seems the device is defined somehow as a phone somewhere but i didn't found out where to change that so far :)
 

InsGdt76

Senior Member
Feb 1, 2015
122
44
Great work @Scavenger87 !
I thought development work on this device was winding down with everyone seemingly stuck on the HW acceleration issue. I've tried every Android 8+ based ROM for this device and this seems to be the most stable/reliable so far.
Two things I have noticed
1) I Don't know what the cause it but Chrome on this ROM has a stubborn insistance on opening everything in Desktop mode.
2) Although the HW acceleration issues seem to have been largely resolved in apps (Youtube, Vanced, FB etc), I still encounter them occasionally in Chrome on videos playing through a web page.
 

Scavenger87

Senior Member
Nov 6, 2019
95
46
Nvidia Shield Tablet
Hi thank you i'm glad you like it :)

1) I Don't know what the cause it but Chrome on this ROM has a stubborn insistance on opening everything in Desktop mode.
Yes i had this problem also but on every of my mobile devices so i tought its related to the chrome app. In any case here you can change that : chrome://flags/#request-desktop-site-for-tablets by setting "Request desktop site for tablets on Android" to Disabled.

2) Although the HW acceleration issues seem to have been largely resolved in apps (Youtube, Vanced, FB etc), I still encounter them occasionally in Chrome on videos playing through a web page.
Ok on which situations the artifacts are start to occur ? How is the state of load in general of the device in case of background processes ?
I also faced some artifacts on my Tablet where i did a dirty flash first when i used the picture in picture mode as i had a heavy site open.
After this i clean installed the Rom again and the issue is gone so far for me.
 

xdaggg

Member
Feb 29, 2020
15
11
Hi @Scavenger87 , wow the latest version was a great improvement! I'm pretty much using it as my daily driver so far. Most glaring issue so far is the green artifacting when playing web videos and apps with built-in exoplayer, and what was mentioned before, the volume control defaulting to ring volume. Otherwise I appreciate that on the rarer occasions that it crashes due to memory, it seems to reboot immediately rather than grind everything to a halt and force me to power off manually. Good stuff, looking forward to updates
 

Snah001

Senior Member
Jun 3, 2006
2,060
1,643
Netherlands
Flashed it yesterday and that went without any problem.
But..... after about 15 mins of using it hangs itself up in whatever app I am using at that moment and it reboots.
After reboot it works very well but keeps rebooting after a relative short period.
So stability is an issue but when it works it runs smooth.
 

Scavenger87

Senior Member
Nov 6, 2019
95
46
Nvidia Shield Tablet
Flashed it yesterday and that went without any problem.
But..... after about 15 mins of using it hangs itself up in whatever app I am using at that moment and it reboots.
After reboot it works very well but keeps rebooting after a relative short period.
So stability is an issue but when it works it runs smooth.
Hi
Thank you for your feedback !

You already did a clean wipe and install of the last update of this Rom ? ( 17.6.2021)

If yes which apps you have installed and leading to this crashes ?

The main problem i facing myself at the moment are the artefacts and the resulting framework crashes/reboots while watching web based video content.

Like i said with the July Security Bulletin merged i release a new update of my Rom with zRam activated again.
 

Scavenger87

Senior Member
Nov 6, 2019
95
46
Nvidia Shield Tablet
Hi Everyone

The New Update is now done and ready for download here : July Update

In this Update i activated like i mentioned before zRAM and tuned the LMK Settings again a bit.

The green artifact on web based videos are still around here and there and to be honest i don't know what exactly causes them but my best guess is that it has something to do with the memory leak which is one of the reasons this device isn´t maintained anymore by the LOS Team.
Maybe @Steel01 can say more about this.

But i keep working on this issue and on this ROM in any case :)
 

Attachments

  • Screenshot_20210719-231805_Einstellungen.png
    Screenshot_20210719-231805_Einstellungen.png
    128.5 KB · Views: 12
  • Screenshot_20210719-231056_DevCheck.png
    Screenshot_20210719-231056_DevCheck.png
    117.6 KB · Views: 12
Last edited:
  • Like
Reactions: dennisthemenace85

Snah001

Senior Member
Jun 3, 2006
2,060
1,643
Netherlands
The rebooting happens randomly and there not a specific app used when it happens.
I used the 17th build and after about using 5-6 different apps it will hang and then reboot.
Did frequently check the cache but is is as good as not used so no overflow there.
Will flash the 19th build later on and just to know can I dirty flash it over the 17th buidl?
 

Scavenger87

Senior Member
Nov 6, 2019
95
46
Nvidia Shield Tablet
The rebooting happens randomly and there not a specific app used when it happens.
I used the 17th build and after about using 5-6 different apps it will hang and then reboot.
Did frequently check the cache but is is as good as not used so no overflow there.
Will flash the 19th build later on and just to know can I dirty flash it over the 17th buidl?
Ok thats interesting i never had a similar problem like this the only stability issue i have so far is with the crashing video playback on websites which sometimes lead to a softreboot (lineage logo).

In any case you need to do a full wipe with twrp (use twrp 9.5.0_9-0) that we can find out if the problem persists on the new rom

Does any else have similar problems ?
 

xconwayx

Senior Member
Jun 2, 2008
266
63
Gladbrook, Iowa
I am using HideoutTV/ThePanda website and I am not getting crashes that reboot the device.

I just get them on the default browser, but this is the 3rd Lineage ROM I have used that it will eventually crash the app itself. Full wipe before install.

Otherwise, this has been solid. Thank you.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 5
    Any updates on this?
    Next update will be released when the July Security Bulletin is merged. I also still working on the code to make it more stable with every release.

    Stay tuned ;)
    2
    Ok, I wiped my device and flashed the 07/19 build without any problem.
    Unfortunately the spontaneous rebooting (soft reboot because it is running again very quickly) is still occurring no matter what app I am using at that moment.
    When not used it is not rebooting by itself and the drain during screen off is about 0,7%/hour so that is very good.
    During use it is fluent and working normally although it shows that it is not the fastest chipset anymore but for normal use (not gaming) it is very usable.
    When the "rebooting" issue could be solved it could be a very good replacement of the original latest Nvidia Rom version.
    Ok thanks again for the feedback.
    I just have to admit that i dont facing random reboot issues on any of my 3 tablets with this rom installed and those are 2 LTE and 1 K1 devices.
    For this reasons i need more informations like how much and which apps you have installed.

    I also was testing out this weekend what impact hwc2on1 has to the performance and stability of this tablet as it was half way activated on my device settings. I activated it the right way and added the memory leak patch according to here:


    I tested it with an without and i came to the conclusions that the device runs smoother and more stable without it so its deactivated in my next build like on the last official builds from LOS.

    Unfortunatly it didnt change anything on that green artifacts issue 🙄
    But i found out i have them just with the chrome browser. On firefox the same videos need a lot longer to start but they run after that without any issues 99% of the time.
    That means it needs a lot more stress that the artifacts appears and that they lead to a softreboot. But i was watching videos for much longer than 15 mins and didnt had any softreboots then. Tonight i try to play around with the video related settings on chrome itself you can found here : chrome://flags/

    So for the moment i recommend to watch video content on websites with firefox if you have any issues :)
    2
    After some testing yesterday i can say the artifact issue only appears on chrome and on that jelly browser which seems also chrome based. I also didnt found any setting on that Flags Settings in chrome that made this issues go away apart from :



    GPU rasterization - Enabled



    Zero-copy rasterizer - Enabled



    Which eased the issues just a bit but that could also be placebo effect 😅



    But for the moment the Workaround is still to use a different browser like Firefox or Opera which has a neat Ad Blocker integrated ;)



    But i keep working on that issues
    1
    Hi Everyone

    The New Update is now done and ready for download here : July Update

    In this Update i activated like i mentioned before zRAM and tuned the LMK Settings again a bit.

    The green artifact on web based videos are still around here and there and to be honest i don't know what exactly causes them but my best guess is that it has something to do with the memory leak which is one of the reasons this device isn´t maintained anymore by the LOS Team.
    Maybe @Steel01 can say more about this.

    But i keep working on this issue and on this ROM in any case :)
    1
    I too get soft reboots, especially when juggling many memory hungry apps and when resuming after the tablet has been unused for a few hours, but given the limited amount of RAM we have to work with most roms will do it. Appreciate the tip on using Firefox to play videos without artifacting :) Eagerly awaiting the next build
  • 9
    lineagelogo.png

    Disclaimer:
    Not responsible for any injuries you do to yourself or your device being damaged caused by this ROM.
    Big thanks goes to @Steel01 for all the hard work and the Sources.


    LineageOS is a free, community built, aftermarket firmware distribution of Android, 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. You can also view the Changelog for a full list of changes & features.


    Hi Everyone

    After some months of learning how to build my own Roms and how to edit the proprietary files of this Device i was able to build my first edited version of LineageOS 15.1 with HW Acceleration and the Camera working.
    Its a slim an snappy Rom for everyone that´s looking for a monthly updated Android 8.1 Rom to keep this unique Device alive.
    This first release is really basic because i deleted everything that doesn't work right.
    My plans for this Rom are to keep it updated in case of Security Patches and add some Features here and there as i still learn how this Device and Android is working in general.
    Also the official release of LineageOS 16 will end the development of this Rom for the reason i don't want to rival the official contributors of this Device.

    Little FAQ to this Rom:


    Do i need to Wipe my existing Rom even its LineageOS 15.1 based ?
    Yes because i use my own Release Keys for this Rom you need to Wipe your existing one.

    Is this Rom compatible with every Shield Tablet ?
    Yes this Rom is working with every Shield Tablet

    I have a Shield LTE Version and after flashing this Rom i cant connect my device for Data Transfer with my computer anymore.
    For some Reason i still didnt found out on LineageOS 15.1 there is no Drop Down Menu for this Device to change the type of connection.
    To change it go to Settings > Connected Devices > USB


    I found a Bug with this Rom i didnt had on any Rom before what should i do before i post it here ?
    Before you post any Bugs and Errors here make sure you installed this Rom correct as i told with a full wipe in your recovery first and if there are modifications installed like Magisk
    Moduls or Xposed or you changed this Rom in any way, you should reinstall it fresh first to take a look if the issue still occurs.
    If yes post a detailed report of the Error with a Logcat.txt File


    Can i install and use Apps like Netflix, Amazon Prime,.. and watch content in HD again with this ROM ?
    As this is a Problem with the Widevine Services and this Device itself this Rom doesn´t change anything on that. If you want to use the Netflix App for example you still have to use the liboemdecrypt modul on Magisk and its SD only



    Thanks goes to:
    @Steel01 and the whole LOS Team for doing all the hard work to keep this Device alive
    @Artemka2008 for figuring out the OMX fix
    @Triodexe for uploading his work on his Github so i could figure out how to edit the vendor files
    @john_matrix for teaching me how to set up my build enviroment and being really helpful when i´m stuck with errors :)

    Requirements:
    • Bootloader Unlock
    • Bootloader Version 4.00.2016.04
    • Custom Recovery installed (use Version 9.5.0_9-0 of TWRP or Lineage Recovery)


    Instructions:

    • Download the latest build and gapps if needed (8.1 / arm / pico)
    • Reboot to recovery and wipe your existing Rom
    • Flash the latest build and gapps
    • Reboot

    Downloads:


    Whats working now:

    • HW Acceleration
    • Snap Camera

    Whats still not working:

    • Nvidia Games App (Deleted)
    • Console Mode UI (Deleted but HDMI still working fine)
    • Encryption (will lead to a Bootloop if tried)
    • Screen Mirroring ( In App Cast like on the Youtube App still working fine)
    Contributors:

    @Steel01
    Source Code: https://github.com/LineageOS
    @Scavenger87
    Device: https://github.com/Scavenger-87/android_nvidia_device_shield-common
    https://github.com/Scavenger-87/android_device_nvidia_shieldtablet
    Vendor: https://github.com/Scavenger-87/android_vendor_nvidia_shield


    ROM OS Version: 8.1 Oreo
    ROM Kernel: Linux 3.10.96+

    Version Information:
    Status:
    userdebug
    SELinux: Enforcing
    Security Patch: 5.06.2021
    Build Signature: Own Release Key

    Created 14.05.2021
    Last Updated 19.07.2021
    5
    Any updates on this?
    Next update will be released when the July Security Bulletin is merged. I also still working on the code to make it more stable with every release.

    Stay tuned ;)
    3
    Hi everyone after a little vacation and some testing out of your reported issues this is what i found out so far:

    Any ideas why clash of clans will not work on this ROM? Installed COC from Amazon App Store right after flashing this ROM and the game closes with no error right after it fully loads at the loading screen. Tried Lineage OS 16.0 and had the same exact issue using the google play store version with pico opengapps. I just want to use a smooth running ROM and play clash also QQ. Clash ran like trash on the stock 7.0 rom even after doing everything possible to make the tablet smoother.

    I installed that game on a Tablet with LOS 14.1 and LOS 15.1 and in both cases the Game crashes because it run out of memory. I did a quick test on my Rom with adding ro.config.low_ram=true to the build.prop which activate the Go Version of Android and decreased the usage of Ram this way .
    The Game runs but it started to get really sluggish after around 30 seconds.

    It seems this Game just needs more than the 2GB Ram this device can offer.

    Tried this ROM and was very happy to finally see one above Nougat on my shield tablet k1 that has 1080p 60 FPS videos playing smooth with no artifacts and doesn't crash. Also super smooth. Very nice, congratulations and many thanks.

    However after I rebooted to recovery and flashes magisk it got stuck forever on Nvidia logo :(

    Wiped everything again, reinstalled (ROM and gapps) and it booted without magisk. Tried flashing magisk again, same problem :(

    I never had this issue with magisk before on this tablet (and I've tried several ROMs).

    Anyone else faced this issue? Any advice?

    After trying to flash many Versions of Magisk starting by 21.4 over 22.0 and the actual 23.0 via the TWRP Recovery Version (9.5.0_9-0) i mentioned in the Start Thread and trying to flash it with the Magisk App i also wasnt able to install Sucessfully Magisk without running into a Bootlop which is really a Bummer.
    I dont know why this happends and i check my Kernel Logs i pulled with TWRP but for the moment we have to use the SU Addon by LOS.

    Maybe it has something to do with that my build is signed with a personal key i will check that out.

    I have try to installed the Firmware Update : N/Stock 5.0 in TRWP. It doesnt work. A Error Shows and it cant installed.

    Thats just the Blob File that needs to be flashed when the Bootloader isnt updated to the latest Version (4.00.2016.04)

    Well meanwhile I went on and started using this ROM without magisk. Started to have crashes here and there not long after, like most (if not all) ROMs for my tablet above android 7... until the video started to get corrupted in YouTube Vanced too which is a deal breaker for me.

    Guess this is not the one ROM to solve my problems with this tablet after all, but still it's a great effort. Hope others enjoy it and thanks to the dev for sharing.

    On some rare ocassions you get those same green artefacts on videos like you get with the LOS 16.0 Rom but at least in my case it happends once a week or so and it seems it have something to do with memory managment again.
    My guess is that the tegra drivers arent working really well with Android Versions above Nougat (7.0) and this leads to a memory leak but like i said its just a guess by me maybe @Steel01 can say more about that.
    I try to optimize the memory management in the future builds if possible.
    3
    Hi Everybody

    I think its time to give you a little update of my work on this build

    After i got a good example of the problems with the ram management of this device i was looking for a solution last few days and i began testing with the Android Go Settings as i mentioned in the last Thread.

    With that settings i was able to start that Game mentioned by @Hworangg and i even was able to play it a bit as you can see on one of the added Screenshots below. But you could also see this Game is a real RAM Hog with needing up to 484MB at the last session i played but it is kinda playable you just have to stay in that Game and turn off every notification as it might crashes otherwise. Speaking of crashes while the GO Settings really helping on reduce the usage of Ram by the System itself and let the device take more Memory Pressure it also leads to freezes where you often have to Hard Reset the Tablet because it seems to not close the Main App when its in a Out of Memory Situation. This is something i have to invest more time and research even after i played a lot with the Dalvik VM Settings.

    I also found out that my Personal Key Signature is the reason that the install of Magisk is leading to a Bootloop. Here i also have to figure out why this is happen and if its even possible to install Magisk on a Signed Custom Rom as you change out the BOOT.img on this Device to achieve that and it seems the Magisk installer isnt able to resign the File with my Key.

    TLDR:
    I was able to set up my Build to use the optimized Android GO Settings to withstand more Memory Pressure so that Games like COC and heavy Browsing Sessions with lots of Tabs and Sites with a lot of Pictures doesn't crash that soon but it lead in both cases to a freeze of the whole Device.

    The Magisk installer does not work when i sign my build with my own key.

    For this Reason i decided to release a another Build for you to test with this Settings as a Nightly Release before i release my next Regular Build when the next Security Patch is out

    You find it here : Nightly Build and i´m curious about your opinion.
    2
    Great work @Scavenger87 !
    I thought development work on this device was winding down with everyone seemingly stuck on the HW acceleration issue. I've tried every Android 8+ based ROM for this device and this seems to be the most stable/reliable so far.
    Two things I have noticed
    1) I Don't know what the cause it but Chrome on this ROM has a stubborn insistance on opening everything in Desktop mode.
    2) Although the HW acceleration issues seem to have been largely resolved in apps (Youtube, Vanced, FB etc), I still encounter them occasionally in Chrome on videos playing through a web page.