[RECOVERY] RZrecovery - Many Devices

Discussion in 'Raidzero' started by raidzero, Oct 18, 2011.

  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

    ---------------------------------
    Overview
    ---------------------------------
    *RZrecovery*:
    -=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, battery stats, cache-
    -=No automatic backup when installing a rom.tgz=-
    -=update.zip from folder support=-
    -=Ability to install APK's, IMG's, ZIP's, TAR's, TGZ's from the same menu=-
    -=Wipe battery statistics=-
    -=Battery charging!=-
    -=clockwork nandroid restore=-
    -=Ability to root any ROM=-
    -=12 predefined colors + random color selection=-
    -=Rave mode: random color every time screen is redrawn=-
    -=preinstall update.zip menu=-
    -=battery status (charging status, temperature and charge level) display=-
    -=android_secure nandroid / wipe support=-
    -=Hold volume keys to scroll=-
    -=Touch screen scrolling on some devices=-
    -=Davlik bytecode verification disable/enable=-

    ---------------------------------
    Background
    ---------------------------------
    Last year I made RZRecovery for the original droid. It was a huge success, since then I have been asked to port to other devices. So here,

    about 1 year later, I have done just that. This will bring all the features of the old RZR plus a few new ones including the epic rom.tgz

    install format from the days of yore to any device. I have built this recovery specifically to handle all devices without the need for a

    recompile (except for Tegra2-based devices, they have to be recompiled because of some libc bugs). I have made img files for a few devices

    to start with:

    HTC EVO 4G
    HTC Thunderbolt (confirmed working)
    HTC Incredible (nandroid broken)
    HTC Incredible 2 (confirmed working)
    HTC MyTouch 4G
    Samsung Nexus S (confirmed working)
    Samsung Nexus S 4G (confirmed working)
    Samsung Fascinate
    Motorola Droid (confirmed working)
    LG Optimus S
    LG Optimus One

    In order to port RZR to anything, I need to know the base kernel address, the boot command line, the page size and the partition layout.

    ---------------------------------
    SCREENSHOTS
    ---------------------------------
    [​IMG][​IMG]

    [​IMG][​IMG]

    [​IMG][​IMG]

    [​IMG][​IMG]

    [​IMG][​IMG]

    [​IMG][​IMG]

    [​IMG][​IMG]

    [​IMG][​IMG]

    ---------------------------------
    CREDITS
    ---------------------------------
    (without any of these individuals/organizations none of this could be possible)
    CyanogenMod - for being completely open and having a huge database of device information
    koush - for clockworkmod, where I got support for other partition types and filesystems
    rbox - for repeat scroll and touch screen scrolling
    cvpcs - for helping with anything I have ever asked
    slayher - for showing me how to enable capacitive buttons on HTC devices
    bekit - for showing me the bionic commits to get recovery built for tegra2's
    trevorj - for the original battery charge knowledge
    my wife - for giving me all the time I needed to get this done :D
    all the testers for testing and encouragement!

    ---------------------------------
    DOWNLOADS
    ---------------------------------
    I will link img files for use with fastboot or flash_image and any applicable zips.

    EVO 4G: http://rzdroid.com/ftp/recovery/gingerbread/RZR-2.1.0-evo4g-update.zip
    FASCINATE: http://rzdroid.com/ftp/recovery/gingerbread/RZR-2.1.0-fascinate-update.zip
    MYTOUCH 4G: http://rzdroid.com/ftp/recovery/gingerbread/RZR-2.1.0-glacier-update.zip
    THUNDERBOLT: http://rzdroid.com/ftp/recovery/gingerbread/RZR-2.1.0-mecha-update.zip
    NEXUS S: http://rzdroid.com/ftp/recovery/gingerbread/RZR-2.1.0-nexusS-update.zip
    NEXUS S 4G: http://rzdroid.com/ftp/recovery/gingerbread/RZR-2.1.0-ns4g-update.zip
    INCREDIBLE 2: http://rzdroid.com/ftp/recovery/gingerbread/RZR-2.1.0-vivow-update.zip
    OPTIMUS S: http://rzdroid.com/ftp/recovery/gingerbread/RZR-2.1.0-thunderc-update.zip
    OPTIMUS 1: http://rzdroid.com/ftp/recovery/gingerbread/RZR-2.1.0-thunderg-update.zip
    MOTOROLA DROID: http://rzdroid.com/ftp/recovery/gingerbread/RZR-2.1.0-sholes-update.zip





    ---------------------------------
    SOURCE
    ---------------------------------
    https://github.com/raidzero/RZrecovery/tree/gingerbread

    ---------------------------------
    WALKTHROUGH
    ---------------------------------
    Volume up/down - scroll (can hold down to repeat scroll)
    HTC - touch screen - scroll
    Home - select
    Back/Power - back




    Code:
    Main screen 
        Reboot android 
        Reboot recovery
        Reboot bootloader
        Power off
        Wipe menu 
            Wipe all - wipe everything on the device except recovery
            Wipe system (the ROM)
            Wipe data (your applications and settings)
            Wipe .android-secure (other applications and settings on sdcard)
            Wipe boot (the main android kernel)
            Wipe cache 
            Wipe battery stats
            Wipe dalvik cache (cache of optimized dalvik executables)
        Mount menu
            Mount/unmount system (the ROM)
            Mount/unmount data (apps and settings)
            Mount/unmount sdcard
            Enable/Disable USB Mass storage 
        Nandroid menu 
            Nandroid Backup
                Perform backup
                choose boot,data,android-secure,system to back up
            Nandroid restore
                Choose backup
                choose boot,data,android-secure,system to restore
            Clockwork nandroid restore
                choose backup and immediately restore the whole thing
        Install from sdcard
            choose item to install:
                APK, ZIP, IMG, (must end in rec.img or boot.img) .TAR, .TGZ
                    Preinstall Menu
                        Abort Install
                        Backup before install (make a quick backup of the device naming it preinstall-date-time)
                        Wipe data 
                        Perform install
                            if(APK)
                                Abort APK install
                                Install to system
                                Install to data
        Extras menu
            Custom Colors
                Random - randomly generated color, will save to sdcard
                Any other color - will save to sdcard
                Rave mode - a totally random color each time the screen is redrawn (every key press)
            Show battery status - will show charge status, level, temperature if available
            Recovery overclocking
                Kernel will report the available CPU slots, pick one and it will set the max to your selection. Saves to sdcard
            ROM tweaks
                Disable OTA update downloads in ROM - will prevent android from downloading updates OTA
                Activate Root access in ROM
                    Yes - roots the current ROM (still requires the superuser.apk from chainsdd)
                    No - does nothing
                Dalvik bytecode tweaks
                    Disable bytecode verification
                    Enable bytecode verificaion
                        this deserves some explaining. saved the best for last :) In android, when executables are loaded, the dalvik VM will go 
    through each line of instructions and make sure it is valid, if it isn't (poorly written application) it will fix it to the best of its 
    
    ability. This verification process takes time. Disabling this will speed up all the operations on the phone and might even save some RAM. If 
    
    it doesn't work for you or causes apps to crash, re-enable the verifier here.
    
    So please, if you want this for your device just post here and I will try to get it done for you :)

    POSSIBLE CAVEATS

    Update.zip status 2: this means the update.zip you re trying to flash has an outdated update-binary (META-INF/com/google/android/update-binary). Please replace thi file in your zip with my version (from gingerbread) here: http://rzdroid.com/ftp/recovery/gingerbread/APIlevel3-update-binary

    Update.zip status 7: This means the script is not compatible with the update-binary. This will most likely happen after you replace the update-binary in an outdated update.zip. The most common errors are that the mount and format commands now take extra arguments. you must pass the filesystem type like so:
    OLD:
    Code:
    format("MTD", "system");
    mount("MTD", "system", "/system");
    
    NEW:
    Code:
    format("MTD", "yaffs2", "system");
    mount ("MTD", "yaffs2", "system", "/system");
    
    Not the addition of the filesystem type. No idea why they changed this, seems like since it now uses recovery.fstab that this info could simply be figured out. or maybe I will implement a method of checking for status 7 and possibly telling it the filesystem information myself. Either way, this info will get you rolling now.
  2. mjoshea148
    Offline

    mjoshea148 New Member

    Joined:
    Feb 5, 2010
    Messages:
    103
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Methuen, Massachusetts
    Just want to make sure I'm installing this correctly. I simply flash the update through RZR (2.03) recovery, correct? If so, I become stuck at Motorola logo and end up having to RSD lite v 2.03. I repeated this a couple of times to the same result. Apologies if I'm missing the obvious instructions but I didn't see alternative way.
  3. 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
    there must be some incompatibility between the way the gingerbread img is created and what the original droid is expecting. I no longer have a droid but I'll find someone with one and do some more testing with it.
  4. mjoshea148
    Offline

    mjoshea148 New Member

    Joined:
    Feb 5, 2010
    Messages:
    103
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Methuen, Massachusetts
    Thanks! Was the correct recovery for this to flash RSDLite 2.03? After I did that and rebooted into ROM a lot of my settings for SS 5.5 were not working/gone.

    I restored to a backed up image and so far it seems okay. It's been so long since I rooted and wasn't sure of the correct procedure and guessed.

    Mike
  5. mmiillkkaa
    Offline

    mmiillkkaa New Member

    Joined:
    Feb 22, 2011
    Messages:
    36
    Likes Received:
    0
    Trophy Points:
    0
    I thought you were no longer developing for Motorola droid.. or was that just RZ Baseline?

    Sent from my DROID using DroidForums
  6. 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 no longer have a droid, and that is why my first attempt did not boot lol. I want to still support it though. I made a new img and will post it if I hear that it works.
  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
    1 person likes this.
  8. The Race To Die
    Offline

    The Race To Die Member

    Joined:
    May 19, 2010
    Messages:
    101
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Connecticut
    everything is working well for the d1, thanks for making a great recovery even better!
  9. mjoshea148
    Offline

    mjoshea148 New Member

    Joined:
    Feb 5, 2010
    Messages:
    103
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Methuen, Massachusetts
    Can anyone confirm - battery charging while in RZR is gone in this version?
  10. 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 did not disturb any of the charging stuff, it should still be there..

    in other news, the OP has been updated to provide update.zips for all the devices, a few new LG devices and some update.zip information :)
  11. bazar6
    Offline

    bazar6 Premium Member Theme Developer Premium Member

    Joined:
    Dec 15, 2009
    Messages:
    674
    Likes Received:
    8
    Trophy Points:
    18
    Location:
    MD
    Just so I do this properly... For the thunderbolt, just like I used to do on the OGDroid, I flash the raid zero recovery zip while in recovery, correct? I ask because I don't want to mix up Recovery and Hboot...

    Thanks for your awesome work Raid!
  12. 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
    That is correct. I came up with a new update.zip format that will work with all devices. It uses the recovery binary itself (what it is about to flash) to flash recovery, so that way there are no oddities when flashing recovery from any other recovery :)
  13. bazar6
    Offline

    bazar6 Premium Member Theme Developer Premium Member

    Joined:
    Dec 15, 2009
    Messages:
    674
    Likes Received:
    8
    Trophy Points:
    18
    Location:
    MD
    Sweet! Thanks for the quick response... and it works perfectly!! took me second to realize the "home" hardware button was to select an option. Thanks a ton!
  14. EFGantry
    Offline

    EFGantry New Member

    Joined:
    Mar 14, 2011
    Messages:
    362
    Likes Received:
    6
    Trophy Points:
    0
    just flashed the updated OG recovery, and can confirm that battery charging works in recovery.

    RZ, once again, outstanding work - many props!! can't wait to get some RZR on the GNex!! :D
  15. jerroedr
    Offline

    jerroedr New Member

    Joined:
    Aug 14, 2010
    Messages:
    1,192
    Likes Received:
    0
    Trophy Points:
    0
    RZ, can you explain the extra dalvik feature added?
  16. 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
    From the OP:

    Enable bytecode verificaion this deserves some explaining. saved the best for last :) In android, when executables are loaded, the dalvik VM will go through each line of instructions and make sure it is valid, if it isn't (poorly written application) it will fix it to the best of its ability. This verification process takes time. Disabling this will speed up all the operations on the phone and might even save some RAM. If it doesn't work for you or causes apps to crash, re-enable the verifier here.
  17. jerroedr
    Offline

    jerroedr New Member

    Joined:
    Aug 14, 2010
    Messages:
    1,192
    Likes Received:
    0
    Trophy Points:
    0
    oops, i missed that! thanks!
  18. circsmonky
    Offline

    circsmonky Premium Member Premium Member

    Joined:
    Apr 1, 2010
    Messages:
    608
    Likes Received:
    0
    Trophy Points:
    0
    YAY!!! finally for the TB, the one thing i miss from my D1
  19. chewy74
    Offline

    chewy74 New Member

    Joined:
    Apr 7, 2010
    Messages:
    1,352
    Likes Received:
    16
    Trophy Points:
    0
    The menu navigation when I toggle with volume button is a little sensitive. I click once to move down a selection and it usually overshoots what I want to select.

    Running on the d1

    ________________________
    You had me at herro
  20. metalspring
    Offline

    metalspring New Member

    Joined:
    Jan 9, 2011
    Messages:
    2,228
    Likes Received:
    24
    Trophy Points:
    0
    Location:
    hermitage, pa
    Won't work on my d1, I tried multiple downloads using wifi, tried flashing from clockwork and old rzrecovery but it keeps getting stuck at the m logo

    supercharged modified liquid 3.0 w/turbocharged 3g
    Pete's 5 slot lv 1.25GHz w/ kickasskernel tweaks
    19.8 linpack score
    1856 quadrant score
Search tags for this page
how to install rzrecovery compatibility
,
how to port rzrecovery to device
,
install rom with rzrecovery
,
ø¯ø§ù†ù„ùˆø¯ ø±ûŒú©ø§ùˆø±ûŒ rzr ø¨ø±ø§ûŒ htc
,
restore motorola droid
,
rz recovery droid
,
rz recovery droid x download
,

rzrecovery

,

rzrecovery download

,
rzrecovery droid
,

rzrecovery droid x

,
rzrecovery how to port
,
rzrecovery og droid download
,
update binary status 7
,
xt610 sbf rz recovery