Android OS Forum banner
1 - 20 of 558 Posts

·
Premium Member
Joined
·
223 Posts
11/25/11 - 2.1.3 Released!


---------------------------------
OVERVIEW
---------------------------------
*RZrecovery*:
-=overclock settings=-
-=Arbitrary update.zip selection with folder support. (do not have to rename 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=-
-=Ability to install APK's, IMG's, ZIP's, TAR's, TGZ's from the same menu=-
-=Wipe battery statistics=-
-=Battery charging!=-
-=Delete/Compress existing backups=-
-=Ability to root any ROM as plugin (with superuser.apk)=-
-=13 predefined colors + random color selection=-
-=RootzWiki theme=-
-=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=-
-=option to auto reboot following backup/restore/install=-
-=Hold volume keys to scroll=-
-=Touch screen scrolling on some devices=-
-=Davlik bytecode verification disable/enable as plugin=-​
-=Queue up to 50 ZIP's, APK's, TAR's, IMG's for install=-​
-=Fully automated install menu=-​
-=Ability to reboot device from shell=-​
-=Stamp nandroid backup with version of android that is being backed up=-​
-=SD-EXT nandroid support=-​
-=Nandroid will ask if you would like to force operation with insufficient battery=-​
-=Fix Permissions=-​
-=Full screen experience=-​
-=Plugins! (see other thread)=-​

--------------------------------​
CHANGELOG​
--------------------------------​
Code:
[/center]<br />
[center]2.1.3<br />
-----<br />
Added "fix_permissions" from clockwork to the ROM tweaks menu<br />
Updated busybox to 1.19.3<br />
Increased the number of rows on the screen to 43 (full screen at 480x800)<br />
Moved progress bars to bottom of the screen<br />
Added option to auto reboot following existing nandroid compression<br />
Add ability to reset the progress bar from shell scripts<br />
Added progress bar reset command to end of pipeline (nandroid function that draws progrerss bars) - should prevent it from ever drawing out bounds<br />
Take away all nandroid progress bars if progress is not shown - I left some indeterminates in there by mistake<br />
Clean up a lot of nandroid - should be slightly faster since it will only make certain calculations if necessary<br />
Added recovery log files to the read & write files routines so that logs aren't lost when wiping cache<br />
Added plugins system/"API" - this will have its own thread<br />
Moved nandroid perform restore to top of the list (select it without choosing a backup to restore the latest)<br />
Added sd-ext suppot for nandroid<br />
Implemented a zip/img/apk/tar install queue<br />
Leaving the preinstall menu will return to file selection, not the home screen<br />
Added option to reboot following install<br />
Changed preinstall menu to allow for unattended operation, like nandroid<br />
Repackaged ROM Tweaks menu items as individual plugins and made an update.zip to install them<br />
Root ROM plugin now includes superuser.apk<br />
Tagged backups with the version of android (if available), should help make them stand out<br />
Added menu to inform user when they do not have sufficient battery power for nandroid, option to continue or abort<br />
Added ability to reboot device to android from the shell (reboot_android)<br />
[/center]<br />
[center]2.1.2<br />
-----<br />
Added gzip compression option for nandroid<br />
Added cache support for nandroid<br />
Added ability to auto reboot after successful nandroid operation<br />
Added timer to nandroid<br />
Added diskspace required/available/used readout to nandroid<br />
Added ability to delete nandroid backups<br />
Added check if nandroid reports out of space, to ask the user if they'd like to delete a backup<br />
Added question function to get yes/no answers from users (used in nandroid out of space)<br />
Added confirm question function used for wipe menu<br />
Sort nandroid backup selection list<br />
Rewrote wipe menu to use new confirm routine<br />
Added preference "savepoints" throughout system to try to ensure custom colors/overclock/icon is not lost<br />
Added ability to compress an existing nandroid backup<br />
Fixed ext3 wipe erroneous failure on some devices<br />
Added progress bar reset commands to installer to compenstae for update.zips that don't reset it<br />
Removed grey rootzwiki theme<br />
Added cache wipe to preinstall menu<br />
<br />
nandroid times & sizes (Nexus S 4G @ 1200 MHz - boot, data, cache, system, android-secure)<br />
uncompressed backup: used 512 MB SD space, 130 seconds<br />
compressed backup: used 328 MB SD space, 514 seconds<br />
<br />
uncompressed restore: unpacked 512 MB, 118 seconds<br />
compressed restore: unpacked 328 MB, 131 seconds<br />
<br />
---------------------------------
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 (after a lot of work... Remember, I *do not* know C), 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:​

---------------------------------
CONFIRMED
---------------------------------
HTC Thunderbolt
Samsung Nexus S
Samsung Nexus S 4G
HTC Incredible/Incredible S/ Incredible 2
HTC EVO 4G
HTC Ace
HTC Leo
T-mobile myTouch 4G

---------------------------------
EXPERIMENTAL
---------------------------------
HTC Dream/Sapphire/Magic
HTC Click/Tattoo
HTC Aria
HTC Wildfire
HTC Legend
HTC Desire/Desire CDMA/Desire S/ Desire HD
HTC Hero/Hero CDMA
LG Optimus S
LG Optimus 1
LG Optimus V
LG Optimus 2X
Motorola Cliq/ Cliq XT
Motorola Backflip
Motorola Atrix - capacitive buttons dont work

PLEASE: IF ANY OF THESE EXPERIMENTAL BUILDS WORK, PLEASE POST AND LET ME KNOW SO THAT I MAY MOVE THEM TO THE CONFIRMED SECTION

---------------------------------
SCREENSHOTS
---------------------------------






View all (in case forums limit the amount of images shown): http://rzdroid.com/f...2.1.3/view.html
---------------------------------
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
all the testers for testing and encouragement!

---------------------------------
DOWNLOADS
---------------------------------
I have tried to create an update.zip template for myself that will correctly flash recovery on any device, but if it fails, well... If a zip fails to load then there's probably a reason, and I do not advise forcing a flash. However, if flash_image didn't work the first time you can always extract the IMG from the zip and fastboot it or use something similar to flash it. This may or may not work, and your device may even use a totally different recovery format.
If the device is listed in the experimental section, it means it is untested. I don't know if it will even boot.

DISCLAIMER: Not that this needs to be said, but by downloading any of the files below, you take full responsibility for what happens with
them. Make sure you have a way out if something goes wrong. The devices above are in the experimental section for a reason!

These are update.zip files meant to be run from recovery. They are NOT hboot files.

EVO/EVO 4G: http://rzdroid.com/f...onic-update.zip
MYTOUCH 4G: http://rzdroid.com/f...cier-update.zip
HTC THUNDERBOLT: http://rzdroid.com/f...echa-update.zip
SAMSUNG NEXUS S: http://rzdroid.com/f...espo-update.zip
SAMSUNG NEXUS S 4G: http://rzdroid.com/f...po4g-update.zip
HTC INCREDIBLE: http://rzdroid.com/f...-inc-update.zip
HTC INCREDIBLE 2: http://rzdroid.com/f...ivow-update.zip
HTC INCREDIBLE S: http://rzdroid.com/f...vivo-update.zip
LG OPTIMUS 1: http://rzdroid.com/f...derg-update.zip
LG OPTIMUS 2X: http://rzdroid.com/f...p990-update.zip
LG G2X: http://rzdroid.com/f...p999-update.zip
HTC LEO: http://rzdroid.com/f...-leo-update.zip
HTC DREAM/SAPPHIRE: http://rzdroid.com/f...hire-update.zip
HTC ACE: http://rzdroid.com/f...-ace-update.zip
HTC DESIRE http://rzdroid.com/f...ravo-update.zip
HTC DESIRE (CDMA): http://rzdroid.com/f...avoc-update.zip
HTC WILDFIRE: http://rzdroid.com/f...buzz-update.zip
HTC CLICK: http://rzdroid.com/f...lick-update.zip
MyTouch Slide: http://rzdroid.com/f...esso-update.zip
HTC HERO: http://rzdroid.com/f...hero-update.zip
HTC HERO (CDMA): http://rzdroid.com/f...eroc-update.zip
HTC LEGEND: http://rzdroid.com/f...gend-update.zip
HTC ARIA: http://rzdroid.com/f...erty-update.zip
MOTO CLIQ: http://rzdroid.com/f...ison-update.zip
MOTO BACKFLIP: http://rzdroid.com/f...otus-update.zip
MOTO ATRIX: http://rzdroid.com/f...mpus-update.zip
HTC SAGA: http://rzdroid.com/f...saga-update.zip
HTC VISION: http://rzdroid.com/f...sion-update.zip
MOTO CLIQ XT: http://rzdroid.com/f...elin-update.zip
HTC ZERO: http://rzdroid.com/f...zero-update.zip

PLUGINS BUNDLE (root ROM, fix permissions, disable OTA, dalvik bytecode disable): http://rzdroid.com/ftp/recovery/gingerbread/2.1.3/plugins/RZR-plugins-bundle-update.zip

---------------------------------
SOURCE
---------------------------------
https://github.com/r...ree/gingerbread

---------------------------------
PORTING
---------------------------------
Clone the above git repo into an AOSP source tree at bootable/recovery. Make a device setup (or use one from CM) and let it go. You might
have to compile the entire system before you can make just a recovery img. If using CM, you can probably do

Code:
<br />
make out/target/product/DEVICE/recovery.img<br />
and it will compile the required software to make recovery. I wish I could say it is that easy. For many devices it is, but for ones that
use newer technology like samsung's new initramfs format, you're on your own trying to make a kernel with a built in initramfs containing
RZR - you have to compile the kernel and build the ramdisk into it, instead of marrying a ramdisk img to a zImage into a recovery.img, you
get a zImage file, but it contains the kernel as well as the ramdisk.

If you do get it booting, but something doesn't work correctly, let me know so I can try to work with you and get it fixed. I only have a
Nexus S 4G to work with.

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

Code:
<br />
Main screen<br />
	Reboot android<br />
	Reboot recovery<br />
	Reboot bootloader<br />
	Power off<br />
	Wipe menu<br />
		Wipe all - wipe everything on the device except recovery<br />
		Wipe system (the ROM)<br />
		Wipe data (your applications and settings)<br />
		Wipe .android-secure (other applications and settings on sdcard)<br />
		Wipe boot (the main android kernel)<br />
		Wipe cache<br />
		Wipe battery stats<br />
		Wipe dalvik cache (cache of optimized dalvik executables)<br />
	Mount menu<br />
		Mount/unmount system (the ROM)<br />
		Mount/unmount data (apps and settings)<br />
		Mount/unmount sdcard<br />
		Enable/Disable USB Mass storage<br />
	Nandroid menu<br />
		Nandroid Backup<br />
			Perform backup<br />
			choose boot,data,android-secure,system,cache to back up<br />
		select if you want to auto reboot upon successful backup<br />
		Nandroid restore<br />
			Choose backup<br />
			choose boot,data,android-secure,system,cache to restore<br />
		select if you want to auto reboot upon successful restore<br />
		Compress existing backup<br />
			Choose backup<br />
			perform compression<br />
		Delete backup<br />
			Choose backup<br />
			Perform deletion<br />
	Install from sdcard<br />
		choose item to install:<br />
			APK, ZIP, IMG, (must end in rec.img or boot.img) .TAR, .TGZ<br />
				Preinstall Menu<br />
					Toggle backup before install (make a quick backup of the device naming it preinstall-date-time)<br />
					Toggle wipe data<br />
					Toggle wipe cache<br />
					Add to install queue<br />
					Clear install queue<br />
					Abort install<br />
	   	 Perform install(s)<br />
						if(APK)<br />
							Abort APK install<br />
							Install to system<br />
							Install to data<br />
	Extras menu<br />
		Custom Colors<br />
			Random - randomly generated color, will save to sdcard<br />
			Any other color - will save to sdcard<br />
			Rave mode - a totally random color each time the screen is redrawn (every key press)<br />
		Show battery status - will show charge status, level, temperature if available<br />
		Recovery overclocking<br />
			Kernel will report the available CPU slots, pick one and it will set the max to your selection. Saves to sdcard<br />
	    Plugins (if plugins are installed)<br />
 

·
Premium Member
Joined
·
223 Posts
Discussion Starter · #5 ·
poontab said:
From his ftp on rzdroid.com <--- the gingerbread branch.

Back-up & restore were lightning fast now I'm gonna see if I can package this for hboot.
:) email it to me and I'll host it instead of the img .. thanks!
 

·
Registered
Joined
·
2,321 Posts
raidzero said:
:) email it to me and I'll host it instead of the img .. thanks!
My initial attempt failed. I'll keep staring at it though. Seriously this thing is fast. Huge thanks RZ!

For noobs though terminal:
*Substitute the "XXXXXXX" for your exact file name.
*Point to the proper directory if need be.
Code:
su<br />
<br />
flash_image recovery /sdcard/RZR-XXXXXXX.img<br />
Or adb:

Code:
adb shell<br />
<br />
flash_image recovery /sdcard/RZR-XXXXXXX.img<br />
<br />
sync
 

·
Premium Member
Joined
·
223 Posts
Discussion Starter · #8 ·
or fastboot

Code:
<br />
fastboot flash recovery /path/to/RZR-2.1.0-device.img<br />
:)
 

·
Premium Member
Joined
·
223 Posts
Discussion Starter · #10 ·
poontab said:
Ok I've run into an issue. The CWM restore is working but the (RZR) nand is not. I tried it out earlier & could have sworn it worked but I wanted to do it again to time it. Upon (RZR) nand restore I'm thinking it's not restoring the sys.
wipe all and try again? works for all the devices I tested it on (Nexus S, Nexus S 4g, Incredible 2, Thunderbolt)
 

·
Registered
Joined
·
2,321 Posts
raidzero said:
wipe all and try again? works for all the devices I tested it on (Nexus S, Nexus S 4g, Incredible 2, Thunderbolt)
hmmm... Tried it 4 times with no succes. Like I said I could have sworn it worked before but now after a (RZR) nand restore it won't get past fastboot. I'm just going to start from scratch & see what happens.

*Love Rave Mode BTW

*No go. I've tried everything I can think of (which isn't much). Just keeps booting straight to fastboot like there is no system after a nand restore. Watched it go through the back-up & restore process with no errors though.
 

·
Registered
Joined
·
2,321 Posts
Ok so I've got it narrowed down a little further than "huh?" on the Dinc. I checked the nandroid folder & the kernel boot.img that is backed up is 0 bytes. Ran another backup with the same results.

I went back in & ran a nandroid restore. Then tried to flash a kernel to get it booting but received this error:

E:Error in /path/to/kernel/kernel.zip
(Status 2)
Installation aborted

*Ok so I went on ahead & restored a backup then sent a kernel via fastboot which also didn't allow a boot. So I guess it's not the boot.img alone.
 

·
Infinite Noob
Joined
·
362 Posts
Great job raidzero! LOVE seeing RZR on my TB!!

Sent from my ADR6400L using Tapatalk
 

·
Android Apprentice
Joined
·
214 Posts
Hey RZ,

Great work! I hope you don't mind me asking you the big question. Do you intend on making this available for the Galaxy Nexus w' ICS once it's rooted? It may be premature to ask but I gotta know. I'm sure there's a bunch of people like me who would like to know. Folks who love your recovery on their beloved O.G.'s, that they're about to put down to pick up the brand spanking new G-Nex.
 

·
Premium Member
Joined
·
223 Posts
Discussion Starter · #16 ·
poontab said:
Ok so I've got it narrowed down a little further than "huh?" on the Dinc. I checked the nandroid folder & the kernel boot.img that is backed up is 0 bytes. Ran another backup with the same results.

I went back in & ran a nandroid restore. Then tried to flash a kernel to get it booting but received this error:

E:Error in /path/to/kernel/kernel.zip
(Status 2)
Installation aborted

*Ok so I went on ahead & restored a backup then sent a kernel via fastboot which also didn't allow a boot. So I guess it's not the boot.img alone.
status 2 is out of date update-binary. Please replace the update-binary with one from gingerbread. I made on here:
http://rzdroid.com/ftp/recovery/gingerbread/APIlevel3-update-binary
 

·
Android Lover
Joined
·
346 Posts
raidzero said:
status 2 is out of date update-binary. Please replace the update-binary with one from gingerbread. I made on here:
http://rzdroid.com/ftp/recovery/gingerbread/APIlevel3-update-binary
I'm unsure of what this post means. What is the update-binary? Not trying to be a pain in the ass but when I open the link on my phone it's opening as a text file that just looks like a bunch of gibberish. Lol

Drunk texted from my CM7 Bolt
 

·
Premium Member
Joined
·
223 Posts
Discussion Starter · #20 ·
watson387 said:
I'm unsure of what this post means. What is the update-binary? Not trying to be a pain in the ass but when I open the link on my phone it's opening as a text file that just looks like a bunch of gibberish. Lol

Drunk texted from my CM7 Bolt
update-binary is the code for applying update.zips. this was taken out of the actual recovery a while ago. As the recovery ages, its API level changes. Since this recovery is based on gingerbread, it requires an update-binary from its own time. Simply replacing the update-binary in your update.zip (META-INF/com/google/android/update-binary) will fix status 2 errors :) Mine will also tell you on the screen if there any script errors during the install, others will just write this info into a log file
 
1 - 20 of 558 Posts
Top