yashsingh1/xdaforums huggingface dataset:
[Galaxy S II Android Development] italpor:
Dear DevisG79,

thank you for your reply. I did what you suggested. wipe System,cache and dalvik. The exact same repartitioning zip file (lanchon-repit) which I used a few days ago now comes up with an error message. So does isorec. I also tried to flash the cm 12.1 zip that I used a year ago and was on my sd card since then. Installation aborted...

I could flash CM13, but I'm afraid, that flashing Gapps won't work or it will brick the phone again, as repartitioning has not been done.

I would try it, but since the cm13 recovery doesn't have a backup function.

I'm out of ideas.

Do you have any other suggestion?

Thank you very much!

Anna
[Galaxy S II Android Development] DevisG79:
First of all backup all your data you need

1. Flash latest original Samsung Firmware for your device(3-pieces) with odin, then start recovery modus.

2. Flash temporary cwm recovery from external storage(apply update)

3. Then you must be in cwm and then flash supersu-busybox installer.zip.

4. Root(you have to choose the wright philz Kernel), reboot

5. Backup EFS

6. update cwm, reboot recovery

7. wipe data factory reset, format system, wipe cache

8. install latest cm12.1 nightly, reboot

9. repartitioning (with gustavo kernel)

10. wipe data factory reset, format system, wipe cache

11. flash isorec kernel, isorec recovery(TWRP), latest cm 13 and opengapps arm6.0 in a row.

12. That´s it!
[Galaxy S II Android Development] falke69:
Don't reboot between installing CM and GApps !

That's important !
[Galaxy S II Android Development] italpor:
Thank you so much! It finally works now :)

Only thing is the battery drain in CM13.

12.1 had battery mode in settings -> battery, 13 doesn't. Battery dropped 5% overnight in flight mode, while 12.1 didn't lose even 1%.

I guess I will do some Google research.

Thank you once more!:fingers-crossed:

---------- Post added at 10:42 AM ---------- Previous post was at 10:40 AM ----------

Thank you Falke for your advice. :fingers-crossed:
[Galaxy S II Android Development] Tensha:
Hello! I need little help... tryed to install twrp on my old galaxy s2 with no success.

Followed all instruction and got flash 100%... my phone restart but no twrp installed. What's wrong?
[Galaxy S II Android Development] Saber:
Are you using a ROM that supports Isorec (e.g. CM13, CM12.1)?

Saber
[Galaxy S II Android Development] Tensha:
No, prob my bad. How can i install a rom, without a custum recovery? I have stock phone actually
[Galaxy S II Android Development] sylvasster68:
Turn the device off and combination keys: power + (Volume +) + menu for the publication of these logos twrp
[Galaxy S II Android Development] the.gangster:
If you at least rooted your phone already and run 4.1.2, you could install this DorimanX kernel.

That will support IsoRec-Recoveries.

For installing CM13 I suggest reading this and that
[Galaxy S II Android Development] Tensha:
The kernel package is a zip file, i cant use odin. So what way? thanks!
[Galaxy S II Android Development] the.gangster:
[MENTION=7764550]Tensha[/MENTION]

now it is completely off-topic here. Use search functions and make your homework. Sorry.
[Galaxy S II Android Development] ka_ru:
How can i flash through ODIN?

in my phone works only bootloader. I want to save the data. if it is possible.

:(
[Galaxy S II Android Development] Lanchon:
no you can't. flash a kernel with a usable recovery via ODIN. then use that recovery to flash TWRP 3 **AND** an isorec kernel. then reboot recovery.
[Galaxy S II Android Development] ssanjy:
If you can boot into bootloader then you can download kernel in .tar format and use ODIN to flash it (search how to flash using ODIN if you don't know already, there are lots of guides)....If you are on Stock ROM then try to find Philz or Apolo kernel...or you can visit this post and download a kernel and flash it and go to recovery to backup your ROM and data....Now flash a IsoRec kernel and flash the official TWRP
[Galaxy S II Android Development] williamgrant:
Hi!

I'm on a stock rom (4.1.2), flashed via Odin. My main problem is flashing the TWRP (3.0.2.1). I change the driver with Zadig, save the pit, and start a flash with Heimdall. After the flash, the phone doesn't reboot, and heimdall can't close the session. Nothing happens. I remove the battery, and press VOLUP+PWR+HOME and the original Samsung Recovery starts. I try to flashed older (3.0.2.0) version, but the problem is same. I can flash the official rom again and agin via Odin, but when I try to flash the TWRP from Heimdall, the phone runs to bootloop.

Can I install TWRP to my i9100 _without_ Heimdall?

I must use an another PIT and repartitioning with the phone storage BEFORE I try to flash the new Recovery?

Thanks,

WG.
[Galaxy S II Android Development] williamgrant:
Problem solved:

I flashed a kernel with Odin, and reboot to CWM. Started a fresh rom to install, it make bootloop, but change the crm to 3.0.0 twrp. After booting to old TWRP i can flash the image file, and reflash again the fresh rom, it works.
[Galaxy S II Android Development] mirhl:
I guess it could be more future-proof if we could get recovery not to crash when there are missing/corrupted partitions.

Fixing that in the end made my day.

I hope you'll be able to reproduce the issue with this partial dd image of /sdcard partition.

EDIT: I wonder if this couldn't be related

EDIT2: I had reported this on late CM jira under issue CYAN-8172
[Galaxy S II Android Development] tayeb21:
Is there a video how to install Recovery Isolated
[Galaxy S II Android Development] amomp3:
Sorry if this has been asked but im reading a lot of posts since 2 days and every time i find instructions to do 1 step, in that instructions i find that i must do 1 step before i can complete that step and when i move to complete the previous step i find i need to do 1 more step before completing that one... and so

i think that is because the device is so outdated that there are a lot of steps to acomplish so:

I think i need to clarify the steps or sort of a checklist to make sure not doing ****...

I have a ROOTED STOCK 4.0.4 (baseband i9100XXLQ6 just in case) with CWMR Touch 6.0.1.4-PhilZ

Can somebody point me numbered exacts steps to follow to have TWRP 3.0.2-1 working in order to be able to flash, for example, Bliss-v6.4-i9100-UNOFFICIAL-20161002-1525 and gapps ?

I think i can manage once inside each step on how to do each but my main concern is to have the right order and not miss a step in the middle to be sure i will not fail in any step because of having not previously done a thing that was needed to be done before for the next one to work...

i hope i explained myself

Thank YOU all Very Much for YOUR Time and for Helping others to beat obsolescence and make a better world.

Cheers !
[Galaxy S II Android Development] Saber:
Nope. OP instructions is all you need to install TWRP.

Ensure you are running a rooted custom ROM that is isorec compatible like CM13. If you are on an earlier version of android (at least JB), you can install isorec kernel like DorimanX.

Saber
[Galaxy S II Android Development] stalek71:
Hello,

I'm new on the forum so don't kick me if I'm wrong :)

I was trying to flash TWRP 2.8.7.0 (and 3.0.2.1 also) on my I9100 (international version so no any G or other letters on the end of model name),

but something is wrong with the images I was able to find and test. It's (rather was) phone with original (stock) firmware.

I'm able to install CWM (latest version) and it works. When I install 2.8.7 (TWRP_2.8.7.0_Recovery_Only_signed.tar) it doesn't go to recovery menu.

I was trying to flash TWRP using ODIN 3.12.3 version and old version also (3 1.7). When I try to flash TWRP 3.0.2.1 I receive write fail messages.

For flashing through ODIN I packed 3.0.2.1 img using tar but write operation fails, in Heimdall 1.4rc I was sending image directly to RECOVERY partition, but during save I receive a message

about missing "pit" partition (is it some side effect message or real problem with such named partition somewhere? - strange)

How to successfuly install TWRP 3.0.2.1 on this phone? - please help :)

Maybe somebody has somewhere any older version of TWRP I could download as initial recovery image (best if I could do it using ODIN) and the flash 3.0.2.1 directly from flash card on phone?

At the moment the only working thing on the phone is ODIN boot menu (I wiped out the whole phone preparing it for CM 13) ... :(
[Galaxy S II Android Development] the.gangster:
TWRP with Preload-Support

Additionally to that one...

... I have now also build a Zip containing a modified TWRP 3.0.2-1 build for our device.

Modified (only) to also allow to format (wipe) and mount the Preload partition.

As there are still users who do repit their devices with ODIN using Pitfiles that are decreasing the size of the preload partition, but who then "miss" to format it afterwards. As this - although not really used by CM - can cause problems to boot CM, there is IMHO still the need for such an option in today's recovery. (Use ext4 for the preload partition)

Otherwise these people do depend on typing the proper command in a terminal app or even get encouraged to install an outdated Philz (kernel-embedded!!!) recovery.

Nevertheless I would encourage anyone to use it only for fixing stuff and to switch back to the official one afterwards. To remind you I also slightly changed the colors.

You can get it here: recovery-the.gangster-IsoRec-TWRP-3.0.2-1-i9100-WITH-PRELOAD-SUPPORT.zip

(md5-file)
[Galaxy S II Android Development] Namoi:
Thanks for the moded version. Greatly appreciated. I hope [MENTION=414800]arnab[/MENTION] will implent this in its release too (as the color scheme you used is intentionally hard for the eye ?)

Just wanted to confirm if mounting preload prior to wiping is needed (don't think so but just to be sure)

Also i wonder why in advanced options fixing permissions has been removed from both version ?

Thanks again
[Galaxy S II Android Development] stalek71:
I reflashed my S2 with stock system in version 4.1.2, used SuperSU and adb to elevate privileges and copied TWRP 3.0.2.1 image to /dev/block/mmcblk0p6(using dd if=/storage/xxx/twrp.img of=/dev/block/mmcblk0p6).

The copy operation succeeded, but after system reboot (and switching to recovery menu) I still see old recovery menu (Android system recovery <3e> ). I Pressed power+volume down+middle button as usual and nothing changed.

Does anybody know what is going on there? Does it mean the system restores system recovery on the reboot operation???

Please help...
[Galaxy S II Android Development] TriboDoP:
Beeing on any Rom without isorec-kernel you will have the recovery that comes with this kernel.

The before flashed isorec-recovery twrp will remain on the device.

When flashing any Rom with isorec-kernel you will have again the before flashed isorec twrp

---------- Post added at 08:05 AM ---------- Previous post was at 07:47 AM ----------

Btw i think [MENTION=4354573]chhapil[/MENTION] has made a kernel with trim and isorec support ....
[Galaxy S II Android Development] stalek71:
Thanks [MENTION=7031250]TriboDoP[/MENTION] for the answer.

So the only missing element on the upgrade path is the proper custom kernel flashed first, right :) ?
[Galaxy S II Android Development] TriboDoP:
Yes

I hope i did copy allright the following links:

Apolo thread<br />

http://xdaforums.com/galaxy-s2/development-derivatives/kernel-t2291756<br />

<br />

Dorimanx thread by GreekDragon<br />

http://xdaforums.com/galaxy-s2/development-derivatives/kernel-dorimanx-4-1-x-t3418834

---------- Post added at 05:39 PM ---------- Previous post was at 05:27 PM ----------

Here the download link: http://chhapil.github.io/

---------- Post added at 06:04 PM ---------- Previous post was at 05:39 PM ----------

Well - did some searching but still i am not sure which kernel for stock jb has isorec-support.

Maybe [MENTION=5811506]Saber[/MENTION] or [MENTION=932480]cchap[/MENTION]il could be so kind and tell us.

Thanks
[Galaxy S II Android Development] stalek71:
I was able to flash CM13 finally!

Thanks :highfive:

The issue I had was kernels in zip file couldn't recognize my phone model during verification (empty string/value on script conditions),

so verification always failed and I was not able to fix it.

I did flashing of new kernel when I took kernel version in tar file and sent it through odin - then everything went well :)
[Galaxy S II Android Development] Saber:
Both chhapil's Dori build and Greekdragon's build have isorec support.

Saber ;)
[Galaxy S II Android Development] TriboDoP:
Thanks once more!
[Galaxy S II Android Development] noobsgs2:
I'm on TWRP 2.7.1.0 with SLIMKAT 4.4.4 , can i install this TWRP, re-pit the phone and install CM13?
[Galaxy S II Android Development] TriboDoP:
Hi

I already gave a detailed answer in thread noob friendly guide "want to update to cm 13...

Please avoid double postings.

Regards
[Galaxy S II Android Development] arnab:
Being a noob is not an epidemic... Staying that way intentionally is.
[Galaxy S II Android Development] lohtse:
Flashed this on to my i9100 now can't enter twrp at all!! just hangs at twrp logo.... Also ODIN nolonger recognises the phone yet pc does... Phone is nolonger charging as well..

Was working fine before this so something has happened due to this.

Anyideas what to do to fix this?
[Galaxy S II Android Development] TriboDoP:
If your Phone could be connected to pc before and if charging also worked before maybe your usb connector is broken (happens quite often).

I really do not believe that twrp could be the reason.

On which rom/kernel are you and how exactly did you flash twrp and which file did you use?

Giving this information is useful for people here to help you.
[Galaxy S II Android Development] lohtse:
I managed to sort it in the end... required a full uninstall then reinstall of the drivers!!!
[Galaxy S II Android Development] TacoLoco:
Hi there,

I got a problem flashing a nougat ROM ([ROM][i9100][7.1][OFFICIAL]crDroid Android[05/12/2016] by GreekDragon). CM10 was on the device.. This is what I did:

- Updated via CM OTA Updater to CM13

- installed TWRP via Heimdall

- Advanced Wipe (wiped everything except external storage)

Problem:

Install hangs at "Patching System unconditionally.."

Can you give me a hint? System partition seems so be mounted and I unchecked the "Read only" checkbox..

Best Regards

Stefan
[Galaxy S II Android Development] TriboDoP:
Hi

You repitted to 1 GB system and 4

GB data?
[Galaxy S II Android Development] TacoLoco:
It seems to work :)

Repartition quitted with error so I did following:

- wipe all partitions again

- unmount all partitions (even external sd)

- flash repit from /tmp folder

Big thx, now installing Nougat and gApps.. :)

This is so cool, Nougat on old S2 and I also have a HD2 lying around (although with cracked display) - maybe the next patient :)
[Galaxy S II Android Development] TriboDoP:
Enjoy the sweetness of nougat !
[Galaxy S II Android Development] crireal:
Twrp backups on note3 sm-n9005 no brand

Hi.

A few days ago i've rooted my sm-n9005 lte no brand with cf autoroot and installed twrp with app in playstore.

I've made nandroid backup (system,file,boot), and separately modem backup and efs backup.

I've lollipop 5.0 stock rom.

My back ups are correct and safely. Or i've to back up efs with other more reliable method ?

I read that twrp has issues on efs backup. It's true?

Thanks
[Galaxy S II Android Development] MigoMujahid:
sure you aren't in the right thread..

This thread is for samsung galaxy s2 i9100 and you have note 3

Anyway, i use THIS app to backup my efs
[Galaxy S II Android Development] Adithya88:
i m getting this error.. claiming interface failed in Heimdall frontend. Can somebody help...
[Galaxy S II Android Development] TriboDoP:
If you want help you should exactly describe what you did so far.

If it is about installing twrp:

No need to use a PC because [MENTION=6560258]the.gangster[/MENTION] provided a isorec recovery twrp 3.0.2-1.zip which can be installed with a recovery.

But you have to be on an isorec-kernel or Rom with isorec kernel - otherwise the isorec twrp Recovery will not show up.
[Galaxy S II Android Development] Adithya88:
Pls ignore. solved the problem. made a .tar file and flashed it using odin
[Galaxy S II Android Development] TriboDoP:
Great! you could solve ist by yourself.
[Galaxy S II Android Development] Adithya88:
;):D:victory:
[Galaxy S II Android Development] abheybir2012:
Unable to Install TWRP recovery to i9100

Hi,

Am having CWM 6.0.5.1 installed over my i9100 and was using LP ROM, but now i have tried several methods to install TWRP (Recovery, ODIN, applications like TWRP Manager etc, Heimdall) but all failed. Somebody please guide me a bit over this. Everytime it boots into the cwm, and using that i am unable to install 7.1 ROM :confused:
[Galaxy S II Android Development] TriboDoP:
Hi

With cwm 6.0.5.1 Install latest "cm-11-20161119-unofficial-i9100.zip by zjq985062714" together with "recovery-the.gangster-IsoRec-TWRP-3.0.2-1.zip"

In case you have not repitted:

Flash lanchon repit tool - this is a zip.file to be flashed in twrp 3 Recovery ( Choose 1gb vor system and 4 gb for data)

In twrp 3 now clean Install any Rom and gapps.
[Galaxy S II Android Development] abheybir2012:
Thanks a million; worked as miracle!!

Thanks a million; worked as miracle!! Now just waiting for Android N to boot for first time!!
[Galaxy S II Android Development] TriboDoP:
That`s fine!

Enjoy your Nougat!
[Galaxy S II Android Development] Lownita:
Hi,

Can I also use this method with cwm 6.0.2.7 (philz touch recovery 4)? Thanks a lot!
[Galaxy S II Android Development] TriboDoP:
You have to update your kernel/recovery to kk compatible first.

Then you can do it like I said.

Update to cwm 6.0.4.7.zip or philz_touch_6.48.4-i9100.zip
[Galaxy S II Android Development] Lownita:
Thank you! Sadly I can't find the right zip to flash for repit, because the thread of lanchon repit tool was closed. Could you give me a link to the file?
[Galaxy S II Android Development] the.gangster:
[MENTION=4134586]Lownita[/MENTION]

Current Repit-thread is here
[Galaxy S II Android Development] Lownita:
Great thank you! Guess I've found the right file, should be lanchon-repit-20160923-system=1G-data=same-sdcard=max-preload=min+wipe-i9100.zip.
[Galaxy S II Android Development] TriboDoP:
Yes

And i would recommend 1gb for system and 4 gb for data
[Galaxy S II Android Development] zetret:
[MENTION=414800]arnab[/MENTION] - your post 1 says, "Download the TWRP zip file from the Downloads section" - However, from the Downloads section, only one IMAGE file is available, not a zip. This is confusing to new users.

Also, if you could include a better step-by-step instruction on how to install this, using means other than Heimdall, that would be good.
[Galaxy S II Android Development] MigoMujahid:
What do you mean with img, the download section has a ZIP file not an image
[Galaxy S II Android Development] zetret:
Please check the attached file - I am talking about the link on Post 1, as explained in my previous post.
[Galaxy S II Android Development] MigoMujahid:
The download link doesn't have links for twrp 3, only 2.8.x.x, because it wasn't officially released, so basically the download link isn't your option, the download section in this thread provides you with what you need.

Edit: links exists in the download link but it's for images, but anyway the download section in the thread, has what you're looking for

Edit 2: flash the one in the download section twrp 3.0.2.0, and update through it to the version in the download link which is twrp 3.0.2.1
[Galaxy S II Android Development] zetret:
No. If you click on the link I have shown in my screenshot, that takes you to the latest TWRP download. I will make it easier for you to understand - This is the link (https://twrp.me/devices/samsunggalaxys2i9100.html) and in it, is a download for twrp-3.0.2-1-i9100.img.

Also, you have acknowledged it doesn't contain the right file, so what is your point? I was asking for post 1 of this thread to be edited.

I won't be replying anymore.
[Galaxy S II Android Development] MigoMujahid:
Sorry, i edited my post up there, and provided the answer,

I didn't get what you meant before, sorry again
[Galaxy S II Android Development] the.gangster:
Now we are all waiting for the next question, where to find the "download section", which has been answered already many times.

Sadly the search function doesn't work for many people....

[MENTION=6915831]muhammad mujahid[/MENTION]

just to inform you: the download 'link' also leads you to the official 3.x versions, but in img-format. (Edit: as you meanwhile correctly edited in your post)

But anyway. You are at least the third person already trying to guide him and I would suggest no longer trying to at all... You'll only reap ungratefulness.
[Galaxy S II Android Development] akkis:
Hello everyone!

I really appreciate your help but I have this issue: With Philz Touch 5 9CMW Base Version 6.0.3.7) already installed I try to flash the current ZIP file downloaded from "Downloads" section of this post. The flashing process takes only 2 seconds and while I choose "reboot to recovery" my i9100 reboots again into Philz and not into TWRP. The log tells me that Installing... Done.

What's going wrong? :)
[Galaxy S II Android Development] Namoi:
My guess is you don't have an isorec compatible kernel.
[Galaxy S II Android Development] akkis:
Thank you for the reply! I thought that by flashing the current ZIP file, I would have an isorec kernel! I feel so complicated now... Actually I want to give a try of CM13 on my S2 and now I am at this dead end :)

---------- Post added at 10:30 AM ---------- Previous post was at 09:56 AM ----------

I start over. I flashed CM12.1 which according to post author (https://xdaforums.com/galaxy-s2/orig-development/isorec-isolated-recovery-galaxy-s2-t3291176) the isorec patch has been merged into official CyanogenMod 11, 12.1 and 13. Trying to flash TWRP 3.0.2-1.img from adb and while everything finished fine, the "reboot to recovery" still goes me to the CM recovery screens...
[Galaxy S II Android Development] Namoi:
Try to flash from recovery not adb.

Look at the.gangster signature : it has a link for a flashable moded isorec. You can after and if you want flash the img from within his recovery.
[Galaxy S II Android Development] the.gangster:
That won't help if he flashed already successfully, it will only update the recovery to new version. It will still not launch. [MENTION=4207782]akkis[/MENTION]

Flash a current nightly! Cm12 snapshot is to old.

Or flash a matching kernel at least. This has been mentioned repeatedly already....
[Galaxy S II Android Development] TriboDoP:
[MENTION=4207782]akkis[/MENTION]

Your philz seem to be old.

Update to cwm 6.0.4.7+

Right from there Flash cm11 unofficial 20161222 by zjq985062714 and before flashed twrp will Turn Up.

But everything was said by [MENTION=4296852]Namoi[/MENTION] and [MENTION=6560258]the.gangster[/MENTION]
[Galaxy S II Android Development] razandtim03:
Not working for me... A .TAR FILE PLEASE?
[Galaxy S II Android Development] Namoi:
Google "img to tar xda".

Grab the img twrp available in first thread and do it.

But as said before cwm 6 should be able to flash the zip...
[Galaxy S II Android Development] the.gangster:
Hmmm, a tar-file?

A million ways to get the recovery in the right place.

Multiple adb methods, dd, flashing zip, but yet there are people, who still want to make it complicated...

Are you sure you really understood the nature of IsoRec itself?

:(
[Galaxy S II Android Development] Namoi:
Indeed...

But for some people " if it ain't broken, well fix it anyway."
[Galaxy S II Android Development] akkis:
Thank all of you so much for your answers! I will give it a try and I'll tell you the results :)

Have a nice day guys!
[Galaxy S II Android Development] akkis:
Sum up:

After flashing CM13 (with CWM 6.0.4.7 recovery) then "boot-to-recovery" command, it opened on TWRP -finally!!!- From TWRP I flashed the appropriate ZIP file from REPIT and now I have a working CM13 Galaxy S2 with Gapps (pico from http://opengapps.org) installed successfully!

Thank you very much all of you guys!