[Samsung Galaxy Tab A series ROMs, Kernels, Recover] retiredtab:
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. selinux enforcing

8. DRM level 3

9. deep sleep

Known issues/What doesn't work/what's not tested

NOTE: If any following features are important to you, don't use this rom as I will not be fixing them because I

i. don't use/need that feature

ii. already tried fixing it and couldn't succeed and won't spend anymore time on it.

1. Audio over bluetooth (reason i and ii). This feature has been problematic since 17.1 and while I've managed to get it working in 17.1, 18.1 and 19.1 and I cannot get it working on 20 and I've given up trying.

2. Stock camera front selfie/preview doesn't work at all (reason i and ii). NOTE: On my SM-T357W, my camera is broken and does not work. I'm basing my comments on other msm8916 devices that I have.

3. gapps (reason i and ii). Some of you require gapps for whatever reason. I use Aurora Store for my purposes and thus have NO KNOWLEDGE of the current state of gapps.

There are various gapps projects (at least 5 in 2024). Each has pros and cons. It's your job to do the research and find a suitable gapps project. I suggest you allocate at least a couple of hours doing your own research. My rom works by itself fine without gapps. DO NOT talk about gapps in this thread.

I will ALSO NOT participate in any discussion regarding passing Safetynet/Play Integrity or making any changes to the source code in this area. If you need this feature, YOU, NOT ME, can build, compile, test and maintain the source code.

4. Memory leak with Chromium based browsers. If you run a Chromium based browser like Chrome, Brave, Microsoft Edge, etc and open, close, open, close the browser app, there will be a memory leak of 30MB to 50MB each time. You can see this using adb below.

# open up a terminal/command prompt on your PC
adb root
adb shell
ps -A | grep -i zygote
# example output
$ adb root ; adb shell ps -A | grep -i zygote
adbd is already running as root
root 304 1 1733448 97000 poll_schedule_timeout b1fcd238 S zygote
webview_zygote 745 304 1749936 50592 poll_schedule_timeout b1fcd238 S webview_zygote
u0_a121 2499 304 1758944 49768 __skb_recv_datagram b1fccc10 S com.brave.browser_zygote
u0_a121 3405 304 1758944 49756 __skb_recv_datagram b1fccc10 S com.brave.browser_zygote

Over a period of a few days, this memory leak causes free memory to decrease and can lead to slower performance.

If you have root, you can kill these processes or simply reboot the OS to reclaim the memory. Firefox based browsers do NOT have this problem. In addition, the built in Webview engine does NOT have this problem. I use DuckDuckGo + Webview engine and there is NO memory leak.

Source Code

The kernel source code is at

https://github.com/retiredtab/android_kernel_samsung_msm8916/tree/lineage-20.0

Links and instructions on how to build this rom from source are in post #2 FAQ 1.

Thanks

1. LineageOS team for source code.

2. LineageOS-UL team for integrating patches into the LineageOS repos. Team members are https://github.com/orgs/LineageOS-UL/people