[Galaxy Tab Pro 12.2, 10.1, 8.4 Original Android De] 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.

This is ONLY for the SM-T320. I do not have and will NOT build the LTE variants. Any questions asking to build these will be ignored.

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, boot loop, complete loss of data or non booting device or you not being able to revert back to your old rom.

What works

1. wifi

2. brightness

3. external audio

4. GPS

5. audio through headphone jack

6. selinux enforcing

7. DRM level 3 (SD definition)

8. bluetooth

9. audio over bluetooth

10. 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. Stock camera doesn't work 100%. Use opencamera version 1.52 from

https://f-droid.org/en/packages/net.sourceforge.opencamera/

I have no idea if video conferencing apps work or not since I don't use them.

2. gapps (reason i). 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/days doing your own research. My rom works by itself fine without gapps. DO NOT talk about gapps in this thread.

If you need to talk about gapps, I have opened a new thread for your benefit at

https://xdaforums.com/t/which-gapps-to-use-discussion-for-lineageos-21-sm-t320.4671883/

Please talk about gapps in that thread, NOT HERE.

3. full disk encryption has been deprecated in Android 13 (LineageOS 20). Our kernel is version 3.4.113 and is too old to support file based encryption (FBE) which is the only encryption supported in Android 13. FBE requires kernel 3.18 or higher and upgrading the kernel is NOT a trivial task and I won't even try for reasons i and ii.

4. If you want to disable the taskbar and the 3 soft button navigation, goto settings, click on search at top left hand corner, type in gesture, choose gesture navigation.

Then settings, buttons and enable on-screen nav bar (slide to disable).

If your device is laggy and unresponsive after, then reboot to get rid of it. Once rebooted, it will work fine.

See post #10 for example screenshots.

5. 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 15+ 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.

6. In deep sleep mode, the battery loses about 10% daily. See post #16 below on this page for more details.

https://xdaforums.com/t/unofficial-...ro-sm-t320-may-12-2024.4671882/#post-89535083

BOTTOM LINE: I don't know if I can fix this or not. Please DO NOT ask for "updates". If I can fix it, I will announce it here. So ASSUME that it's "standard" to lose almost 10% battery life daily with 21 in deep sleep mode. AGAIN, DO NOT ask for updates. If losing 10% battery daily is unreasonable to you, then don't use this rom.

Source Code

The kernel source code is at

https://github.com/retiredtab/android_kernel_samsung_msm8974/tree/lineage-21.0

All the device, vendor, kernel trees and build instructions are in FAQ #1, post 2.

Thanks

1. LineageOS-UL team for integrating patches into the LineageOS repos. The team consists of https://github.com/orgs/LineageOS-UL/people

2. @phoval for helping in the past with 19.1 and 20.0

3. LineageOS team for source code

4. HUGE THANKS to @khalvat for being one of the maintainers of the LineageOS-UL and the Samsung Galaxy S5 phone github repos. Without these repos, I could NOT build this rom. I look at his repos for the commits that I need to make LineageOS 21.0.