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

[Guide/tutorial] Samsung Galaxy S2 i9100 Any version to Android 7.1/LineageOS14.1

Search This thread

Mr1100

New member
Jul 12, 2012
1
0
Dear djibe89,

thank you very much for this brilliant guide, it helps me, to bring the GT-i9100 from a friend to Android 7.1.2 :good:

Is this possible, that I can use this guide also for GT-i9100G and GT-i9105P? I think it's clear, that I must change the recovery, root and the Lineage files with the special files for GT-i9100G and GT-i9105P?

Will your partition files work with this phones?

Best regards,
Mr.1100
 

MigoMujahid

Senior Member
Aug 31, 2015
1,920
680
New York
Dear djibe89,

thank you very much for this brilliant guide, it helps me, to bring the GT-i9100 from a friend to Android 7.1.2 :good:

Is this possible, that I can use this guide also for GT-i9100G and GT-i9105P? I think it's clear, that I must change the recovery, root and the Lineage files with the special files for GT-i9100G and GT-i9105P?

Will your partition files work with this phones?

Best regards,
Mr.1100
As mentioned in the OP of the cm13 thread of the i9100G, lanchon tool can fix low in space problems, so yes, i believe that lanchon tool will work with your phone, so as this guide, with the changes you referred too of course :)
 

Nobby1960

Senior Member
Jun 3, 2016
841
403
Freiburg
There is an other solution to remove the yellow triangle, simply flash the old bootloader in my attachment via Odin. But you need a Jig connector with it, to reset the flash counter back to zero (phone must turned off, before you plug in the Jig). I very often used Triangle Away in Android 7.1.1 with my both I9100 (can't count it) without any hard brick. But of course I give no warranty, it's your own risk.
 

Attachments

  • GT-I9100_OLD_BOOTLOADER.tar
    1.3 MB · Views: 12
Last edited:

toy_story

Senior Member
Feb 5, 2017
355
572
39
Tambov
  • Like
Reactions: CapVi

jazzl

Senior Member
Jul 4, 2011
79
3
I can´t tell whether if this is i9100 or Lineage specific, prolly the latter, but I got the following problem: The stock browser crashes when I try to do something with webrtc. For instance, googles https://appr.tc/ will crash the browser. I checked the version, and it´s a pretty old one; chromium 42. This should be more like 58 or 59 considering that we´re using the most recent version of Android. Installing android system webview unfortunately didn´t make a difference. I can for sure use another browser, but I want the webview to work because I´m an app developer, where webview is one of the components in my app, and want to use my old i9100 for hardware nougat testing.
 

toy_story

Senior Member
Feb 5, 2017
355
572
39
Tambov
Hello, my friend by mistake.
Installed the recovery, from another phone.
The smartphone does not respond to any actions, even the screen does not turn on.
What can be done?
 

cactus2000

Member
Jun 4, 2015
37
3
Hello all,
I have followed the tutorial, I succeeded to install TWRP 3.1, and after the reboot, the phone doesn't recognize my external SD card !
So now, I can't go further (repit, ROM...).
Does anyone can help me ?
NB : I have tested many things like reformatting the SD card, in vfat or ext4, everything failed.
Thank you for your help ! :)
Cactus.
 

MigoMujahid

Senior Member
Aug 31, 2015
1,920
680
New York
Hello all,
I have followed the tutorial, I succeeded to install TWRP 3.1, and after the reboot, the phone doesn't recognize my external SD card !
So now, I can't go further (repit, ROM...).
Does anyone can help me ?
NB : I have tested many things like reformatting the SD card, in vfat or ext4, everything failed.
Thank you for your help ! :)
Cactus.
Try using a OTG cable and a flash drive with it, or a sdcard reader..
Or format the sdcard using PC to exfat then insert in phone.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 101
    [Guide] Samsung Galaxy S2 i9100 Android 7.1 Nougat/Lineage OS 14.1
    [Guide/Tutorial/Howto] Samsung Galaxy S2 i9100 Any version to Android 7.1 Nougat without PC

    This detailed step-by-step guide helps you transform your Samsung Galaxy S2 i-9100/i-9100P to a powerful one with Android 7.1 Nougat.
    Verify your phone is i9100 or i9100P before going further : when you Power on phone, it is written Galaxy SII i9100.

    The flashing of recovery is a bit tricky but none of the S2 I had were recognised by the PC. So this tutorial is PC free.
    If your S2 is recognised by PC, it's easier to flash directly TWRP recovery using Odin or Heimdall https://forum.xda-developers.com/showpost.php?p=75002977&postcount=343

    CHANGELOG OF TUTORIAL
    v10. Updated pack with TWRP 3.3.1-0
    v9. Updated to Unofficial LOS 14.1
    v8. Removed Dorimanx kernel (not maintained)
    v7. Added Google Play certification (use instructions with my v5 pack below)
    v6. Switched to Dorimanx kernel, swteaks, enhenced tutorial thx to feedback, introduced md5 signatures, Stweaks included
    v5. Overclock and optimize
    v4. Simpler repit, 2 profiles for repit included
    v3.5. More custom partitions, kernel for Android N 1.3
    v3. Moved to Lineage OS 14.1, Skyline custom kernel, TWRP 3.1 by the.gangster
    v2. Added latest repit, added walkthrough for possible errors
    v1. Initial release


    1 ) DOWNLOAD ---------------------
    - djibe Galaxy S2 i9100 pack (53 MB) v5 : http://bit.ly/GalaxyS2djibepackv5
    (contains Philz Touch recovery + kernel Lanchon IsoRec CM13 + the.gangster IsoRec TWRP 3.3.1-0 recovery + lanchon repit djibe edit standard or prefered + Su for LOS 14.1 + Samsung drivers).

    - ROM Unofficial Lineage OS 14.1 for GalaxyS2 i9100 : https://androidfilehost.com/?w=files&flid=302540&sort_by=date&sort_dir=DESC
    Or AOKP : https://forum.xda-developers.com/galaxy-s2/development-derivatives/rom-aokp-rom-t3606915

    - OpenGApps ARM 7.1 pico (alternatives: Pico, Micro) : https://opengapps.org/?arch=arm&api=7.1&variant=pico

    - a microSD card. Copy Philz Touch recovery + kernel Lanchon IsoRec CM13 + the.gangster IsoRec TWRP 3.3.1-0 recovery + lanchon repit djibe edit standard or prefered + Su for LOS 14.1 AND THEIR RESPECTIVE md5 files from my pack on microSD card and insert it in phone.
    - Charge phone to 100 %

    WARNING. Read carefully the sentences starting with ###.
    ### It will not work if your phone is encrypted. Uncrypt it before starting this tutorial.
    ### This tutorial works without a PC. So it will work if (like me) you get "Unknown USB device error" message when plugging phone in Windows.
    ### Warranty is now void.
    ### Later in this tutorial, if you get error : "Failed to mount */data* (No such device)", just reformat Data partition to Ext4 (Using lanchon-repit's script or TWRP recovery).

    2 ) BACKUP DATA -------------------
    Install Samsung drivers (you unzipped earlier).
    Then plug phone to PC in File transfer mode.
    Collect all .jpg or .mp4

    Use an app like Backupyourmobile to backup texts, contacts, etc.
    Check that backup is located on microSD card.
    Then copy the backup on your PC.


    3 ) FLASH RECOVERY, KERNEL AND RE-PARTITION----------------
    We gonna repartition phone to reduce an unused preload partition of 512 Mo (stored Samsung updates that no more exist).
    We gonna increase system partition to 1 GB so Android 7.1 and Gapps have enough space.
    We gonna increase data partition so you can have all the apps you like.
    ALL YOUR DATA WILL BE LOST.

    FLASH RECOVERY FROM STOCK RECOVERY ----
    Shut down phone.
    Power it back on in recovery mode : Use Volume+ + Home + Power buttons and release them when you see Galaxy S2 logo.
    ### Alternative and easier process if your S2 can be recognized by PC using Heimdall : https://forum.xda-developers.com/showpost.php?p=75002977&postcount=343
    Then wait till the recovery launches.
    ### If you already have a custom recovery, go to the mark -!-!- below.

    Using default recovery, use volume buttons to navigate and power to confirm,
    install zip -> choose Philz_touch_6.48*.zip and install it.
    When its done, shut down phone, restart in recovery mode. You are now in the Philz touch recovery.

    ### If it fails, you need to install CWM recovery using Odin software and SGS2 in Download mode.
    ### Use a good tutorial for Odin and SGS2 i9100 recovery flashing.
    ### Download CWM for Odin : https://www.androidfilehost.com/?fid=95916177934516900
    ### Once finished, continue operations below as if you had Philz recovery.

    In Philz touch recovery (or your recovery -!-!-) : go to Wipe -> format /cache and format /system partitions.
    Then back to install zip -> Flash kernel-lanchon*.zip (FLASH IT OR TWRP RECOVERY WON'T LAUNCH AND PHONE WILL BE BRICKED),
    then flash recovery recovery-the.gangster-IsoRec-TWRP-3.1.0-0-i9100.zip.

    Reboot phone to recovery again, it is now TWRP 3.1.0-0 Recovery !!!
    Swipe to unlock filesystem.
    Check never show this screen during boot again and swipe again.

    In TWRP, go to Backup -> select Boot, System, Data,
    Tap select Storage and select External storage,
    then Swipe to Backup.
    Backup is located on your microSD in the TWRP folder.

    (To have latest TWRP recovery, go to Install > Select TWRP 3.1.1-0.img and swype to flash).

    ### Don't flash repit files if you don't have a TWRP recovery

    ### 2 MAIN CONFIGS TO REPARTITION :
    - For standard config, just use the djibe-standard-repit*.zip included in my archive, you'll have :
    1GB system, 6GB data (for apps), max internal storage (photos, temp files) and minimal preload (useless partition used for OTA offical updates).

    - My PREFERED version is djibe-prefered-repit*.zip :
    1GB system, 2GB Internal storage (limited size for photos and files because who takes photos with SGS2 ?), max data (about 11,5 GB for apps), minimal preload (useless partition).

    ### And a failproof repit one. If you get flash errors with repit files above, use this one.

    - For more custom partitions, ask us in a post what partition sizes you want.

    ### Let the lanchon*.zip filename AS IS because the filename gives the instructions for the repit script. Lanchon is smart !

    Go back to TWRP Home screen,
    Plug phone to charger.
    Tap go to Install, select lanchon-VERSIONYOUWANT-djibe-repit*.zip from your microSD (if file not seen, tap Select storage -> External-storage),
    then Swipe to flash. There is an error, files have been copied to /tmp folder. It is normal !

    Go back to Install -> Select Storage -> Internal Storage, OK.
    Now tap on : (Up A Level),
    scroll down and enter the "tmp" folder,
    ### If you use another PIT file to repartition (not mine -djibe-version), plug phone to Power source (not PC !) or you could hard brick your device.
    tap on lanchon-VERSIONYOUWANT-djibe*.zip and Swipe to flash.
    ### never connect phone to PC during repit !!!
    Let it process for 2 minutes.


    4 ) Wipe partitions
    INFO : F2FS is the fastest filesystem for read and write partitions on flash memories. Compared to EXT4, gain is from 15 to 280 %.
    No need to format the /System partition because it is Read only and Ext4 is still faster.
    Format has been done with repit. No need to manually format anymore.

    Go to Wipe -> Advanced wipe,
    select Dalvik, Cache, System, Data, Internal Storage then Swipe to Wipe, go back to TWRP Home.


    5) INSTALL ROM, GAPPS AND ROOT
    Still under TWRP Home screen -> go to Install zip and set Storage to External-Storage.
    We need to install files 1 by 1.

    Select lineage-14.1-*.zip and Swipe to flash,
    Then select addonsu-*.zip (this is the Root) and Swipe to flash,
    ### You get this error : Updater process ended with signal: 4, Error installing zip file '/sdcard/Download/addonsu*.zip', don't care, root is correctly installed.

    then open_gapps-arm-7.1*.zip, and Swipe to flash,

    ### If you are using ResurrectionRemix, don't flash any custom kernel at all !

    Then wipe cache/dalvik,
    then reboot system.

    Wait for 15 minutes while Android starts for the first time.


    6 ) ROOT ACCESS
    Once in Android, open the Settings menu, select "About Phone".
    Go to Settings -> About -> Hit 7 times on the build number, go back,
    Go to the Developer options menu, root access -> activate ADB+apps
    and Lower activate Local Terminal.


    7) CALIBRATE BATTERY
    In Google Play Store, download App Battery Calibration (from IMobS Ltd).
    Launch the App.
    Confirm root acces.
    Plug tab and wait till charge hits 100%, then hit BATTERY CALIBRATION and unplug it.


    8) You can use Backupyourmobile to restore data,
    you can use GPS Status & Toolbox app to enhance GPS fix.


    Enjoy,
    djibe

    THANKS --------------
    Teams of : TWRP, Lineage OS, the.gangster, Lanchon, Resurrection remix, Philz, Skyline, MigoMujahid
    3
    Hi, i tried that, the repit file i isntalled was the one that has your name. The whole process went ok, except for the install. please check the image for more info.
    3
    I do not know may developers of Lineage or Resurrection Remix are great people. But from my point of view such ROMs seem as kidding only. Sorry.
    They are not ready for use as reliable daily drivers. And an appearance of some reports about allegedly happiness and satisfaction with Lineage or Resurrection Remix are high probably fakes or at least unserious claims.
    You cannot say so. The developers of Lineage ROM (and the derivatives) are fine guys with lots of know how. They sacrifice many hours of their spare time for this work, all free of charge and also have a private life. They can't fix all bugs from today to tomorrow. You have to be patient. Since the beginning of Nougat for the S2 in 2016, many bugs have already been fixed. Of course, the ROM will be always better optimized for daily use. The bugs become fixed bit by bit, but this takes time.

    I have been testing the various Lineage ROMs for quite some time, as a normal user. For me, the lastest versions of AICP 12.1 are working quite usable. With a suitable CPU governor (lulzactiveq) or special settings in the Kernel Adiutor it runs more smoothly than the stock ROM (Jelly Bean). Why should someone write something unserious here, we get no money for it :p The S2 is a lovely oldtimer - nobody thought in 2011 that it works with an Android OS from 2016/17.
    2
    Actually I am encoutering a few problems. I am used to sending apk files from my note 4 to my S2 but now since the memory is only 7,56 MB naturally the S2 won't recieve it. Also opening apk's in a rar file on my ext. card has become a problem as the unzipping is aborted due to low space on the sd card. Is there are work around for this?

    Ok ok,
    seems that keeping a small 2 GB partition would be easier for everyone. Tutorial is fixed
    2
    Hi,
    For larger system partition repit, just rename the pit file (.zip) and change system-1G* to system-XG* (X = 3 or whatever you need).
    For your recovery not showing, it seems you forgot to wipe cache before rebooting. Or maybe a kernel bug.
    Use Odin and phone in Download mode to flash TWRP 3.02 i9100.tar (find tuto). If it still doesnt work, flash a CM13 kernel then Twrp still using Odin.
    Keep in touch.
    If you can find a stock S2, i'll buy it so i can check my tutorial is fine.

    1. So I did change the repit size as 3gb for system, and it worked.

    2. I did wipe the cache but recovery failed everytime, so as you mentioned it might be a kernel bug, so I dwlded cm13 kernel called "kernel-Lanchon-20160406-cm-13.0-i9100.zip" and installed it instead of the "kernel-Lanchon-TRIM-IsoRec-20160112-cm-11-i9100.zip", and recovery worked! (did it through Odin)

    But now instead of getting stuck at the samsung screen, I got stuck at the LineageOS animation screen. It did not seem to go away no matter what wipe i did. So figured out maybe the ROM was bad.

    3. I dwded and flashed RR ROM followed by kernel-Lanchon-20160406-cm-13.0-i9100.zip, and then dalvik/cache wipe, and this tym the system ran finally!

    4. Installed Gapps, the system runs fine...(although very slow, perhaps because RAM is all occupied...)

    Kudos to your post!

    ---------------------------------------------------------------------------------------------------------------------------------------------------------------

    SUMMARY:
    In your original post, I just changed 2 steps:

    3 ) FLASH RECOVERY, KERNEL AND RE-PARTITION----------------
    We gonna repartition phone to reduce an unused pre-load partition of 512 Mo.
    We gonna increase system partition to 1 GB so Android 6 and Gapps have enough space.
    We gonna increase data partition so you can have all the apps you like.
    ALL YOUR DATA WILL BE LOST.

    Shut down phone.
    Power it back on in recovery mode : Use Volume+ + Home + Power buttons and release them
    when you see Galaxy S2 logo. Wait till the recovery launches.

    Using default recovery, use volume buttons to navigate and power to confirm,
    install zip -> choose PhilZ-cwm6-XWMS3-FOP-5.15.9-signed.zip and install it (to bypass status 7 error). When its done, shut down the phone, restart in recovery mode. You are now in the (intermediate version of) Philz touch recovery.This time go to Install>>External sd>>Philz_touch_6.48*.zip and install it.

    When its done, shut down phone, restart in recovery mode. You are now in the (recommended version of) Philz touch recovery


    In Philz touch recovery : go to Wipe -> format /cache and format /system partitions.
    Then back to install zip -> Flash kernel-lanchon*.zip dont flash kernel-Lanchon-TRIM-IsoRec-20160112-cm-11-i9100.zip, instead flash kernel-Lanchon-20160406-cm-13.0-i9100.zip(FLASH IT OR TWRP RECOVERY WON'T LAUNCH AND PHONE WILL BE DOWN),
    then flash recovery recovery-isorec-the.gangster*.zip.

    Reboot phone to recovery again, it is now TWRP recovery.
    Swipe to unlock filesystem.
    Check never show this screen during boot again and swipe again.

    In TWRP, go to Backup -> select Boot, System, Data,
    Tap select Storage and select External storage,
    then Swipe to Backup.
    Backup is located on your microSD in the TWRP folder.

    (WARNING : you cannot flash repit files if you don't have a TWRP recovery)
    Go back to TWRP Home screen,
    Plug phone to charger.
    Tap go to Install, select lanchon-djibe-repit2017*.zip from your microSD (if file not seen, tap Select storage -> External-storage),
    then Swipe to flash. There is an error, files have been copied to /tmp folder. It is normal.

    Go back to Install -> Select Storage -> Internal Storage, OK.
    Now tap on : (Up A Level),
    scroll down and enter the "tmp" folder,
    tap on lanchon-djibe-repit-2017*.zip and Swipe to flash.
    Let it process for 2 minutes.

    ---------------------------------------------------------------------------------------------------------------------------------------------------------------

    The rest of the steps are as described.

    Thanks a ton as always!