Amon_RA style Recovery for Incredible Fully Working & New Features

Search This thread

drellisdee

Inactive Recognized Developer
Jan 22, 2008
625
823
East Coast
Everything Should Be Functioning Properly & Some Extra Features Have Been Added.

I love Amon_RA's recovery images and decided to make one using his source code for the Incredible to give us another option other than clockwork. This is my 2nd recovery I've made since switching to android from windows mobile about two weeks ago. Lg ally was the other Link here . This one I built with an ext-4 kernel I compiled so you can partition apps2sd with ext4 in recovery but remember your rom's kernel must support ext-4 too.

Link to Amon_RA's nexus one recovery thread as it has a good description of what all the features are Link here

To use if you have s-off download the PB31IMG_RA-inc-v1.7.0.6_GNM.zip and unzip it to get the PB31IMG.zip and copy that to the root of your sdcard. Boot phone holding down vol down and select yes to update.

To use with unrevoked recovery reflasher download the recovery-RA-v1.7.0.5.img and in recovery reflasher select file and custom recovery and navigate to where you downloaded the file.

Special Thanks:
Amon_RA for his source code Buy him a redbull
Team Unrevoked for the Recovery Reflasher and the S-off Link
Koush source code
worstenbrood source code for modded desire recovery

changelog v1.7.0.2 :
fixed data wiping and cache wiping as they are ext3 partitions not yaffs2
currently wiping cache can only be done with wipe cache not wipe data/factory reset
Thanks koush for the help
fixed flashing update.zips

changelog V1.7.0.3:
fixed small error in sd partitioning script

changelog V1.7.0.4 see attached pics
Added usb mount of phone's internal storage
Added toggle of signature verification on update.zips
Added gui mount umount menu

changelog V1.7.0.5
Changed nandroid-mobile.sh script to correctly backup and restore /data/data and backup and restore .android_secure on /emmc if selected.

Changelog V1.7.0.6
Fixed typo that caused nandroid to always restore most current backup.

Changes v1.8.1
Supports both Amoled and SLCD
Now supports Flashing from Emmc or Sdcard!!!
Has zip directory browsing from clockwork so zips are no longer needed in root of sdcard (thanks Koush & Amon-Ra)
Wipe Menu no longer uses scripts
Fix error in script for sd-ext upgrading
Fixed The sd-ext issues??
Updated the PB31IMG to be compatible with 3.26.605.1 and prior
Also in rom manager too!!!

Changes 2.2.1
Updated UI
Fixed zip progress menu in flashing
Fixed .android_secure backup back to sdcard from /emmc (was changed in the 11/10 htc update)
Expanded the UI for fuller listing of sdcard zips & dirs. (Thanks Amon_RA)
Still recommend making a folder called Custom_Roms on sd and placing update.zip's there
Selectable nandroid partitons gui for backup (Thanks Amon_Ra)
Now backs up sd-ext partiton as a whole if that option is selected in nandroid.
Downloadable from rom manager!!!
Fully working with gingerbread/cm7 and wipes all partitons correctly.
Added menu option to format /data partiton to ext4 and is able to reformat back to ext3 too. (See notes below)

Above option for ext4 requires a kernel with ext4 support and changing the mount line in init.inc.rc in boot.img/ramdisk from ext3 to ext4. This will enable mounting of the ext4 /data as ext4 instead of having the ext4 partition mounted as ext3. This formatting will persist through rom flashing and /data wiping but can be reverted via ext3 reformat option. Warning a non ext4 enabled kernel will not be able to mount an ext4 /data partition. If a ext3 data nandroid is restored to an ext4 formatted data partiton all the old files will work as ext3 and anything newly added will be in ext4 (best to start /data fresh to get full benefit of ext4 fs).

Example for changing init.inc.rc line in boot.img for cm7 (similar for stock rom on froyo too)

Code:
mount ext3 /dev/block/mmcblk0p1 /data wait nosuid noatime nodiratime

change to
Code:
mount ext4 /dev/block/mmcblk0p1 /data wait nosuid noatime nodiratime

Then repack boot.img and reflash.

Change log 3.02:
Nandroid now has the option to backup & restore .android_secure on /sdcard or /emmc (stock GB has .android_secure on /emmc)
Added busybox symlinks for mount & umount (now sense 3.0 roms that use busybox to mount in updater script work)
Added script to (re)format /emmc as ext3, ext4 or fat32 (run "partemmc help" from adb shell for use)
Added options in wipe menu to wipe /sdcard & /emmc
Wiping all or wipe .android_secure wipes it on both /sdcard and /emmc
Changed ui back to cyan colors.
Updated /data as ext4 to wipe /datadata also.
Nandroid now suppressed backup of /datadata also when selecting to not backup /data partition
File system type for /cache, /data, /sd-ext and /emmc are auto detected so you can use alternate filesystems (rom kernel & boot.img permitting)
As always properly wipes and you can use update-script or updater-script (amend or edify)
Added flash_eraseall binary this can be used to fix a corrupted nand mtd(not emmc) by erasing it then you can reflash it. Use is "adb shell flash_eraseall /dev/mtd/mtdX" where X is the number of the mtd you wish to erase.

Changelog: 3.06
Added ability to restore CWM backups.
Compiled for armv7a-neon so its faster.
Rewrote the ext3|4 menu to use C not scripts
Added a developer menu:

Developer menu:
Make and flash boot from zimage : This makes a mkboot folder on sdcard and mounts sdcard as mass storage then you copy a zImage and kernel modules into this folder and it will create a new boot like anykernel and flash it.
Toggle full ext wipe : This toggles between doing a quick wipe (default) of ext partitions or a full wipe which reformats them.
Install su & superuser: Installs or fixes su & superuser install (removes old if exists)
Install eng (unguarded) su: Installs engineering su that doesn't use superuser (removes old su & superuser if exists)
Reboot to bootloader: reboots to bootloader/hboot
Reboot recovery : reboots phone back into recovery


Downloads:

Source

recovery-ra-dinc-3.06-gnm.img
MD5 : c280fc5cfacf1018211f9ed4ffd42d87 recovery-ra-dinc-3.06-gnm.img

Old PB31IMG_RA-inc-v1.7.0.3_GNM.zip
MD5= d8aae2598c6f7b3f441bbea2ba35beb1

Old PB31IMG_RA-inc-v1.7.0.4_GNM.zip
MD5= 92d187e7b4bc6553e6daa369af8e55ce

Old PB31IMG_RA-inc-v1.7.0.5_GNM.zip
MD5= 832a1980c30a7dd7dd7751020bf2fb45

Old recovery-RA-v1.7.0.5_GNM.img for recovery reflasher
MD5=30a78ffca87de656a6a77246af6ff6e8

Old PB31IMG_RA_inc_1.7.0.6.zip
MD5= 2f0210ee1ede2bfd0f80af5f07c6da5c

Old PB31IMG_RA_inc_1.8.1_GNM.zip
MD5 9d6da2a06219651eb9be82872570b510

Old PB31IMG_RA_inc_v2.2.1_GNM.zip
MD5 84b5bae5c5adc4936e3a48c742cc03e4

PB31IMG-RA-3.02-GNM.zip
MD5 3efae04dc59bdaf4ea7bb18aea5b208d PB31IMG-RA-3.02-GNM.zip

Buy me a energy drink Follow me on twitter @getitnowmarket
 

Attachments

  • inc_recovery1png.jpg
    inc_recovery1png.jpg
    16.9 KB · Views: 5,503
  • inc_recovery2.jpg
    inc_recovery2.jpg
    13.8 KB · Views: 3,910
  • inc_recovery3.jpg
    inc_recovery3.jpg
    15.9 KB · Views: 3,665
  • inc_recovery4.jpg
    inc_recovery4.jpg
    14.9 KB · Views: 3,548
Last edited:

the337

Senior Member
Jun 5, 2010
166
2
what's the difference between this and clockwork? i'm not trying to instigate anything. clockwork is the only recovery that i've used but from reading that linked thread it looks like maybe it has a few more features? i'm not sure. the UI between the two seem somewhat similar too.
 

nstavr

Senior Member
Sep 15, 2009
77
3
Haven't tried it, but it's always nice to have options. Thanks for taking the time to put this together!
 

Ruben1123

Senior Member
Dec 19, 2008
130
0
Is there a way to go back to clockwork if we don't like this.

Sent from my Incredible using XDA App
 

siafu

Member
Jan 15, 2007
25
0
Thanks for this. You helped me with my Ally already (which works great now), and now the Incredible. Thanks again!
 

rynosaur

Senior Member
Nov 29, 2008
765
28
Dekalb
Very well done, sir! I was missing my Amon_RA from my G1 days and this has hit the spot. I checked the md5 sums, applied your image file with flash_image... then powered off and manually booted into recovery from bootloader/hboot, to avoid boot mode 3, a little lesson also learned from my G1 days ;)

Now all that's left is to put in a nice blue care bear for a background and remove the plug for your company and we'll be all set! :p

Sent from my Incredible using XDA App
 

drellisdee

Inactive Recognized Developer
Jan 22, 2008
625
823
East Coast
Im having trouble with the wipe data command as "userdata" mtd on this phone is called "datadata" and is not wiping. Will re-release once fixed. Other than that its fully functional.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 3
    Everything Should Be Functioning Properly & Some Extra Features Have Been Added.

    I love Amon_RA's recovery images and decided to make one using his source code for the Incredible to give us another option other than clockwork. This is my 2nd recovery I've made since switching to android from windows mobile about two weeks ago. Lg ally was the other Link here . This one I built with an ext-4 kernel I compiled so you can partition apps2sd with ext4 in recovery but remember your rom's kernel must support ext-4 too.

    Link to Amon_RA's nexus one recovery thread as it has a good description of what all the features are Link here

    To use if you have s-off download the PB31IMG_RA-inc-v1.7.0.6_GNM.zip and unzip it to get the PB31IMG.zip and copy that to the root of your sdcard. Boot phone holding down vol down and select yes to update.

    To use with unrevoked recovery reflasher download the recovery-RA-v1.7.0.5.img and in recovery reflasher select file and custom recovery and navigate to where you downloaded the file.

    Special Thanks:
    Amon_RA for his source code Buy him a redbull
    Team Unrevoked for the Recovery Reflasher and the S-off Link
    Koush source code
    worstenbrood source code for modded desire recovery

    changelog v1.7.0.2 :
    fixed data wiping and cache wiping as they are ext3 partitions not yaffs2
    currently wiping cache can only be done with wipe cache not wipe data/factory reset
    Thanks koush for the help
    fixed flashing update.zips

    changelog V1.7.0.3:
    fixed small error in sd partitioning script

    changelog V1.7.0.4 see attached pics
    Added usb mount of phone's internal storage
    Added toggle of signature verification on update.zips
    Added gui mount umount menu

    changelog V1.7.0.5
    Changed nandroid-mobile.sh script to correctly backup and restore /data/data and backup and restore .android_secure on /emmc if selected.

    Changelog V1.7.0.6
    Fixed typo that caused nandroid to always restore most current backup.

    Changes v1.8.1
    Supports both Amoled and SLCD
    Now supports Flashing from Emmc or Sdcard!!!
    Has zip directory browsing from clockwork so zips are no longer needed in root of sdcard (thanks Koush & Amon-Ra)
    Wipe Menu no longer uses scripts
    Fix error in script for sd-ext upgrading
    Fixed The sd-ext issues??
    Updated the PB31IMG to be compatible with 3.26.605.1 and prior
    Also in rom manager too!!!

    Changes 2.2.1
    Updated UI
    Fixed zip progress menu in flashing
    Fixed .android_secure backup back to sdcard from /emmc (was changed in the 11/10 htc update)
    Expanded the UI for fuller listing of sdcard zips & dirs. (Thanks Amon_RA)
    Still recommend making a folder called Custom_Roms on sd and placing update.zip's there
    Selectable nandroid partitons gui for backup (Thanks Amon_Ra)
    Now backs up sd-ext partiton as a whole if that option is selected in nandroid.
    Downloadable from rom manager!!!
    Fully working with gingerbread/cm7 and wipes all partitons correctly.
    Added menu option to format /data partiton to ext4 and is able to reformat back to ext3 too. (See notes below)

    Above option for ext4 requires a kernel with ext4 support and changing the mount line in init.inc.rc in boot.img/ramdisk from ext3 to ext4. This will enable mounting of the ext4 /data as ext4 instead of having the ext4 partition mounted as ext3. This formatting will persist through rom flashing and /data wiping but can be reverted via ext3 reformat option. Warning a non ext4 enabled kernel will not be able to mount an ext4 /data partition. If a ext3 data nandroid is restored to an ext4 formatted data partiton all the old files will work as ext3 and anything newly added will be in ext4 (best to start /data fresh to get full benefit of ext4 fs).

    Example for changing init.inc.rc line in boot.img for cm7 (similar for stock rom on froyo too)

    Code:
    mount ext3 /dev/block/mmcblk0p1 /data wait nosuid noatime nodiratime

    change to
    Code:
    mount ext4 /dev/block/mmcblk0p1 /data wait nosuid noatime nodiratime

    Then repack boot.img and reflash.

    Change log 3.02:
    Nandroid now has the option to backup & restore .android_secure on /sdcard or /emmc (stock GB has .android_secure on /emmc)
    Added busybox symlinks for mount & umount (now sense 3.0 roms that use busybox to mount in updater script work)
    Added script to (re)format /emmc as ext3, ext4 or fat32 (run "partemmc help" from adb shell for use)
    Added options in wipe menu to wipe /sdcard & /emmc
    Wiping all or wipe .android_secure wipes it on both /sdcard and /emmc
    Changed ui back to cyan colors.
    Updated /data as ext4 to wipe /datadata also.
    Nandroid now suppressed backup of /datadata also when selecting to not backup /data partition
    File system type for /cache, /data, /sd-ext and /emmc are auto detected so you can use alternate filesystems (rom kernel & boot.img permitting)
    As always properly wipes and you can use update-script or updater-script (amend or edify)
    Added flash_eraseall binary this can be used to fix a corrupted nand mtd(not emmc) by erasing it then you can reflash it. Use is "adb shell flash_eraseall /dev/mtd/mtdX" where X is the number of the mtd you wish to erase.

    Changelog: 3.06
    Added ability to restore CWM backups.
    Compiled for armv7a-neon so its faster.
    Rewrote the ext3|4 menu to use C not scripts
    Added a developer menu:

    Developer menu:
    Make and flash boot from zimage : This makes a mkboot folder on sdcard and mounts sdcard as mass storage then you copy a zImage and kernel modules into this folder and it will create a new boot like anykernel and flash it.
    Toggle full ext wipe : This toggles between doing a quick wipe (default) of ext partitions or a full wipe which reformats them.
    Install su & superuser: Installs or fixes su & superuser install (removes old if exists)
    Install eng (unguarded) su: Installs engineering su that doesn't use superuser (removes old su & superuser if exists)
    Reboot to bootloader: reboots to bootloader/hboot
    Reboot recovery : reboots phone back into recovery


    Downloads:

    Source

    recovery-ra-dinc-3.06-gnm.img
    MD5 : c280fc5cfacf1018211f9ed4ffd42d87 recovery-ra-dinc-3.06-gnm.img

    Old PB31IMG_RA-inc-v1.7.0.3_GNM.zip
    MD5= d8aae2598c6f7b3f441bbea2ba35beb1

    Old PB31IMG_RA-inc-v1.7.0.4_GNM.zip
    MD5= 92d187e7b4bc6553e6daa369af8e55ce

    Old PB31IMG_RA-inc-v1.7.0.5_GNM.zip
    MD5= 832a1980c30a7dd7dd7751020bf2fb45

    Old recovery-RA-v1.7.0.5_GNM.img for recovery reflasher
    MD5=30a78ffca87de656a6a77246af6ff6e8

    Old PB31IMG_RA_inc_1.7.0.6.zip
    MD5= 2f0210ee1ede2bfd0f80af5f07c6da5c

    Old PB31IMG_RA_inc_1.8.1_GNM.zip
    MD5 9d6da2a06219651eb9be82872570b510

    Old PB31IMG_RA_inc_v2.2.1_GNM.zip
    MD5 84b5bae5c5adc4936e3a48c742cc03e4

    PB31IMG-RA-3.02-GNM.zip
    MD5 3efae04dc59bdaf4ea7bb18aea5b208d PB31IMG-RA-3.02-GNM.zip

    Buy me a energy drink Follow me on twitter @getitnowmarket
    1
    I'm not able to see my whole SD card in flash zip menu. It only let's me scroll down to the c's. basically any thing that is off screen I can't scroll down to. Any suggestions?

    Sent from my ADR6300 using XDA App

    Its a known issue and there is no fix. Read the previous posts.
    1
    I think you need to be s off for flashing cstm recovery...

    Sent from my ADR6300 using XDA App

    yes you need s-off

    Updated to version 2.2.1. New version is in rom manager as I haven't had time to upload hboot version. Checkout the ext4 /data feature.
    1
    Updated to new version

    Updated to version 3.02 hboot zip is in 1st post.

    Change log 3.02:
    Nandroid now has the option to backup & restore .android_secure on /sdcard or /emmc (stock GB has .android_secure on /emmc)
    Added busybox symlinks for mount & umount (now sense 3.0 roms that use busybox to mount in updater script work)
    Added script to (re)format /emmc as ext3, ext4 or fat32 (run "partemmc help" from adb shell for use)
    Added options in wipe menu to wipe /sdcard & /emmc
    Wiping all or wipe .android_secure wipes it on both /sdcard and /emmc
    Changed ui back to cyan colors.
    Updated /data as ext4 to wipe /datadata also.
    Nandroid now suppressed backup of /datadata also when selecting to not backup /data partition
    File system type for /cache, /data, /sd-ext and /emmc are auto detected so you can use alternate filesystems (rom kernel & boot.img permitting)
    As always properly wipes 2.1 up to CM7 and you can use update-script or updater-script (amend or edify)
    Added flash_eraseall binary this can be used to fix a corrupted nand mtd(not emmc) by erasing it then you can reflash it. Use is "adb shell flash_eraseall /dev/mtd/mtdX" where X is the number of the mtd you wish to erase.
    1
    It is FAT32 and named PB31IMG.zip but it still won't flash. HBOOT just says no image. It is also in /sdcard. I'm trying to flash the latest recovery.

    Are you sure its not named PB31IMG.zip.zip. Else if still having trouble unzip and place recovery.img on root of sd xard and boot current recovery. Adb shell flash_image recovery /sdcard/recovery.img

    Then reboot