yashsingh1/xdaforums huggingface dataset:
[Galaxy S II Original Android Development] ripee:
Thank you for catching that typo! I have no idea how to generate those with omni, I only ever build Lineage in addition to TWRP :P I'll run another build and let you know when it's ready. It'll be under the links in the OP.

Edit: ok new builds are ready!
[Galaxy S II Original Android Development] linusdan:
Tested. Device does not enter the TWRP after updating.

It may be a problem with the configuration files (kernel, boot.img, etc.).

Have you tried creating it by LineageOS? Maybe it works.
[Galaxy S II Original Android Development] ripee:
I will perhaps tomorrow.
[Galaxy S II Original Android Development] ripee:
I changed the code up so that it builds all those ramdisk files from the pre-built kernel. Try it now!
[Galaxy S II Original Android Development] linusdan:
Same problem as before :(
[Galaxy S II Original Android Development] ripee:
I haven't given up on getting official TWRP on the S2!

In fact, I'll have access to an S2 starting next week because it's my aunt's backup phone.
[Galaxy S II Original Android Development] ripee:
I added the flag to use emulated storage, and I revised recovery.fstab. Try it now under the link in the OP.
[Galaxy S II Original Android Development] ripee:
I re-built my device tree again, this time adapting from rINanDO's cm-14.1-emu branch. The SD card and the TWRP folder in internal storage mount fine, allowing for flashing from both internal and external storage, which TWRP refers to as "Micro SD card".
[Galaxy S II Original Android Development] a3956978:
Sorry, last build doesn't work for me either, unfortunately.

I still get the same error as in post #12. Additionally, my internal storage got corrupted and I had to format it and restore all content.

Hope this helps you for finding the root cause.
[Galaxy S II Original Android Development] gregor.b:
Same for me ... internal storage got corrupted.

I've a system backup, but how do i fix the internal storage ?
[Galaxy S II Original Android Development] ripee:
Internal storage corruption should be fixed, although the only folder visible both on my computer and in TWRP is "TWRP". So perhaps internal storage is still corrupt?
[Galaxy S II Original Android Development] kal4metal:
Does anybody else have 3 sdcards in the root path? For me it's sdcard0, sdcard, sdcard1 with this recovery.
[Galaxy S II Original Android Development] ripee:
I keep messing with my sources that I can't get back to a build that boots. I fixed the sdcard problem already but I have to get back to something that boots again.
[Galaxy S II Original Android Development] wave8500:
i can't flashing twrp-3.1.0.0.tar on my galaxy s2 i9100

anybody have another verision of .tar of twrp for galaxy s2 ?
[Galaxy S II Original Android Development] todonormal:
Very good for this work in progress!
[Galaxy S II Original Android Development] ripee:
Progress update

I managed to get it to flash and boot. If you wipe all partitions except External storage and USB-OTG, you will see both Internal and External storage in their proper partition sizes.

But I'm still working on "Failed to map file".

Edit: after wiping all partitions except external storage and usb-otg, twrp's settings finally persist after rebooting back into recovery.

Edit 2: it seems that Open GApps flash normally, but neither official nor unofficial LineageOS 14.1 does :P back to it...
[Galaxy S II Original Android Development] ripee:
The problem may lie in re-PITting

I've taken another look at my logs and I'm going to go back to square one, re-flash stock, then flash TWRP again, but this time without re-pitting my system partition. Lineage should be small enough to flash, so we'll see if the maximum allowable file size that twrp interprets that can be flashed is determined by re-PITting or if twrp determines what can fit some other way.
[Galaxy S II Original Android Development] Lister Of Smeg:
Hi Ripee,

Don't give up, you've worked so hard towards this.... and we need experienced Dev's such as yourself, [MENTION=2222292]rINanDO[/MENTION] and [MENTION=8145312]linusdan[/MENTION] to keep our old devices alive and fresh... :D :good:

Share your resources, your talents, and keep up the good work... everyone of you!!! :good:

Cheers, Lister

[/URL]
[Galaxy S II Original Android Development] ripee:
Thanks but this doesn't answer my question. Does my twrp work?
[Galaxy S II Original Android Development] guest4711:
Worked for me. Could install latest NanoDroid-microG while latest official failed ... https://xdaforums.com/apps/magisk/module-nanomod-5-0-20170405-microg-t3584928/post76404763 Thanks for your work...
[Galaxy S II Original Android Development] tiis:
Thanks for your effort, but I can't flash official LOS through automatic OTA process and also not manually, flashing stops right away with red text after skipping digest file. Went back to 3.1.0-0.
[Galaxy S II Original Android Development] ripee:
Is the 3.1 that works for you the.gangster's zip file or the official 3.1?
[Galaxy S II Original Android Development] the.gangster:
just to point out:

My zip *is* the official one...(I just wrapped it and signed it for easier flashing from any (including also non-twrp) recovery)
[Galaxy S II Original Android Development] ripee:
Would you be looking to build 3.2.1 yourself sometime? I will yield the floor to anyone who can build a properly working updated twrp in time for Oreo roms.
[Galaxy S II Original Android Development] guest4711:
For me it works. Just flashed LOS15 ( https://xdaforums.com/galaxy-s2/development-derivatives/rom-lineageos-15-0-t3674567/post76427755 ) without problems.
[Galaxy S II Original Android Development] ripee:
Wow! And here I was about to give up :D I'm guessing 3.2.1 won't flash 14.1 but will flash 15.1? I will keep playing around with my own S2 when I have a moment. If I get more votes of confidence, I'll finally submit it for official support... after all these months...
[Galaxy S II Original Android Development] linusdan:
With me the phone restarts and does not enter the TWRP.
[Galaxy S II Original Android Development] islander999:
Maybe try again with a dirty flash, if it boot then flash it again with properly wipe mentioned in OP
[Galaxy S II Original Android Development] hadooken:
Well, I did some deeper testing and found that latest version works almost properly and only for a clean install.

I said "almost" because I tried many times wiping the whole internal memory and then flashing a LineageOS 15.1 WIP beta and it succeeded with no errors but it seems to have changed every time the system partition size.

So, I tried each time to rePIT with my favorite partition scheme and then performing another clean install... and it did it again: partition sizes have changed while flashing the ROM and this caused my system partition to have just that few space to flash GApps pico package.

Well, I said also "only for a clean install" because it doesn't work for manually updating an existing LineageOS 15.1 with a newer Zip: I think this is due to the abnormal volumes mounting scheme which has been already reported by another user.

Hope these info could help in any way. If you need further specific testing, please don't hesitate to ask me.

Thank you!
[Galaxy S II Original Android Development] ripee:
After rePITing, you need to wipe System, Cache, Dalvik, Data, and Internal Storage, for TWRP to be able to recognize those partitions properly. When coming from an IsoRec kernel, please also extract the boot.img file from the Lineage build's zip file and flash it within TWRP, reboot into TWRP, and proceed to flash Lineage and GApps as you normally would.
[Galaxy S II Original Android Development] brownstyle:
i have new phone samsung galaxy j4 lte.can u help me how to root this pls....
[Galaxy S II Original Android Development] OllieW:
Will there be also a TWRP special build for the emulated-SD partition layout? I'm still using the latest rINanDO's TWRP EMU migration build from here ...
[Galaxy S II Original Android Development] ripee:
So that means mine doesn't work for you at all? I don't expect it to work the same way, but to bring up the EMU build, I'd have to know the exact differences in functionality.
[Galaxy S II Original Android Development] ale5000:
Hi,

I see here twrp-3.2.1-2 instead on the official TWRP site twrp-3.2.1-0.

Why isn't updated there?
[Galaxy S II Original Android Development] ripee:
My proposed changes are presented as increments above the official version. I have asked bigbiff to compile a new official build. When he does, I will update the OP to 3.2.1-1, which will be the next increment in the official sequence. My previous unofficial build from which I compiled the current 3.2.1-2 is what I merged into the official source. Because the current official build is 3.2.1-0, the next official one will be 3.2.1-1, but it will be identical to my unofficial 3.2.1-2, if that makes any sense lol.
[Galaxy S II Original Android Development] ale5000:
I'm a bit confused,

do you mean that there are other changes compared to the latest sources on https://github.com/TeamWin/android_device_samsung_i9100 or they already correspond to your unofficial 3.2.1-2?
[Galaxy S II Original Android Development] ripee:
I didn't see that bigbiff has already built 3.2.1-0 from my latest changes to that repo. I will update the OP later today.
[Galaxy S II Original Android Development] SaZoN:
hi! I flash twrp 3.2 over 3.1 (all from off twrp.me site) and rom 4.4 does not boot. is this build twrp compatible with 4.4.4?
[Galaxy S II Original Android Development] ripee:
Can you please be more specific as to what you did? Did you already have 4.4 installed at the time you flashed twrp 3.2, or did you try to flash a newer build of 4.4 in twrp 3.2, and only then did it not boot?

Flashing a twrp version that is incompatible with the rom you already have, after you flash the rom on an older twrp, has no effect on that rom's ability to boot. That said, each twrp version is intended to parallel the AOSP version released around the same time, especially major releases: twrp 3.2 is intended to work with 8.1.

Out of curiosity, may I ask why you are running android 4.4.4 rather than a newer version? You would get no benefit from twrp 3.2 with android 4.4.4.
[Galaxy S II Original Android Development] SaZoN:
hi! I love 4.4.4 Android and I use this rom

https://xdaforums.com/galaxy-s2/dev...om-lineageos-11-0-based-galaxy-s2-gt-t3637142

my steps:

0) before flash 3.2 I use this rom and 3.1 twrp = work fine

1) after flash 3.2 = this rom (and twrp too ) did not boot

2) when I flash twrp 3.1 again = rom and twrp boot fine
[Galaxy S II Original Android Development] ripee:
4.4 isn't booting on 3.2 because 4.4's kernel is incompatible. Sorry, but backwards compatibility only goes so far in light of the fact that android 8.1 requires twrp 3.2 to flash and boot properly.
[Galaxy S II Original Android Development] SaZoN:
thnkY! I think this information must be on the twrp.me site!
[Galaxy S II Original Android Development] ze7zez:
Recovery is stored in a disk partition separate from the main Android partitions (boot/kernel, root/system). It contains its own Linux kernel, separate from the kernel of the main Android system. Because of separate kernel+recovery_apps, the device is able to boot into the recovery mode even if the main system is broken, allowing the user a set of tools to fix the device. The recovery is completely independent of the Android system.

Ask to change the entry in XDA wiki Recovery. ;)
[Galaxy S II Original Android Development] ripee:
What XDA wiki Recovery are you referring to? Ah, the main one, nvm.
[Galaxy S II Original Android Development] arnab:
Nice....Keep up the good work Man.
[Galaxy S II Original Android Development] linusdan:
I tested the TWRP 3.2.2-0 build and it worked well with Lineage 14.1.

Nice job man!!! Don't stop!!!

Edit: I tried to install Lineage 15.1, but the digest file is requested (I uncheck the option in configurations). With the other builds this does not happen.
[Galaxy S II Original Android Development] arnab:
Deleted
[Galaxy S II Original Android Development] tiis:
How could you install LOS 14.1 with 3.2.2-0? It still fails for me, 3.1.0-0 works fine though.
[Galaxy S II Original Android Development] ripee:
It seems the jump in the code from 7.1.2 to 8.1.0 is significant enough that backwards compatibility can't be 100% reliable. So whatever works, you won't lose out on functionality in the twrp you use for the corresponding version of your rom.
[Galaxy S II Original Android Development] hteles:
Same experience.

Had to roll back to update to latest official 14.1.

Have a nice weekend.
[Galaxy S II Original Android Development] anirudhs2owner:
I can't believe the SII is still alive! That's amazing. :svetius::) I traded mine a few years back.
[Galaxy S II Original Android Development] linusdan:
Flash dirty with TWRP 3.1.0-0 first ;)
[Galaxy S II Original Android Development] PackElend:
I've got lost so I have to ask again will there be also a TWRP special build for the emulated-SD partition layout?
[Galaxy S II Original Android Development] ripee:
Have you tried this twrp on your phone with emulated storage?
[Galaxy S II Original Android Development] PackElend:
net yet, I would like to do it on the weekend if I can spare some time
[Galaxy S II Original Android Development] ripee:
Please try it, then let us know if it works for you.
[Galaxy S II Original Android Development] PackElend:
just for clarification I will do

lanchon-repit-XXXXXXXX-system=same-data=max-sdcard=min+wipe+f2fs-preload=min+wipe-i9100.zip

than flash

than I flash

LOS official

do you have the same understanding?
[Galaxy S II Original Android Development] ripee:
You don't need to flash the emulated twrp at all. Flast an isorec kernel, then twrp 3.1 (doesn't have to be emu), then reboot into twrp, flash 3.2.2-0, then repit.
[Galaxy S II Original Android Development] PackElend:
Why not TWRP Emu as I go for emulated storage

?

Is it supported now?
[Galaxy S II Original Android Development] ripee:
Have you tried 3.2.2-0 yet?
[Galaxy S II Original Android Development] PackElend:
Nope I would like to do so on the weekend as mentioned above.

Could you please answer my question too?
[Galaxy S II Original Android Development] ripee:
My TWRP 3.2.2-0 works on emulated storage as well. I re-PITed mine to a 1GB system and 12GB internal storage, and it sees both partitions properly.

My intention on asking you to try then comment was to give you a pleasant surprize, but now you know.
[Galaxy S II Original Android Development] PackElend:
anyone willing to give me a hand?

I desperately need it
[Galaxy S II Original Android Development] PackElend:
[MENTION=6005084]ripee[/MENTION] It seems I'm not the only one with problems, will be there a fix available soon?
[Galaxy S II Original Android Development] ripee:
Not from me, because I have reached the limit of my competence. Before you ask me why I released a build without knowing how to fix all its bugs, I am always open to suggestions from others about possible fixes. Perhaps [MENTION=2638973]bigbiff[/MENTION] could offer some insight.
[Galaxy S II Original Android Development] PackElend:
good to know where we stand :) let's hope for [MENTION=2638973]bigbiff[/MENTION]
[Galaxy S II Original Android Development] linusdan:
What news on the new version?
[Galaxy S II Original Android Development] PackElend:
at least the backup problem shall be fixed in 3.2.3, see bug report

May some other fix solves that problem as well. [MENTION=6005084]ripee[/MENTION] Can you port the 3.2.3 to i9100 ?
[Galaxy S II Original Android Development] ripee:
Seriously?
[Galaxy S II Original Android Development] PackElend:
why not, you never know. I donna what other fixes were merged into 3.2.3
[Galaxy S II Original Android Development] ripee:
I didn't know if it was a serious question. Please see the OP.
[Galaxy S II Original Android Development] guest4711:
Thanks. Could you please update post#2 too (changelog)?
[Galaxy S II Original Android Development] ATTIEQ:
Not Sure if posting in right thread BUT

My Current Spec:

Model:GT-I9100

Firmware version:4.1

Status:ROOTED

Android Version:4.1.2

Baseband version:I9100XXLS8

Kernel version:GT-I9100-user 4.1.2 JZO54K I9100XWLSD release-keys

Recovery:PHILZ

I want to test dotOS-O-v2.4-i9100-UNOFFICIAL-20180813

I tried to flash TWRP Recovery via ODIN about 12 Times with no luck.

Plz Guide me steps to install my desired custom Rom

Thanks
[Galaxy S II Original Android Development] guest4711:
As your screenshot shows you are trying to flash the md5-checksum only (...tar.gz.md5), not the recovery image (...tar.gz) which you should.
[Galaxy S II Original Android Development] ATTIEQ:
Plz Check This also
[Galaxy S II Original Android Development] linusdan:
1. Flash TWRP 2.7 with repit (use repit if you have not repartition the memory or want to use a larger space for the internal partition). Use Odin 3.11.1

2. After flash, make full wipe and flash TRIM + TWRP 3.1.0-0 by the.gangster. Reboot after finish

3. Full wipe again and flash dotOS :)

TWRP 2.7 + pit + TRIM anexed.
[Galaxy S II Original Android Development] ATTIEQ:
Everything got right!

Thanks for Help
[Galaxy S II Original Android Development] galaxys2ci:
Hello everyone

i installed LOS 14.1 on my galaxy s2 gti9100 and twrp 3.1.0 as well . I followed steps from xda forum and downloaded all necessary files to install and got everything done. Recently i have been trying to update twrp 3.1.0 to 3.2.3 which is latest version. I tried to do this via twrp app with flashing twrp img but when i reboot to recovery it does not update twrp and stock recovery shows up. One of the helpful members of xda contacted me and suggested some ways to do it but it still did not work. Is there anyone who updated twrp 3.1.0 to 3.2.3 on galaxy s2 gt i9100 . What i know is galaxy s2 does not support twrp . in order to do it i had to install kernel and pit file via odin first and then kernel lanchon and then 3.1.0 iso rec gangster recovery. These steps worked perfectly. But i just cannot update to 3.2.3. I would like to update it because in the near future 3.1.0 will not support installation of newer roms. Please if anyone shares with me how to upgrade twrp to latest version i will be appriciated.

thank you
[Galaxy S II Original Android Development] DevisG79:
If you are on LOS 14.1 then stay on TWRP 3.1.0.

If you will Update to LOS 15.1 (of course clean) then first Install latest TWRP 3.2.3. It works only for Oreo and above.
[Galaxy S II Original Android Development] galaxys2ci:
upgrade of TWRP 3.1 to 3.2

Hello DevisG79

Thank you very much for your reply . I appreciated that. Right now i'm on LOS 14.1 ( works fine for now ) but how can i install twrp 3.2.3 on my galaxy s2 if i need to upgrade to LOS 15.1 . The only latest twrp isorec is 3.1.0 for galaxy s2 . I could not find isorec 3.2.3 for s2. I can not just flash via twrp app . Galaxy S2 does not support twrp 3.2.3. Yesterday i tried but i did not work. There must be a way to upgrade twrp to latest version for S2. Do you know how to do it ? Please can you guide me if you know how to do it ?

Thank you

Have a great day
[Galaxy S II Original Android Development] ripee:
You don't need the older 3.1 IsoRec TWRP to flash 3.2.3-0. As long as you have a kernel flashed, you can flash 3.2.3-0 overtop of your older TWRP within that older TWRP. If for whatever reason your 14.1 kernel will not allow TWRP 3.2.3-0 to boot into recovery:

1) re-flash the IsoRec TWRP,

2) extract the boot.img file from the 15.1 rom zip you wish to flash,

3) flash it from within TWRP 3.1,

4) flash TWRP 3.2.3-0 from within TWRP 3.1,

5) reboot into TWRP 3.2.3-0 and try flashing your 15.1 rom then.
[Galaxy S II Original Android Development] the.gangster:
It's all in the opening post. Link, description, and even if you follow the link you get yet another description and the recovery itself.

How much more guidance do you need???

But again: if you stay on Los 14.1 you better stick at version 3.1.0-0.
[Galaxy S II Original Android Development] DevisG79:
Remember that LOS 15.1 is still in Beta, but seems stable.

ripee and the.gangster are right. I only want to say what worked for me:

Wipe data and system in TWRP 3.1.0, then flash LOS 15.1. From TWRP 3.1.0 flash TWRP 3.2.3 img, select Recovery. Reboot Recovery and again clean flash LOS 15.1. Reboot system
[Galaxy S II Original Android Development] galaxys2ci:
Hello ripee

Thank you for your recommendation and reply as well . LOS 14.1 works fine for me now but in the near future i will have to install newer roms as long as my s2 supports and i will do what you recommended . Thank you for taking your time to guiding me.

Have a great day

Thanks again

---------- Post added at 10:53 PM ---------- Previous post was at 10:48 PM ----------

Hello DevisG79

Thanks again for your reply. I will install 15.1 someday in the near future but 14.1 works fine right now . It will stick to 3.1.0 for now until 15.1 is completely stable . I would like to install it but just like you said it is beta version so i just do not want to install and uninstall roms and damage the phone. Thank you so much for your time.

Have a nice day.

---------- Post added at 10:58 PM ---------- Previous post was at 10:53 PM ----------

Hi Gangster

Thanks you and for all other member who replied my questions about twrp updating. Well i will stick to 14.1 and 3.1.0 for now. I think i got enough recommendations regarding twrp and i always follow this xda forum before i install any custom roms . Thank you for your guidance and if i need more i will contact you guys.

Thank you for all

You guys have a great day
[Galaxy S II Original Android Development] TacoLoco:
Flashed newest TWRP from 3.1.0.0 but now I only have Lineage Recovery (never seen this before..).. Do you know what I did wrong and what to do now?
[Galaxy S II Original Android Development] Lister Of Smeg:
Hi Guys,

I'm sure I read this somewhere further up. But is this build of TWRP, purely for Android 8 / 9 and upwards.

Or can it be used for older versions also, such as trips down memory lane... such as Android 4.4 roms onwards too...??? Or do you have to downgrade your TWRP, if you wish to run older roms...??

Thanks, Lister
[Galaxy S II Original Android Development] galaxys2ci:
Hello guys

I have a galaxy s2 i9100 and LOS 15.1 (oreo) running with latest twrp 3.2.3 but before that i installed LOS 14.1 with 3.1.0 . I tried to install 3.2.3 on LOS 14.1 but it did not work . Whenever i flashed recovery image a stock recovery showed up and then i tried the same thing with 3.2.1 ( i thought lower version would work ) and still did not work . My phone went crazy after all these flashing roms and recoveries . Lastly i installed LOS 15.1 after flashing rom and gaps right away flashed recovery image and rebooted to recovery before rebooting system and this time it worked . What i learned is latest twrp 3.2.3 is for oreo and above. This was my experience . If you need to install latest twrp you need to have oreo and above.
[Galaxy S II Original Android Development] monane12:
Hi,

I have the same problem.

I was on Lineageos 14.1 with TWRP 3.1.0.0 for months and everything worked fine. After I updated to TWRP 3.2.3.0 via TWRP 3.1.0.0 the whole TWRP Recovery was lost. :confused:

Is there any solution to go back to 3.1.0.0 without having to flash the whole system?

Best Regards

Oli
[Galaxy S II Original Android Development] guest4711:
Flashing TWRP.tar.gz via ODIN should do the job...
[Galaxy S II Original Android Development] monane12:
Hi guest49711,

I tried this several times, but it doesn't work.

Always got a fail. :confused:

Btw. only found a twrp-3.1.0-0-i9100.img.tar and no "tar.gz".

Best Regards

Oli