yashsingh1/xdaforums huggingface dataset:
[Galaxy S II Android Development] the.gangster:
[MENTION=6616449]thearczoro[/MENTION]

As I had chosen to "reboot to recovery" and as that failed the flags were never resetted. Otherwise it would be easy to copy a working recovery back into the recovery-partition.

The only solution I had back then was to flash a kernel with ODIN. I've chosen the CM12-kernel by Lanchon (or was it LA?) with embedded TWRP2.8.7.0 recovery back then (I think it was stock_kernel_twrp_1120-signed-for_Odin.tar).

After booting into its recovery, reflash the ROM you had installed previously AND the official IsoRec-TWRP again.
[Galaxy S II Android Development] thearczoro:
Yes, I can't go to recovery mode. But Odin not detected my i9100 because USB debugging is not enabled. :crying:
[Galaxy S II Android Development] the.gangster:
Nothing to do with USB debugging!

For ODIN you have to start your phone into Download mode.

Keep pressing Power+Home+VolumeUp to start it into it.

EDIT: Power+Home+VolumeDown (of course) !

And there should also be a way using Heimdal to reflash the recovery directly! That's described in the OP already. So if you are a heimdal user you can also flash the official twrp easier using that way.
[Galaxy S II Android Development] thearczoro:
I tried Heimdall but get error.

Initialising connection...

Detecting device...

Claiming interface...

ERROR: Claiming interface failed!

UPDATE: Solved!! Thanks [MENTION=6560258]the.gangster[/MENTION] for the help. :good: :D Not detected by Odin because of Driver replaced by lib Heimdall, I just reinstall samsung driver.
[Galaxy S II Android Development] pponsil:
Good evening guys,

i have a problem. I was on lineage os with TWRP 3.0.2.1, I installed for error a CM 12.1 ROM that overwrote the recovery with cyanogenmod recovery. This recovery doesn' allow me to install lineage os 14.1. I tried to install TWRP 3.0.2.1 by Heimdall, the process ends with no error, but when I reboot the phone in recovery mode, I'm again in Cyanogenmod recovery. How can I solve this? Thanks in advance
[Galaxy S II Android Development] laptopu:
Are you going straight into recovery using keys on handset or are you allowing the ROM to boot? Allowing it to boot would probably cause that problem.
[Galaxy S II Android Development] pponsil:
I tried to go directly in recovery with keys, i tried to reboot rom in recovery mode, i tried to wipe all, installing recovery and booting in recovery without rebooting the rom but nothing works
[Galaxy S II Android Development] TriboDoP:
your twrp 3 recovery has always been and still is on your device.

By flashing an old cm 12 rom you have now no isorec kernel and you twrp 3 cannot show up.

Flash isorec kernel with odin or if possible use cm recovery (apply update) to flash i.e. cm 11 20170115 by @zjq98506

714.
[Galaxy S II Android Development] pponsil:
Thank you very much. I installed lanchon kernel and twrp appeared, I have galaxy nexus and opo but i9100 is a very strange phone :). Another question : how can I remove the yellow triangle on boot screen?
[Galaxy S II Android Development] TriboDoP:
App triangle away by chainfire
[Galaxy S II Android Development] pponsil:
I read that this app works only on Samsung roms, and when a go on xda thread I can't download the app.
[Galaxy S II Android Development] TriboDoP:
I bought this app from Google Play Store and supported so this great Guy chainfire who gave root for free for many devices over many years.

Look there and decide for yourself.

Ciao!
[Galaxy S II Android Development] Teekanne3000:
Hello,

i have make a md5 file like file_name.md5 for file_name.zip. Inside the md5 file, i have past the "md5 hash" and twrp said that it couldn't find a md5 file. Then I have past into the md5 file "md5 hash *file_name.md5" and the same happend.

Can someone help?

Thanks and greetings

Teekanne

Edit: I have found my mistake. It have to be file_name.zip.md5 and not file_name.md5

Greetings

Teekanne
[Galaxy S II Android Development] the.gangster:
[MENTION=7435356]Teekanne3000[/MENTION]

Simply download one of the md5 files I added to posts #450 or #493 to see name and content.
[Galaxy S II Android Development] super_newbie_pro:
Hello.

Thx for your work.

Your files are *.img, Can you please upload it with *.tar file for ODIN (newbie like me like this programm) thx
[Galaxy S II Android Development] TriboDoP:
By reading the op you would have found the download for twrp.zip to be flashed with Recovery.

Anyway here is the latest zip:

https://www.androidfilehost.com/?fid=24591000424954841
[Galaxy S II Android Development] super_newbie_pro:
Thx but my question is not about this file, i have it, its img file ! My previous post was ; have you *.tar file for ODIN, and in your link, there is no *.tar file
[Galaxy S II Android Development] the.gangster:
Sorry Mr. newbie,

it's not a question of your question, it's a question of the sense in it.

If you had read this thread or this one you wouldn't have asked your question as it cannot be installed by ODIN.

There are countless ways to install an IsoRec recovery to the recovery partition, ODIN is none of them.
[Galaxy S II Android Development] TriboDoP:
Once more: i am not talking about img File.

In the op is a download link also for ZIP File and the mentioned link is for a zip File.

Zip files can be flashed in (custom) recovery.

No need for pc and Odin.

Just noticed the.gangster (who btw. provided the linked zip) already answered you
[Galaxy S II Android Development] Teekanne3000:
[MENTION=6329761]super_newbie_pro[/MENTION] if you have micro sd card or you know adb sideload, you can take this file: https://mega.nz/#!j1wWQZJL!0C_emnJuGhqoOXo35Pu3rsNXJBxGuXmwr7nkMWimqZM

This is an old, odin flashable TWRP. From there, you can flash newest TWRP.
[Galaxy S II Android Development] super_newbie_pro:
Thx.. yes i have a microSD 32gb ... but i dont know what i do... After a lot of test to try to reinstall this TWRP and Lineageos ; she dont work... Cant format it even on my PC i dont see it. And when i want format it with Apollo, (there is no format choice, its "WIPE" sdcard) i have : << E:Unable to wipe '/sd card' -- unknown file system 'auto' >> and fail, in red. I dont know what is this "unknow file system 'auto' ...

I will download your file and install it with odin. Maybe, when it will be install, that this TWRP will be able to recognize and format the sdcard.
[Galaxy S II Android Development] Teekanne3000:
You can try to search on the Internet to find a solution to format your SD card so that it is displayed again. For example try to use this program to see if it can help you
[Galaxy S II Android Development] thearczoro:
waiting [MENTION=414800]arnab[/MENTION] for update. :)
[Galaxy S II Android Development] laptopu:
After the success of unofficial emulated build and v3.1 due soon, will 3.1 be emulated support on the official release please?
[Galaxy S II Android Development] xda helios:
Hi!

I have a s2 i9100 still with the original rom (stock rom) and no recovery installed. I'm trying to install LineageOS, but 1st I have to install TWRP. Following the instruction on page 1, using Heimdall-frontend, when I do the "download" PIT stage, I get the error:

Initialising connection...

Detecting device...

Claiming interface...

ERROR: Claiming interface failed!

Can someone help me on this?

My objective is to install the Lineage OS rom.

Thanks in advance!
[Galaxy S II Android Development] MigoMujahid:
Please follow this guide
[Galaxy S II Android Development] xda helios:
Thank U for your help.

Can I follow the guide and apply it to Lineage ROM instead of the CM13 rom mentioned in the guide?

Is it really necessary the battery calibration in the end of the guide?

Just for curiosity... why can't I follow the guide on this thread?

UPDATE:

I followed the guide suggested by MigoMujahid, and after about 2 hours, jumping between different forum threads, I was able to install the Lineage ROM. Nevertheless, I am still working on the rooting of the ROM. Many thanks to MigoMujahid!
[Galaxy S II Android Development] MigoMujahid:
-yes of course you can

-no not necessary to calibrate

-because the guide in OP supposes that you already have isorec support, and as you are in stock rom, you don't have isorec support, plus i prefer Odin to Heimdal, it's easier and much more common, and the guide that i gave you the link to starts the procedure from scratch..
[Galaxy S II Android Development] alechef:
Hi guys, can I use the same guide for Note N7000?

Thanks

Ale
[Galaxy S II Android Development] xda helios:
Can someone please explain me what's the difference between TWRP official and the gangster version? Thank you.

I have just finished installing the LineageOS ROM that implies the install of the ".gangster IsoRec TWRP 3.0.2-1 recovery", but I am thnking in installing the new TWRP 3.0.3-0 version. Is this ok?
[Galaxy S II Android Development] TriboDoP:
No difference between official and the.gangster's.

People kept asking for a zip instead of img file so he was so kind to provide a zip version.

And i would stick to version 3.0.2-1.
[Galaxy S II Android Development] xda helios:
Thank you for the informations. Knowledge is never enough!
[Galaxy S II Android Development] the.gangster:
Yes, and that's why my signature only links to the post within this thread which gives that information.

On top of that, the linked download source on AFH tells you:

"Official IsoRec Recovery TWRP 3.0.2-1 as published by arnab, wrapped into a signed flashable zip."

But all that certainly isn't enough, if people reupload it somewhere else, which is a pain if you ask me.

:)

EDIT: and I would also stick to the official version (3.0.2-1) as it runs on all IsoRec-kernels. The 3.0.3-builds don't and could (and would if triggered with the "boot to recovery flag") cause bootloop on most non-Nougat ROMs.
[Galaxy S II Android Development] the.gangster:
New TWRP 3.1.0-0 build released

After TWRP officially announced the availability of the TWRP 3.1.0-0 recovery and also provided a new image-download for our device already earlier today, and after taking a short look at it to have proof it was build upon an Android 5.1.1 ramdisk, (which is important for us, to prevent bootloops if installed on all the earlier kernels with IsoRec-support) I feel quite comfortable in offering that new official version wrapped into a signed flashable ZIP again for your convenience.

recovery-the.gangster-IsoRec-TWRP-3.1.0-0-i9100.zip (.md5)

Some answers to the usual questions:

-New users being directed here and who didn't read the thread yet should know that the recovery will only be loaded if your kernel supports IsoRec-recoveries.

-No, this is not an emulated-storage migration build

-No, there is no difference to the official TWRP 3.1.0-0, it is exactly the latter (just as a flashable ZIP). So all the thanks for the new version itself go to TWRP team and arnab as our device supporter.

-Yes, you can flash this zip from almost every recovery (as it is signed) at least as long as it is KK-compatible.

older Versions:

The 3.0.2-1 is linked here.

The 3.02.-1 special version with preload-support (modded to allow formatting preload) is linked here.
[Galaxy S II Android Development] bujjo53:
Can i flash this directly from TWRP 3.0.2-1 ?
[Galaxy S II Android Development] MigoMujahid:
Yes you can :)
[Galaxy S II Android Development] the.gangster:
I really didn't expect that question but now I added even another hint in the post above... :)
[Galaxy S II Android Development] rogers11:
You should expect everything here. :)
[Galaxy S II Android Development] pacman7:
Thank you for TWRP 3.1.0-0 i9100. :good:

Regards.
[Galaxy S II Android Development] ultravy:
Maybe you will make a build with preload support and efs backup! ;)
[Galaxy S II Android Development] todonormal:
[MENTION=414800]arnab[/MENTION] and [MENTION=6560258]the.gangster[/MENTION] thanks, but please change the title: [RECOVERY] [ISOREC] [TWRP 3.1] [OFFICIAL] [26/04/2016]
[Galaxy S II Android Development] davidvanwijk:
If there is no difference with regular recovery, why bring this recovery? Thanks anyway!

Verstuurd vanaf mijn GT-P7500 met Tapatalk
[Galaxy S II Android Development] fubo73:
As [MENTION=6560258]the.gangster[/MENTION] wrote:

Standard TWRP is distributed as IMG file or TAR.MD5 file to be used with Odin. This package is ZIP and can be flashed from any recovery.
[Galaxy S II Android Development] the.gangster:
Just one little correction as all too often there are really users trying to flash it with ODIN:

For our device there is even no way of flashing it by ODIN as there is no ODIN version that allows flashing to the recovery partition, simply because that partition was never used.

Nevertheless the originally published IMG file could be flashed with Heimdall (described in OP) or from within an existing TWRP recovery (>2.8.4.0) or by adb push, or by dd, or by ... some 100 more ways.
[Galaxy S II Android Development] karrlito:
In TWRP mounting USB with MTP in both 3.0.2-1 and 3.1.0-0 is not working. Mounting as USB Storage is working for both internal and external memory only on 3.0.2-1. On 3.1.0-0 Windows is making sound of connection and i can unmount it from the safety remove hardware icon next to the clock but it's not showing as a storage. When it's in MTP mode the safety remove icon says eject MTP but still nothing in explorer on the PC. Using Windows 10 with latest samsung usb driver.
[Galaxy S II Android Development] the.gangster:
@ karrlito

no problems with TWRP 3..0.2-1 or 3.1.0-0 mounting MTP shows both, internal and external storage (the inofficial emulated migration builds additionally show the emulated shared storage).

Tested with Win7x64 but not with original Samsung USB driver but with leshcatlabs.net drivers, as I had problems in the past to adb to the TWRPs due to them partly using other USB device strings such as of Google Nexus (ven_18D1&pid_4ee2) or the Galaxy Nexus (ven_18D1&pid_D001).
[Galaxy S II Android Development] karrlito:
Thanks for checking. I was on 3.1.0-0 and plugged the phone into my laptop because i didn't used it there from a long time. I was in recovery and firstly the phone showed on the laptop and mounting was working too, then windows started to install something and then the laptop started to work like my last comment for the pc. I had 1.5.61.0 driver on both pc and laptop. On 3.0.2-1 phone was never asking to install additional drivers from what i remember and it was working and still working in usb storage mode but 3.1.0-0 don't. I will try to find what windows installed and start over with the drivers.
[Galaxy S II Android Development] droidbaker:
TWRP 2.7.1 to 3.1.0 - howto?

Hello guys,

I have I9100 with Slimsaber 4.4.4 and Xposed and TWRP 2.7.1. I wanted to upgrade TWRP to 3.1.0 so I booted into recovery with TWRP 2.7.1 and I tried to install recovery-the.gangster-IsoRec-TWRP-3.1.0-0-i9100.zip. The install was successful, but when I booted into recovery I got 2.7.1 again. Then I tried to install TWRP android app and I downloaded recommended image for i9100 and it was installed "successfuly" but again - after reboot to recovery I still see old TWRP 2.7.1...

Any hints why?

Thank you!!!
[Galaxy S II Android Development] MauroRTR:
did you read the Installation instructions in the first post?
[Galaxy S II Android Development] spinning_quirK:
Like you, I was stuck for a long time not knowing which ROMs had IsoRec or not. Slim ROMs all do not have IsoRec. You need to back up your data, or better still, just wipe and install either CM12.1 or CM13 followed by Dorimanx kernel with IsoRec. Google servers have your backup data (Disclaimer: at your own risk). Before attempting that, make sure you have a backed up copy of the Slim ROM you use, just in case the existing recovery that came with your ROM doesn't recognise Lollipop (12.1) or Marshmallow (13). It should work fine though.

What I did was to dirty flash CM13 over my SlimLP just to check my recovery works fine. If it doesn't, it should fail early and without modification. Then after that was done, I wiped /system, /data, /cache and Dalvik and flashed it again.

After installing CM, install a compatible Dorimanx kernel with IsoRec. Reboot into recovery and voila.
[Galaxy S II Android Development] the.gangster:
As you always mention flashing DorimanX kernels:

All official CM13 nightlies from the start and all official CM12 as of CM12.1-Nightly-20160119 do already have IsoRec-support.

(But yes, DomimanX kernels as of 20160127 do that as well.)
[Galaxy S II Android Development] ikinone:
Really confused by this.

I am running an old stock 4.1.2 with kernel 3.0.31

I have tried flashing TWRP via heimdall, which seems to install correctly, but when booting to recovery, results in stock recovery use.

Some people are saying the ROM needs to be IsoRec compatible, but how can I install a ROM on here without getting recovery going? Every ROM install guide requires a custom recovery.
[Galaxy S II Android Development] MigoMujahid:
you have to install another recovery then use it to install the isorec Kernel and TWRP, for example, follow this guide, because you also need to repartition if you want to install android 6 or 7 roms.
[Galaxy S II Android Development] ikinone:
Thanks Migo, I'll give that a go
[Galaxy S II Android Development] arnab:
From 20th Il be back full time here.
[Galaxy S II Android Development] MARCOSOFT:
Exterminator:

"Il be back"...

:)
[Galaxy S II Android Development] MigoMujahid:
[MENTION=5651185]GreekDragon[/MENTION] Hey, Bro, Congrats for the new Title, you absolutely deserve it :o :good: :good:

[MENTION=414800]arnab[/MENTION] welcome back bro, we missed you around here.
[Galaxy S II Android Development] arnab:
Is any1 working with slimroms ???
[Galaxy S II Android Development] MigoMujahid:
Congratulations for the title [MENTION=414800]arnab[/MENTION], you deserve it :D

We're waiting for your Unicorn to arrive carrying a basket filled with Noguts......LOL :silly:
[Galaxy S II Android Development] Wolfey7:
If you mean still developing Slim Roms for S2, I'm afraid no. :(
[Galaxy S II Android Development] arnab:
Iam planning to move on to slimroms as DU is no longer permitted in xda...plz give ur thoughts.
[Galaxy S II Android Development] MigoMujahid:
Sad, i really loved DU, but slimroms are great as well, i got no pb with that :o, i would test as well :)
[Galaxy S II Android Development] arnab:
Kfine....Il start working on slimroms then
[Galaxy S II Android Development] haris1976:
I Love Slimrom
[Galaxy S II Android Development] the.gangster:
[MENTION=414800]arnab[/MENTION]

it's really good to have you back here (and I honestly hope, your mother is doing well again).

(btw: I know it's your thread, but I think it is about the TWRP so just maybe nevertheless Slimroms could be discussed somewhere else? )

;)

And maybe you could update the title some time, as we moved to TWRP 3.1.0-0 already.

Thx pal.
[Galaxy S II Android Development] arnab:
Let me settle down a bit. Will do everything orderly...btw thanks for ur gesture.
[Galaxy S II Android Development] C C:
Hi all. Had isorec twrp 3.0.2-1 on phone and tried to update. Now it boot loops into android recovery. Won't let me select options with volume, power buttons. Please help.
[Galaxy S II Android Development] TriboDoP:
Hi

Happened to me twice.

When i updated using img file and twrp App and again using img file and doing it manually in twrp according to op.

Flashed with Odin a KitKat kompatible recovery.

Booted in this recovery and dirty flashed the same rom i was on before together with twrp 3.1.0.0 zip from the.gangster.

Only wiped dalvik/cache.
[Galaxy S II Android Development] ale5000:
There will be TWRP 3.1.1-0?
[Galaxy S II Android Development] the.gangster:
Looks like the auto-build of 3.1.1-0 for i9100 failed 2 days ago with a repository missing:
[Galaxy S II Android Development] MigoMujahid:
It should be built manually, right?
[Galaxy S II Android Development] lexus46:
I wait for the first build to download and test.:good:
[Galaxy S II Android Development] the_MacAce:
Install TWRP over CWM

Has anyone an idea how to replace CWM v6.0.4.5 on a Samsung Galaxy S2 with TWRP?

It was still "SuperNexus 4.0" installed and I wanted to install now "XenonHD 7.1" but for this I need TWRP.

I tried to install XenonHD 7.1 with CWM but it hangs with "Patching system image unconditionally..." and after some minutes installation is aborting.

Tried to install twrp-3.1.0-0 and twrp-3.0.2-0:

I tried flashing from out of CWM - still CWM installed.

I tried flashing via HeimdallSuite - ERROR: Setting up interface failed!

I tried flashing via ODIN - FAIL

I tried flashing via rashr and TWRP Manager - says that installation was successfull but after reboot it's still CWM.

I tried flashing via Fastboot - waited for half an hour but nothing happend.

:confused:

Anyone an idea how I can get rid of CWM and install TWRP?

Thank you very much in advance!
[Galaxy S II Android Development] bujjo53:
https://xdaforums.com/galaxy-s2/help/guide-tutorial-samsung-galaxy-s2-i9100-t3538601

Follow this guide tested worked 100%
[Galaxy S II Android Development] lexus46:
Or try to flash this via Odin. Than reboot to Recovery (it should be TWRP 2.8.7.0) and flash TWRP 3.0.2-1 by the.gangster.
[Galaxy S II Android Development] the.gangster:
You tried a lot of things as you haven't understood one simple thing (if you read the opening post at all) :

you need an IsoRec kernel after flashing one of this thread's (all official) TWRP-builds on the i9100 if you haven't one in your ROM already (e.g. one from here).

And maybe a 2nd thing if you haven't done yet: hopefully you increased system partition already. Otherwise it would explain you not being able to succeed in flashing the newer ROMs. (But that's offtopic here).

Why doing all that nonsense if he's only missing one or two things?

While the first step will get him a kernel with an old-style embedded recovery, the 2nd one will just overwrite the IsoRec recovery a 4th time without making use of it!

All he needs is an IsoRec kernel.
[Galaxy S II Android Development] lexus46:
Yes, you're right. I forgot the Isorec kernel.:p
[Galaxy S II Android Development] the_MacAce:
Super, I was missing the kernel...

"Who can read is clearly in the advantage"

This I just didn't read carefully enough :silly: I'll try it again later with IsoRec Kernel.

Thanks to all of you! :good:
[Galaxy S II Android Development] McConnor:
I kindly would like to ask it it was possible to have this recovery for the sister model i9100G - Background is that testing of current Lineage ROMs for i9100G does work better when a newer recovery is used but not with older ones - the latest available TWRP for i9100G is the 2.8.7.0. With TWRP 3.1 for i9100 latest Test build for Lineage 14.1 could be installed in the phone and was at least booting (altough with quite some errors)...

The TWRP for i9100 can be flashed on the the i9100G (verified) and works obiously flawless (backup, restore, install images...) - but then ROMs for the i9100G cant be flashed anymore without changing the corresponding Meta inf (Device check).

[MENTION=414800]arnab[/MENTION] - if it was not too much a hassle would it be possible to have a version for the G model - you helped the G fraction out some time ago so I wager you could estimate if that is possible for you. Thanks already for your help...
[Galaxy S II Android Development] the.gangster:
[MENTION=5194378]McConnor[/MENTION]

I answered you in the	[I9100G] LineageOS 14.1 Pre-Alpha Discussion.
[Galaxy S II Android Development] todonormal:
Do you know new news?:D
[Galaxy S II Android Development] the.gangster:
No. I had a look on the repository already but as I haven't compiled any ROM or Recovery so far, I couldn't figure it out yet.

I thought to have found the locations where the messages where generated from just before the error occured, but then somehow I was missing the link where the error itself would be generated from.

So maybe this might need to wait until [MENTION=414800]arnab[/MENTION] is back active here, unless [MENTION=912474]Dees_Troy[/MENTION] would have a look (if he gets aware at all).