[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.
**
**/

Hi all,

This is a WIP Oreo build for the Galaxy S2 (i9100). Almost everything is working :)

I'm currently using TWRP 3.0.2 on my dev-phone to install the ROM. Other versions of TWRP I haven't tried. I had a hard time to identify the stability issues and issues with RIL because of lack of debug info. Thanks to [MENTION=5695278]ChronoMonochrome[/MENTION] for giving key information to troubleshoot these issues! The stability issues are fixed by several workarounds. (Java NullPointerExceptions are causing native crashes even when they are within try-catch block).

Known issues:

Offline charger not working! Don't drain your phone.

Battery drain, but device do deep sleep

Video recording and playback (partially) not working

No HW video en-/decoding

YouTube just stops after about 10 minutes (no forced closed)

No recent apps behind home button Longpress left touch button.

Can't install su-addon of LineageOS

SuperSU is working but after dirty flash new build causes bootloops

LOS SU is included in these builds.

Lineage PowerHAL needs HIDL implementation for powersaving support

No V-Sync

Distortion when making screenshot and rotation animation

Camera rotation not working (Accelerometer issues)

It sometimes works after standby/wakeup sequence within 5 seconds with camera app still active.

Still batterydrain (Kernel?/wakelock?/GAPPS?)

Battery drain is caused by GAPPS. Installing it and registering an account eats 10% per hour. ROM is deep sleeping fine.

Battery drain is caused by Wifi-scanning. After installing GAPPS the Wifi scanning (and Bluetooth) options are enabled by default. Because of this Wifi is ALWAYS active nevertheless the global Wifi-settings! This behavior doesn't exist in LOS-14.1 (Wifi always active with Wifi scanning enabled)

After a day, some apps are crashing. (Like Cool Tool, WebView (standard browser))

This has something to do with ART. Please correct my findings. I don't know how ART works exactly.

When the app gets optimized by dex2oat and ART is executing it not using JIT, the app crashes when an Null pointer dereference occur.

This occurs after 4 -6 hours when the device is idle on the charger. This even occurs when the java-code is catching the exception.

I guess I miss some kernel commits but I don't know where to look... Help! :(

Temporary workaround is clearing Dalvik-cache via recovery.

For WebView related crashes, you can install Chrome and use this as your WebView-implementation under Developer Options.

We limit ART's compile filter to 'quicken'. ' speed' and 'speed-profile' doesn't work properly on our device.

Enable GO (Low RAM) configuration

I created separate builds for GO until I found out there is a generic solution for this.

You can easily switch between editions by flashing the zip via recovery. Just ignore the TWRP-error.

I didn't investigate its cause but it works. Credits goes to [MENTION=2233641]AdrianDC[/MENTION] for this MOD.

https://xdaforums.com/android/software-hacking/mod-low-ram-property-patcher-android-t3737373

Source code:

https://www.github.com/lineageos

https://www.github.com/rinando

Build #17 2018-10-10

Overall state: Stable-ish

Android build: 8.1.0-r47

Changes:

- Updated Lineage-sources

- Enabled Wifi PowerSaveMode. No WiFi drain anymore!

Download here: lineage-15.1-20181010-UNOFFICIAL-i9100_SU_MicroG.zip

Build #16 2018-10-4

Overall state: Stable-ish

Android build: 8.1.0-r46

I marked the previous build as stable since I was using it for months as daily drive with no issues except the Wifi battery drain when Wi-Fi scanning is active. In this build the kernel has been updated with AutoSleep-feature so I expect a change in battery usage. (Wakelock Detector now reports our wakelocks.) I just finished porting the feature and updating all drivers so I can't tell we actually have improvements. Please test and report.

Changes:

- Updated Lineage-sources

- Deprecated early suspend. We have autosleep in our kernel!

Known issues & workaround:

- Battery drain caused by Wifi scanning which keeps Wifi always active.

Turn Wi-Fi Scanning off here: Settings -> Security & Privacy -> Location -> Scanning ->Wi-Fi scanning

Download here for full Build: lineage-15.1-20181003-UNOFFICIAL-i9100_SU_MicroG.zip

Build #15 2018-8-1

Overall state: Stable

Android build: 8.1.0-r36

Changes:

- Updated Lineage-sources

- Fixed accelerometer. Camera rotation is working!

Known issues & workaround:

- Battery drain caused by Wifi scanning which keeps Wifi always active.

Turn Wi-Fi Scanning off here: Settings -> Security & Privacy -> Location -> Scanning ->Wi-Fi scanning

Download here for full Build: lineage-15.1-20180731-UNOFFICIAL-i9100_SU_MicroG.zip

Build #14 2018-7-2

Overall state: Stable-ish

Android build: 8.1.0-r30

DON'T INSTALL THIS ROM ON YOUR DAILY DRIVE PHONE.

Changes:

- Updated Lineage-sources

- Fixed ART native crash issue!

- Applied GO optimization (except for the low_ram-flag)

Download here for full Build: lineage-15.1-20180702-UNOFFICIAL-i9100_SU_MicroG.zip

Build #13 2018-6-17

Overall state: Stable-ish

Android build: 8.1.0-r30

DON'T INSTALL THIS ROM ON YOUR DAILY DRIVE PHONE.

Changes:

- Updated Lineage-sources

- Update ART compile filters. Should fix app crash the next day

- Fixed screenshot/rotation UI distortion

- Decreased ZRAM to 50MB for better performance

- Back to 512mb dalvik profile

- Default camera-app pinned in memory

Download here for full Build: lineage-15.1-20180616-UNOFFICIAL-i9100_SU_MicroG.zip

Build #12 2018-5-27

Overall state: Stable-ish

Android build: 8.1.0-r26

DON'T INSTALL THIS ROM ON YOUR DAILY DRIVE PHONE.

Changes:

- Updated Lineage-sources

- Fixed AGPS and RIL's CellLocation

- Fixed IMEI and IMEISV

- Fixed a bug in PowerHal. Interaction CPU Boost didn't work properly.

Download here for full Build: lineage-15.1-20180527-UNOFFICIAL-i9100_SU_MicroG.zip

Build #11 2018-5-5

Overall state: Stable-ish

Android build: 8.1.0-r20

DON'T INSTALL THIS ROM ON YOUR DAILY DRIVE PHONE.

Changes:

- Same as Build #10 except:

- Updated Lineage-sources

- Added the MicroG-patch for Signature Spoofing

Download here for full Build: lineage-15.1-20180505-UNOFFICIAL-i9100_SU_MicroG.zip

Build #10 2018-5-1

Overall state: Stable-ish

Android build: 8.1.0-r20

DON'T INSTALL THIS ROM ON YOUR DAILY DRIVE PHONE.

Changes:

* Significant Motion sensor added (Experimental for Doze)

* Enabled ZRAM again - I didn't noticed performance improvement over time.

And I noticed out of memory issues, hangs and softboots.

* Implemented Lineage PowerHAL HIDL implementation for powersaving support.

* Enabled touchbutton brightness-control.

Still working on:

* Accelerometer/rotation issues

* IMEI - IMEI RIL-requests are depricated. I'm trying to shim this.

* Graphical glitches - Probably because of issues with backing store not supported in libMali.so.

* Shimming exynos4 specific things.

* Still in doubt if GPS fix is actually improved....

Download here for full Build: lineage-15.1-20180501-UNOFFICIAL-i9100_SU.zip

Build #9 2018-4-3

Overall state: Carefully stable

Android build: 8.1.0-r15

DON'T INSTALL THIS ROM ON YOUR DAILY DRIVE PHONE.

Changes:

* Fixed hw encoding/decoding (partially via libstagefright_shim. Still need patch in frameworks_av.)

* Camera recording fixed

* GPS fix improvement

* Latest lineage-sources

* Moved most exynos4 specific changes to our shims or own HIDL implementation

* Disabled ZRAM - Hopefully we have better performance after a few days of use

* Using 1GB memory profile instead of 512MB - Maybe this help memory usage more efficient

* RIL - Moved some code to our shims

Still working on:

* IMEI - IMEI RIL-requests are depricated. I'm trying to shim this.

* Graphical glitches - Probably because of issues with backing store not supported in libMali.so.

* Shimming exynos4 specific things.

* Rotation sometimes not working properly.

* Still in doubt if GPS fix is actually improved....

Download here for full Build: lineage-15.1-20180403-UNOFFICIAL-i9100_SU.zip

Download here for GO Build: lineage-15.1-20180402-UNOFFICIAL-i9100_GO_SU.zip

Build #8 2018-2-18

Overall state: Carefully stable

Android build: 8.1.0-r11

DON'T INSTALL THIS ROM ON YOUR DAILY DRIVE PHONE.

Changes:

- Updated LOS sources

- Fixed offline charging

- Added SU

- Updated GPS-Shim (Now shimming i9100 specific structs)

Download here for full Build: lineage-15.1-20180217-UNOFFICIAL-i9100_SU.zip

Download here for GO Build: lineage-15.1-20180217-UNOFFICIAL-i9100_GO_SU.zip

Build #7 2018-1-29

Overall state: Carefully stable, lets test!

Android build: 8.1.0-r4 (GO)

DON'T INSTALL THIS ROM ON YOUR DAILY DRIVE PHONE.

Changes:

- Updated LOS sources

- Advanced Display is back

- Live Display is back

- Fixed SamsungPowerHAL.

Battery drain should be fixed.

- Fixed crash when alarm goes off in clock-app

(and possibly other crashes)

Download here for full Build: lineage-15.1-20180129-UNOFFICIAL-i9100.zip

Download here for GO Build: lineage-15.1-20180129-UNOFFICIAL-i9100_GO.zip

Build #6 2018-1-23

DON'T INSTALL THIS ROM ON YOUR DAILY DRIVE PHONE.

Overall state: Carefully stable, lets test!

Android build: 8.1.0-r4 (GO)

Changes:

* Fixed random softboots by workarounds, uptime so far 20 hours.

* Fixed installing large apps via GAPPS (Waze, Antutu 3D benchmark, etc)

* Fixed bluetooth crash/restart when turned off

Download here: lineage-15.1-20180123-UNOFFICIAL-i9100.zip

Build #5 2018-1-13

DON'T INSTALL THIS ROM ON YOUR DAILY DRIVE PHONE.

Overall state: More stable

Android build: 8.1.0-r4

Changes:

* RIL works!

* Disabeled HW Codecs.

* GAPPS 8.1 is working!

* Random softboots when WIFI is enabled (as far as I know)

* Workarounds implemented for stability (Still investigating main cause)

Download here: lineage-15.1-20180113-UNOFFICIAL-i9100.zip

Build #4 2017-12-10

DON'T INSTALL THIS ROM ON YOUR DAILY DRIVE PHONE.

Overall state: UNSTABLE

Android build: 8.1.0-r1

Changes:

* Same things works/not works as Build #3

* Using GO-configuration

* Most apps won't start or crashes randomly.

* Don't install GAPPS.

Download here: lineage-15.1-20171210_204047-UNOFFICIAL-i9100.zip

Build #3 2017-12-04

DON'T INSTALL THIS ROM ON YOUR DAILY DRIVE PHONE.

Overall state: UNSTABLE

Android build: 8.0.0-r30

What works?

* Display color Fix (BOARD_EGL_WORKAROUND_BUG_10194508)

* Bluetooth

* Wifi

* Audio

* Camera (Take picture only)

* Vibrator

* GPS

* Sensors (all but accelerometer)

What doesn't work?

* Charger

* Camera (Video recording)

* Display graphics issues (distortion + hw acceleration)

* HW Video playback

* RIL (null pointer reference on setRadioState in libsec-ril.so)

* Accelerometer

* Stability issues (Time to time null pointer reference in /data/dalvik-cache/arm/system@framework@services.jar@classes.dex (offset 0x500000))

Download here: Lineage-15.0-20171203_214230-UNOFFICIAL-i9100.zip

Build #2 2017-11-13

DON'T INSTALL THIS ROM ON YOUR DAILY DRIVE PHONE.

Overall state: UNSTABLE

Android build: 8.0.0-r30

What works?

* Display color Fix (BOARD_EGL_WORKAROUND_BUG_10194508)

* Bluetooth

* Wifi

What doesn't work?

* Audio

* Display graphics issues (distortion)

* Video playback

* Camera

* Vibrator

* RIL

* And still many more....

Download here: lineage-15.0-20171113-UNOFFICIAL-i9100.zip

Build #1 2017-09-17

DON'T INSTALL THIS ROM ON YOUR DAILY DRIVE PHONE.

Overall state: UNSTABLE

What works? Nothing, not really tested because it just booted

What doesn't work? Everything, not really tested

Download here: lineage-15.0-20170917-UNOFFICIAL-i9100.zip