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

Search This thread

rINanDO

Senior Member
Dec 17, 2009
627
4,317
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
 

rINanDO

Senior Member
Dec 17, 2009
627
4,317
New build is up!
Nothing special, just updated sources and disabled Lineage GO configuration to get our Widgets and some standard apps in Trebuchet launcher back :)

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
 

Harv234

Member
Aug 4, 2016
21
8
Ok, so I am stuck here. I own a S2 that has already been flashed with Lineage OS and was repartitioned before. I followed the first post, but I can't get TWRP installed. ODIN says, the PIT has been written and the PDA has been flashed but when I try to get into recovery I end Up with the Boot Screen saying Samsung Galaxy SII GT-I9100 and the yellow triangle and that's all. No Boot loop, it just sits there forever. I can get into download mode but that's it.
 

MaddogIT

Senior Member
Sep 17, 2018
85
27
Gradisca d'Isonzo (GO)
Ok, so I am stuck here. I own a S2 that has already been flashed with Lineage OS and was repartitioned before. I followed the first post, but I can't get TWRP installed. ODIN says, the PIT has been written and the PDA has been flashed but when I try to get into recovery I end Up with the Boot Screen saying Samsung Galaxy SII GT-I9100 and the yellow triangle and that's all. No Boot loop, it just sits there forever. I can get into download mode but that's it.
May be a problem with repartition done before.
My suggestion is to go back to stock version (do just a check that's all right) and just then restart all the process.
 

Harv234

Member
Aug 4, 2016
21
8
May be a problem with repartition done before.
My suggestion is to go back to stock version (do just a check that's all right) and just then restart all the process.
Well there is just one problem - I don't have an original Stock version and PIT and on Samsungs site there is nothing older than the S5 or am I going wrong here? I think for Odin I need some special form of firmware files?

EDIT: Do I have to insert a SD-Card at this stage?
 
Last edited:

MaddogIT

Senior Member
Sep 17, 2018
85
27
Gradisca d'Isonzo (GO)
Well there is just one problem - I don't have an original Stock version and PIT and on Samsungs site there is nothing older than the S5 or am I going wrong here? I think for Odin I need some special form of firmware files?

EDIT: Do I have to insert a SD-Card at this stage?
The PIT
Stock rom

All can be done from Odin, no SD need
 

Harv234

Member
Aug 4, 2016
21
8
Hi MaddogIT,
first of all, thank you for your patience. This is driving me officially nuts by now. I was able to install the stock ROM with your PIT and another 3-Part Stock ROM I found on the net (your download link was put down by google drive)
After installing Android 4.1.2 the Phone boots up and after enabling adb I was able to boot into the Stock recovery via 'adb reboot recovery'. Guess what I found? The Volume up key is not working properly... It is not constantly pushable. This seems to be not much of a problem in nomral operation but when you're supposed to hold three keys simultaneously :p

Is there a way to install this custom ROM all via ODIN? I have to do it all in one go as there is no way to manually boot into Recovery
 

MaddogIT

Senior Member
Sep 17, 2018
85
27
Gradisca d'Isonzo (GO)
Hi MaddogIT,
first of all, thank you for your patience. This is driving me officially nuts by now. I was able to install the stock ROM with your PIT and another 3-Part Stock ROM I found on the net (your download link was put down by google drive)
After installing Android 4.1.2 the Phone boots up and after enabling adb I was able to boot into the Stock recovery via 'adb reboot recovery'. Guess what I found? The Volume up key is not working properly... It is not constantly pushable. This seems to be not much of a problem in nomral operation but when you're supposed to hold three keys simultaneously :p

Is there a way to install this custom ROM all via ODIN? I have to do it all in one go as there is no way to manually boot into Recovery
I just installed TWRP with Odin (for last roms you have also to rePIT), once done you can force a boot into recovery with 'adb reboot recovery' and install the custom rom from SD.

EDIT: ok, I can now see your point... I never installed a ROM with Odin, Odin needs a .tar but we have a .zip and inside the .tar has .img files not so the .zip one.
Seems you need a dev help, sorry.
 
Last edited:

Harv234

Member
Aug 4, 2016
21
8
EDIT: ok, I can now see your point... I never installed a ROM with Odin, Odin needs a .tar but we have a .zip and inside the .tar has .img files not so the .zip one.
Seems you need a dev help, sorry.
Anyway, thanks for the hints! Maybe someone else has a solution for me?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 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
    8
    New build is up!
    Nothing special, just updated sources and disabled Lineage GO configuration to get our Widgets and some standard apps in Trebuchet launcher back :)

    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
    3
    Heureka! I did it!
    Just in case somebody ever needs the information: After repiting from Odin I installed the stock rom on the new pit. Which obviously does not work - but... The phone restarts then into recovery on normal boot ;) After that I just flashed the TWRP recovery and restarted with normal boot - System is still broken so the phone starts into TWRP on next boot - voila!
    From this point on all was pretty straight forward :geek:
    Thanks to all who shared their thoughts.
    2
    black screen and reboot on latest build ?

    can someone confirm ?

    regards !
    Sorry, I can not confirm. For me it works. Also the new build works great. Hope you will get it to work. BTW I don't have problems with my WiFi network AVM Mesh system.
    Keep in mind: S2 never dies :)
    1
    black screen and reboot on latest build ?

    can someone confirm ?

    regards !
    Both, previous and latest build work well here. Thank rINanDO for support device. One problem which I have is WiFi wpa2 connection to my Fedora34 hotspot
  • 48
    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)
    - MicroG
    - TWRP 3.4.0-0

    Not working/known issues:
    - Magisk support (misses some frameworks patches I guess)
    - FM-Radio (using Spirit2)



    Won't fix:
    - HDMI (MHL) (support broken/removed since CM 10)
    17
    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
    13
    New build is up!

    After digging around in Magisk code, I just couldn't figure out why its post-fs-data routine bails out. No errors in logcat. Manually starting the Magisk service runs without any problems. By accident I found out Android R is killing the services almost directly after start! It wrote a suspicious log 'This is new behavior' and that pointed me to this commit which prevents Magisk to boot properly. I don't know if this problem occurs on other phones... https://github.com/rINanDO/android_system_core/commit/43d2ee2dc1a3db3c58aa1f9f7ea32979a7013322
    Magisk v22.1 has updated it's boot.img patch routine, so I need to create a new patch script too. Well that is done so now we have the latest Magisk again :)

    This build is as complete as LOS 17.1 build and without RIL problems so far I can tell. Good for daily drive until the providers switches 2G &3G off. My provider will switch of 3G end this year and 2G in 2025. So my S2 daily drive phone will retire end this year :(.

    I didn't check Wifi yet. I have trouble connecting to my 5Ghz Wifi, but my kernel has no problems with my i9300 -builds connecting to the same Wifi.

    Happy testing!

    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
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone