Code:
/*
** 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 an unofficial Pie build for the Galaxy S2 (i9100) based on LineageOS 16.0.
Yes Pie on our ancient Galaxy S2. I had it working in September 2018 but waited after I had Autosleep ported to our kernel. The biggest issues before I started porting Pie was the Display stuff. We needed at least HWC 1.3 and we had our old HWC 1.0. Surfaceflinger removed all legacy stuff, so how to upgrade to a new HWC??? I got no knowledge how that works.... Then I remembered that @Fourkbomb was rebasing the kernel for i9300 and was working on HWC. He was working on HWC 1.4, so I tried to port those drivers in our kernel with success! Got display running! After that I fixed a minor thing in system/vold, adding patches we already have in LOS 15.1 and after 3 weeks I got it booting! But batterylife was horrible due lack of AutoSleep. So I ported AutoSleep first to our stable unofficial LOS 15.1 kernel. And now that works, lets publish this first unofficial version of Pie on our S2!
Update 2-2-2019:
I decided to switch to emulated storage. The storage issues are probably because of the legacy partitioning. The crash of the Files-app crashes because of this. The only downside I see is that you need to repit if you want to go back to stock or CM-15.1 or less. We need to use repit anyway for the 1.5GB System partition, so why not? Maybe because you are using LOS 16.0 allready and have some stuff on sdcard0 (the phone' s internal SDCard). I developed 2 years a ago a migration recovery but lost focus. Before you install LOS 16.0 Build#7 and higher, please follow the following instruction:
Upgrade from Build 7-13 to Build #14 and higher
Flash i9100-LOS-16.0-Emulated-Storage-TWRP-3.3.1-1.img and reboot recovery. In TWRP-3.3.1-1 you will then be able to (dirty) flash
lineage-16.0-20190707-UNOFFICIAL-i9100.zip
Upgrade from Samsung stock ROM to Build #14 and higher using ODIN 3.07
Copy lineage-16.0-20190707-UNOFFICIAL-i9100.zip to your Micro SD-card before flashing.
Pit: i9100-LOS-16.0-Emulated-Storage.pit UPDATED ON 15-7-2019 due an error in previous PIT
PDA: i9100-LOS-16.0-Emulated-Storage-TWRP-3.3.1-1.tar.md5
1. Boot your phone into Download-mode (Volume down + Power/Standby + Home and hold for 10 seconds).
2. Start ODIN 3.07 on your PC.
3. Connect your phone via USB to your PC.
4. Press volume up on your phone, ODIN should detect your phone.
5. In ODIN:
Auto Reboot : unchecked
Re-Partition: checked
PIT : i9100-LOS-16.0-Emulated-Storage.pit
PDA : i9100-LOS-16.0-Emulated-Storage-TWRP-3.3.1-1.tar.md5
6. Press Start.
7. After succesful flash, reboot phone into Recovery:
- Press Volume up + Power/Standby + Home and hold for 10 seconds.
The phone shuts down.
- Repeat Press Volume up + Power/Standby + Home and hold for 10 seconds
Phone boots in recovery TWRP 3.3.1-1.
8. Swipe to Allow Modifications
9. In TWRP 3.3.1-1 you need to format partions
- Wipe -> Format Data -> Type [yes]
- Wipe -> Advanced Wipe -> Select:
* Davik / ART Cache
* Cache
* System
* Non-emulated Storage
-> Swipe to Wipe
10. Install LOS-16.0 + Gapps or MicroG
To prevent "Uncryption unsuccessful" error of GAPPS at first start:
- Reboot to recovery and Wipe -> Format Data -> Type [yes] again
11. Boot System
Known issues:
Wifi works and connects, but no Internet. (Network unreachable)Battery drain when Wifi-scanning is enabled (by default when installing GAPPS)Camera doesn't workNo SU, don't know why...Graphical glitchesSoftboots or hang due bugs in HWCVSync not working properly like in LOS 15.1GAPPS is slow and crashes after connecting to WifiLiveDisplay not implementedSometimes graphical glitch at wake up (mDNIe related)SIM pincode broke since build #13. Disable your SIM pincode before using this rom or have your PUK code standby.
Source code:
https://www.github.com/lineageos
https://www.github.com/rinando
Credits to:
@forkbomb444 for his port of HWC 1.4
@Chronomonochrome for teaming up Exynos4 fixes
@TALUAtXDA for porting exFAT
and everyone testing our ROMS!
Build #21 2020-03-20
Overall state: Stable
Android build: 9.0.0-r46
Required recovery: TWRP 3.3.1-1
- Updated sources
- Updated boot-image for Magisk v20.3
Known issues:
- Call recording only records microphone
Please report if there are more issues.
Downloads
i9100-LOS-16.0-Emulated-Storage.pit
i9100-LOS-16.0-Emulated-Storage-TWRP-3.3.1-1.tar.md5
i9100-LOS-16.0-Emulated-Storage-TWRP-3.3.1-1.img
Download LineageOS 16.0 SU (arm) addon/removal here
lineage-16.0-20200320-UNOFFICIAL-i9100.zip
lineage-16.0-20200320-UNOFFICIAL-i9100_boot_magisk.img
Old builds
Build #20 2019-12-20
Overall state: Stable
Android build: 9.0.0-r46
Required recovery: TWRP 3.3.1-1
- Updated sources
Known issues:
- Call recording only records microphone
Please report if there are more issues.
Downloads
i9100-LOS-16.0-Emulated-Storage.pit
i9100-LOS-16.0-Emulated-Storage-TWRP-3.3.1-1.tar.md5
i9100-LOS-16.0-Emulated-Storage-TWRP-3.3.1-1.img
Download LineageOS 16.0 SU (arm) addon/removal here
lineage-16.0-20191220-UNOFFICIAL-i9100.zip
lineage-16.0-20191220-UNOFFICIAL-i9100_boot_magisk.img
Build #19 2019-11-30
Overall state: Stable
Android build: 9.0.0-r46
Required recovery: TWRP 3.3.1-1
- Updated sources
- Added support for exFAT + NTFS (Thanks to @TALUAtXDA)
- Updated Magisk to v20.1 in lineage-16.0-20191130-UNOFFICIAL-i9100_magisk_boot.img
Known issues:
- Call recording only records microphone
Please report if there are more issues.
Downloads
i9100-LOS-16.0-Emulated-Storage.pit
i9100-LOS-16.0-Emulated-Storage-TWRP-3.3.1-1.tar.md5
i9100-LOS-16.0-Emulated-Storage-TWRP-3.3.1-1.img
Download LineageOS 16.0 SU (arm) addon/removal here
lineage-16.0-20191130-UNOFFICIAL-i9100.zip
lineage-16.0-20191130-UNOFFICIAL-i9100_magisk_boot.img
Build #18 2019-10-06
Overall state: Stable
Android build: 9.0.0-r46
Required recovery: TWRP 3.3.1-1
- Updated sources
- Fixed SIM Pincode
Known issues:
- Call recording only records microphone
Please report if there are more issues.
Downloads
i9100-LOS-16.0-Emulated-Storage.pit
i9100-LOS-16.0-Emulated-Storage-TWRP-3.3.1-1.tar.md5
i9100-LOS-16.0-Emulated-Storage-TWRP-3.3.1-1.img
Download LineageOS 16.0 SU (arm) addon/removal here
lineage-16.0-20191006-UNOFFICIAL-i9100.zip
lineage-16.0-20191006-UNOFFICIAL-i9100_magisk_boot.img
Build #17 2019-09-13
Overall state: Stable
Android build: 9.0.0-r46
Required recovery: TWRP 3.3.1-1
- Updated sources
- Fixed color issues in screen recording
- Implemented Outdoor (bright sun) display mode.
Automatic outdoor mode behavior is disabled by default.
WARNING: Use with caution! Continuous usage in this mode will degrade your OLED display!
- Disabled KSM (Kernel Same-page Merging) for better overal performance.
Known issues:
- Call recording only records microphone
- SIM Pincode doesn't work, need PUK to unlock!
Please report if there are more issues.
Downloads
i9100-LOS-16.0-Emulated-Storage.pit
i9100-LOS-16.0-Emulated-Storage-TWRP-3.3.1-1.tar.md5
i9100-LOS-16.0-Emulated-Storage-TWRP-3.3.1-1.img
Download LineageOS 16.0 SU (arm) addon/removal here
lineage-16.0-20190913-UNOFFICIAL-i9100.zip
lineage-16.0-20190913-UNOFFICIAL-i9100_magisk_boot.img
Build #16 2019-08-11
Overall state: Stable
Android build: 9.0.0-r46
Required recovery: TWRP 3.3.1-1
- Updated sources
- Added Magisk kernel build-script in device-tree
- Magisk support via i9100-LOS 16.0-magisk-boot.img!
This installs the patched kernel with Magisk-v19.3.zip
Known issues:
- Call recording only records microphone
Please report if there are more issues.
Downloads
i9100-LOS-16.0-Emulated-Storage.pit
i9100-LOS-16.0-Emulated-Storage-TWRP-3.3.1-1.tar.md5
i9100-LOS-16.0-Emulated-Storage-TWRP-3.3.1-1.img
Download LineageOS 16.0 SU (arm) addon/removal here
lineage-16.0-20190811-UNOFFICIAL-i9100.zip
i9100-LOS 16.0-magisk-boot.img
Build #15 2019-07-22
Overall state: Stable
Android build: 9.0.0-r44
Required recovery: TWRP 3.3.1-1
- Updated sources
- Reenabled multi-user in low_ram
- Pinnerservice: Drop camera- and launcher apps, resulting more memory for other apps
- Camera: Fixed autofocus in preview (tested with WhatsApp)
- Set ro.config.small_battery-flag. Deep sleep kicks in 15 minutes instead of 30 minutes
- Fixed wakelock issue after using flashlight once
- Dropped Lineage SU in build, download and install seperately from Lineage website
Known issues:
- Call recording only records microphone
Please report if there are more issues.
Downloads
i9100-LOS-16.0-Emulated-Storage.pit
i9100-LOS-16.0-Emulated-Storage-TWRP-3.3.1-1.tar.md5
i9100-LOS-16.0-Emulated-Storage-TWRP-3.3.1-1.img
Download LineageOS 16.0 SU (arm) addon/removal here
lineage-16.0-20190721-UNOFFICIAL-i9100.zip
Build #14 2019-07-07
IMPORTANT
From this build on you need to use my unofficial TWRP 3.3.1-1 which has emulated storage support.
Overall state: Stable
Android build: 9.0.0-r44
Required recovery: TWRP 3.3.1-1
- Updated sources
- Set swappiness to 100
- Fixed BLN
- Using Preload-partition for misc
- Added Bluetooth SIM Access Profile support (I ported this, but can't test)
- Fixed stereo microphone recording (also in videorecording)
Known issues:
- Call recording only records microphone
Please report if there are more issues.
Downloads
i9100-LOS-16.0-Emulated-Storage.pit UPDATED ON 15-7-2019 due an error in previous PIT
i9100-LOS-16.0-Emulated-Storage-TWRP-3.3.1-1.tar.md5
i9100-LOS-16.0-Emulated-Storage-TWRP-3.3.1-1.img
lineage-16.0-20190707-UNOFFICIAL-i9100.zip
Build #13 2019-6-11
Overall state: Stable
Android build: 9.0.0-r40
Required recovery: TWRP 3.1.0-EMU-MIGRATION-M-20170318.zip
- Updated sources
Known issues:
None (But that can't be possible) Please report
Downloads:
TWRP 3.1.0-EMU-MIGRATION-M-20170318.zip
lanchon-repit-20170115-system=1.5G-data=max-sdcard=min+wipe-preload=min+wipe-i9100.zip
lineage-16.0-20190611-UNOFFICIAL-i9100.zip
Build #12 2019-5-11
Overall state: Stable
Android build: 9.0.0-r37
Required recovery: TWRP 3.1.0-EMU-MIGRATION-M-20170318.zip
- Updated sources
- Fixed Headphone volume control (selinux denial)
- Set ZRAM to 350MB
- Tweaked ActivityManager settings
- Added back SamsungDoze (thanks to @linusdan)
- Fixed preview crash camera/video in Snap
- Flashlight wakelock fixed (Fixed in kernel thanks to @ChronoMonochrome)
Known issues:
None (But that can't be possible) Please report
Downloads:
TWRP 3.1.0-EMU-MIGRATION-M-20170318.zip
lanchon-repit-20170115-system=1.5G-data=max-sdcard=min+wipe-preload=min+wipe-i9100.zip
lineage-16.0-20190510-UNOFFICIAL-i9100.zip
Build #11 2019-4-9
Overall state: Stable
Android build: 9.0.0-r34
Required recovery: TWRP 3.1.0-EMU-MIGRATION-M-20170318.zip
- Updated sources
- Fixed F2FS for /system, /cache and /data partition
- Fixed USB-modes via Settings->Connected devices
- Enabled Selinux
- Reverted /misc back to /preload (We have Lineage-recovery now)
- Reverted low_ram-flag so we can multi-task/splitscreen (please check if performance is still acceptable)
- Enabled multi-user, because we're on emulated storage
- Enabled Call-recording (if allowed by your country)
Known issues:
- Camera app "Snap" works buggy. Sometimes black screen
- Wakelock on flashlight not working (Flashlight turns off after 10 secs)
Downloads:
TWRP 3.1.0-EMU-MIGRATION-M-20170318.zip
lanchon-repit-20170115-system=1.5G-data=max-sdcard=min+wipe-preload=min+wipe-i9100.zip
lineage-16.0-20190409-UNOFFICIAL-i9100.zip
Build #10 2019-3-21
Overall state: Stable
Android build: 9.0.0-r34
Required recovery: TWRP 3.1.0-EMU-MIGRATION-M-20170318.zip
- Updated sources
- Ported SDCardFS to our kernel
- Ported FunctionFS to our kernel
- Fixed WiFi HotSpot
Known issues:
- Camera app "Snap" works buggy. Sometimes black screen
- Wakelock on flashlight not working (Flashlight turns off after 10 secs)
Downloads:
TWRP 3.1.0-EMU-MIGRATION-M-20170318.zip
lanchon-repit-20170115-system=1.5G-data=max-sdcard=min+wipe-preload=min+wipe-i9100.zip
lineage-16.0-20190321-UNOFFICIAL-i9100.zip
Build #9 2019-2-25
Overall state: Stable
Android build: 9.0.0-r31
Required recovery: TWRP 3.1.0-EMU-MIGRATION-M-20170318.zip
- Updated sources
- Moved Exynos4 framework hacks to device tree's thanks to @ChronoMonochrome
- Move Target SDK to shims to allow textrelocation for gps, sensors and ril (removed bionic/libc-hacks)
- Removed AshMem-tracking hack thanks to @ChronoMonochrome for hacking our libsecril.so!
- Fixed GAPPS crash at first startup. (I think it was Ashmem-tracking hack)
- Wakelock on flashlight (Flashlight turned off after 10 secs)
Known issues:
I hope none Please report
Downloads:
TWRP 3.1.0-EMU-MIGRATION-M-20170318.zip
lanchon-repit-20170115-system=1.5G-data=max-sdcard=min+wipe-preload=min+wipe-i9100.zip
lineage-16.0-20190224-UNOFFICIAL-i9100.zip
Build #8 2019-2-16
Overall state: Stable-ish
Android build: 9.0.0-r31
Required recovery: TWRP 3.1.0-EMU-MIGRATION-M-20170318.zip
- Updated sources
- Screen tearing fixed, thanks to @Chronomonochrome
- Fixed graphical glitch at wake up
- Implemented LiveDisplay 2.0
Known issues:
- Lagging GAPPS and crashes during first start.
Downloads:
TWRP 3.1.0-EMU-MIGRATION-M-20170318.zip
lanchon-repit-20170115-system=1.5G-data=max-sdcard=min+wipe-preload=min+wipe-i9100.zip
lineage-16.0-20190216-UNOFFICIAL-i9100.zip
Build #7 2019-2-2
IMPORTANT: You need to migrate to emulated storage using TWRP 3.1.0-EMU-MIGRATION-M-20170318
See opening post for detailed installation instructions.
Overall state: Stable-ish
Android build: 9.0.0-r30
Required recovery: TWRP 3.1.0-EMU-MIGRATION-M-20170318.zip
- Implemented PowerHAL
- Implemented Advanced Display with mDNIe scenarios and kernel fixes
- Decreased heapsize to 256mb
- Set Server Compiler Filter to speed for performance
- Pthread issue in libc moved to shim, thanks to @Chronomonochrome
Known issues:
- V-sync not working properly like in LOS 15.1
- GAPPS crashes during first start.
- Sometimes graphical glitch at wake up (mDNIe related)
Downloads:
TWRP 3.1.0-EMU-MIGRATION-M-20170318.zip
lanchon-repit-20170115-system=1.5G-data=max-sdcard=min+wipe-preload=min+wipe-i9100.zip
lineage-16.0-20190202-UNOFFICIAL-i9100.zip
Build #6 2019-1-14
Overall state: Stable-ish
Android build: 9.0.0-r30
- Updated sources
- Fixed graphical glitches
Known issues:
- V-sync not working properly like in LOS 15.1
Download here: lineage-16.0-20190113-UNOFFICIAL-i9100.zip
Build #5 2019-1-13
Overall state: Stable-ish
Android build: 9.0.0-r30
- Updated sources
- Fixed high-res display statusbar issue
- Fixed memory leak and crash in hwc
- ZRAM set to 200MB
- Applied GO config for 512mb devices
Known issues:
- Graphical glitches
Download here: lineage-16.0-20190112-UNOFFICIAL-i9100.zip
Build #4 2018-12-15
Overall state: Stable-ish
Android build: 9.0.0-r21
- Updated sources
- Fixed screenshot and Colorfade animation
- Updated pinnerService, which caused excessive lags and battery drain
Known issues:
- Graphical glitches and crashes
Download here: lineage-16.0-20181215-UNOFFICIAL-i9100.zip
Build #3 2018-11-14
Overall state: Stable-ish
Android build: 9.0.0-r16
- Updated sources
- Fixed Camera rear & front, picture and video recording!
- Wakeup via Home button (including offline charging)
- Memory optimization (800mb available like we have in Oreo)
In previous build we had 700mb memory available because of HWC1.4.
It seems this was not neccessary for fimc/camera issues which are fixed now.
Known issues:
- Graphical glitches and crashes
- Sometimes slow responsive after wakeup
Download here: lineage-16.0-20181014-UNOFFICIAL-i9100.zip
Build #2 2018-10-9
Overall state: Stable-ish
Android build: 9.0.0-r10
- Updated sources
- Fixed Wifi network (by reverting this commit) Thanks to @ChronoMonochrome pointing me into the right direction!
- Fixed Wifi battery drain. (/data/.psm.info stands for PowerSaveMode for Wifi)
Download here: lineage-16.0-20181009-UNOFFICIAL-i9100.zip
Build #1 2018-10-5
Overall state: Stable-ish
Android build: 9.0.0-r6
The first build! I waited to release this version after I had Autosleep ported to our kernel. Thanks to @Fourkbomb I have ported his (unfinished yet) HWC 1.4 implementation to get the Graphical stuff working
Download here: lineage-16.0-20181004-UNOFFICIAL-i9100.zip
XDA:DevDB Information
[ROM][UNOFFICIAL][9.0.0][r46][I9100] LineageOS 16.0, ROM for the Samsung Galaxy S II
Contributors
rINanDO
ROM OS Version: 9.x Pie
ROM Kernel: Linux 3.0.x
Version Information
Status: Alpha
Created 2018-10-05
Last Updated 2020-03-20
Last edited: