• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[UNOFFICIAL][ROM]BETA LineageOS 18.1 for Galaxy Tab E [SM-T560NU] Dec 9, 2021

Search This thread

kewecuminer

New member
Oct 15, 2021
3
0
Now that i got all my issues squared away, and installed opengapps, this device with this rom is amazing. It has gone from an unusable slog of a brick to my preferred device. Thanks.
 

DJABHipHop

Senior Member
Dec 7, 2017
763
599
pressthemes.freesite.host
Now that i got all my issues squared away, and installed opengapps, this device with this rom is amazing. It has gone from an unusable slog of a brick to my preferred device. Thanks.


 

DJABHipHop

Senior Member
Dec 7, 2017
763
599
pressthemes.freesite.host
PLEASE BEFORE YOU decide to try this rom, you MUST read all of post 1, 2, 3 and 4 (about 10 minute read). If you think this is an unreasonable request, then stop reading now and find another rom. Thank you.

I am not responsible for lost data, identity theft, lost money, security vulnerabilities, bricked devices or any other hardware or software malfunctions that comes as a result of flashing this rom.

BACKUP YOUR DATA AND OLD rom BEFORE trying my rom.

If you are NOT an expert in using fastboot, adb, odin, heimdall, twrp, DO NOT use this rom. You must know how to use these tools to revert back to your old rom.

If you are new to flashing custom roms, do NOT attempt this.

If you need your tablet for work and something important, do NOT flash this rom. This rom could result in a bricked device or boot loop or non booting device or you not being able to revert back to your old rom.

What works

1. bluetooth
2. wifi
3. brightness
4. external audio
5. GPS
6. audio through headphone jack
7. audio over bluetooth
8. selinux enforcing

What doesn't work

1. Camera. The stock camera app front camera preview doesn't work. Use opencamera instead. I have no plans to fix the stock camera app as opencamera works fine.
2. Live display. Live display causes a stuck at boot animation/boot loop on SM-T560NU, so I disabled it from the menu option. This feature worked in 17.1, but broken in 18.1.

Thanks
1. LineageOS team for source code.
2. Pre alpha testers for the Samsung Tab A/E roms who provided valuable feedback: lpedia, Schaagi, katochwa, Henrick Grimler
3. Huge thanks to Henrick Grimler https://github.com/Grimler91 for helping me reproduce a major bug in 18.1 which led me to find a solution. Henrick also helped fine tune some of the sepolicy as well.
4. Sebastiano Barezzi https://github.com/SebaUbuntu for giving the msm8916 repo some 18.1 code updates in March 2021.
5. Exynos5420 team for sharing it's knowledge in building roms.
6. msm8916 team for their repos

Great news everyone I manage to fix Camera on both MSM8916 version of the Tab E!!!! The bug was ZSL related

 

Attachments

  • photo1614618371.jpeg
    photo1614618371.jpeg
    37.9 KB · Views: 21
  • screen-10-25-2021 13:58:17.png
    screen-10-25-2021 13:58:17.png
    37.8 KB · Views: 19

retiredtab

Senior Member
Nov 16, 2017
944
519
New build called lineage-18.1-20211107-UNOFFICIAL-gtelwifiue.zip

NOTE: All builds that I upload have been personally tested on my device to boot and function as described in post #1. Having said that, there's still a chance it won't work on your device due to human error, your configuration, your apps, etc. If it won't boot, always start with a complete wipe of everything and format your data. This is known has a clean install. Backup your data before a clean install.

Nov 7 release notes
1. Nov 5 security patches as per https://review.lineageos.org/c/LineageOS/android_build/+/318560

2. I enabled zram swap with size 512MB. I noticed that the last couple of months that Clash Royale would crash/close and logs showed

Code:
10-28 14:26:01.412    0    0 I [2:        kswapd0:  91] lowmemorykiller: Killing 'ell.clashroyale' (6730), adj 0,

Hopefully, by enabling zram, that will stop Clash Royale from crashing/closing.

Zswap is enabled on stock Nougat SM-T350 (part of the Samsung Tab A/E family that uses same msm8916 kernel code)

https://github.com/retiredtab/andro...mmit/2a6bf385e6dfe6073fe328b7b1c563ccd60a5ede

https://github.com/retiredtab/andro...mmit/438d5d3ad20cbc98f0f8c18eb610b6268de19395

This code uses the in kernel low memory killer (lmk). I tried using the Android OS lmk, but it doesn't work very well and shows this in the log.

Code:
 E lowmemorykiller: /proc/zoneinfo parse error
 E lowmemorykiller: Failed to get free memory!

3. Whatever LineageOS changed since last Oct release (about 8,000 files had to be recompiled). One of these changes has removed the built in terminal program from LineageOS as AOSP deprecated this app as per

https://review.lineageos.org/c/LineageOS/android_vendor_lineage/+/304043
 

DJABHipHop

Senior Member
Dec 7, 2017
763
599
pressthemes.freesite.host

retiredtab

Senior Member
Nov 16, 2017
944
519
@DJABHipHop , thanks for sharing your repo. I saw your commit last week and tried to apply it to my repo on the weekend of Nov 6 and 7, but it doesn't compile in 18.1. Once I fixed line 223

https://github.com/LOSSG-8916/andro...3743820cbeff1a5/camera/CameraWrapper.cpp#L223

it compiled, but then it produced HAL errors and even opencamera, which works, couldn't see the camera HAL. What's worse is that your proposed code change broke the camera HAL even after I reverted your changes. Luckily, I had a hard drive backup and I was able to restore my working configurations.

I then used dd to clone my working configuration and tried your changes again. I got the exact same camera HAL error again and it also messed up my working configuration again despite reverting the changes. I spent 2 days trying to get it to work, but it doesn't.

People who want to use the camera with my builds can use opencamera as I mentioned in post #1.
 

DJABHipHop

Senior Member
Dec 7, 2017
763
599
pressthemes.freesite.host
@DJABHipHop , thanks for sharing your repo. I saw your commit last week and tried to apply it to my repo on the weekend of Nov 6 and 7, but it doesn't compile in 18.1. Once I fixed line 223

https://github.com/LOSSG-8916/andro...3743820cbeff1a5/camera/CameraWrapper.cpp#L223

it compiled, but then it produced HAL errors and even opencamera, which works, couldn't see the camera HAL. What's worse is that your proposed code change broke the camera HAL even after I reverted your changes. Luckily, I had a hard drive backup and I was able to restore my working configurations.

I then used dd to clone my working configuration and tried your changes again. I got the exact same camera HAL error again and it also messed up my working configuration again despite reverting the changes. I spent 2 days trying to get it to work, but it doesn't.

People who want to use the camera with my builds can use opencamera as I mentioned in post #1.
I fix it on 17.1
 

DJABHipHop

Senior Member
Dec 7, 2017
763
599
pressthemes.freesite.host
@DJABHipHop , thanks for sharing your repo. I saw your commit last week and tried to apply it to my repo on the weekend of Nov 6 and 7, but it doesn't compile in 18.1. Once I fixed line 223

https://github.com/LOSSG-8916/andro...3743820cbeff1a5/camera/CameraWrapper.cpp#L223

it compiled, but then it produced HAL errors and even opencamera, which works, couldn't see the camera HAL. What's worse is that your proposed code change broke the camera HAL even after I reverted your changes. Luckily, I had a hard drive backup and I was able to restore my working configurations.

I then used dd to clone my working configuration and tried your changes again. I got the exact same camera HAL error again and it also messed up my working configuration again despite reverting the changes. I spent 2 days trying to get it to work, but it doesn't.

People who want to use the camera with my builds can use opencamera as I mentioned in post #1.
@retiredtab I fix the 18.1 camera wrapper & it now works 100% Can you test it for me?

 

DJABHipHop

Senior Member
Dec 7, 2017
763
599
pressthemes.freesite.host
Yes, the front camera preview works now. Thank you for fixing it and submitting the patch. I will incoporate it into the 18.1 Dec 5 security patch build.

NP, Also feel free take a look my source as my 17.1 source since boots time are between 38-40s, Plus I have working repo for the SM-T377P
 

Attachments

  • Screen Shot 2021-10-02 at 11.44.02 AM.png
    Screen Shot 2021-10-02 at 11.44.02 AM.png
    44.7 KB · Views: 10
Last edited:

starc2k

Member
Aug 13, 2009
14
1
sorry for my noob question, but... there`s any chance to get this roms working on t-560 (not NU) thanx in advance
 

DJABHipHop

Senior Member
Dec 7, 2017
763
599
pressthemes.freesite.host
I only have the SM-T560NU and no SM-T377P so I have no idea.
I have both A SM-T560NU & A SM-T377P I can test with, But is broken mobile data on my SM-T377P & my SM-T560NU still show traces of Mobile data crap & both my SM-T560NU & my SM-T377P still show traces of FM_Radio data crap on my 17.1 build

12-01 09:03:31.032 652 652 E NotificationPrefHelper: createDefaultChannelIfNeededLocked - Exception: android.content.pm.PackageManager$NameNotFoundException: com.android.fmradio
 
Last edited:

retiredtab

Senior Member
Nov 16, 2017
944
519
  • Like
Reactions: Sigster

retiredtab

Senior Member
Nov 16, 2017
944
519
New build called lineage-18.1-20220120-UNOFFICIAL-gtelwifiue.zip

NOTE: All builds that I upload have been personally tested on my device to boot and function as described in post #1. Having said that, there's still a chance it won't work on your device due to human error, your configuration, your apps, etc. If it won't boot, always start with a complete wipe of everything and format your data. This is known has a clean install. Backup your data before a clean install.

18.1 continues to be my daily driver since March 2021.

Jan 20, 2022 release notes
1. Jan 5 security patches as per https://review.lineageos.org/q/topic:R_asb_2022-01
2. Whatever LiineageOS changed since last December release (about 35,000 files had to be recompiled).

Note: The Jan 5 security patches were originally uploaded on Jan 6, but the "bump security string" was only submitted today Jan 19 and not yet officially merged. Nonetheless, I went ahead and made the build Jan 5 security patches build. I'm not sure why there was such a delay.
 
Last edited:
  • Like
Reactions: Sigster

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    New build called lineage-18.1-20220120-UNOFFICIAL-gtelwifiue.zip

    NOTE: All builds that I upload have been personally tested on my device to boot and function as described in post #1. Having said that, there's still a chance it won't work on your device due to human error, your configuration, your apps, etc. If it won't boot, always start with a complete wipe of everything and format your data. This is known has a clean install. Backup your data before a clean install.

    18.1 continues to be my daily driver since March 2021.

    Jan 20, 2022 release notes
    1. Jan 5 security patches as per https://review.lineageos.org/q/topic:R_asb_2022-01
    2. Whatever LiineageOS changed since last December release (about 35,000 files had to be recompiled).

    Note: The Jan 5 security patches were originally uploaded on Jan 6, but the "bump security string" was only submitted today Jan 19 and not yet officially merged. Nonetheless, I went ahead and made the build Jan 5 security patches build. I'm not sure why there was such a delay.
  • 2
    New build called lineage-18.1-20211209-UNOFFICIAL-gtelwifiue.zip

    Dec 9 release notes
    1. Dec 5 security patches as per https://review.lineageos.org/q/topic:R_asb_2021-12
    2. Whatever LiineageOS changed since last November release (about 10,500 files had to be recompiled).
    3. Stock camera fixed thanks to patches contributed by @DJABHipHop as per https://github.com/retiredtab/andro...mmit/d7138f96159cd5dd54fc89f500b33119d92e54b4
    2
    New build called lineage-18.1-20210909-UNOFFICIAL-gtelwifiue.zip

    NOTE: All builds that I upload have been personally tested on my device to boot and function as described in post #1. Having said that, there's still a chance it won't work on your device due to human error, your configuration, your apps, etc. If it won't boot, always start with a complete wipe of everything and format your data. This is known has a clean install. Backup your data before a clean install.

    18.1 continues to be my daily driver since March 2021.

    Sept 9 release notes
    1. Reverted the patch to https://github.com/retiredtab/andro...mmit/a32c7a0bed536281d20b7c1cf8d41c84a268cc80
    Removing systemUI from pinner services causes a 4 to 6 delay in bringing up the home screen. This is seen when loading or playing a game for about 20 minutes and then either hitting the recents or home button. By reverting this commit, pressing recents or home button brings up the systemUI right away.
    2. Sept 5 security patches as per https://review.lineageos.org/c/LineageOS/android/+/315661
    3. Whatever LiineageOS changed since last August release (about 6,000 files had to be recompiled).
    2
    New build called lineage-18.1-20211010-UNOFFICIAL-gtelwifiue.zip

    NOTE: All builds that I upload have been personally tested on my device to boot and function as described in post #1. Having said that, there's still a chance it won't work on your device due to human error, your configuration, your apps, etc. If it won't boot, always start with a complete wipe of everything and format your data. This is known has a clean install. Backup your data before a clean install.

    18.1 continues to be my daily driver since March 2021.

    Oct 10 release notes
    1. Oct 1 security patches as per https://review.lineageos.org/c/LineageOS/android_build/+/317001
    2. Added https://review.lineageos.org/c/LineageOS/android_frameworks_base/+/316839 to fix landscape mode system UI as reported in post #5 by @Fruse . This patch is not yet officially merged as of Oct 10 release.
    3. Whatever LiineageOS changed since last September release (about 7,200 files had to be recompiled).
    1
    New build called lineage-18.1-20220120-UNOFFICIAL-gtelwifiue.zip

    NOTE: All builds that I upload have been personally tested on my device to boot and function as described in post #1. Having said that, there's still a chance it won't work on your device due to human error, your configuration, your apps, etc. If it won't boot, always start with a complete wipe of everything and format your data. This is known has a clean install. Backup your data before a clean install.

    18.1 continues to be my daily driver since March 2021.

    Jan 20, 2022 release notes
    1. Jan 5 security patches as per https://review.lineageos.org/q/topic:R_asb_2022-01
    2. Whatever LiineageOS changed since last December release (about 35,000 files had to be recompiled).

    Note: The Jan 5 security patches were originally uploaded on Jan 6, but the "bump security string" was only submitted today Jan 19 and not yet officially merged. Nonetheless, I went ahead and made the build Jan 5 security patches build. I'm not sure why there was such a delay.
    1
    NOTE: All builds that I upload have been personally tested on my device to boot and function as described in post #1. Having said that, there's still a chance it won't work on your device due to human error, your configuration, your apps, etc. If it won't boot, always start with a complete wipe of everything and format your data. This is known has a clean install. Backup your data before a clean install.

    18.1 continues to be my daily driver since March 2021.

    Jan 20, 2022 release notes
    1. Jan 5 security patches as per https://review.lineageos.org/q/topic:R_asb_2022-01
    2. Whatever LiineageOS changed since last December release (about 35,000 files had to be recompiled).

    Dec 9 release notes
    1. Dec 5 security patches as per https://review.lineageos.org/q/topic:R_asb_2021-12
    2. Whatever LiineageOS changed since last November release (about 10,500 files had to be recompiled).
    3. Stock Camera fixed thanks to patches contributed by DJABHipHop as per https://github.com/retiredtab/andro...mmit/d7138f96159cd5dd54fc89f500b33119d92e54b4

    Nov 7 release notes

    1. Nov 5 security patches as per https://review.lineageos.org/c/LineageOS/android_build/+/318560

    2. I enabled zram swap with size 512MB. I noticed that the last couple of months that Clash Royale would crash/close and logs showed

    Code:
    10-28 14:26:01.412    0    0 I [2:        kswapd0:  91] lowmemorykiller: Killing 'ell.clashroyale' (6730), adj 0,

    Hopefully, by enabling zram, that will stop Clash Royale from crashing/closing.

    Zswap is enabled on stock Nougat SM-T350 (part of the Samsung Tab A/E family that uses same msm8916 kernel code)

    https://github.com/retiredtab/andro...mmit/2a6bf385e6dfe6073fe328b7b1c563ccd60a5ede

    https://github.com/retiredtab/andro...mmit/438d5d3ad20cbc98f0f8c18eb610b6268de19395

    This code uses the in kernel low memory killer (lmk). I tried using the Android OS lmk, but it doesn't work very well and shows this in the log.

    Code:
     E lowmemorykiller: /proc/zoneinfo parse error
     E lowmemorykiller: Failed to get free memory!

    3. Whatever LineageOS changed since last Oct release (about 8,000 files had to be recompiled). One of these changes has removed the built in terminal program from LineageOS as AOSP deprecated this app as per

    https://review.lineageos.org/c/LineageOS/android_vendor_lineage/+/304043

    Oct 10 release notes
    1. Oct 1 security patches as per https://review.lineageos.org/c/LineageOS/android_build/+/317001
    2. Added https://review.lineageos.org/c/LineageOS/android_frameworks_base/+/316839 to fix landscape mode system UI. This patch is not yet officially merged as of Oct 10 release.
    3. Whatever LiineageOS changed since last September release (about 7,200 files had to be recompiled).

    Sept 9 release notes
    1. Reverted the patch to https://github.com/retiredtab/andro...mmit/a32c7a0bed536281d20b7c1cf8d41c84a268cc80
    Removing systemUI from pinner services causes a 4 to 6 delay in bringing up the home screen. This is seen when loading or playing a game for about 20 minutes and then either hitting the recents or home button. By reverting this commit, pressing recents or home button brings up the systemUI right away.
    2. Sept 5 security patches as per https://review.lineageos.org/c/LineageOS/android/+/315661
    3. Whatever LiineageOS changed since last August release (about 6,000 files had to be recompiled).

    Aug 8 release notes
    1. Fix battery status icon. When you plug in AC adapter, settings, battery does not show it charging even though it is. This is due to the sepolicy being too restrictive. I added https://github.com/retiredtab/msm89...mmit/c1eca9f7740b6a384d4fab8a1e8d812f59c17a99
    2. Aug 5 security patches as per https://review.lineageos.org/c/LineageOS/android/+/314477
    3. Whatever LiineageOS changed since last July release (about 23,000 files had to be recompiled).

    July 9 release notes
    1. Initial public release to XDA. This is an ALPHA build.
    2. July 5 security patches as per https://review.lineageos.org/q/topic:"android-11.0.0_r39"+(status:eek:pen OR status:merged)
    3. Small bug in settings, battery where the charging lightning symbol is not displayed when AC adapter is plugged in. This will be fixed in the August security patches.