[ROM][UNOFFICIAL][11.0.0][r46][I9100] LineageOS 18.1

Search This thread

rINanDO

Senior Member
Dec 17, 2009
701
4,750
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,

Well... It is still possible. Galaxy SII running Android 11! I could have made this port sooner, but the lack of time stalled a bit. Thanks to @ChronoMonochrome who ported LOS 18.0 for S3 couple months ago still using kernel 3.0.101 (or optionally 3.4) it should also be possible to build it for S2. Building for i9100 isn't straight forward because of the major changes in the image creation routines (creating boot.img, etc for the installable zip). And the GCC compiler support of Kernel 3.0.101 is removed. After resolving these issues I got my first flashable zip! Then I needed to get manifest.xml properly. Thanks to Shivaay who helped me and I got it finally booting! It was horribly slow because of some internal changes in LMKD which our kernel doesn't support some features. The Settings-app crashes immediately leaving me unable to investigate. After reverting some patches in LMKD and things in framework/base it started to run like Android 10. I addressed the HAL's and got almost everything working in this ROM. Of course it isn't perfect and there will be bugs or instability. I'm no Samsung, just a DIY :)

For these builds you NEED ISOlated-RECovery because I had to eliminate the embedded (.cpio) ramdisk-images in zImage.
Upgrade from Samsung stock ROM using ODIN 3.07
lineage-18.0-20201207-UNOFFICIAL-i9100.zip

PIT: i9100-LOS-16.0-Emulated-Storage.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-18 ( + optionally 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
DON'T INSTALL TWRP APP. This will cause bootloop!
12. For MicroG users:
You need manualy grant permissions via ADB to get things working properly.
These are the commands:
adb shell pm grant com.android.vending android.permission.FAKE_PACKAGE_SIGNATURE
adb shell pm grant com.google.android.gms android.permission.FAKE_PACKAGE_SIGNATURE


Thanks To
  • @ChronoMonochrome
  • Shivaay
  • @lee.wp14
  • @ze7zez
  • arco68
  • Team Infusion
  • LineageOS team
  • and all prior developers that were working on this phone.
    I hope I didn't missed someone, please let me know.
  • Last but not least @channel48 which reviews custom ROMS from all kind of phones including my work on this ancient one :)
Source code:
https://www.github.com/lineageos
https://www.github.com/rinando

Current state:
Working:
- RIL (Phone/SMS)
- AGPS
- Audio
- Bluetooth (audio & headset)
- Wifi
- IMEI
- Touchkeys
- Camera Pictures
- Camera Videorecording
- Hardware encode/decoder
- Display
- Sensors
- DRM, for e.g. Netflix
- PowerHAL
- LiveDisplay
- Selinux enforced
- BitGapps
- Magisk v22.1
- FM Radio using Spirit2)


Not tested:
- Bluetooth headset
- BLN
- FM-Radio (using Spirit2)
- TWRP 3.4.0-0

Not working/known issues:
- Magisk support (misses some frameworks patches I guess)
- FM-Radio (using Spirit2)
- Home
- MicroG support
- Home-button not working while charging when phone is turned off. Use power-button

- Sometimes shutdown phone hangs (and draining your battery)
- Bluetooth headset connected via SCO

Won't fix:
- HDMI (MHL) (support broken/removed since CM 10)
 
Last edited:

rINanDO

Senior Member
Dec 17, 2009
701
4,750
Build #13 2022-02-27
Overall state: Stable-ish
Android build: 11.0.0-r46
Required recovery: TWRP 3.3.1-1

Changes:
- Updated sources
- Magisk v24.1 support


Downloads
i9100-LOS-16.0-Emulated-Storage.pit
i9100-LOS-16.0-Emulated-Storage-TWRP-3.3.1-1.img

lineage-18.1-20220226-UNOFFICIAL-i9100.zip
lineage-18.1-20220226-UNOFFICIAL-i9100_magisk_boot.img


Build #12 2021-09-13
Overall state: Stable-ish
Android build: 11.0.0-r43
Required recovery: TWRP 3.3.1-1

Changes:
- Updated sources


Downloads
i9100-LOS-16.0-Emulated-Storage.pit
i9100-LOS-16.0-Emulated-Storage-TWRP-3.3.1-1.img

lineage-18.1-20210912-UNOFFICIAL-i9100.zip
lineage-18.1-20210912-UNOFFICIAL-i9100_magisk_boot.img

Build #11 2021-08-27
Overall state: Stable-ish
Android build: 11.0.0-r40
Required recovery: TWRP 3.3.1-1

Changes:
- Updated sources
- Fixed Bluetooth headset


Downloads
i9100-LOS-16.0-Emulated-Storage.pit
i9100-LOS-16.0-Emulated-Storage-TWRP-3.3.1-1.img

lineage-18.1-20210827-UNOFFICIAL-i9100.zip
lineage-18.1-20210827-UNOFFICIAL-i9100_magisk_boot.img

Build #10 2021-08-10
Overall state: Stable-ish
Android build: 11.0.0-r40
Required recovery: TWRP 3.3.1-1

Changes:
- Updated sources
- Adjusted OLED brightness levels
- Enabled auto brightness


Downloads
i9100-LOS-16.0-Emulated-Storage.pit
i9100-LOS-16.0-Emulated-Storage-TWRP-3.3.1-1.img

lineage-18.1-20210810-UNOFFICIAL-i9100.zip
lineage-18.1-20210810-UNOFFICIAL-i9100_magisk_boot.img

Build #9 2021-07-15
Overall state: Stable-ish
Android build: 11.0.0-r39
Required recovery: TWRP 3.3.1-1

Changes:
- Updated sources
- Applied WifiOverlay to disable WPA3, please test, I don't have WPA3 router
- Decreased Exynos_Ion_Heap and TV-out to free 70MB memory
- Fixed reboot issue when using Magisk kernel
- Addressed unknown netlink mapping (SOCK_DESTROY) in kernel
- Disabled ColorFade, ColorFade indirectly trigger sometimes blackscreen crash when in high memory pressure. It allocates multiple fullscreen frames to animate fadeout effect when pressing powerkey to turn off/lock phone.

Downloads
i9100-LOS-16.0-Emulated-Storage.pit
i9100-LOS-16.0-Emulated-Storage-TWRP-3.3.1-1.img

lineage-18.1-20210715-UNOFFICIAL-i9100.zip
lineage-18.1-20210715-UNOFFICIAL-i9100_magisk_boot.img

Build #8 2021-06-28
Overall state: Stable-ish
Android build: 11.0.0-r38
Required recovery: TWRP 3.3.1-1

Changes:
- Updated sources
- MicroG support thanks to @2faraway2
- Forward port Memory optimizations from LOS 16.0 thanks to @acroreiser
- Home-button fix offline charging

Downloads
i9100-LOS-16.0-Emulated-Storage.pit
i9100-LOS-16.0-Emulated-Storage-TWRP-3.3.1-1.img

lineage-18.1-20210628-UNOFFICIAL-i9100.zip
lineage-18.1-20210628-UNOFFICIAL-i9100_magisk_boot.img

Build #7 2021-05-17
Overall state: Stable-ish
Android build: 11.0.0-r37
Required recovery: TWRP 3.3.1-1

Changes:
- Updated sources
- Disabled Lineage GO configuration, forgotten in build #6

Downloads
i9100-LOS-16.0-Emulated-Storage.pit
i9100-LOS-16.0-Emulated-Storage-TWRP-3.3.1-1.img

lineage-18.1-20210517-UNOFFICIAL-i9100.zip
lineage-18.1-20210517-UNOFFICIAL-i9100_magisk_boot.img

Build #6 2021-05-14
Overall state: Stable-ish
Android build: 11.0.0-r37
Required recovery: TWRP 3.3.1-1

Changes:
- Updated sources
- Magisk v23.0 support

Downloads
i9100-LOS-16.0-Emulated-Storage.pit
i9100-LOS-16.0-Emulated-Storage-TWRP-3.3.1-1.img

lineage-18.1-20210514-UNOFFICIAL-i9100.zip
lineage-18.1-20210514-UNOFFICIAL-i9100_magisk_boot.img

Build #5 2021-05-04
Overall state: Stable-ish
Android build: 11.0.0-r34
Required recovery: TWRP 3.3.1-1

Changes:
- Updated sources
- Disabled low_ram flag, but other GO optimized memory-settings are still applied
- Disabled Lineage GO configuration, so we have Widgets againin Trebuchet
- Magisk v22.1 support!
Download Magisk v22.1 from here and install APK.
Reboot into recovery and flash lineage-18.1-20210504-UNOFFICIAL-i9100_magisk_patched.img via TWRP "Install image" and choose "Boot".
Reboot and enjoy Magisk!

Downloads
i9100-LOS-16.0-Emulated-Storage.pit
i9100-LOS-16.0-Emulated-Storage-TWRP-3.3.1-1.img

lineage-18.1-20210504-UNOFFICIAL-i9100.zip
lineage-18.1-20210504-UNOFFICIAL-i9100_magisk_patched.img

Build #4 2021-04-06
Overall state: Stable-ish
Android build: 11.0.0-r32
Required recovery: TWRP 3.3.1-1

Changes:
- Updated sources
- Finally fixed RIL (using i9300 blob) and GPS!
- Removed temporary permission hacks due missing kernel commits


Downloads
i9100-LOS-16.0-Emulated-Storage.pit
i9100-LOS-16.0-Emulated-Storage-TWRP-3.3.1-1.img

lineage-18.1-20210406-UNOFFICIAL-i9100.zip

Build #3 2021-02-12
Overall state: Stable-ish
Android build: 11.0.0-r29
Required recovery: TWRP 3.3.1-1

Changes:
- Updated sources
- Added network fix caused Firefox to crash, thanks to florencebirée
-
Build with LineageGO (more memory, but also more limitations)


Downloads
i9100-LOS-16.0-Emulated-Storage.pit
i9100-LOS-16.0-Emulated-Storage-TWRP-3.3.1-1.img

lineage-18.1-20210212-UNOFFICIAL-i9100.zip

Build #2 2021-01-11
Overall state: Unknown, but hopefully better than #1
Android build: 11.0.0-r19
Required recovery: TWRP 3.3.1-1

Downloads
i9100-LOS-16.0-Emulated-Storage.pit
i9100-LOS-16.0-Emulated-Storage-TWRP-3.3.1-1.img

lineage-18.1-20210111-UNOFFICIAL-i9100.zip

Build #1 2020-12-07
Overall state: Unstable, max reach uptime about 12h
Android build: 11.0.0-r17
Required recovery: TWRP 3.3.1-1

Downloads
i9100-LOS-16.0-Emulated-Storage.pit
i9100-LOS-16.0-Emulated-Storage-TWRP-3.3.1-1.img

lineage-18.0-20201207-UNOFFICIAL-i9100.zip
 
Last edited:
D

Deleted member 9635294

Guest
A simple question: What will happen if I use TWRP 3.4.0-0 from Lineage 17.1 to flash this rom?
 
D

Deleted member 9635294

Guest
Can anyone test this rom for GT-I9100T,GT-I9100M,GT-I9100P?
 

ran000

Senior Member
Dec 16, 2010
182
93
Build #1 2020-12-07
Overall state: ????
Android build: 11.0.0-r17
Required recovery: TWRP 3.3.1-1

Downloads
i9100-LOS-16.0-Emulated-Storage.pit
i9100-LOS-16.0-Emulated-Storage-TWRP-3.3.1-1.img

lineage-18.0-20201207-UNOFFICIAL-i9100.zip
Hello
I have done clean flash the subj . After a day of experiments I would like to report that I absolutely could not make a call ( see attached log of one of call ) , however I can receive call and speak well. Some suddenly reboots during a day looks ok for first build. Thank for your work. Good luck.
 
  • Like
Reactions: MARCOSOFT

rINanDO

Senior Member
Dec 17, 2009
701
4,750
Hello
I have done clean flash the subj . After a day of experiments I would like to report that I absolutely could not make a call ( see attached log of one of call ) , however I can receive call and speak well. Some suddenly reboots during a day looks ok for first build. Thank for your work. Good luck.
Thanks for your feedback. I also experienced sudden reboots and after 12 hours the phone doesn't wake up. I didn't test making a call, only receiving calls and sms. I updated the OP.
 
  • Like
Reactions: MARCOSOFT

Klaus20

Senior Member
Nov 20, 2013
394
63
Can someone tell me how to get into recovery mode?
In the restart menu there is the recovery button -> restarting to recovery mode but the device starts and switches off.
With volume up + home + power button I get back to the home screen ??
What does this mean "Serial console enabled. Performance will be affected. Check bootloader".

Regards Klaus
 

dongvatm

Senior Member
Feb 16, 2020
57
11
Ha Noi
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,

Well... It is still possible. Galaxy SII running Android 11! I could have made this port sooner, but the lack of time stalled a bit. Thanks to @ChronoMonochrome who ported LOS 18.0 for S3 couple months ago still using kernel 3.0.101 (or optionally 3.4) it should also be possible to build it for S2. Building for i9100 isn't straight forward because of the major changes in the image creation routines (creating boot.img, etc for the installable zip). And the GCC compiler support of Kernel 3.0.101 is removed. After resolving these issues I got my first flashable zip! Then I needed to get manifest.xml properly. Thanks to Shivaay who helped me and I got it finally booting! It was horribly slow because of some internal changes in LMKD which our kernel doesn't support some features. The Settings-app crashes immediately leaving me unable to investigate. After reverting some patches in LMKD and things in framework/base it started to run like Android 10. I addressed the HAL's and got almost everything working in this ROM. Of course it isn't perfect and there will be bugs or instability. I'm no Samsung, just a DIY :)

For these builds you NEED ISOlated-RECovery because I had to eliminate the embedded (.cpio) ramdisk-images in zImage.
Upgrade from Samsung stock ROM using ODIN 3.07
lineage-18.0-20201207-UNOFFICIAL-i9100.zip

PIT: i9100-LOS-16.0-Emulated-Storage.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-18 ( + optionally 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
DON'T INSTALL TWRP APP. This will cause bootloop!
12. For MicroG users:
You need manualy grant permissions via ADB to get things working properly.
These are the commands:
adb shell pm grant com.android.vending android.permission.FAKE_PACKAGE_SIGNATURE
adb shell pm grant com.google.android.gms android.permission.FAKE_PACKAGE_SIGNATURE


Thanks To
  • @ChronoMonochrome
  • Shivaay
  • @lee.wp14
  • @ze7zez
  • arco68
  • Team Infusion
  • LineageOS team
  • and all prior developers that were working on this phone.
    I hope I didn't missed someone, please let me know.
  • Last but not least @channel48 which reviews custom ROMS from all kind of phones including my work on this ancient one :)
Source code:
https://www.github.com/lineageos
https://www.github.com/rinando

Current state:
Working:
- RIL (Receive calls) (Dunno we still have the same stability issues in Q)
- Audio
- Bluetooth (audio)
- Wifi
- IMEI
- Touchkeys
- Camera Pictures
- Camera Videorecording
- Hardware encode/decoder
- Display
- Sensors
- RIL (Phone/SMS)
- DRM, for e.g. Netflix
- PowerHAL
- LiveDisplay
- Selinux enforced

Not tested:
- RIL (Data 3G, etc)

- Bluetooth headset
- BLN
- FM-Radio (using Spirit2)
- GAPPS
- MicroG
- TWRP 3.4.0-0

Not working/known issues:
- Can't make calls, only receive
- Magisk support (misses some frameworks patches I guess)
- FM-Radio (using Spirit2)
- Screencast (Chromecast)
- Voicecall audio control (libsecril-client.so not working)
- Sometimes black screen hang after shutdown or reboot
- After about 12 hours, phone hangs/won't wake up
- GPS

Won't fix:
- HDMI (MHL) (support broken/removed since CM 10)
This's awesome. Thank dev so much 😍
 
Heya! i'd like to report a slight issue with the screen
No idea if this has to do with the HW.
When i wake my S2 it flashes white on screen once and then it turns the screen on to the lockscreen.
This sometimes causes the s2 to freeze or crash.
I even had it hard crash with a loud noise once with this issue.
(This issue i even had on your android 10 ROM)
If this is a HW issue. Anything i can do to fix it?
 

Brianhogg13

New member
Dec 23, 2020
3
0
This is really cool, and thank you to rINanDO. I've just bought an s2 because of this 🤣. The news of this has came up in several places on my news feeds,

Thanks again
 

feraf

Member
Dec 25, 2020
7
0
Hello. Merry Xmas!
I happen to have this particular phone lying around and I wanted to try this out.
So I have followed the instructions and everything seems to be ok to this point:


10. Install LOS-18 ( + optionally Gapps or MicroG)

Can anyone explain how to install LOS-18 or point me to somewhere where I can find this information?

What I have tried is copying to an SD card and insert into phone, then boot to TWRP and Install -> Select the zip file from sd card and then swipe to install, but that gives me the following message:

Zip file is corrupt!
Error installing zip file '/sdcard1/lineage-18.0-20201207-UNOFFICIAL-i9100.zip'

Thank you all for the support!
 

Top Liked Posts