[RECOVERY] S7 Clockworkmod Recovery Port for Android 2.1 Builds

Discussion in 'Huawei Ideos S7 Technical' started by xaueious, Mar 1, 2011.

  1. xaueious
    Offline

    xaueious Administrator Staff Member

    Joined:
    Jul 9, 2010
    Messages:
    3,486
    Likes Received:
    433
    Trophy Points:
    83
    Location:
    Canada
    Tablet / Device:
    Asus Transformer TF300, Huwaei Ideos S7-104, HSG X5A, (Past APAD IMX515, APAD RK2808, RK2818 RT7)
    This does not work on Android 2.2 builds in its current state

    Calling this xauBeta so we can distinguish between versions. Tested with Bestbuy Huawei Ideos S7-104 White (external microSD and internal 8GB).

    Tested on BestBuy S7-104 running the newer Singapore ROM S7V100R001C61B011, for Android 2.1.
    This was not tested on a stock BestBuy ROM. I do not know if this will work properly on that firmware. Please report your findings.

    Use fastboot to flash (install fastboot and fastboot drivers, enter fastboot via vol+/- and power button combo, issue the command 'fastboot flash recovery recovery.img')



    Download
    v0.11

    Internal NAND + External SD Version for S7-104 BestBuy, Radioshack:
    I do not expect this version to work properly for single SD variants
    Multiupload download
    de54cb057b6b9ebbd5912588e4aad628 recovery.img

    External Single SD Version for S7-105 Telstra:
    Multiupload download
    aa0c883aac0edb8f5d9929148cf56136 recovery.img

    Changelog
    v0.11
    -forgot nandroid-md5.sh

    v0.1
    -initial version

    Notes
    This recovery image is functional enough for use.

    If you have the dual-nand variant of the S7, you can still use the recovery image for the single-sd version. If you do so, installable update zip files will need to be placed on the external microSD instead of the internal nand. You also lose the ability to mount the internal nand to the computer via recovery.

    What works: Nandroid works. USB mounts work (choose between internal and external mount hacked in for the dual-sd version). Flashing installable update zip files work. Fix permissions works.

    This is still an ugly hack of a recovery image. Instead of waiting for developers, I threw this together so I can use it.
    This recovery does not read the misc partition flags and boots into user mode every time. Hopefully this does not break too many things. It only displays only 50% of the screen, but it is still readable. It works for me, so I'm not going to touch the kernel framebuffer or whatever was causing the quad-screen craziness.

    Buttons in this recovery image:
    Up - vol +, dpad up
    Down - vol -, dpad down, menu (cycles when menu reaches bottom)
    Select - home, dpad select, power, send call
    Back - end call, back

    The weird color and the half-screen issues are known. No fixes are planned.

    What hasn't been tested
    Need someone to help figure out which would be the ideal way to deploy this. I typically fastboot. Will look into an easier method of deployment possibly in the future.

    Not tested:
    formatting external SD for apps2sd feature (under advanced)
    format sdcard (not sure what this option does)
    nandroid with apps2ext

    Screenshots
    [​IMG]
    boot

    [​IMG]
    nandroid



    Credit to koush and everyone who has worked on Clockwork recovery
    Also HOWTO: Unpack, Edit, and Re-Pack Boot Images - Android Wiki
    razor950 for the device files
    perivarlura for some binaries from his ramdisk
    • Like Like x 16
  2. xaueious
    Offline

    xaueious Administrator Staff Member

    Joined:
    Jul 9, 2010
    Messages:
    3,486
    Likes Received:
    433
    Trophy Points:
    83
    Location:
    Canada
    Tablet / Device:
    Asus Transformer TF300, Huwaei Ideos S7-104, HSG X5A, (Past APAD IMX515, APAD RK2808, RK2818 RT7)
    Easier Windows Install
    Requires full root on your tablet, and USB debugging enabled. Plug your S7 in via USB while booted into Android. This is a Windows install script. Just run install_now.cmd and follow the prompts.

    Internal NAND + External SD Version for S7-104 BestBuy, Radioshack:
    Download from Multiupload

    External Single SD Version for S7-105 Telstra:
    Download from Multiupload

    This is a script that will try to automatically install this recovery image to your device. You will still need to install the Windows drivers on your computer.

    Have the drivers ready from Huawei -> Direct Link
    http://bit.ly/gjH9f9




    [​IMG]


    Credit to install script for malez recovery: http://code.google.com/p/acer-liquid-malez-recovery/
    • Like Like x 12
  3. xaueious
    Offline

    xaueious Administrator Staff Member

    Joined:
    Jul 9, 2010
    Messages:
    3,486
    Likes Received:
    433
    Trophy Points:
    83
    Location:
    Canada
    Tablet / Device:
    Asus Transformer TF300, Huwaei Ideos S7-104, HSG X5A, (Past APAD IMX515, APAD RK2808, RK2818 RT7)
    Forgot the md5sum check script for nandroid. Repacking. Give me 10 minutes.

    Edit:
    all good now. windows install script will be up shortly.

    nandroid works fine. Tested on my Bestbuy S7-104 on new Singapore ROM via my Windows 7 64 bit PC.
    Last edited: Mar 1, 2011
  4. kevmueller
    Offline

    kevmueller Junior Member

    Joined:
    Dec 7, 2010
    Messages:
    146
    Likes Received:
    20
    Trophy Points:
    18
    Location:
    Kansas City MO
    Tablet / Device:
    Huawei S7 & Droid X
    Xaueious, great work on this. I am going to hold off on putting this on for now since it is running so well right now. However once we start to see some custom ROMs I will be all over this. This is a huge first step.
  5. pbrauer
    Offline

    pbrauer Administrator Staff Member

    Joined:
    Sep 24, 2010
    Messages:
    3,651
    Likes Received:
    556
    Trophy Points:
    113
    Location:
    Edina, MN USA
    Tablet / Device:
    HTC Thunderbolt, ViewSonic GTab, Huawei S7, Gentouch 78
    Who thinks X gets the bounty? I do!
    Last edited: Mar 1, 2011
  6. xaueious
    Offline

    xaueious Administrator Staff Member

    Joined:
    Jul 9, 2010
    Messages:
    3,486
    Likes Received:
    433
    Trophy Points:
    83
    Location:
    Canada
    Tablet / Device:
    Asus Transformer TF300, Huwaei Ideos S7-104, HSG X5A, (Past APAD IMX515, APAD RK2808, RK2818 RT7)
    Not aware of a bounty anymore. I only have a personal Paypal address, so people have to PM me for it.

    Those of you who are using this, I would appreciate feedback if you are using it on another device.
  7. pvella
    Offline

    pvella Junior Member

    Joined:
    Dec 20, 2010
    Messages:
    392
    Likes Received:
    38
    Trophy Points:
    28
    Location:
    Melbourne
    Tablet / Device:
    Huawei S7
    Happy to test this on the version without internal sdcard. I assume this is not like a normal reboot recovery where your machine gets wiped to factory settings. Is this likely to break link2sd setup? How do you get out of recovery mode, is it just another reboot?
  8. mecha2012
    Offline

    mecha2012 Junior Member

    Joined:
    Feb 7, 2011
    Messages:
    31
    Likes Received:
    1
    Trophy Points:
    8
    Location:
    Lowell, ma
    Tablet / Device:
    Huawei Ideos s7
    I like that script for windows makes it easier for all of us. As for me I use terminal emulator flash_image to flash recovery but that aside. (My computer gets used by my kids more than me so I have to fight for it)

    So will this work (my step to backup then restore test procedure)
    From terminal
    reboot recovery
    Create a nandroid backup
    Reboot and delete some files to break it (excluding recovery partition of course)
    Boot into recovery using the button combo
    Restore nandroid
    there's no other special method that's involve?
    I'm just trying to confirm
  9. xaueious
    Offline

    xaueious Administrator Staff Member

    Joined:
    Jul 9, 2010
    Messages:
    3,486
    Likes Received:
    433
    Trophy Points:
    83
    Location:
    Canada
    Tablet / Device:
    Asus Transformer TF300, Huwaei Ideos S7-104, HSG X5A, (Past APAD IMX515, APAD RK2808, RK2818 RT7)
    If you have no internal sdcard, please give me the output from shell of:
    Code:
    cat /proc/mtd
    
    Basically we have to work on a new BoardConfig...

    I also need to know which mmcblk the internal sd resides in for your S7.

    so...

    Code:
    ls /dev/block/mmc*
    
    This recovery wont wipe your device when you boot it. But there are definitions for where the recovery expects to find a SD partition that might make a difference. Nandroid might not work properly.
    Paste it into http://www.androidtablets.net/forum...84-recovery-working-recovery-ui-glitches.html

    @mecha2010

    No special tricks required. Just make sure you don't screw up the internal SDCard FAT partition it reads the recovery from as well. Or else you would just reflash to a Huawei ROM, enable USB debugging, run the Windows install script, and finally restore nandroid from CWR recovery. You could use flash_image to flash as well, but fastboot will probably be the safer to do it correctly.

    Backup up to internal memory is the method we are keeping because it is stock, and negates the need for an external SD.
  10. frankbo168
    Offline

    frankbo168 Junior Member

    Joined:
    Mar 1, 2011
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    San francsico
    Tablet / Device:
    Nexus one-cm7 rc2, nexus s-stock,huawei s7 (sold), Nook Color-running CM7 Nightlies
    I'm sorry I know this sound stupid. How do I go into the recovery mode? Same as before by pressing vol-up, send and power buttons? I'm ready to try out your work, I just need to confirm the methods of getting into the recovery before I get started. Thanks!
  11. xaueious
    Offline

    xaueious Administrator Staff Member

    Joined:
    Jul 9, 2010
    Messages:
    3,486
    Likes Received:
    433
    Trophy Points:
    83
    Location:
    Canada
    Tablet / Device:
    Asus Transformer TF300, Huwaei Ideos S7-104, HSG X5A, (Past APAD IMX515, APAD RK2808, RK2818 RT7)
    You don't want to go into recovery before flashing this. Going into recovery wipes data on load. The key combo is Menu+Send+Power, but unplug everything before doing this.
    • Like Like x 2
  12. frankbo168
    Offline

    frankbo168 Junior Member

    Joined:
    Mar 1, 2011
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    San francsico
    Tablet / Device:
    Nexus one-cm7 rc2, nexus s-stock,huawei s7 (sold), Nook Color-running CM7 Nightlies
    Thanks a bunch! I appreciate your quick feedback! I'm going to give it a try since I also has the s104 version.
  13. frankbo168
    Offline

    frankbo168 Junior Member

    Joined:
    Mar 1, 2011
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    San francsico
    Tablet / Device:
    Nexus one-cm7 rc2, nexus s-stock,huawei s7 (sold), Nook Color-running CM7 Nightlies
    @xaueious, your recovery works like charm, made my first nandroid back up :). where's the link for your donations?
    Last edited: Mar 1, 2011
  14. arqueiro
    Offline

    arqueiro Junior Member

    Joined:
    Nov 1, 2010
    Messages:
    133
    Likes Received:
    1
    Trophy Points:
    18
    Tablet / Device:
    S7
    THANKS for your work on this!
  15. mecha2012
    Offline

    mecha2012 Junior Member

    Joined:
    Feb 7, 2011
    Messages:
    31
    Likes Received:
    1
    Trophy Points:
    8
    Location:
    Lowell, ma
    Tablet / Device:
    Huawei Ideos s7
    For starter ones should disect the update.app to a flashable zip as a starting point. So they can pave the way for chefs and developer to use as a base and of course test the flashing functionality of this wonderful CWR port great job X.
  16. joenilan
    Offline

    joenilan Junior Member

    Joined:
    Feb 4, 2011
    Messages:
    208
    Likes Received:
    60
    Trophy Points:
    28
    Location:
    Philadelphia, Pennsylvania
    Tablet / Device:
    Huawei Ideos S7, HD2, HTC Tilt
    i'm currently working on an update.zip from mine now, just gotta finish setting up my linux-vm and install a few things build the zip and try and flash it, thankfully the nandroid is supposedly working, i'll let you guys know what happens if no one else gets there before me.

    edit:
    @xaueious: i noticed this is an older CWM, is it because 3.0.0.5/6 won't port or have you not tried?
    Last edited: Mar 2, 2011
  17. xaueious
    Offline

    xaueious Administrator Staff Member

    Joined:
    Jul 9, 2010
    Messages:
    3,486
    Likes Received:
    433
    Trophy Points:
    83
    Location:
    Canada
    Tablet / Device:
    Asus Transformer TF300, Huwaei Ideos S7-104, HSG X5A, (Past APAD IMX515, APAD RK2808, RK2818 RT7)
    I don't have Android 2.3 AOSP sync'd, and that would probably take me a while. I don't know if there are any substantial changes between CWR 2.5 and CWR 3.0 for us moving forward to Froyo from Huawei in the coming month or two.

    As for Huawei's update.app, I think some people tried to do the same at Modaco for other Huawei devices, but have not gotten anywhere.

    What was most important for me in getting this to work was nandroid, really...
    • Like Like x 2
  18. ivyvisors
    Offline

    ivyvisors Junior Member

    Joined:
    Dec 29, 2010
    Messages:
    233
    Likes Received:
    52
    Trophy Points:
    28
    Location:
    melbourne
    Tablet / Device:
    huawai s7
    Wow I have a crazy busy week where I'm not looking at all of the forums. And look waht happens.

    =)
  19. ivyvisors
    Offline

    ivyvisors Junior Member

    Joined:
    Dec 29, 2010
    Messages:
    233
    Likes Received:
    52
    Trophy Points:
    28
    Location:
    melbourne
    Tablet / Device:
    huawai s7
    By the way are there any good tutorials on how to bike and zip that one can install via the recovery?

    Sent from my sdk using Android Tablet Forum App
  20. elf310
    Offline

    elf310 Junior Member

    Joined:
    Jan 10, 2011
    Messages:
    42
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    Indiana
    Tablet / Device:
    Ideos S7-104
    Recovery works great, decided to play with rom kitchen and pluged the update.app into it, and it read it fine. rooted the stock rom, installed busybox, zipalligned it and made the update.zip, and flashed it to my S7. Booted right up into the stock rooted rom. Now going to have to play some more with it and put my nandroid backups into rom kitchen and see if I can get a update.zip with the widget mods, link2sd and all that.


    ps used the htc rom kitchen found here http://forum.xda-developers.com/showthread.php?t=633246
    Last edited: Mar 3, 2011

Share This Page