yashsingh1/xdaforums huggingface dataset:
[Galaxy S II Original Android Development] Jochen K.:
Hi,

is there some place I can still download the twrp-2.8.7.0.zip recovery?

If so, I'd be grateful for a link.

I do suppose that the recoveries are device specific?

I have a recovery with the same name on my S4 but dare not try to flash it on my S2.

(Searching the Forums brought up lots of links for other devices, but for this one only the "I can confirm that..." messages above.)

Regards,

Jochen
[Galaxy S II Original Android Development] Lanchon:
of course they are specific.

you can find it in the link in OP!! if you just read... :-p
[Galaxy S II Original Android Development] Mavrikmeercat:
Im a few days from having my desktop back. Lost two HDDs in a month.. Then I'll be able to start dev again. I'll unpack twrp and cwm and see if I can change the peripherals for the sd.

will do. I'll post back with results. I usually do md5 downloads. But maybe I didn't

Where is the text script located to identify the device? Is it in init.rc in the recovery kernel or some other directory? I'd like to try and fork to see if I can just patch a version for us. I know you just don't have time to mess with this but we could use twrp-3 over on our side so I'll give it a shot. I'm not real good with recovery but I'm sure I could figure it out. Maybe with a little advice.
[Galaxy S II Original Android Development] Lanchon:
well if you need twrp i'll handle it. just give me some time.
[Galaxy S II Original Android Development] kvevand63:
I am sorry that you are having these issues. Yes, flashing the 2.8.7.0 i9100 zip was easy, same manner that you had used. The 3.0.2-0 img was even simpler, just flashing the img from 2.8.70. I am not sure why you had the revert to CWM. Are you running the latest 0410 cm11 with its kernel? Zips will flash unless they are device specific such as a ROM. In that case, use same method as the 2.8.7.0 zip, change one of the device id in updater script to GT-I9100. I did so last night to clean flash cm11 ROM, worked flawlessly. Regarding nandroid backups and restores, works like it should as I have done three to test. As for mounting ext sd, did not test as I never had the need to as I never flash from there. I am no expert, the mount issue I will leave to them. The i9100 repit worked great, now device showing 1.05 gigs in system, 7.9 mb in preload, 2.0 gigs in data. At least for my intents and usage I have not encountered any problems of significance.
[Galaxy S II Original Android Development] Lanchon:
better go for 6GB or 4GB /data.
[Galaxy S II Original Android Development] Mavrikmeercat:
Just tried to flash twrp-3.img again with same results. I redownloaded and md5 checked out on both downloads. The image just won't boot for me. Just goes back to boot/recovery.

Yes I'm on the latest cm11 nightly.

I've been repartitioned for a long time now(like 6 months) I went with 1G system- 8G-data 6G-sdcard. Works great for me
[Galaxy S II Original Android Development] the.gangster:
[MENTION=4543505]Mavrikmeercat[/MENTION]

you could give the zip-version a try.

At least arnab suggested using it for first install.

Although also your dd copying should have worked already. But you are sure, that the kernel of your "latest CM11 nightly" has an IsoRec-supporting kernel? The latest official CM11 for i9100 did not have it. There a modified kernel is needed.
[Galaxy S II Original Android Development] Lanchon:
well that just doesn't make sense. boot to kernel's recovery means that the data in the partition is corrupted, it rules out a problem with TWRP 3 (eg, kernel incompatibility).

could you please flash twrp3, check that it doesn't work, then pull your partition and post it here?

while in android:

adb root

adb pull /dev/block/mmcblk0p6 recovery.img

you might need to zip it.

thanks!
[Galaxy S II Original Android Development] Jochen K.:
Thanks!

I did READ, just not THINK: in the OP all that's mentioned is TWRP 3 - then there's that link for Recoveries (PLURAL) which i ignored.
[Galaxy S II Original Android Development] Mavrikmeercat:
Yes. Certain I'm using isorec kernel. I'm fully aware of the development. We are working on getting it working on the epic 4g touch d710

I am able to flash 2.8.7.0 to mmcblk0p6 and boot it.

Just twrp3 won't boot.

I will recreate the instance and pull the partition and post it this evening when I get off work. Thanks for the help guys.
[Galaxy S II Original Android Development] Jochen K.:
bungled update from 4.1.2 to 5.1.1 - help needed

Hi,

another Noob problem, I'm afraid.

Hopefully someone can and will help.

My gt-i9100 was on Android 4.1.2 (Alliance ROM, Siyah kernel, cwm), and I wanted to bring into modern times.

So I...

-flashed the kernel ..... .. kernel-Lanchon-TRIM-IsoRec-20160206-cm-12.1-i9100.zip

-flashed the recovery ....... recovery-Lanchon-IsoRec-TWRP-2.8.7.0-20160113-i9100-(by-arnab).zip

-rebooted recovery (everything appeared to work, TWRP instead of cwm)

-wiped

-flashed the ROM ....... AOSP-5.1.1-20151026-i9100-aniket.zip

-forgot to flash the Opengapps micro

-rebooted system

-reached the login screen, where (why?) I was asked for the eight digit PUK instead of the PIN

-reached the home screen,

-noticed that the Gapps were missing,

-rebooted into recovery,...

-and was presented with a "dead" (or just fainted because of my noobishness?) Android - turquoise, lying on its back, with a blue warning triangle above its open belly (showing a keyboard).

Where did I go wrong, and how can I correct my error?

Regards,

Jochen
[Galaxy S II Original Android Development] Lanchon:
you flashed an old rom that includes a kernel that is not isorec compatible. only isorec compatible kernels can boot isorec recoveries. the recovery you see is the one bundled with the rom.

i suggest you use CM12.1 with my kernel or CM13, and use lanchon repit to repartition.

regarding the PUK etc, ask questions in the right thread.

BUT OBTAIN AN EFS BACKUP IF YOU DONT HAVE IT ASAP!!!
[Galaxy S II Original Android Development] Jochen K.:
Thanks again!

Is repartitioning a necessity or "only" for performance enhancement?

And Re EFS: I made a backup in late 2013 - when I first rooted the S2.

Am I right in supposing that this is an unchangeable "fingerprint" for a phone, or would upgrading from 4.1.2 to 5.1.1 make a new backup necessary?

Regards,

Jochen
[Galaxy S II Original Android Development] fireburner-de:
[MENTION=4964444]Jochen K.[/MENTION] One /efs backup is sufficient. No need for doing it again, unless you deleted that Backup.

Repartitioning: 5.1.1 can still be used without repitting, but then one has to use pico GApps in order to get it working.

Larger GApps and/or CM13 do need an increased /system partition -> repitting

Another point is ART runtine, which got introduced with 5.0 and which replaced DALVIK.

Apps do need more space with ART, than they did with DALVIK, which means your 2GB /data might not be enough anymore.

Nevertheless, with [MENTION=4141005]Lanchon[/MENTION]s REPIT script, you can do this without data loss. I would recommend doing it and use 1GB for /system and 4-6 GB for /data.
[Galaxy S II Original Android Development] Jochen K.:
[MENTION=7183558]fireburner-de[/MENTION]

Thanks; this makes everything much clearer for me.

I'll look into things during the weekend and hopefully get my old S2 back into working condition (as I use my S4 a LOT and almost constantly, I really need a backup in case something nasty were to happen to the S4).

Regards,

Jochen
[Galaxy S II Original Android Development] Mavrikmeercat:
[MENTION=4141005]Lanchon[/MENTION] here is the file you requested.

Flashed isorec-disabler-d710.zip from cwm

Flashed twrp-2.8.7.0-i9100.zip (with my updater-script so it will flash to d710) only changed get.prop values not anything else..

Rebooted recovery into 2.8.7.0

Flashed twrp-3.0.2-0-i9100.img

Rebooted recovery and it went back to cm kernel/recovery

Booted back to Android

Opened terminal and executed:

dd if=/dev/block/mmcblk0p6 of=/sdcard/corrupt-0p6-partition.img
[Galaxy S II Original Android Development] Lanchon:
btw, your file is 5K, recoveries are more like 5M lol, cant believe you saved the page instead of downloading the file!!!

liar, liar, you said you had checked md5 :)
[Galaxy S II Original Android Development] Mavrikmeercat:
I did check the md5. The problem was two things.

I used an md5 check app rather than using the terminal md5sum command. Apparently the app I used was crap. (Uninstall) Honestly not my fault. It checked out. The other I found after I downloaded it three more times tonight. I can't seem to get a proper download from the twrp site linked in arnab's thread. It just won't download for me. I guess it won't work from a mobile browser. I did not save the page.
[Galaxy S II Original Android Development] chhapil:
init binary to script

I was having a look at the ramdisk for Apolo JB kernel in order to add IsoRec.

But it has init biniary instead of init script like other kernels. (dorimanx, cm..)

Does anybody has any experience around converting init binary to script?
[Galaxy S II Original Android Development] Lanchon:
hi, there are several kernels in that predicament. i'll publish a solution when i have some time.
[Galaxy S II Original Android Development] Lanchon:
lol ok :) i can't investigate that but i can send you a link to official file:

https://dl.twrp.me/i9100/twrp-3.0.2-0-i9100.img
[Galaxy S II Original Android Development] Naudiz:
How did you try to flash TWRP? Through ADB or through CyanogenRecovery? I don't think that CyanogenRecovery can flash IMG files like the one for TWRP 3.0.2.

Personally I found this way to be easy, safe and reliable (plus no USB-connection to Computer is needed):

Flash TWRP 2.7.8.0 Zip file in CyanogenRecovery, then reboot to recovery.

In TWRP 2.7.8.0 simply flash the IMG for 3.0.2.0. For this, you will have to press the little IMG-button on the lower right side of the file selection screen.
[Galaxy S II Original Android Development] Jochen K.:
Hi,

with the info from [MENTION=4141005]Lanchon[/MENTION] and [MENTION=7183558]fireburner-de[/MENTION] I reflashed the IsoRec kernel and TWRP 2.7.8.0.

RePit ended with "copying to tmp...", and when I ran it from there, it ended with an Unexpected Error about orphans, and recommended using e2fsck.

Questions:

1. I could not do this from "Terminal Command" inside TWRP 2.7.8 - "you need a terminal" - but after flashing the 3.0.2.0.....img, it worked perfectly.

Is this an added feature of TWRP3, or did something go wrong in my installation of TWRP2?

2. e2fsck found a LOT of errors - tapping Enter as fast as I could to acknowledge each "....Fix?" and so on took me nearly 90 minutes - from the speed of my tapping I'd guess at something like 6000 errors.

Is this usual, or was my system seriously screwed up (maybe from flashing dozens of ROMs, ICS, JB, and I think KK before I stuck to the 4.1.2 Alliance ROM)?

Regards,

Jochen
[Galaxy S II Original Android Development] Mavrikmeercat:
Yep that's the same link I've been downloading from bro. Just downloads a 5.10k file
[Galaxy S II Original Android Development] Lanchon:
ok i see what you mean.

the exact same URL either produces the HTML we all see *AND* the file once you click on the link, which is a really strange choice of website building.

i guess server-side, what defines which file to send is the 'referer' [sic] header. your browser and/or proxy must be altering that field for privacy reasons. i consider this to be a twrp.me bug. please use a different browser or disable your proxy.
[Galaxy S II Original Android Development] Lanchon:
i entered an issue in TWRP regarding this...

https://github.com/TeamWin/Team-Win-Recovery-Project/issues/656
[Galaxy S II Original Android Development] Lanchon:
repit did not proceed because there were errors in some undisclosed partition of your device. no one can help you because you didn't post the log. e2fsck has options to fix without prompting, next time 'e2fsck --help'. your issue is not at all common and certainly cause for concern. but again, we can't help you.

btw, you are off-topic here.
[Galaxy S II Original Android Development] Mavrikmeercat:
Thanks man. Not using a proxy, stock cm11 browser. No desktop yet. ssds haven't come in yet. Only phone and tablet right now
[Galaxy S II Original Android Development] Lanchon:
ok get this file:

http://xdaforums.com/devdb/project/?id=14252#downloads

inside it you will find the .img file. it might be called 'whateva.cpio.lzo'.
[Galaxy S II Original Android Development] Mavrikmeercat:
Thanks again lanchon. It was actually recovery.img but I got it. Booted up and running.

D710 Report:

1.) will not mount /external_sd.

2.) after its installed, it will only then flash zips made for the i9100 (but they seem to work fine due to both devices having the same emmc and partition layout)

All Other Features Work! [emoji2]

This does not mean you can flash cm12+ for the i9100 on your d710. It won't boot. It's just a test recovery.

I made a flashable.zip for other d710 users who might want to test it out and report back.

You don't need TWRP 2.8.7.0. Just flash it right from CWM 6.0.5.1.

recovery-Lanchon-isorec-TWRP-3.0.2.0-D710.zip
[Galaxy S II Original Android Development] Lanchon:
thanks!

i made flashable TWRP patchers:

https://www.androidfilehost.com/?w=files&flid=54334

-flash i9100 TWRP 3 on your different exynos 4 device by whatever means you like.

-flash the patcher from recovery.

-reboot recovery.

it will unpack, patch, repack and flash TWRP. this allows using TWRP to flash correct device files (eg, your d710).

the crossflash versions will *in addition* let you flash i9100 files too, at your own risk.

the d710 does a very bad job of trying to make the external sdcard work. could you test it?

assuming the external sd doesnt work, could you please flash the repit dump tool and post the generated logfile?

https://github.com/Lanchon/REPIT/blob/master/device-dump/README.md

thanks!
[Galaxy S II Original Android Development] Mavrikmeercat:
[MENTION=4141005]Lanchon[/MENTION]

Flashed and tested.

It will now flash d710.zips as well as i9100 zips.

Still doesn't mount /external_sd

I made some test.zips with temp files inside with d710 updater-scripts & i9100 updater-scripts so I can confirm testing fairly quickly. So I will test whatever you have.

repit-dump.log

Did you mean to post a port request in git? Or just post here?
[Galaxy S II Original Android Development] Lanchon:
thanks for the log! only the crossflash version flashes i9100 files too.

this update should fix access to external SD

YOU MUST FLASH CLEAN TWRP AGAIN BEFORE PATCHING!!

i still dont like the extern sd fix, it might depend on the kernel you are using.

btw, which kernel are you using?

(files in the same link, same name but updated)
[Galaxy S II Original Android Development] Mavrikmeercat:
Stock cm11 kernel (latest nightly)
[Galaxy S II Original Android Development] tommasocavazza:
when I try to enter the code there is an error:

failed to copy 'twrp-3.0.2-0-i9100.img' to '/dev/block/mmcblk0p6': Permission denied

what i can do?

edit: solved
[Galaxy S II Original Android Development] Mavrikmeercat:
Update

D710 Report:

/external_sd test;

external_sd did mount and unmount in "mount" option

did successfully switch storage option to /external_sd

did successfully flash test.zip from /external_sd

File manager did move, copy, & delete files to and from /external_sd

was able to ~# cd /sdcard and execute basic commands to and from that directory from the terminal.

D710 users please note that "internal sdcard" is located at:

/emmc

And "external_sd" is located at:

/sdcard

AOSP mount points are different..

Flash test:

I was able to successfully mount/unmount and flash a temp file to;

/system, /data, /cache, /boot, internal sd, & external sd via a test.zip

Format test:

I was able to format/ wipe;

/system, /data, /cache, /emmc, /sdcard, and "factory reset"

I did try a few more of the TWRP options and all seemed to work just fine for me.

IMO, this is ready for daily use but I'm sure a few more test reports would help.

Huge thanks [MENTION=4399645]Lachon[/MENTION] for your time and effort! and arnab for making it!
[Galaxy S II Original Android Development] Lanchon:
cool, thanks for testing!

i'm too lazy to document anything... i guess i should now huh :(
[Galaxy S II Original Android Development] Lanchon:
you are not running adb in root mode as required. 'adb root' did not succeed so why keep on going with the next step? google to solve, this is not an adb thread. thanks!
[Galaxy S II Original Android Development] Mavrikmeercat:
Haha. I usually am too. My motivation is that I really hate cwm. Not to bash on koush, it's just so limited. And I'm too cheap to upgrade when my d710 is still in near perfect shape and I'm not forced to use Touchwiz..
[Galaxy S II Original Android Development] kvevand63:
Thank you for testing. I also tested both patches on clean flashed 3.0.2.0-0 also. Found that crossflash patched recovery will not mount ext sd, however the non-crossflash patched recovery will mount ext sd. I was also able to flash a test zip from ext sd (repit-dump log.zip) and it worked great. Mavrik are you encountering this also; when booting into the patched recovery, TWRP will not transition into its main menu, resulting in having to hold the power and volume up keys together to get to the main TWRP menu? Not a big issue but just an observation. Thank you again Lanchon, you are the best. D710/041016 CM11/stock cm kernel.
[Galaxy S II Original Android Development] Lanchon:
you may have downloaded an older version of the file, i didn't change the names, because this was not released! so dont bash me!

i'll change the names from now on if needed
[Galaxy S II Original Android Development] Mavrikmeercat:
No problem like that.. I think you may have to wipe your mmcblk0p6 (recovery partition) and start fresh with the latest file.

Use the crossflash-d710.zip version
[Galaxy S II Original Android Development] Lanchon:
documented, done!

thanks your your help!!!
[Galaxy S II Original Android Development] sewalk927@gmail.com:
I found Flashfire to be by far the easiest way. Just select the raw image file (extracted from a TAR or ZIP) you want to flash and tell Flashfire to do it. No muss, no fuss, no PC connection, no long shell commands. The only downside is that you have to give Chainfire a few dollars.
[Galaxy S II Original Android Development] Lanchon:
lol! i dont take non-free software into account :)

but there's flashify! ive emailed flashify as soon as official twrp was out... but they didn't really read i think lol, soooooooo sad :)
[Galaxy S II Original Android Development] press88:
adb push twrp-X.X.X-X-i9100.img /dev/block/mmcblk0p6

not work for me :(

why?
[Galaxy S II Original Android Development] the.gangster:
Did you "adb root" first?
[Galaxy S II Original Android Development] Jochen K.:
I know [MENTION=4141005]Lanchon[/MENTION] calls this the easy way; however, have you considered flashing TWRP 2.8.7.0....zip (from a link in the OP) from your current recovery the usual way, and then flashing the image file from there?

IIRC, all you have to do is tap "Install", then navigate to wherever on your device the file resides and then tap "Image" in the lower right hand corner of TWRP's main screen to make the file selectable.
[Galaxy S II Original Android Development] press88:
I resolve flashing kernel with TWRP 2.8.7.0 and later update 3.0.2.0
[Galaxy S II Original Android Development] Lanchon:
of course if you already have twrp upgrading is easier! anyway, some devices don't have a twrp zip (see the section on twrp patcher in the OP). also the zips are non-official stuff, so they are not allowed in 'official' setup instructions, which is what i wanted to sort of extend.
[Galaxy S II Original Android Development] Jochen K.:
Thanks - I didn't know that; well - still a Noob, I fear.[emoji15]
[Galaxy S II Original Android Development] Mavrikmeercat:
Update on crossflash d710 version.

10 days of use and I believe I've used all options in 3.0.2.0 and all work.

This is definitely ready for daily use on the d710.

Thanks again [MENTION=4141005]Lanchon[/MENTION]!

Should we make a thread in the d710 dev section and maybe just point it here so other users know how to get it?
[Galaxy S II Original Android Development] Lanchon:
by all means, if you want please do so! and thank you!
[Galaxy S II Original Android Development] yosmokinman:
^Works on the i777. Not that there are any new i777 zips (aside from yours allowing flashing from i9100 twrp 3 recovery) but I flashed a couple older i777 ones just to check.

So that would help us i777 users but it seems we won't get that [MENTION=6159291]Lysergic Acid[/MENTION] Callbug isn't that bad and it's in official 12.1. I think we can bump up.

Thanks Lanchon you the man!
[Galaxy S II Original Android Development] Lysergic Acid:
It's in the official cm-12.1 because I don't want to stop the builds for the i777, but that bug is pretty bad.
[Galaxy S II Original Android Development] isaak:
[MENTION=4141005]Lanchon[/MENTION]

Could this mod be adapted for Janice (NovaThor U8500 SoC)?

Mainly because I'd like to have official TWRP for my device.
[Galaxy S II Original Android Development] Lanchon:
janice has a Kernel2 partition. i don't know what it is but it might be unused and could be used for recovery. even if it doesn't, the recovery could be stored somewhere else anyway.

so in principle something like this could be done for any device with monolithic recovery.

but that won't get you official TWRP!! a developer taking care of TWRP for the device is needed.
[Galaxy S II Original Android Development] yosmokinman:
Yeah I know it's a showstopper and rightfully should be. But people with 12.1 are used to it and do you think it could be fixed with no i777 devs?

If not it's either move to 13 or the i777 dies once 12 builds stop unless Lanchon continues to release crossflash kernels, which would be asking a lot.

I'd happily build them myself but I lack the knowledge. I've compiled successfuly cm11 roms for i777 but don't know how to work with just the kernel to make the crossflash.

Thanks once again to you guys LSD, Lanchon, Arnab and the previous devs. You guys are great :good: [MENTION=6159291]Lysergic Acid[/MENTION] : At least consider it.

Edit: Sorry if I'm getting OT.
[Galaxy S II Original Android Development] Droidriven:
@Lanchon

@arnab

I'm just now noticing that you've adapted this to the D710, thank you sir.:good: Now the ones that were testing CM12 on D710 can flash new TWRP versions and may be a little more successful with CM12 if they decide to pick it back up.

I'll be using this on my D710 to but I'm not quite understanding how this is used. What do I need to edit in the I9100 ROMs to port it to D710, considering the hardware differences we've previously discussed? I've never ported so I'd like to get as right as possible if I try it.
[Galaxy S II Original Android Development] Lanchon:
hi,

i need u guys to tell me when i need to rebuild the i777 crossflash kernel, i cant be checking the main threads, dont have the time. if i am home and not roaming i will do it asap.
[Galaxy S II Original Android Development] Lanchon:
what do you mean by "this" when you say ive adapted this? isorec is now included in some kernels for d710, such as cm11 official. also, you can get twrp 3 via my twrp patcher. but that's it, no cm12. i dont know what u r talking about.
[Galaxy S II Original Android Development] Droidriven:
What I meant by "this" is I hadn't seen isorec or newer TWRP available for D710 the last time I looked months ago, hence the "I'm just now seeing this", I rarely search for new development on that device but I still tinker with it from time to time.

As for the CM12 I mentioned, some members were at one time trying to get CM12 on D710 but wouldn't boot. As for porting I9100 to D710, I do believe there was a CM12/12.1 ROM for I9100 available.