[Galaxy S II Android Development] rINanDO:
/*
** Your warranty is now void.
**
** We are not responsible for bricked devices, dead SD cards,
** thermonuclear war, or you getting fired because the alarm app failed. Please
** do some research if you have any concerns about features included in this ROM
** before flashing it! YOU are choosing to make these modifications, and if
** you point the finger at us for messing up your device, we will laugh at you.
**
**/

About LineageOS

LineageOS is a free and open-source operating system for set-top boxes, smartphones and tablet computers, based on the Android mobile platform. It is the successor to the custom ROM CyanogenMod, from which it was forked in December 2016 when Cyanogen Inc. announced it was discontinuing development and shut down the infrastructure behind the project. Since Cyanogen Inc. retained the rights to the Cyanogen name, the project rebranded its fork as LineageOS.

LineageOS was officially launched on December 24, 2016, with the source code available on GitHub. Since that time, LineageOS development builds now cover more than 185 phone models with over 1.9 million active installs,having doubled its user base in the month February–March 2017 And if you would like to contribute to LineageOS, please visit out Gerrit Code Review.

About Galaxy S2 running Android 12 12.1!

Hi everyone,

Welcome to my thread for i9100 (from 2011) running Android 12. It took a while, but now the rom is at a usable state (no daily).

In my country my provider KPN will stop supporting 3G on march 2022 and this wil make my S2 unusable for daily drive. This means I probably won't port this phone to Android 13 in the future.

Update 16-03-2022

I renamed the thread because I updated the sources to LOS 19.1/Android 12.1 and everything is still working except of GPS.

Credits

* @ChronoMonochrome

* Shivaay

* @lee.wp14

* @ze7zez

* arco68

* Team Infusion

* LineageOS & CO (For Source Code)

* All the authors the last 10 years working on this legendary phone

* Last but not least @channel48 which reviews custom ROMS from all kind of phones including my work on this ancient one :)

I hope I didn't miss someone, please let me know.

Source code:

https://www.github.com/lineageos

https://www.github.com/rinando

Current state:

Working:

- RIL (Phone/SMS)

- Audio

- Bluetooth (audio & headset)

- Wifi

- IMEI

- Touchkeys

- Hardware encode/decoder

- Display

- DRM, for e.g. Netflix

- Selinux enforced

- BitGapps

- Magisk v23.0 v24.1

- FM Radio (using Spirit2)

- Camera Videorecording

- Camera Pictures

- MicroG support

- (A)GPS fixed! Thanks to @html6405 for helping me out!

Working-ish/WIP:

- BLN

- Camera Pictures, one time only and crashes after second use untill reboot.

- Sensors, sometimes works

Not working/known issues:

- AGPS

- Camera Videorecording

- PowerHAL

- LiveDisplay

- MicroG support

Won't fix:

- HDMI (MHL) (support broken/removed since CM 10)

- (A)GPS, I can't fix this blob crash :(

How to FULL clean flash LOS 19.1 and TWRP 3.6.1_9.0

Warning: This will erase your data-partition completely!

Download i9100-LOS 19.1 via ODIN.zip and unzip it on your Windows PC.

Start the Odin3 v3.07.exe in the ODIN3 v3.07-folder

Choose for PIT: i9100-LOS-19.1.pit

Choose for PDA: i9100-LOS-19.1_android-12.1.0_r2.tar

Make sure the following checkboxes are checked:

Auto Reboot (optional)

Re-Partition

PDA

Click Start!

Reboot your phone and LOS 19.1 will start. First start could take about a few minutes.

Note about new PIT-file: The recovery image of TWRP 3.6.1 exceeds the 8mb partition size of our PIT. That is why I introduced a new PIT-file. I also enlarged the System-partition (FACTORYFS) to 2GB. These are the partition changes (compared with stock) of PIT-file i9100-LOS-19.1.pit :

Partition name	Stock size	LOS 19.1 size
RECOVERY	8MB	32MB
CACHE	100MB	76MB
FACTORYFS	512MB	2048MB
DATAFS	2048MB	12792MB
UMS	11784MB	8MB
HIDDEN	512MB	8MB

How to apply Magisk

Copy the Magisked kernel on the SD-card of your phone.

This is the second download-file in the download section ending with ...magisk_boot.img.

Reboot into recovery (TWRP)

In TWRP

Choose Install

Choose Install Image

Now you can select ...magisk_boot.img

Choose Boot

And flash it

Reboot into Android

Download Magisk from https://magiskmanager.com

If you download the .zip, rename it to .apk

Install the Magisk App in Android and follow its instructions

Downloads - TWRP 3.6.1

To install TWRP 3.6.1 you need to enlarge your recovery-partition.

You can download manually the PIT file here.

I recommend to use the "full clean flash"-instructions described above which comes with TWRP 3.6.1.

Download TWRP 3.6.1_9.0 here:

twrp-3.6.1_9.0-i9100.img

If you need Toybox instead of Busybox, you can download the toybox-version here:

twrp-3.6.1_9.0-i9100_toybox.img

How to flash .img-file:

In TWRP => Install => Install Image => Choose your img-file => Choose Recovery => Flash

Downloads - LOS 19.1 Builds

Build #2 2022-06-13

Overall state: Stable

Android build: 12.1.0-r7

Required recovery: TWRP 3.3.1-1

Changes:

- Updated LOS sources

- Fixed (A)GPS thanks to @html6405 !

Downloads

lineage-19.1-20220613-UNOFFICIAL-i9100.zip

lineage-19.1-20220613-UNOFFICIAL-i9100_magisk_24100_boot.img

Build #1 2022-03-15

Overall state: Stable

Android build: 12.1.0-r1

Required recovery: TWRP 3.3.1-1

Changes:

- Updated LOS sources

- If you are using Magisk, please use v24.1.

There are issues with v24.2 and v24.3 which doesn't work properly on our device.

Downloads

lineage-19.1-20220315-UNOFFICIAL-i9100.zip

lineage-19.1-20220315-UNOFFICIAL-i9100_magisk_24100_boot.img

LOS 19.0 Builds

Build #3 2022-02-28

Overall state: Stable

Android build: 12.0.0-r29

Required recovery: TWRP 3.3.1-1

Changes:

- Updated LOS sources

- Fixes Bluetooth

- Disabled (A)GPS, I can't fix this.

Downloads

lineage-19.0-20220227-UNOFFICIAL-i9100.zip

lineage-19.0-20220227-UNOFFICIAL-i9100_magisk_boot.img

Build #2 2022-01-09

Overall state: Lets find out!

Android build: 12.0.0-r18

Required recovery: TWRP 3.3.1-1

Changes:

- Updated LOS sources

- Fixed Camera picture

- Fixed Camera videorecording

- MicroG support (Should work, I didn't test it myself, please test)

- Disabled some animation for more responsiveness

- Some optimization for zRAM/IO/LMK and background services

Downloads

lineage-19.0-20220109-UNOFFICIAL-i9100.zip

lineage-19.0-20220109-UNOFFICIAL-i9100_magisk_boot.img

Build #1 2021-12-28

Overall state: Lets find out!

Android build: 12.0.0-r18

Required recovery: TWRP 3.3.1-1

Downloads

lineage-19.0-20211228-UNOFFICIAL-i9100.zip

lineage-19.0-20211228-UNOFFICIAL-i9100_magisk_boot.img