[Guide/tutorial] Samsung Galaxy S2 i9100 Any version to Android 7.1 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.
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 (52 Mo) : http://bit.ly/GalaxyS2djibepackv4-5
(contains Philz Touch recovery + kernel Lanchon IsoRec CM13 + Kernel 1.3 by Skyline + the.gangster IsoRec TWRP 3.1.0-0 recovery + lanchon repit djibe edit standard or prefered + Su for LOS 14.1 2017-01-26 + Samsung drivers).
Unzip files, copy all zips (except drivers) to microSD.
- ROM : Official Lineage OS 14.1 for GalaxyS2 i9100 : https://download.lineageos.org/i9100
LOS 14.1 supports OverTheAir updates (Easily update phone from the Settings).
OR RESURRECTION REMIX N 5.8.2 : https://forum.xda-developers.com/gal...remix-t3507366
- Kernel : Check latest version of Skyline's kernel here for Android N (Nougat = Android 7.X; Kernel 1.3 included in my pack) : https://forum.xda-developers.com/gal...s14-1-t3564857
- GoogleApps, OpenGApps ARM 7.1 micro : http://opengapps.org/
- a microSD card. Copy ROM and Gapps on microSD card and insert it in phone.
- Charge phone to 100 %
WARNING. It will not work if your phone is encrypted. Uncrypt it before starting this tutorial.
WARNING. This tutorial works without a PC. So it will work if (like me) you get Unknown USB device error when plugging phone in Windows.
WARNING. Warranty is now void.
WARNING. Read carefully the sentences starting with ###.
### Later in this tutorial, if you get error : "Failed to mount */data* (No such device)", just reformat Data partition to Ext4 (Using lanchon-repit 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 pre-load partition of 512 Mo.
We gonna increase system partition to 1 GB so Android 7 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.
Then wait till the recovery launches.
### If you already have a custom recovery, go straight 8 lines below "go to Wipe -> format /cache and format /system partitions".
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 : 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.
### WARNING : 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).
- My PREFERED version is djibe-prefered-repit*.zip : 1GB system, 2GB Internal storage (limited size for photos and files because who takes photos with GS2 ?), max data (about 11,5 GB for apps), minimal preload (useless partition).
- For more custom partitions, ask us in a post.
### Let the lanchon*.zip filename AS IS ! Because the filename gives the instructions for the repit script.
### If lanchon-standard OR prefered-djibe repit flash fails, just replace all the +f2fs comments by +ext4 in the zip filename (in Windows. Repit takes it parameters from its filename. 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 or you could hard brick your device.
tap on lanchon-VERSIONYOUWANT-djibe*.zip and Swipe to flash.
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, System, Data, Internal Storage then Swipe to Wipe, go back to TWRP Home.
### If you had to rename your PIT file to EXT4, you still have to format in F2FS. Go to Wipe -> Advanced Wipe,
### Select cache -> Repair or change filesystem -> change filesystem -> F2FS,
### Do it again for Data partition.
5) INSTALL ROM, GAPPS, ROOT and KERNEL
Still under TWRP Home screen -> go to Install zip and set Storage to External-Storage.
We need to install files 1 by 1.
### If you are installing Resurrection Remix ROM, process differs a bit :
### Flash ROM, then reboot system and let Android first boot.
### Then reboot to recovery and flash GApps. Reboot.
Select lineage-14.1-*.zip and Swipe to flash,
Then select addonsu-arm-signed.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-arm-signed.zip'
### -> Just don't care Root is correctly installed.
then open_gapps-arm-7.1*.zip, and Swipe to flash,
then CustomKernel-[v1.3]*.zip and Swipe to flash.
### If you are using ResurrectionRemix, don't flash the CustomKernel
Then wipe cache/dalvik,
then reboot system.
Wait for 15 minutes while Android starts for the first time.
### DON'T USE INIT.D SCRIPTS WITH THIS KERNEL
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.
You can use the app included in my pack, Kernel Adiutor (GT-I9100), to tweak the kernel and activie BLN (BackLight Notifications)
9) Faster LOS 14.1 and overclock
Go to Settings -> Developer options
In drawing, set Windows animation scale, Transition animation scale to Animation off
In Background process limit, set At most, 2 processes
Now, on Google Play Store, download kernel Adiutor app (https://play.google.com/store/apps/d....kerneladiutor).
Grant root access.
Advices come from these benchmarks : http://androidmodguide.blogspot.fr/p/io-schedulers.html and https://wiki.linaro.org/Platform/And...teOptimization
In CPU, check Apply on boot, and set CPU Maximum Frequency to 1400 MHz.
For CPU governor, set ondemand
In I/O Scheduler. check Apply on boot, and set Scheduler to ROW.
For read-ahead, set 512kB.
Teams of : TWRP, Lineage OS, the.gangster, Lanchon, Resurrection remix, Philz, Skyline, MigoMujahid
To help other users that used other repit files and getting this error :
WARNING. If you get ERROR: 1
Fatal: file system errors in partition #11 'sdcard' (UMS) could not be fixed,
Write to me.