14

[UNOFFICIAL][ROM]ALPHA LineageOS 20 for SM-T813 - June 23, 2023

 10 months ago
source link: https://forum.xda-developers.com/t/unofficial-rom-alpha-lineageos-20-for-sm-t813-june-23-2023.4600493/page-2#post-88714245
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Top Liked Posts

@Reynald0 , I never disable taskbar so I never checked it, but it's missing

https://github.com/retiredtab/andro...mmit/3de6b87e9028a4cf1ed776f12745951571d5f619

I'll put this in the July build, but if you want to enable now, then follow the steps below.
Bash:
# Boot into twrp
$ adb reboot recovery

# in twrp, touch mount system

# get build.prop
$ adb pull /system/build.prop
/system/build.prop: 1 file pulled, 0 skipped. 2.3 MB/s (9745 bytes in 0.004s)

# edit build.prop with any text editor
# add the line below

qemu.hw.mainkeys=0

# just before the last line
# save file

# put file back
$ adb push build.prop /system/build.prop
build.prop: 1 file pushed, 0 skipped. 43.7 MB/s (9764 bytes in 0.000s)

# reboot back into OS

# Once booted, goto system, settings, button and enable taskbar will be there
edit: The git commit has now been implemented into the msm8976-common tree at

https://github.com/retiredtab/msm8976-common/commit/bd6dcf52eb7f0141f6119f321515d89447277a26

so this will show up in the July build.
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 T813. I do not have and will NOT build T713, T719 and T819. See post #2, FAQ 20. 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. bluetooth
2. wifi
3. brightness
4. external audio
5. GPS
6. audio through headphone jack
7. audio over bluetooth
8. selinux enforcing
9. deep sleep
10 DRM level 3 (SD definition)

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 at all (reason i and ii). Starting with LineageOS 19.1 and higher, camera API functionality (pictures and videos) isn't even recognized by the OS. The Samsung camera drivers are proprietary so they can't be changed and there's no open source implementation.

2. fingerprint (reason i). I never use it and I see it doesn't even load correctly in the logs.

3. ARM64 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 ARM64 gapps.

There are various gapps projects (at least 5 in 2023). 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.

4. full disk encryption has been deprecated in Android 13 (LineageOS 20).

5. If you restart the device with the purpose to reboot it and the usb cable is plugged in, the device will not reboot and stay in charging mode. Simply unplug the usb cable, wait 15 seconds and restart the device.

Source code

The kernel source code is at

https://github.com/syphyr/android_kernel_samsung_msm8976/tree/lineage-16.0

All the source code including the kernel, device trees, manifest and build instructions are provided in post #2 FAQ1.

Thanks

1. LineageOS team for source code.

2. LineageOS-UL team for merging, maintaining the legacy patches needed for old devices into one common reposistory so everyone can benefit.

https://github.com/orgs/LineageOS-UL/people

3. @Deltadroid for updating the msm8976 kernel for branches 14.1 and 16.0 with bug and security fixes. I'm using his 16.0 kernel branch for my 20 builds.
Frequently Asked Questions. You MUST READ this before posting any questions. If you think this is unreasonable, then find another rom. Thank you.

Q1. Where are the source and kernel source files?
A1. The kernel source files are at

https://github.com/syphyr/android_kernel_samsung_msm8976/tree/lineage-16.0

The device tree files are at

https://github.com/retiredtab/msm8976-common/tree/lineage-20
https://github.com/retiredtab/gts210vewifi/tree/lineage-20

The vendor tree files are at

https://github.com/retiredtab/proprietary_vendor_samsung_msm8976

The manifest.xml (or roomservice.xml) and build instructions for LineageOS 20 are at

https://github.com/retiredtab/LineageOS-build-manifests/tree/main/20/msm8976

Q2. Is this ALPHA rom suitable as a daily driver?
A2. It can be depending on your requirements. I can't test every app so you try it yourself to see if it's suitable. I've been using this rom myself since Jan 2023 with no major issues. I suggest you do a clean install, see FAQ 11, and flash this ROM BY ITSELF (no gapps, magisk, etc) and see if you like it.

Q3. What if my app, xyz, doesn't work?
A3. If your app doesn't work, then go back to your old rom.

Q4. Your rom is laggy and buggy.
A4. If you find the above, then go back to your old rom. Your tablet will also run slower when you use gapps. You can run a lot of software without using gapps. Research fdroid, newpipe, Aurora store etc.

Q5. What TWRP should I use?
A5. You MUST use TWRP 3.6.2_9-0. Do not use any other version including the "latest".

https://dl.twrp.me/gts210vewifi/

I will not answer questions if you don't use this exact TWRP version.

Q6. Why should I use this rom?
A6. If you don't like this rom, then don't use it.

Q7. Will you offer monthly updates with security patches?
A7. I will try to offer monthly security patches, but that all depends on if I continue to have high speed Internet in the future.

Q8. Can you help me? I'm a newbie. Can you provide step by step instructions?
A8. I don't have the time to help newbies, so please do your own research. There are lots of tutorials, videos, etc on how to flash roms. Newbie questions must be posted in the Questions and Answers forum, not here. In addition, I don't run Windows OS at all.

Q9. Can I report a bug with respect to the rom?
A9. Yes, but you need to supply the following information. If you don't, I won't look at it.

You must provide an adb logcat of the problem and tell me how to reproduce it. Note I will not be downloading any apps that require money or an userid/password. For example, if you have problems with Netflix, I cannot help you since I don't have a paid subscription. If you use some app that requires an userid/password, I cannot help you as I'm not willing to create another userid/password even if it's free.

To get a logcat, open up a terminal window.
Code:
# clear the logcat first
adb logcat -c
# start logcat trace
adb logcat > problem.txt
# reproduce problem
# wait until problem has occured, then stop trace by hitting ctrl-c
# attach the problem.txt ZIPPED as text files don't seem to get attached properly
Q10. Will you build Android 14 and higher for this device?
A10. Any questions on higher Android versions will be completely ignored. I do this in my free/spare time and will not be subject to any ETAs or demands. If you want a higher version, the source code is freely available as per FAQ #1 and you can build it yourself.

Q11. Do I need to erase everything and format my data?
A11. Yes, you MUST erase all the partitions (system, data, dalvik/art cache, cache) using TWRP and MUST format your data before installing 20 when you are coming from stock or an earlier version of LineageOS or from another custom rom. If you get stuck at the boot animation for more than 5 minutes, it's likely because you didn't follow the instructions I just wrote. Dirty flashes from stock, other custom roms or older LineageOS versions are not supported and not likely to work.

You MUST FORMAT DATA in TWRP so backup your files first to some external storage (external microsd or PC).

NOTE: After you do the above, first boot (without gapps, magisk, etc) will take about 90 seconds. It may pop with a message saying "System UI isn't responding". Hit close app and then reboot the tablet again.

Q12. What gapps should I use?
A12. I don't use gapps anymore. I use Aurora Store. As of Nov 6, 2021, I no longer make recommendations on which gapps to use as your mileage may vary.

Let me by crystal clear. YOU NEED TO DO YOUR OWN HOMEWORK selecting between the various ARM64 gapps offered. There are 5: opengapps, nikgapps, mindthegapps, flamegapps and bitgapps. Each one will have it's own installation instructions. The only recommendation I will offer to use the SMALLEST version of gapps.

Don't be surprised that whatever gapps you use might have problems like "Just a sec", voice not working, updating google play store please wait, etc. These are NOT problems of the OS as the OS will run fine without gapps. These are gapps problems and you must ask in the gapps forum why it doesn't work.

In addition, some of the gapps may not install properly when using TWRP and say "cannot /mnt/system".

Q13. I'm having problems with gapps, can you answer why it's not working?
A13. I WILL NOT answer any questions regarding gapps. This thread is about the rom, not gapps. Android does not depend on gapps in order to work.

Q14. Why isn't my post answered or ignored?
A14. Questions already answered in the FAQ will be completely ignored. Again, I do not use Windows OS or gapps.

Q15. What speed up/optimization tips do you suggest?
A15.

1. Turn off animations. Go into developer settings, scroll down to the drawing section, and set window, transition and animator scale all to "off".
2. If you don't have a google account, don't install gapps. Use Aurora Store to get your apps as you can get all the same apps from the play store using an anonymous login.
3. Use a web browser like Brave that has built in adblock and privacy features.
4. Use newpipe to watch your streaming content. It has built in adblock so you don't have to watch forced ads.
5. Look for apps that are open source, ad free and lightweight.

Q16. Does this rom support Magisk for root?
A16. I don't use Magisk. Magisk is always being updated to fool Google's certification process which may or may not work.

Q17. Will this rom ever become official?
A17. With 19.1 and up, legacy devices like ours will NEVER be official due to lack of ebpf support. See https://lineageos.org/Changelog-26/

Q18. What is the difference between this rom and others?
A18. This rom tries to be pure LineageOS with little to no modifications.

Q19. Will there be any major 20 code modifications in the future?
A19. I don't anticipate any major modifications. There may be some small bug fixes and minor code cleanup, but all the hard work in getting the rom up and running and fixing all the major bugs have been completed. This doesn't mean the code is perfect or well organized, but I won't be doing any major changes now that 20 is working.

Q20. Can you build a variant of this device? For example, a LTE or S-pen version.
A20. If I don't physically have the device, I cannot and will not build it unless I can boot and test it myself. Even then, there's no guarantee that I can get those variant features working. To be clear, I will NOT build T713, T719 and T819.

Q21. Can I load this rom on a variant devivce like LTE or S-pen version?
A21. The rom is built for the device explicitly listed. If you are an advanced user and understand TWRP, adb, odin, heimdall, you can try loading it on a LTE or S-pen variant by modifying the updater-script, but it may cause a bricked device, bootloops or non functionality of LTE/S-pen. You have been informed and warned!

Q22. Does this rom support OTA updates?
A22. No and I have no plans to add that functionality.

Q23. Why is there no LineageOS 19.1 build?
A23. I actually had a private 19.1 build back in Dec 2022, but stock camera didn't work at all so I decided to try build 20 to see if stock camera works in 20 (it does not either). Since I'm the sole builder for 18.1 and 20, I don't want to build, maintain and test 3 roms each month. Since 19.1 and 20 are very similar, I decided to just do 20 and drop 19.1 altogether. For those that need stock camera to work, use 18.1 (with caveats) or another rom where it works properly.

Q24. Okay, I understand the consequences and that this is ALPHA rom and willing to take the risks outlined, now where can I find the rom?
A24. You can download it from

https://sourceforge.net/projects/retiredtab/files/SM-T813/20/
Release notes

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 in TWRP. This is known has a clean install. Backup your data before a clean install.

June 23, 2023
1. Initial 20 ALPHA public release.
2. Incorporates June 5th security patches as per https://review.lineageos.org/q/topic:"T_asb_2023-06"
3. If you are coming from stock rom or an older LineageOS version (example, 18.1), you MUST format your data in TWRP. Remember to backup your data and verify that restore data works before upgrading to 20.

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK