Flashing under Linux
Hello,
Is flashing pit and twrp removes or corrupt the stock firmware then it will correct. Otherwise Isorec patch and kernals are required to isolate kernal and to install custom TWRP recovery through reocovery mode flashing. Is this correct or not?
pit is a new memory distribution because the old one doesn't meet the partition size level for the new ROM.
Without isorec patches, the S2 reboot on the Samsung recovery, never on the TWRP recovery, as far as I can remember!
did you flashed through odin or through recovery mode or through adb sideload or through official twrp app ? Which one you used to flash twrp.
My PC is under Linux so I didn't use ODIN but heimdall and adb tools.
In first time I used the lineage-15.1-20181010-UNOFFICIAL-i9100_SU_MicroG custom ROM,
Here is a translation of how I did it from the above link with it
note: the recovery, in fact the trwp3.1.0-0, once unzipped is simply called recovery.img while the kernel is called boot.img
the order 1)
before on S2 switch to download mode by pressing the 3 usual buttons simultaneously (volume down+home+power)
then to be carried out on the PC is
heimdall flash --repartition --pit I9100_1.5GB-System_6GB-Data_512MB-Preload_by-the.gangster.pit --KERNEL boot.img --RECOVERY recovery.img --no-reboot
the no-reboot option allows you to keep the flash result and the distribution on the screen.
the order 2)
to be carried out on the S2
first switch to recovery mode by pressing the 3 usual buttons simultaneously (volume up+home+power)
then move to the trwp recovery menu after switching to French to format (wipe)
2a) Formatting->Advanced formatting and area selection: Normal and Dalvik, System, Data and Internal-Storage caches
monitor the error messages on the latter 3, it may be necessary to repair or change the file system to resolve them
2b) Repair or Change the File System -> to specifically format the 3 partitions mentioned above ONE by ONE
either in Ext4 as in the origin
either in F2FS for Data and Internal-Storage partitions, keeping Ext4 for System
the F2FS having the particularity to be more adapted to Flash memory with faster write accesses (my choice)
there must be no error messages
the order 3)
3a ) on the S2
always in the twrp recovery it is necessary to activate the ADB transfer functionality.
Advanced Settings->Transfer via ADB
this one will then wait for the order
3b) on the PC
adb sideload lineage-15.1-20181010-UNOFFICIAL-i9100_SU_MicroG.zip
3c) on the S2 wait for the download to finish, then reboot, normally the installation will finish after a few minutes.
and at the end the LineageOS prompt will be displayed.
In a second time I flashed a LineageOS 17.1 coming with another pit, isorec and recovery
Here also translation of how I did it from the above link with it
...for this S2 a version of Android 10 has appeared on XDA
ROM] [UNOFFICIAL] [10.0.0] [r37] [I9100] LineageOS 17.1
it comes with the isorec that go well:
another recovery version TWRP i9100-LOS-16.0-Emulated-Storage-TWRP-3.3.1-1.tar.md5
a new i9100-LOS-16.0-Emulated-Storage.pit distribution file
Please note:
TWRP must be de-skimmed to obtain the recovery.img form.
tar -xvf i9100-LOS-16.0-Emulated-Storage-TWRP-3.3.1-1.tar.md5
So I replayed the orders 1 to 4) from the previous post