I have had a Samsung Galaxy S2 a long time ago. If you want to tweak it a little, it is a good phone and explore new things on Android. Installing the latest operating systems on it can be troublesome as its system partition is small and doesn’t support the latest Android Operating systems like Android Lollipop, Android Nougat or Marshmallow. In this guide, you can increase the system partition size of S2 to Install Android 7 Nougat or any other operating system using custom ROMs like LineageOS 14.1.
Guide to Increase System Partition Size of S2:
Before you proceed forward, I want to warn you that anything wrong can lead to soft bricking your phone. If you don’t know about the terms used in this guide, read about them on the internet or ask me in the comments. This guide will factory reset your phone and delete all the data and apps present in the internal storage of your SD card. It will not erase the data current on your SD card.
Suppose you try to use the modified system partition with stock ROM. Your phone will not boot. It would be best to revert to stock system partition sizes first, then install stock firmware.
IMPORTANT: If you think this guide is too complex for you. Then, use the Lachon Repartition Tool to increase the system partition size. The link is at the bottom of the article.
Some Benefits of Increasing System Partition of S2:
- You might have encountered an error stating that the app can not be installed as you do not have enough space on your internal storage. You will not get that error, and moving apps to an SD card is unnecessary.
- You can upgrade to Android Lollipop, Marshmallow or Nougat.
- You will be able to install Gapps without error 70.
- Can fix partition errors and soft brick. If you somehow screwed your system partition, this guide can help you improve it
Prerequisites:
- Download Samsung Drivers for Windows. (The link to download the file is under the main heading). These drivers are to be installed on your PC; they are essential for your PC to recognize your device correctly.
- Download ODIN from the official ODIN site. Or you can download the ODIN I used from this link.
- Download Pit-Files.
- Pre-made kernel tar files if you don’t have one already.
- Make a NANDROID backup of your phone
Steps on how to Increase System Partition Size on S2:
- First, save a recovery backup (CWM or TWRP) to your PC or external SD card. It will be deleted if you leave it in internal storage.
- Download the system pit files.
- Extract the pit zip file.
- Open ODIN on your Windows PC.
- Put your phone in download mode.
- Turn off your S2.
- Press and hold the volume down, power, and home buttons.
- Press the volume up button when you see the Android figure on the screen.
- Connect your phone to your PC via USB (ID: COM on Odin should change colour)
- Select the PIT option and choose your desired pit file.
- Click on PDA or AP and select your kernel .tar file.
- Check the repartition on ODIN.
- Finally, click Start.
- If your phone successfully flashes, move on to the next step.
- If not:
- Change the USB port of your PC.
- Change ODIN version.
- Change pit files.
- Check if your device has a corrupt NAND (or broken). If your memory chip is broken, you won’t be able to flash the firmware using this guide, and you might need a new motherboard on your S2).
- Disconnect the USB cable. Please take out your phone battery, then re-insert it.
- Get into Recovery Menu
- Press and hold button combinations (home button + power button + volume up) until your phone vibrates.
- If you have CWM recovery,
- go to mounts and storage.
- Select format /sd card0 or /internal sd card.
- Select the default, and your internal SD card should be successfully formatted.
- If not, try the ext4 format.
- If you have TWRP recovery on your S2:
- Go to wipe>advanced
- select format emmc or /sd card0, 7
- Swipe to Confirm.
Note: DorimanX kernel doesn’t support ext4 formatted SD cards. You must format your SD cards to vfat or fat32 for the DorimanX kernel to detect.
If you fail to format using ODIN, use the guide below:
- Connect your phone back to a Windows PC using a data cable.
- If formatting the SD card in recovery fails.
- While still in recovery (CWM),
- go to mounts and storage and select mount mass storage.
- If you have TWRP recovery, go to support and choose mount SD card.
- It should prompt you that the warehouse isn’t ready yet, and you must format it. If your PC still doesn’t detect your phone.
- Check if the proper drivers are installed (Samsung Drivers for Windows PC in Prerequisites).
- Click format.
- You can leave all of the settings to default; I like to change the allocation size to 4KB (4KB is good if you want to make the most out of your phone’s storage while having enough speed)
- Click format.
After successful repartition of system storage:
- Go back to your phone.
- You can either restore from your backup or install a new ROM.
- If you select to restore from a backup, skip the remaining steps.
- Choose format /data, /cache and /system in mounts and storage.
- Now, you can flash a ROM as you usually would.
Note: DorimanX kernel recoveries cannot format /data partition of more than two GB; use an alternative first when restoring a backup, then flash again if needed.
If the above guide is too difficult for you and you cannot perform the steps mentioned above on your Galaxy S2, Then use the Lachon tool to increase the system partition size of S2 to install Gapps and the latest operating systems. I hope this guide was helpful and you can perform it on your S2.
That’s all on how to increase the system partition size of S2 to install the latest versions of Android AOSPs. Suppose you have any questions or queries. Feel free to ask me in the comments.