[T-Mobile Samsung Galaxy S II SGH-T989] retiredtab:
BEFORE YOU decide to try this rom, please read all of post 1, 2 and 3.

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 this rom.

I'm simply offering this rom for those who cannot build it themselves.

What works.

1. audio over bluetooth

2. wifi

3. brightness

4. external audio

5. GPS - a bit slow to get a fix/lock

6. audio through headphone jack

7. camera

FAQ.

Q1. How did you build this? Where can I find the source code and kernel source code?

A1. This is a continuation of bryan2894's 14.1 code found on github. His last rom was built Nov 19, 2017. His github repo shows the last changes on Nov 24, 2017. So you will get the following changes as seen at

Commits · thewizrd/android_kernel_samsung_msm8660-common

Contribute to thewizrd/android_kernel_samsung_msm8660-common development by creating an account on GitHub.

github.com

You will also get whatever LineageOS 14.1 changed in the last 3.25 years including the latest March 2021 security patches.

Thanks to @bryan2894 for his repos so I can build this rom. I have added no value, changes or edits to this rom other than compiling it for 2021.

Q2. Can you fix this GSM/LTE/voice/call/text bug?

A2. No. I recently bought the SGH-I727 (code named skyrocket), but I have no SIM card and I do not plan to get one. So I cannot fix any GSM/LTE/voice/call/text bugs that exist in this rom. Any questions regarding lost, dropped, poor quality calls, low or high volume, poor sound quality, bad microphone, can't recognize sim, etc will go completely unanswered. Do not report these bugs as they will not be fixed by me. If you want to fix them, you can look at the code repositories in post #1.

In addition, there are proprietary voice/radio Samsung blobs where there is no source code so changes are virtually impossible to make.

Q3. What version of TWRP should I use?

A3. You must follow the instructions in post #2 as written by bryan2894 exactly. I followed them and was able to flash my build successfully. If you can't flash the rom, it's likely you are not following the instructions provided. Do not ask TWRP questions in this thread, they will go unanswered.

Q4. How long does the first boot take?

A4. Booting the initial LineageOS 14.1 takes about 7.5 to 8 minutes. Be patient. After it boots, let it sit untouched for 5 minutes and then reboot the phone again. After it boots, let it sit untouched for 5 minutes again before proceeding. This will let the phone do all its stuff and get itself ready.

Q5. Does it run gapps?

A5. This phone was released in Nov 2011 so it's almost 10 years old. It only has 1GB DRAM so I would suggest that you DO NOT install gapps for best performance. There are many alternatives to gapps including Aurora Store and/or installing apks directly onto the phone. Similarly, if you watch youtube videos, I suggest newpipe which is an open source viewer and can skip ads. I use the Brave browser because it has an adblocker and anti tracking features and it works well with this 10 year old phone.

Obviously, it's going to be slower than a new phone, but it's useable as a second phone or some young person's first phone.

I use all the software below.

Aurora Store | F-Droid - Free and Open Source Android App Repository

An unofficial FOSS client to Google Play with an elegant design and privacy

f-droid.org

Releases · TeamNewPipe/NewPipe

A libre lightweight streaming front-end for Android. - TeamNewPipe/NewPipe

github.com

The browser that puts you first | Brave

The Brave browser is a fast, private and secure web browser for PC, Mac and mobile. Download now to enjoy a faster ad-free browsing experience that saves data and battery life by blocking tracking software.

brave.com

If you must install gapps, choose pico as it's the smallest one.

Q6. Will there be monthly security patches?

A6. Yes as long as I have high speed Internet, I will try to release the rom monthly to incorporate the security patches around mid month (10th to 20th). At some point, LineageOS will discontinue back porting security patches to the 14.1 code and that's when I will stop releasing roms. Google does not provide security patches for Android 7.1 anymore (aka LineageOS 14.1).

Q7. Will there be a 15.1, 16.0, 17.1 or 18.1 release?

A7. I compiled 15.1 and while it compiled without errors, it does not boot. I get no boot animation and there is no adb output which makes debugging very difficult. I suspect a kernel problem. If someone can assist, maybe a team of people can get 15.1 running?

Q8. Can you provide step by step instructions?

A8. You can do your own research on how to install a rom and you must read bryan2894's TWRP post #2. There's lots of written FAQ or videos that show you how. In addition, I don't run Windows so I cannot answer any questions regarding drivers, odin, etc. Questions regarding how to install roms, TWRP and Windows will go unanswered.

Q9. Why is my question not answered?

A9. It's likely because it's in the FAQ or it's off topic or you are asking something that I cannot answer for the reasons stated in this FAQ.

Q10. Can I build this rom myself?

A10. Yes, I have provided the roomservice.xml file that I used to build the rom. With it, you can follow any LineageOS build guide/template like

Build for chagallwifi | LineageOS Wiki

wiki.lineageos.org

That's how I built my first rom.

If you are running a newer version of Linux, you may need this additional command to compile the rom.

export LC_ALL=C

For the June 2021 security patch, there were problems building with 4GB with Jack server which worked before. I had to increase to 6GB using

export ANDROID_JACK_VM_ARGS="-Dfile.encoding=UTF-8 -XX:+TieredCompilation -Xmx6G"

Q11. Does this rom run on Hercules?

A11. I have no idea. I only have SGH-I727 and that's what I tested it on. Celox is supposed to be the unification of Hercules and skyrocket, but I can't verify if it runs on Hercules. Having said that, member squircular in post #4 says it works on his/her Hercules device. There's no guarantee that with each monthly security update/patch that this will be true going forward.

Q12. I don't like this rom, can you help me revert back to stock or my old rom?

A12. No. If you want to try this rom, you must backup your data and know how to revert back yourself. Questions of this nature will go unanswered.

Q13. I bricked my phone trying to install this rom. Can you help me?

A13. You assume all responsibilty for trying this rom including a possibly bricked device, lost data, security vulnerabilities, etc. If you are not comfortable flashing roms and don't know how to revert back to stock or older rom, do not install this rom.

Q14. Okay, I accept all the risks and know what I'm getting into, now where can I download this rom?

A14. You can get it at

retiredtab - Browse /SGH-I727/14.1 at SourceForge.net

sourceforge.net