Samsung Galaxy S2 gets CyanogenMod 13

Installing CM13 (Android 6.0.1 Marshmallow) on Samsung GT-I9105plus

Posted by Janne Cederberg on Jan. 3, 2017
Categories: Android
Tags: cyanogenmod, samsung
Reading time: approx. 4 minute(s)

CyanogenMod just recently got officially discontinued but it seems LineageOS (apparently run by a community of former CyanogenMod active contributers and rumored to be lead by CyanogenMod “daddy” Steve “Cyanogen” Kondik himself) is continuing from where CyanogenMod (as supported/sponsored by Cyanogen Inc) stopped.

In the meanwhile though I wanted to install CM13 on Samsung Galaxy S2 (GT-I9105 international variant); CyanogenMod apparently never had official support for the GT-I9105plus version of the S2, only GT-I9100. However from the XDA-Developers forum I found links to unofficial builds of the CM13 ROM for GT-I9105plus.

The installation instructions I followed for installing TWRP recovery (v3.0.2.0) followed by CM13 + GApps 6.0 was a combination of instructions from TWRP i9100 page and the version of CM wiki for i9100.

Obtaining firmware files for i9105plus

Obtain TWRP recovery binary

The phone I wanted to work with didn’t have a custom recovery yet so I needed to install it. only had an official build for i9100 but I found XDA Developer Forum user GHsR’s unofficial TWRP build for i9105p. I used for the simple reason that at the time it had most downloads (which I considered as “votes of trust”).

Obtain CM13

Just like for TWRP, GHsR has built CM13 and CM14.1 for Samsung i9105plus. I tried but it didn’t seem stable enough based on some 20 minutes of trying. As the phone was going to be used by a kid, stability was important and so I ultimately settled with the newest available CM13 build, which happened to be

Obtain Google Apps

For Google Play integration I downloaded the Open GApps Nano variant for Android 6 (ARM build naturally as the i9105plus is ARM based). The end user wouldn’t be needing Gmail, Google Maps, Google Calendar etc, just the Play store to be able to install a few apps/games and be able to make regular calls; hence I downloaded with the Nano variant.


Copy CM13 and GApps installation files (.zip) onto a MicroSD card and insert the card into the phone. You’ll need these files immediately after installing TWRP recovery.

Installing TWRP recovery

  1. I used an Ubuntu Linux computer for this: sudo apt-get install heimdall-flash-frontend
  2. Run heimdall-frontend as sudo.
  3. Power off the phone, make sure it’s not connected the the computer by USB.
  4. Start the phone into Samsung’s so-called Download mode by *Volume down* + Home + *Power*.
  5. Connect the phone by USB to the computer running Heimdall
  6. In Heimdall’s Utilities menu
    1. Detect (Output should read Device detected)
    2. Download PIT => Save As… => save PIT (partition information table) into a file.
  7. In Heimdall’s Flash menu
    1. Browse (under Options / PIT) => select the prev saved PIT file.
    2. Add => in Partition Name choose RECOVERY
    3. Browse (under File) to select the TWRP recovery binary (.img)
    4. Select No Reboot checkbox
    5. Start
    6. Wait the blue progress bar on the phone to complete / Heimdall to tell you the process is complete.
    7. Power off the phone (even though the phone will instruct contrary).
    8. Power the phone back on (or if it powers on by itself, do this anyway) and enter into recovery mode by pressing *Volume up* + Home + *Power* until you get to TWRP recovery.
    9. Proceed to installing CM13 and GApps.

Backing up stock firmware

Use Backup menu in TWRP recovery to create a backup of the stock firmware on the MicroSD card. This will require a bit under 2GB of free space on the card.

Installing CM13 and GApps

  1. Wipe Dalvik cache and system data.
  2. In TWRP choose to add the CM13 and GApps .zip files to be installed.
  3. Wipe Dalvik cache and system data again.
    • I don’t know if this actually needs to be done both before and after installing CM and GApps but I’m personally in the habit of doing it both before AND after based on prior experience.
  4. When installation completes, reboot the phone.
  5. The initial boot took some 5-7 minutes to complete.


After getting everything installed, the phone seemed to work pretty well based on brief poking around. I was happy with the result.

comments powered by Disqus