yashsingh1/xdaforums huggingface dataset:
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] sk8erwitskil:
is anyone else having this issue? or is it just me? i even tried flashing back to the original recovery and re-downloading the touch recovery through rom manager again and it still has the same problem.
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] tjsooley:
what rom are you on att or rogers based?
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] badpanda:
Weird they work perfect for me, just slide up and down gently like scrolling... you'll see. ;)
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] sk8erwitskil:
in on att based rom. nexusmod. i guess it works if i just press on an option instead of scrolling. i was under the impression that it was gona be like the previous touch recoveries where you move your finger up/down to scroll but i actually like this better. now i can just press on the option i want instead of having to slide my finger.
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] tjsooley:
WOW I am on the same rom. thats strange it works fine for me. I would say you should try flashing to stock 2.3.5 then back to nexusmod and touch recovery
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] sk8erwitskil:
i think i actually prefer this way. its more like each option is its own button instead of having to slide all over the screen.
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] cdshepherd:
Just flashed T-Mobile new CWM touch. Looks pretty sweet guys. Running sky ICS
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] Gr8Danes:
Flashed it on mine now too. Anyone test if its doing a better job of clearing cache?
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] kornklown69:
i dont think it is.... and its not fixing permissions still says done way to fast
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] Gr8Danes:
That sucks. I was really hoping for that to be fixed.
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] jaquez4:
Ok so I need to download rom manager and install the tmobile version to get it to work (all can be done from phone...correct)? The cwm recovery I have now was flashed through odin.
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] badpanda:
Well yeah... get the T-Mobile version from from manager it doesn't matter if you have from manager installed flash it again then flash the touch recovery from the option all the way down if you scroll you'll see it and that's all, if it ask you to purchase it do it! Is worth it, everything works.
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] sk8erwitskil:
so i just found out that this version of clockworkmod is NOT going to be open-sourced. I will still be working on getting the open-sourced version of CWM to a stable state, that way changes can be made to it depending on what everyone wants
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] cdshepherd:
Excellent idea. The first T-Mobile CWM wasn't perfect for us so there is no reason why this new one would be either.
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] sk8erwitskil:
so adb doesnt work for me in recovery anymore. anyone else have this problem?
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] sk8erwitskil:
i have updated the OP with a new link to a button_edit version that has the capacitive buttons mapped to match the corresponding soft keys above them. also the font is larger and the options are more spread apart.
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] cdshepherd:
Color changed any?
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] ducksauce88:
awesome, cant wait to test when i get home!
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] sk8erwitskil:
No the color isn't fixed yet. Still working on that. But I enlarged the font and added more space between the options so it's much easier to read now. I'm going to try to compile the recovery using the t989 device tree when I get to work and see if that fixes color
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] cdshepherd:
hows it going
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] sk8erwitskil:
i havent even had a chance to look again yet. been busy with work :-/ but ive sent some info to utkanos and he is looking into solving the color and boot loop issue as well. so hopefully will have a solution by end of the week
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] cdshepherd:
sweet. I didn't know we had a boot loop issue...:)

EDIT: oh ya. The Odin tar issue?
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] sk8erwitskil:
yah once i flash the tar it only boots into recovery and wont let me boot into the OS
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] sk8erwitskil:
the color issue is fixed! finally! the link in the OP has the updated zip file
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] bori1030:
so this link is the updated color FIXED version http://www.box.com/s/knjymzz75t4r6sy7o82t

just want to make sure ..thanks

also how do you revert back to regular non touch recovery?
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] abteer:
Wow that's pretty cool. So much better than using the volume rocker. Only thing I can see so far that could be better is when flashing a zip the file names are in the soft keys. But it's still a great recovery improvement.
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] shaggyskunk:
I got Koushik's Touch today... maybe it's just me, but it doesn't seem to give you quite the same control?? Like I said, maybe just me.
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] sk8erwitskil:
yes the link has the most updated version with fixed color and bigger font. and all you gotta do is reboot to get back to regular non-touch recovery as this is just a fakeflash. it doesnt install anything. im going to upload all the source to a github and post a link to see if maybe someone can help me fix the issues that are still there.
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] sk8erwitskil:
Koush's doesnt give as much control or this one?

and also updated the file again with some more improvements
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] sk8erwitskil:
created a github repo with the device tree im using and the bootable_recovery files im using if anyone wants to take a look.

https://github.com/sk8erwitskil
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] romracer:
Thanks for all the work you've put into this. I've had quite a bit of experience with CWM (check my Atrix/Photon recoveries), so I took a crack at this. I figured it was a good base to start a device tree as well (see my github for my sources) that I could use for CM7/9.

Anyway, I didn't get a chance to build your touch CWM yet because I wanted to make sure my build environment worked properly for the SGS2SR. But I did build the ICS recovery from CM (5.5.0.4 no touch) successfully.

It can be grabbed here and flashed with Odin.

Inexperienced users, please do not trust your life to this or complain to me if it kills your dog. This is intended as a proof of concept for building a bootable recovery image (instead of fakeflash) that can be used going forward.

My next trick will be to determine the changes in your code over the base CWM 5.5.0.4 and cherry-pick those into my recovery sources. If you have any of this already done, it'd save me that extra work :)

Edit: I do intend to provide instructions on how I did this, but I want to get back on track first (building a touch recovery which this thread is for).
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] kornklown69:
all this development going on is awesome
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] sk8erwitskil:
so i flashed that recovery.tar.md5 and it flashed fine but the buttons do not work for me. only the scroll works. i cant select any options. i had to battery pull to reboot. and as far as the code goes i started with gweedo767's base touch recovery. so im not sure exactly what the diff's are between the stock base recovery and my touch recovery. i could tell you the diff between my source and gweedo767's source though.
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] yahooserious:
Kudos to you guys for working up code and making my skyrocket experience absolutely amazing!

Romracer I am stoked that you are bringing your finesse and experience into all the bits of SGS2SR projects all over our forum!

Great work everyone I salute you!

(fire!!...BOOM!)
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] romracer:
Weird, I'm not sure what you mean by the buttons not working. The capacitive buttons on my phone work fine with that image flashed. The volume rockers do too and power acts as select. It doesn't have touch if you're trying to touch the screen maybe? In any case, its likely not perfect. I just built that from stock sources with my device tree to make sure the process itself worked.
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] sk8erwitskil:
hmmm maybe bad flash. if you reboot recovery and let it sit for like 20 seconds does a line come up on the bottom saying "back button disabled"?
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] romracer:
No. Are you touching the screen and/or a rocker? That message appears when you scroll past the bottom a few times in succession (like scroll down passed "advanced", then scroll up passed "reboot" and repeat a few times - same process to revert it).
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] sk8erwitskil:
hmmm... im getting the same boot-loop problem. i cannot boot into android from the recovery. are you able to reboot into android from this CWM? i have to reflash the original CWM 5.0.2.6 i was using before to get back into android.
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] romracer:
How are you entering recovery? I noticed if I power off the phone, unplug from USB and then enter recovery by holding vol up/down and hitting power, that I can then exit recovery and boot to android. If I choose "Reboot Recovery" from my power menu in Alien, then I can't exit it.

I think I know why though.
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] sk8erwitskil:
yupp i was rebooting to recovery from the power menu. powering off and manually entering recovery lets me reboot into android. thats interesting. if you know why it does that and have a solution that would be awesome. thats pretty much the only thing wrong with my touch recovery.
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] sk8erwitskil:
i made a Odin flashable file here for the touch recovery. you still have to power off and boot to recovery manually.
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] sk8erwitskil:
does anyone know how to determine what the /misc partition is on a samsung device?
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] shaggyskunk:
I don't know if this will help you....

/miscThis partition contains miscellaneous system settings in form of on/off switches. These settings may include CID (Carrier or Region ID),*USBconfiguration and certain hardware settings etc. This is an important partition and if it is corrupt or missing, several of the device’s features will will not function normally.
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] sk8erwitskil:
ok cool. so the reason i ask is that i believe the reason i get a boot loop is that the /misc partition isnt defined in recovery.fstab. by looking in bootloader.c it looks like CWM has to have access to /misc. finish_recovery is never being called which in turn doesnt let CWM exit

Do you know how to figure out which block is the /misc partition?
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] romracer:
I saw your PM. After futzing around with it off and on throughout the day, I think the real problem is the kernel headers or Bionic/libc. I assume you checked out AOSP or CM to get some of the externals, etc that are required to build? What branch? I used ics, but I have no idea what the 5.0.2.7 recovery used.

I don't think there is a /misc partition for this phone. My Atrix for example doesn't have one and it doesn't have this problem. But if you dig in the SGS2SR kernel released by Samsung, you can find reference to RESTART_REASON_ADDR (look in arch/arm/mach-msm/restart.c to start). It appears this is used to set the state for the bootloader to read on the next reboot.

If I had to guess, something isn't getting called properly in machine_restart (arch/arm/kernel/process.c) or somewhere along that whole chain, that would reset the RESTART_REASON_ADDR to 0x77665501 (which I think is the correct value to initial a normal boot). I'll have some more time at work tomorrow to mess with it, then I go on a road trip for the 3 day weekend. Hopefully we can figure out something before then :)

Edit: Oh, I also found this thread which talks about a similar issue on a different phone.

http://xdaforums.com/showthread.php?t=1331164&page=77

I'm not sure they have the same CPU, but there is some good dialog in there about how they tracked the issue down (it covers several pages of the thread).
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] sk8erwitskil:
awesome information. im going to take a look into those and see what i can dig up as well. thanks alot!

and yes i did check out the cyanogenmod ICS source for building this. im pretty sure the 5.0.2.6 was built using cm7. ive tried compiling this in the cm7 tree but it failed all over the place and i didnt really take the time to look into it as it was building fine in ICS.
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] bacheezy:
Any word on how this is working out; anyone using it?
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] sk8erwitskil:
So the touch recovery can be installed and work perfectly fine as long as you don't reboot into recovery from android (don't do 'adb reboot recovery' or reboot to recovery from the power menu) you have to power off and manually boot into recovery by holding volume up + volume down & power. There is a bug that doesn't set the right reboot code if you reboot into recovery from android. If you do reboot recovery from android all you gotta do is flash the recovery again and it'll boot you back into android.
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] bacheezy:
Cool, I'll give it a go when charged.
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] kornklown69:
so is everything clearing alot better than the tmobile
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] sk8erwitskil:
I'm pretty sure. It is for me at least. I need feedback from people that have tested to know for sure
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] cdshepherd:
When I get home ill flash it and take her for a spin buddy. Thanks and good work.
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] kornklown69:
so hows she working for everyone
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] sk8erwitskil:
so all the functions of CWM work great. the only issue still is the boot loop that happens if you reboot into recovery from android. im stuck at trying to figure it out since im not an expert in C programming. Thanks to romracer im pretty sure he has narrowed it down to what the problem is im just not too sure on how to implement a fix. romracer and utkanos are both looking into this to see how it can be fixed. if anyone else wants to take a look please feel free. the source is located in the OP :-)
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] sk8erwitskil:
hey romracer....did you get anywhere with this?
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] romracer:
Sorry, was out of town on Friday through Monday. But yes, I did :) Figured out the reboot issue. It was right under our noses.

I'm trying to clean up a few outstanding issues (touch key overlays, etc) before I cherry pick some of the improvements from my Atrix/Photon recovery. My post a few pages back with the link to my first build now links to my most recent build (with working reboot).

I close on my new house on Friday and move on Saturday so I'm trying to squeeze in what I can before then. My U-verse gets hooked up on Friday but it'll take me a day or two to get my network set back up again.
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] sk8erwitskil:
thats awesome!! thanks! was it the machine_restart issue you thought it was? once you are done with those last few edits let me know and ill update the link in the OP. and also once your done if you could send me the source so i can update my github that would be awesome :D

good luck with the move. i know how frustrating those can be. i just moved into a new apartment on january 7th. still not unpacked yet lol
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] sk8erwitskil:
oooo i also like how you changed the soft keys to match with the capacitive buttons. nice :-)
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] kornklown69:
i cant waaaait to get to a com lol

someone gef this stickied
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] onearmedscissor:
Wait so if I accidentally boot to recovery from Android can I just power off again and hold volume buttons to fix it? Or I have to reflash through Odin?

Edit: nevermind thanks!
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] sk8erwitskil:
lol everything works like a normal recovery now :D
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] sk8erwitskil:
can someone with a t989 please try this just to make sure it works? it should work since our recoveries are interchangeable. thanks.
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] sk8erwitskil:
once we get this into a 100% final build im going to see if we can get it mainlined into the CWMR touch installer app: https://market.android.com/details?id=com.unstableapps.cwmrtouchinstaller since there is obviously no chance of koush putting it into ROM Manager
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] onearmedscissor:
Works great thanks!
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] wasimahmad:
Works great thanks. nice job i did try install roms work fine even backup and restore every things is fine.
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] sk8erwitskil:
fixed adb and usb mounting in the fakeflash .zip. it doesnt work in the tar.md5 yet....soon though
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] sk8erwitskil:
how do i make this into a installable zip file? i put the recovery.img with the META-INF/com/google/android/updater-script and put this in the updater script:

assert(package_extract_file("recovery.img", "/tmp/recovery.img"), write_raw_image("/tmp/recovery.img", "/dev/block/mmcblk0p22"), delete("/tmp/recovery.img"));

it wouldnt work though. anyone know how to do this?
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] onearmedscissor:
just tried doing a backup on both external and internal sd cards, and both times i got an error saying unable to backup /data. system and recovery seemed to work fine though.
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] sk8erwitskil:
weird. i just tried it now and it worked great for me. can you try it again and after it errors go to advanced>>report error and send me the log it creates? also the recovery.img and the recovery.tar.md5 dont have the correct init.rc so they probably wont work as well as the CWMRT5504.zip. try it through the fakeflash. im going to fix the .img and .tar.md5 files once romracer gets back to me with his changes.
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] romracer:
My link is updated to include the adb and USB changes. It also cleans up the log so it doesn't write over (or under) the buttons.

That seems right. Google for my Atrix recovery (or check the Atrix forums on XDA) and look at my CWM flashable zip. I'm pretty sure its similar though.
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] :
I can't get the terminal emulator method to work I noticed the path is different /dev/block/platform/msm_sdcc.1 on the new update I tried that and still nothing is it just me
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] m4570d0n:
Question: Would it not be possible/easier to just download the CWM Touch Recovery zip for the Samsung T-Mobile GS2 (5.8.1.3) from the CWM site and flash it in recovery? I didnt see a link to the zip on the CWM site but I saw a thread about it in the Hercules section here:

http://xdaforums.com/showthread.php?t=1332103

which has a link to the touch recovery zip file on the CWM site here:

recovery-clockwork-touch-5.8.1.3-hercules.zip

edit: just tried it and it seems to work fine for me.
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] sk8erwitskil:
Romracer: can you explain how you fixed the boot loop issue? And I'll update the link in the OP with your file once I get into work. Thanks!

edit: i figured it out. :-)
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] sk8erwitskil:
did you type "su" first before you typed the dd command? it worked perfect for me on terminal emulator. make sure you type the command EXACTLY as it is in the OP.

that CWM touch is different than this one. that one is made for the hercules this one was compiled using a skyrocket device tree and this one has swipe gestures.
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] :
I did type it exactly LOL and yes a gave su permissions but I'm on the new update
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] sk8erwitskil:
oh the UCLA3 update? i didnt realize that made a difference.
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] sk8erwitskil:
usb mounting still doesnt work on this one. "unable to write to ums lunfile". adb works great though.

edit: fixed this! had to change the path for lunfile from /sdcard to /emmc in extendedcommands.c
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] :
Yeah I dunno if it does but I showed the filepath in previous post
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] sk8erwitskil:
where did you find out that /dev/block/platform/msm_sdcc.1 is the location of recovery?
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] :
Didn't that's where mmcblk0p22 is
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] sk8erwitskil:
ahh i see. did you try the odin method? thats guaranteed to work
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] :
Negative I lack a computer ATM
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] sk8erwitskil:
ahhhh lame. sorry. can you take a screenshot of when it errors out and post it?
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] :
System tuner pro fails I used terminal emulator and it worked so is system tuners terminal different
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] sk8erwitskil:
yah it must go through something different. it looks weird to me anyways cuz it just has the one entry box and doesnt have a $ screen. idk. im glad it worked tho :)
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] :
Thanks man sorry I took up so much space on you thread nice work though the touch recovery is awesome
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] sk8erwitskil:
lol you didnt take up space. thats what threads are for :D im here to help.

are you using the normal font or the roboto font?
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] :
Stock font I'm on ucla3
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] PeartFan40:
Works great! Thanks for sharing!
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] kornklown69:
Works great someone sticky this plz!!
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] cdshepherd:
Agreed
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] armyveterangunner29:
The touch response is a little off. I know there will be improved versions in the future but its better than using the hard buttons
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] onearmedscissor:
Backup is working now for data too. Maybe it was because I was on cyano wiz when it didn't work, or I didn't gave enough space
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] galaxyuser88:
got the new cwm loaded on my phone. (great work on this recovery, too all who invested time into this great work of art) stock 2.3.5 rooted, no custom roms or kernels. It gets hung up on backing up data. iam i doing something wrong?
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] onearmedscissor:
That happened to me before too on cm7
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] galaxyuser88:
Ok after about 5 atemps, it finally completed. everytime it would hang, i would wait about 15 mins and then power off and restart cwm backup, then it would go one step further, i would just restart after every hang to get it to complete. I just hope that this didnt mess with the backup. I gonna pull the md5 off the sd card- is there anyway to to see if it is complete?