MIUIRecovery

Discussion in 'Xiaomi MI2(s)' started by M1cha, Feb 13, 2013.

Thread Status:
Not open for further replies.
  1. This project has been discontinued due to the instability of MIUIRecovery itself(it has nothing todo with it as being a port to Mi2).
    Please use CWM:
    http://miuiandroid.com/community/threads/clockworkmod-recovery.19686/

    I finally found a way :D
    You'll see MiRecovery(stock version) for 2seconds and then MIUIRecovery starts.
    The reason for that is that I did not find a way to initialize display and so I wait until stock-recovery did that.
    You can reboot into system0 and system1 just like on stock-recovery.
    RomManager is supported, too.

    Download:
    http://d-h.st/users/M1cha/?fld_id=10909#files

    Sourcecode:
    https://github.com/M1cha/miui_recovery

    Installation:
    Note: you can use the update-zip, too. It will automate the whole progress. Just rename it to update.zip, copy it to /sdcard/ and install it via (any) recovery.
    1) delete or rename the file /system/etc/install-recovery.sh via ADB or with a root-explorer of your choise(I can recommend SolidExplorer)
    2) flash the image via fastboot(MiFlash could work but I did not test it)
    fastboot-command: fastboot flash recovery miuirecovery.img

    Screenshots:
    main.jpgzip.jpgbackup.jpgpower.jpg
     
  2. Acid

    AcidScripting Ninja
    Staff Member

    Aug 20, 2011
    2,743
    743
    245
    Male
    Its touch recovery? :)
     
  3. yes - you can use both touchscreen and hardware-keys :)
     
  4. ingbrzy

    ingbrzyXiaomi.eu Multilang leader
    Staff Member

    Backup and restore works well?
    So no more special signing of zip needed?
     
  5. yes, backup,restore,choosing zip, format,...
    Everything which is known of CWM.
     
    ingbrzy likes this.
  6. ehrles

    ehrlesMembers

    Jan 10, 2013
    51
    13
    18
    Male
    Awesome !!!!!! :)
     
    M1cha likes this.
  7. kekkojoker90

    Jan 9, 2013
    507
    99
    65
    Male
    awesome :D finally we have full recovery. I wait for anyone try the recovery.
     
  8. only way to install this is with fastboot right?
     
  9. I could make an update.zip for that, too.
    But for now fastboot is the only way, yes.
     
    type-R, tamil18 and grondinm like this.
  10. thank you. I will try to flash it. have never used fasboot directly. i plan on copying the line from the fastboot package

    "fastboot $* flash recovery `dirname $0`/images/recovery.img" like this a make a new .bat file to use with miflash.
     
  11. patton82

    patton82Members

    Jan 15, 2013
    68
    10
    18
    Male
    Italy
    Great news, thank you.
     
  12. ices

    icesMembers

    Feb 13, 2013
    12
    4
    13
    Male
    That would be really nice. I hope I can use this next week when I get my Mi2
     
  13. well i must have done something wrong somehow... i did

    Code:
    fastboot flash recovery miuirecovery.img
    sending 'recovery' (12238 KB)...
    OKAY [  0.958s]
    writing 'recovery'...
    OKAY [  0.847s]
    finished. total time: 1.805s
    
    then did fastboot reboot
    rebooted to recovery from power menu but still got mi-recovery. waited like 30sec...also tried boot recovery with button combo same results...

    phone does not seem to be adversly affected. could i have just messed something up?? Mi-recovery seems to work fine...
     
  14. iBotPeaches

    iBotPeachesScript Gatekeeper

    Oct 31, 2011
    3,916
    1,115
    335
    Kansas
    adb reboot recovery ? what does that boot to
     
  15. Sorry but I forgot to say that.
    You have to delete the file /system/etc/install-recovery.sh first.
     
    grondinm likes this.
  16. still Mi-recovery

    so delete that file then flash your recovery with fastboot?

    That did it. looking good so far. will have more time to test in about 1h. couple things right off. seems date overlaps battery icon. And the systems should be renamed to system1 and system2 just to keep it consistent with Mi-recovery. apart from that GOOD JOB! faster then expected.

    a suggestion. if you could make it so we can mount external storage connected using OTG so we have access to more space to backup...specially for those of us who only have the 16gb model...and a though. will this recovery get replaced every time we update rom?
     
  17. djsolidsnake86

    Jul 4, 2011
    307
    15
    42
    work with native sd?
     
  18. What you mean? Mi2 does nat have an sdcard slot.
     
  19. Wajk

    WajkMembers

    Jun 29, 2011
    486
    1,486
    165
    thnx for your port ;)
    great!

    (under testing)
     
  20. back up and restore works well. data wipe works well. Not sure why it has option for format and wipe...Great job M1cha.
     
  21. Acid

    AcidScripting Ninja
    Staff Member

    Aug 20, 2011
    2,743
    743
    245
    Male
    This is Xiaomi M2 thread. And MIUIRecovery is only for M2. Don't try it on other devices.
     
    djsolidsnake86 likes this.
  22. kekkojoker90

    Jan 9, 2013
    507
    99
    65
    Male
    i wait update.zip :D
     
  23. s01o

    s01oMembers

    May 1, 2012
    121
    34
    40
    Male
    Awesome !:) Yes - Yes - Yes !!!
     
  24. wipe means that i deletes all files and directories.
    format means, that he recreates the filesystem of the partition.(which means files get deleted, too)
     
    grondinm and type-R like this.
  25. s1xkill3r

    s1xkill3rMembers

    Dec 12, 2012
    29
    0
    21
    Is this mean that you can put Cyanogen Mod on MI-2 with this recovery? I mean port fo CM. Thnx!
     

Share Our Site