[RECOVERY] [Recovery] RZR SPR-based *update.zips-battery charging-more*

Discussion in 'Raidzero' started by raidzero, Dec 18, 2010.

  1. raidzero
    Offline

    raidzero n00b. Theme Developer Premium Member Developer

    Joined:
    Apr 15, 2010
    Messages:
    1,054
    Likes Received:
    3
    Trophy Points:
    0
    Location:
    Denver, CO
    This is the Recovery thread.
    ROM Thread
    Kernels Thread

    RZR 2.0.3 Released!
    Overview

    ---------------------------------

    *RZrecovery*:
    -=Overclocked to 1.1ghz, LV kernel w/ custom overclock settings=-
    -=Arbitrary update.zip selection (with folders) (don't have to rename files to update.zip).=-
    -=rom.tgz support (of course)=-
    -=Unsigned update.zip support=-
    -=ability to wipe system, data, boot, dalvik-cache-
    -=No automatic backup when installing a rom.tgz=-
    -=Pretty colors ;)=-
    -=Arbitrary kernel/recovery image install=-
    -=update.zip from folder support (/sdcard/updates)=-
    -=Wipe battery statistics=-
    -=Battery charging!=-
    -=clockwork nandroid restore=-
    -=Ability to root any ROM=-
    -=11 predefined colors + RGB color selection=-
    -=Hold space while selecting update.zip/rom.tgz to auto backup=-
    -=preinstall update.zip menu=-
    -=battery status (charging status, temperature and charge level) display=-
    -=Flashlight (just for fun)=-
    -=android_secure nandroid / wipe support=-
    -=keyboard backlight option=-
    ---------------------------------

    Background
    So as you probably know, I love SPR for its rom.tgz support. I decided to dive into it and start modding it, so I got the source from DroidMod.

    The first thing I did was install my custom overclock kernel to get SPR running at 1.1ghz, which greatly sped up my ROM install routine. Next, I changed the colors to blue instead of orange. Then I got rid of the automatic backup function when installing a rom.tgz. (For my ROM this makes sense since one of the features is on the fly themeing from recovery - metamorph style). After that I made it accept arbitrary update.zip's by giving the user a selection of update.zips on the sdcard to install. I verified that it would accept unsigned update.zips. After these changes I added some functions to install arbitrary kernel and recovery images from recovery, in img format. I believe a kernel and ramdisk should be united, as mine are made for each other. If you install an anykernel package it will extract yiour current ramdisk and put it with a new kernel. I don't like this, so I changed it (NOTE: you can still install anykernel updater kernel packages if you wish). I did the same thing for recovery images. Finally, as you might expect, I spend a as LOT of time in recovery. This is the big one, with help from trevorj of DroidMod, I enabled battery charging while in recovery. He sent me a version of SPRecovery that he had reworked to include battery charging. The only problem was it required all kinds of alien technology to run. I had to install a squashfs image on my sdcard that this version of SPR used and contained all the extra functionality that I did not need or want (wifi, ubifs, squashfs, kernel modules like crazy). I isolated what charged the battery and stuck it in my recovery image, which is just a single img file or SBF for ease of use. Without trevorj, none of the charging stuff would be possible.

    Screenshots:

    [​IMG][​IMG]

    [​IMG][​IMG]

    [​IMG][​IMG]

    [​IMG][​IMG]

    [​IMG][​IMG]
    [​IMG][​IMG][​IMG]

    Changelog:

    Code:
    Update 2.0.3
    Instead of formatting partitions during RZR restore, simply erase their contents. This fixes the nasty wipe all bug (hopefully this time, it really is foolproof)
    It is now impossible to wipe out color/overclock settings when wiping anything
    rework color/oc preservation routines
    dalvik-cache now includes /cache/dalvik-cache for gingerbread'ers
    Added "this might take a while on gingerbread" message to cache-wipe. 
    fixed % sign showing up on line underneath battery capacity when capacity was under 100%
    automatically remove stock recovery patch upon reboot to android
    clockwork nandroid restores now don't disturb color setting or overclock level
    Added some RZRecovery messaeges to nandroid. 
    Add extras option to toggle keypad light, to save battery. 
    
    Update 2.0.2
    makes sure partitions are formatted before restoring them
    remove nandroid directory from file menus
    add cache to wipe menu
    
    Update 2.0.1
    Add battery temp to battery stats & beautify it
    Add current max clockspeed display to overclock menu
    FINALLY sort the file menus, dirs up top, files on bottom, both sorted alphabetically
    fixed bug where a random character would show up randomly after certain dir names
    
    
    Updated 2.0
    unified file browser, noob-friendly installs
    scrolling menus if a list contains more items than fit on the screen
    cleaned up wipe code
    preinstall menu (abort install, backup before install, wipe /data, install)
    moved color files to /sdcard/RZR
    changed main input to camera button
    added wipe .android_secure to wipe menu
    added backup/restore .android_secure to nandroid menu
    removed misc, cache, recovery from nandroid/mount menu
    added custom overclock menu, choose from 800,900,1000,1100 max speed.. persists across reboots
    changed flashlight on/off to be done in code
    made sure to unmount after mounts
    remove simple nandroid menus
    certain functions return to main menu
    
    
    
    Updated 02/04/11
    added ability to root any ROM & disable flash recovery service
    added RGB entry for custom colors
    store colors file in /data, move to /cache for recovery operations (obsololetes the need to keep /data mounted, which I have a feeling would have started causing problems somewhere down the road)
    added flashlight
    added battery stats (charging status and charge level) display
    fixed update.zip installs from folders
    fixed clockwork nandroid restore root permissions
    changed a bunch of strings
    
    Updated 01/24/11:
    added ability to wipe dalvik-cache
    
    added ability to restore clockwork backups



    action shots:
    My droid charging:
    [​IMG][​IMG]

    My droid in the dark with the glowing keyboard:
    [​IMG][​IMG]

    Downloads

    UPDATE.ZIP:
    http://rzdroid.com/ftp/recovery/RZR-2.0.3-update.zip
    (May be flashed from SPR/RZR/CWM)
    SBF: http://rzdroid.com/ftp/recovery/RZR-2.0.3-recovery_only.sbf
    IMG: http://rzdroid.com/ftp/recovery/RZR-2.0.3.img

    MD5sums:
    3bc73f8c4d8d0d6d9f9dca28304b4fa9 *RZR-2.0.3-recovery_only.sbf
    c2916ac9c6ca72bcda6962fb370714fb *RZR-2.0.3-update.zip
    a6f97aedf7c0d13cfe7fb20f6c3e9355 *RZR-2.0.3.img


    No terminal action is necessary, Simply flash the update.zip like anything else. RSD lite is required you have a bone stock droid, in which case you must SBF.

    Donate
    Help me get better web hosting!
    https://www.paypal.com/cgi-bin/websc...ton_id=7397475

    Disclaimer:
    I do this for fun, make no guarantees and accept no responsibility for anything you do with my files.

    Source Code:
    https://github.com/raidzero/RZrecovery

    Credits:
    Again, I have to say this could NOT have happened without trevorj of DroidMod. The whole charging concept and execution was his idea. These are my files from my ROM but I would have no idea which ones I needed to get if it weren't for Trevor already doing this in March 2010. The script that launches and monitors the battery daemon was originally written by him, modified by me to fit into my recovery image.

    Big thanks to:
    Tim-o-tato, pandroid, moset, yankindasouth, tanknspank, thizzmark, sgtguthrie, segdoh49, tp76, liquid0624, girluvsdroid for testing and encouragement. cvpcs also gave me some ideas, which will be impletemented in his own way when RCR is released. For now, enjoy RZR!


    Don't enjoy it?
    I provide a clockwork version 2.5.0.1 SBF to easily go back to CWM.
    http://www.rzdroid.com/ftp/recovery/Clockwork_2.5.0.1_sholes_recovery_only.sbf

    There is also an SPR SBF made by MotoCache1:
    http://www.rzdroid.com/ftp/recovery/MC1_A855_1282081087_Recovery-Only_SPRecovery_0.99.3b.sbf


    1 person likes this.
  2. RafficaX
    Offline

    RafficaX Premium Member Premium Member Developer

    Joined:
    Aug 2, 2010
    Messages:
    605
    Likes Received:
    0
    Trophy Points:
    0
    already flashed, nice work. any future update planning to add support to search sdcard for a zip file or when i select install zip will it bring up all zip files on root of sdcard?
  3. white_ash143
    Offline

    white_ash143 New Member

    Joined:
    Apr 1, 2010
    Messages:
    313
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Georgia
    So the update.zip flash works for ANY .zip file regardless of name as long as it's in update.zip format (Meta-inf and all that jazz)? Also, kernels must be in .img format or will it flash as an update.zip like SPR will?

    Edit: Forgot to reread the highlights at top of post... disregard first question.

    Edit: BTW thanks for having a ROM section instead of being in the themes section... easier to navigate to... .lol
  4. raidzero
    Offline

    raidzero n00b. Theme Developer Premium Member Developer

    Joined:
    Apr 15, 2010
    Messages:
    1,054
    Likes Received:
    3
    Trophy Points:
    0
    Location:
    Denver, CO
    Yes to all. My c Kung Fu is weak but this has been an excellent learning experience :)

    Sent from my Droid using DroidForums App
  5. keyblade
    Offline

    keyblade New Member

    Joined:
    Jun 30, 2010
    Messages:
    243
    Likes Received:
    0
    Trophy Points:
    0
    Oh wow. I'll have to do this later when I get to a computer that can push the SBF...

    Great work!
  6. thepwneddroid
    Offline

    thepwneddroid New Member

    Joined:
    Aug 9, 2010
    Messages:
    44
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    San Francisco Bay Area, CA
    Looks great, but do you think there is a way to flash this recovery without using RSD Lite? I have a Mac so I guess this is holding me back.
  7. raidzero
    Offline

    raidzero n00b. Theme Developer Premium Member Developer

    Joined:
    Apr 15, 2010
    Messages:
    1,054
    Likes Received:
    3
    Trophy Points:
    0
    Location:
    Denver, CO
    I provided an IMG file for those who can't SBF:

    http://www.rzroms.com/droid/recovery/RZR-0.1.4.img


    How to flash an IMG
    : put the img file on your sdcard. boot into recovery and do this to flash it: (link to the flash_image binary)

    #flash_image recovery /sdcard/RZR-0.1.4.img

    reboot back into recovery and enojy
  8. RafficaX
    Offline

    RafficaX Premium Member Premium Member Developer

    Joined:
    Aug 2, 2010
    Messages:
    605
    Likes Received:
    0
    Trophy Points:
    0
    i flashed mine will in the os lol. used adb and ran the flash_image then reboot recovery. worked flawlessly ;)
  9. thepwneddroid
    Offline

    thepwneddroid New Member

    Joined:
    Aug 9, 2010
    Messages:
    44
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    San Francisco Bay Area, CA
    Sorry for being a dumb, paranoid-because-he-could-get-killed-for-getting-his-phone-bricked 13 year old, but I don't really get what you mean. (I use Clockwork Recovery, btw), but how do I run the flash_image and recovery image?
  10. white_ash143
    Offline

    white_ash143 New Member

    Joined:
    Apr 1, 2010
    Messages:
    313
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Georgia
    I wish more ROM's were offered in .tgz format. I enjoy the ability to change theme on the fly so to speak. The only problems I had were the usual WoW and BoB with certain apps, namely TiBU, RootExplorer, etc..... anyways, Hopefully this recovery will become viral! Seems to combine the stability of SPR with the features of Clockwork.
  11. white_ash143
    Offline

    white_ash143 New Member

    Joined:
    Apr 1, 2010
    Messages:
    313
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Georgia
    I believe RafficaX just plugged his phone into the computer and type:

    #flash_image recovery /sdcard/RZR-0.1.4.img

    While in adb shell, with su of course... then just type reboot recovery.... Just a hunch though.... to be safe you may wanna do this in recovery instead. And also make a nandroid backup... if you mess up your recovery you should be able to get it back relatively easily. Seems like you really have to try to brick your phone. I mean I used RSD Lite back in the early days of rooting and the process failed on both mine and my wife's phones but I still got root on both and both work perfectly normal.... lol
  12. DF Smod
    Offline

    DF Smod New Member

    Joined:
    Apr 23, 2010
    Messages:
    11,477
    Likes Received:
    93
    Trophy Points:
    0
    I just downloaded the .img and the flash image to my SD and in terminal typed

    su

    flash_image recovery /sdcard/RZR-0.1.4.img

    reboot recovery

    ...and this recovery is blazing fast - and the color is eye pleasing :)
  13. DF Smod
    Offline

    DF Smod New Member

    Joined:
    Apr 23, 2010
    Messages:
    11,477
    Likes Received:
    93
    Trophy Points:
    0
    For the record SPR and RZR back-ups are compatible -
  14. raidzero
    Offline

    raidzero n00b. Theme Developer Premium Member Developer

    Joined:
    Apr 15, 2010
    Messages:
    1,054
    Likes Received:
    3
    Trophy Points:
    0
    Location:
    Denver, CO
    indeed they are. I plan to make CWR backups work too, well there will be an option on which format to use, will determine which nandroid script it calls (either TAR like SPR, or IMG like CWR) I prefer TAR since they can be easily edited and hacked, CWR backups are a bit of a pain to modify.
  15. DF Smod
    Offline

    DF Smod New Member

    Joined:
    Apr 23, 2010
    Messages:
    11,477
    Likes Received:
    93
    Trophy Points:
    0
    My only issue - and I have the same with SPR - is when I rename a backup to remember it in the future and try to restore it - I get error status 28...is there a particular way backups have to be renamed ?
  16. LT*
    Offline

    LT* New Member

    Joined:
    Jan 22, 2010
    Messages:
    637
    Likes Received:
    0
    Trophy Points:
    0
    This is great, I may now have to try this.
  17. raidzero
    Offline

    raidzero n00b. Theme Developer Premium Member Developer

    Joined:
    Apr 15, 2010
    Messages:
    1,054
    Likes Received:
    3
    Trophy Points:
    0
    Location:
    Denver, CO
    error 28 is caused by md5sum not matching what is was when the backup was taken. I plan to remove md5sum checking and creation altogether to make the backups it creates truly editable with no caveats, not to mention that much faster.

    nandroid is just a (2,126 line) shell script...
  18. cereal killer
    Offline

    cereal killer DF Administrator Staff Member

    Joined:
    Oct 29, 2009
    Messages:
    11,048
    Likes Received:
    675
    Trophy Points:
    113
    Location:
    Austin, TX
    raidzero been running and testing for a full day now. Runs flawless. I've always ran Sprecovery and this is a GREAT upgrade.

    I HIGHLY recommend anybody that has not installed CW and likes Sprecovery to try this out. It's fantastic. Good job.
  19. raidzero
    Offline

    raidzero n00b. Theme Developer Premium Member Developer

    Joined:
    Apr 15, 2010
    Messages:
    1,054
    Likes Received:
    3
    Trophy Points:
    0
    Location:
    Denver, CO
    Thanks, CK!

    tp76, I just finished removing all the md5sum and other non-droid stuff from the nandroid script. This means you will be able to edit your backups and rename them all you want and it won't care. Should also speed up backup/restore since it will not ever calculate the md5sum. This will be in the next release.
  20. DF Smod
    Offline

    DF Smod New Member

    Joined:
    Apr 23, 2010
    Messages:
    11,477
    Likes Received:
    93
    Trophy Points:
    0
    Nice RZ - I will be looking forward to the release as this recovery is leaps and bounds ahead of the others :happy:
Search tags for this page
could not load needed library libc.so for /system/bin/sh
,
motorola droid a855 rzr recovery
,
n925 sprdroid
,
orange sprdroid base
,
os sprdroid
,
raid zero recovery for droid a855
,
raid zero recovery for motorola droid a855
,

rzr recovery

,
rzr recovery android
,
rzr recovery droid x
,
rzr-2.0.3-recovery only.sbf
,
rzrrecovery og droid
,
spr recovery
,
sprdroid base user 2.3.5
,
sprdroid base-user 2.3.5