• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

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

Search This thread

NikkBann

New member
Jul 11, 2021
4
0
i9100
Samsung Galaxy Tab 2
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)
Hello, I've run into a bit of a problem. So the phone was lying around for some years and I decided to upgrade it to test it out. I was on stock samsung ROM and followed the steps in the post from 1. to 7. and got thread complete and succed 1 (see ss). But when try to go into recovery mode by pressing vol up + home + power, it boots to samsung logo with a yellow warning triangle and is stuck there.

Edit: I think it was due to kies being installed in the pc....Also used battery pull after download got completed and everything went fine accordingly and now I'm running android 11 on s2.....kudos to the developer for keeping the legacy of s2 alive :)
 

Attachments

  • Screenshot (509).png
    Screenshot (509).png
    151 KB · Views: 62
Last edited:

dark$hadow

Senior Member
Sep 2, 2013
58
7
Hello, I've run into a bit of a problem. So the phone was lying around for some years and I decided to upgrade it to test it out. I was on stock samsung ROM and followed the steps in the post from 1. to 7. and got thread complete and succed 1 (see ss). But when try to go into recovery mode by pressing vol up + home + power, it boots to samsung logo with a yellow warning triangle and is stuck there.

Edit: I think it was due to kies being installed in the pc....Also used battery pull after download got completed and everything went fine accordingly and now I'm running android 11 on s2.....kudos to the developer for keeping the legacy of s2 alive :)
also make sure you press vol up + home + power in the right order, it seems to somehow matter, releasing only power once you see the logo then the rest of the keys when recovery mode starts.
 
  • Like
Reactions: NikkBann
Aug 12, 2021
31
10
HTC Desire S
HI everyones:

Is also ok if it is update directly from android version 2.3.3 ? There seems to be a distincted between the European version, the Asia-Pacific version and the Korean version of this machine. . . . . .As long as the model is I9100, can it be used?
 

tomasz86

New member
Oct 19, 2021
2
1
HI everyones:

Is also ok if it is update directly from android version 2.3.3 ? There seems to be a distincted between the European version, the Asia-Pacific version and the Korean version of this machine. . . . . .As long as the model is I9100, can it be used?
You can make the other versions appear as i9100, but there are caveats.

For instance, in case of the Korean version, it can be repitted into i9100, but all custom ROMs require a patch in order for SMS to work. I've only managed to find instructions on how to patch Android files up to 7.1. In newer versions, the files have changed greatly, and no sources in the Internet seem to have any information on how to patch the newer Android versions.

Because of the above, if you've got the Korean version, please be aware that SMS will likely not work in LineageOS 8 or newer. Of course, this is true if you're going to use the device with a Korean carrier. I've got no idea whether SMS on such a converted device works in other, non-Korean networks.
 
  • Like
Reactions: 2021redmi2fans
Aug 12, 2021
31
10
HTC Desire S
You can make the other versions appear as i9100, but there are caveats.

For instance, in case of the Korean version, it can be repitted into i9100, but all custom ROMs require a patch in order for SMS to work. I've only managed to find instructions on how to patch Android files up to 7.1. In newer versions, the files have changed greatly, and no sources in the Internet seem to have any information on how to patch the newer Android versions.

Because of the above, if you've got the Korean version, please be aware that SMS will likely not work in LineageOS 8 or newer. Of course, this is true if you're going to use the device with a Korean carrier. I've got no idea whether SMS on such a converted device works in other, non-Korean networks.
Bro, thank you for your reply first! Will it be a problem to use this rom to upgrade directly from version 2.3.3? Is it no need to upgrade the stock of s2 to the latest version first?
 

1victor

Member
Jun 30, 2020
5
1
Hi rINanDO, first, thx for your hard work mentaining this 10y old device alive, very good job man, its like 3 weeks sience i f***d up my galaxy s9, and i am using my first phone, the galaxy s2 as daily driver. I am fking surprised man. Except tiktok, all the apps i was using on the s9 kinda works on the s2:)) I am using it at 1400mhz with pegasusq governor, it random reboots sometimes, but its stable enough for daily use. I can t wait to see your builds on los 19 for this phone! Keep up the great work and sorry for my bad english!
Writing this from my galaxy s2 btw
 
  • Like
Reactions: zpunout

ronFenomeno

Senior Member
Jan 9, 2018
74
11
Hi, I have just tried to update my lineage to the lastest version. I have installed the twrp 3.3.1 version through twrp. It does installing but I find some difficulties on installing lineage and gapps. It throws error
"E1001: Failed to update system image.
Updater process ended with ERROR: 1
Error installing zip file '/sdcard/lineage-18.1-20210912-UNOFFICIAL-i9100.zip'"
I have done wiping data, system, dalvik cache. However, it still gives the same error.

One more thing, when I try wiping cache (not dalvik cache), it also throws error, "mkfs.f2fs -t 0 /dev/block/mmcblk0p7 process ended with ERROR: 255
Unable to wipe Cache"

May I have some advices on it?
 

blue whale

Senior Member
Nov 26, 2010
329
18
hi

i have lineage-microg 14 installed on my SII i9100, should I repit the phone to install LOS 18 ?
 

blue whale

Senior Member
Nov 26, 2010
329
18
also I seek more details on the ''10. Install LOS-18 ( + optionally Gapps or MicroG)'' from the OP

to me I always installed microG from https://download.lineage.microg.org/s2/, so as a full ROM. But I do not know what ''gapps or microG'' means. Is micro-g also an APK or a flash-able zip? if so, where do I get it ?
 

js-xda

Senior Member
Aug 20, 2018
220
101
Following up on my previously reported issue:

I am having a rather vague issue regarding sleep state and battery drain.

The following situation: I am using a SII currently pretty much only as a MP3 player (using Vinyl from F-Droid) incl. sleep timer. While this was working pretty OK for some time (early September til end September) with battery lasting several days (WiFi off, airplane mode on), I am having lately issues that the devices is often drained after one night and the sleep timer in Vinyl hasn't ended either. Especially due to the last, I assumed that something is plainly getting stuck as the music doesn't last until the battery dies but rather somewhere in the range of what I set the sleep timer. I tried already different performance profiles (saver vs. balanced) and with and without WiFi on (just out of curiosity).

I can"t say for sure whether it is related to the last build which I installed around September 20th but I can say for sure that it hasn't been present before.

Anyone else having issues that could be linked a same underlying issue? Or anyone an idea?

While I was about to go for the suggestion of @mirhl (see below - thank you again), I found a simple workaround which indicates to me that it should be linked to being stuck somewhere (sleep state?): If I activate in Vinyl the option to stop only after finishing the current song, I have no issues anymore (it stops and no battery drain over night). Makes me think that the trigger loading the next song wakes up the phone avoiding the issues I had. And yes, one could describe it in more technical terms - whoever wants to do so, feel free to add.

As with all battery problems, install BBS and check from there?
[...]
 

Sebastian323

Member
Mar 23, 2019
12
5
Hello,

I have instaled the latest version 2021-09-12 and nano-gapps. The battery is going down to fast, halve in 5:30 H without using it. I tryed bbs statistic, the log-file is attached. It seems, as it doesnt sleep the hole time. I didn't turn on the screen during this time. Is something I can do? Or should I wate for the next update, is someone in planing?

Best regards
Sebastian
 

Attachments

  • BetterBatteryStats-2021-11-24_004653407[1].txt
    6 KB · Views: 7
  • Like
Reactions: js-xda and JaLoou

JaLoou

Senior Member
Jun 20, 2017
173
15
Hello,

I have instaled the latest version 2021-09-12 and nano-gapps. The battery is going down to fast, halve in 5:30 H without using it. I tryed bbs statistic, the log-file is attached. It seems, as it doesnt sleep the hole time. I didn't turn on the screen during this time. Is something I can do? Or should I wate for the next update, is someone in planing?

Best regards
Sebastian

Thank you so much for your useful honest report!
 

Top Liked Posts

  • There are no posts matching your filters.
  • 3
    Hello js-xda,

    it is not the first start after flashing. I restarted it some times, some apps are installed. in the settings/battery is now special app mentioned, that needs to mutch battery. It says, everything is OK. But the battery is emty so fast.

    Regards
    Sebastian
    2
    Hello,

    I have instaled the latest version 2021-09-12 and nano-gapps. The battery is going down to fast, halve in 5:30 H without using it. I tryed bbs statistic, the log-file is attached. It seems, as it doesnt sleep the hole time. I didn't turn on the screen during this time. Is something I can do? Or should I wate for the next update, is someone in planing?

    Best regards
    Sebastian
    2
    I was just returned to Samsung's latest official firmware with Android 4.1.2 for Galaxy S2 and almost all problems are gone away. So, I'm happy with it.
    It is not the ideal firmware but much more useful according my experience.

    I'm still watching to custom firmwares announcements for Samsung Galaxy S2 but now become very cautious about it after my personal strongly disappointing experience with LOS 14.1 and based on it RR 5.8.3-5.8.4.

    As an ordinary smartphone user I do not found a worth reason for flashing the risky custom firmware instead of reliable using the official original firmware for Galaxy S2.
    Then what are you doing here if you think this firmware is risky. Then stick with the original Samsung firmware. No one is forcing you to. Above all, no one is forcing you to lie here.
    BTW...The Galaxy S II can be used with microSD™ or microSDHC™ memory cards with a maximum capacity of 32 GB. I have a 64 GB micro SDXC Class 10 card in it and everything works. So I wouldn't recommend inserting cards with an even larger capacity.
    1
    Hello,

    I have instaled the latest version 2021-09-12 and nano-gapps. The battery is going down to fast, halve in 5:30 H without using it. I tryed bbs statistic, the log-file is attached. It seems, as it doesnt sleep the hole time. I didn't turn on the screen during this time. Is something I can do? Or should I wate for the next update, is someone in planing?

    Best regards
    Sebastian
    You didn't grant the app all the right permissions, and you have no wakelock information.
    1
    The Galaxy S II can be used with microSD™ or microSDHC™ memory cards with a maximum capacity of 32 GB. I have a 64 GB micro SD card in it and everything works. So I wouldn't recommend inserting cards with an even larger capacity.
    I have opposite opinion based on my successful experience:
    I recommend to use Samsung Galaxy S2 with microSD cards up to 256GB of storage because modern fast microSD cards can slightly increase the performance of the old smartphone and yet adding more storage space. So, I recommend really to choose only a firmware which works with such memory cards reliable without a battery drain.
  • 60
    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)
    22
    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
    16
    New build is up!
    Finaly I made some real progress. I was stuck why the ROM needed permission hacks at framework-level and lmkd hacks. GPS causes RIL to crash and RIL crashes when the audio driver (tiny-alsa) uses libsecril-client to send phone audio commands. It was a pain in the neck. I also tried replicant drivers (which almost worked) but I got lost nevertheless. (for months... :( )

    Suddenly by accident I stumbled upon some kernel patches which fixed the framework-level patch. A few hours later I found the missing kernel code to fix lmkd hacks (merge conflict resolve from kernel v3.4.113). It still left me stuck with crashing RIL. I hoped it had the same root cause... unfortunately not... So I tried libsec-ril.so from i9300, patched it for R and hope for the best.... And that fixed RIL! GPS runs stable, audio control works, calling/receiving calls, data 2G/3G works! My guess is that i9100's libsec-ril.so is missing some newer socket codes which were handled by i9300's version. I can't change that because it is proprietary blob and I don't know assembly/ARM.

    I tried BitGapps and try to stress the ROM. Yes it is slow compared for nowadays Android R phone but it doesn't crashed yet. Apps are installing and working. Magisk doesn't work. It has something to do how i9100 boots with Android R which skips starting Magisk at boot. Need to figure that out.

    I'm now running it for a day so, lets ship it and mark it as BETA :)


    Build #4 2021-04-06 (BETA)
    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
    14
    New build is up!
    That theory has been proven... Building LOS without GO 'fixed' Magisk from booting because of the memcg/acct differences when low_ram is enabled. For normal builds (low_ram disabled) Magisk has a fix here. Thanks to @mirhl for pointing me this out. So now just a new build and I updated it for Magisk v23.0. I looked shortly to Wifi, but I don't have a clue what is wrong yet.

    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
    14
    New build is up!
    Only updated sources.

    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