• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!
  • Fill out your device list and let everyone know which phones you have!    Edit Your Device Inventory

Modded recovery and boot images

Search This thread

Denkai

Senior Member
May 25, 2009
441
60
Seattle, WA
OnePlus 8T
k ive rooted my phone and im on jf1.5 but i dont have the recover.img with test keys..so i need to update my recover.img to 1.3..so ive downloaded it i tried flashing it with fastboot and on my computer i get error device not found..so i read this thread and i think i read that u can just place the recovery.img on your sdcard and go to recovery mode and pass alt+S to update or so that wrong wha do i have to do if im already rooted with a hardspl and jf1.5 plz help i like to do a back-up so i can get jf1.5.1..thanx

looking at how the file is set up, I doubt it is signed, there for renaming it update and loading it through recovery is not an option. try using terminal and copy the file "recovery_testkeys.img " to /data/local/ and reboot. I'll try writing a terminal script, tell me how it works.

Copy "recovery_testkeys.img" to SD card root and unmount cell phone.

In Terminal you should get a $, type:
Code:
$ su <enter>
After a Permission request (say always) a # should appear
Code:
#mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system 
#cp -f recovery_testkeys.img /data/local/recovery.img
# cd /system
# cat /data/local/recovery.img > recovery.img
# flash_image recovery recovery.img
#reboot

your system should restart after this, while it is shutting off, press and hold home until your phone boots into the new recovery menu, if you goto bootloader (RGB screen) then something is a miss. yank your battery out and reboot without holding any buttons down at that point to get back into the system.
 
Last edited:

DroidRC1

Senior Member
May 25, 2009
1,033
247
Fort Wayne, Indiana
looking at how the file is set up, I doubt it is signed, there for renaming it update and loading it through recovery is not an option. try using terminal and copy the file "recovery_testkeys.img " to /data/local/ and reboot. I'll try writing a terminal script, tell me how it works.

Copy "recovery_testkeys.img" to SD card root and unmount cell phone.

In Terminal you should get a $, type:
Code:
$ su <enter>
After a Permission request (say always) a # should appear
Code:
#mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system 
#cp -f recovery_testkeis.img /data/local/recovery.img
# cd /system
# cat /data/local/recovery.img > recovery.img
# flash_image recovery recovery.img
#reboot

your system should restart after this, while it is shutting off, press and hold home until your phone boots into the new recovery menu, if you goto bootloader (RGB screen) then something is a miss. yank your battery out and reboot without holding any buttons down at that point to get back into the system.

i tried this and when i get to #cp -f recovery_testkeis.img /data/local/recovery.img and press enter..i get cp: cannot stat 'recovery_testkeys.img' : No such file or directory...but i place the recovery_testkeys.img in the root on my sdcard
 

mattaviles5

Member
Jan 26, 2009
9
1
Nothing will flash anymore.

Everytime i put my G1 into recovery mode to do a update.zip i get the error

E:Can't open /cache/recovery/command

and then when i try applying the update with alt+s i get the message

E:No signature (28 files)
E:Verification failed

I've never gotten these messages previously...anybody have advice or know what the problem is?

Thanks
 

corp769

Senior Member
Feb 8, 2009
212
1
Everytime i put my G1 into recovery mode to do a update.zip i get the error

E:Can't open /cache/recovery/command

and then when i try applying the update with alt+s i get the message

E:No signature (28 files)
E:Verification failed

I've never gotten these messages previously...anybody have advice or know what the problem is?

Thanks

Are you fully rooted? Most likely you messed something up, i have helped many people out already with this problem. Retrace your steps and make sure everything is flashed correctly and set up.
 

Amon_RA

Retired Senior Recognized Developer
Jan 2, 2009
1,295
400
The recovery image (recovery_testkeys.img) uses the test keys that are distributed with the android platform source. This means that an OTA update or an update.zip update must be signed with the test key in order for it to install.

I'm a bit confused...
How exactly is the recovery image using the test keys? I've unpacked recovery_testkeys.img and I don't find test-keys back?
If I would make my own recovery image, how do I tell it to use the test keys? Is it just a matter of signing the recovery.img file?
 

uries62

Member
Jul 16, 2005
35
0
Stuck at SPL

Would a fix like this help someone stuck at rainbow SPL screen? I did an OTA update to 1.6 and restart afterward went straight to SPL. I can't get out of it with normal restart. I have reflashed the phone successfully to RC29 with DREAIMG.nbh, and can access the recovery mode, to conduct updates (Though the CRC1 update fails when it attempts to apply a patch to recovery). When I restart or finish an update though, I get the the TMobile G1 screen followed directly by the SPL screen. No matter what I do, or what update I have applied, I cannot get past this screen.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    Here is a zip file containing a modified recovery and boot image, as well as a few other things:
    http://rapidshare.com/files/166164961/AndroidMod.zip
    http://jf.nyquil.org/AndroidMod.zip
    http://android-dls.com/forum/index.php?f=24&t=191&rb_v=viewtopic (see post for actual link to file)


    NOTE: if you need a complete RC30 to v1.3 guide, see this page.


    The recovery image (recovery_testkeys.img) uses the test keys that are distributed with the android platform source. This means that an OTA update or an update.zip update must be signed with the test key in order for it to install. In other words, it will no longer install OTA updates from t-mobile. You don't want them stealing back root access from you now do you? :).

    I've also included the test keys and the SignApk.jar tool, so you can sign your own update scripts (for use only with the modified recovery image). You can resign any image, even if it has been signed before. So for example, if you needed to install an "official" t-mobile update, you must re-sign it with the test keys first.

    Another bonus in this recovery image is that ADB is enabled while in recovery mode. You can't adb into a shell (no sh binary), but you can at least use it to push and pull files from the device. For example, you could push an update.zip file to the sdcard.


    The boot image (boot_nosecure.img) has been modified so that adb has root access by default. So when you do an adb shell, you automatically get a root shell. You can remount the system image using adb, and then push files directly to the system partition.


    Finally, the "update - Restore Original RC29 Boot Image.zip" file is an update.zip file signed with the test keys, which will restore your boot partition back to the stock RC29 image. Useful if you accidentally hose your boot partition..



    To install the recovery image onto your phone:

    Code:
    D:\Android\AndroidMod>adb push recovery_testkeys.img /data/local/recovery.img
    912 KB/s (0 bytes in 1767424.001s)
    
    D:\Android\AndroidMod>adb shell
    $ su
    su
    # mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
    mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
    # cd /system
    cd /system
    # cat /data/local/recovery.img > recovery.img
    cat /data/local/recovery.img > recovery.img
    # flash_image recovery recovery.img
    flash_image recovery recovery.img
    #


    Note: You must place the recovery image at /system/recovery.img. the init.rc boot script automatically flashes the recovery partition with that file every time you boot up the phone.

    At this point, it's probably a good idea to reboot the phone into recovery mode, and make sure it loads OK. If the recovery image is corrupt somehow, it will throw you back into SPL mode (the multi-color bootloader screen). If that happens, just boot the phone normally, and reflash recovery image.

    Once it boots into recovery mode, press alt+L, and the next to top line of text should say something like "using test keys.". If it doesn't, then you're still using the original recovery image.



    Note: If you are planning on installing the modified RC30 update, you can ignore the following - there is no need to install the boot image. The update already has a newer, modified boot image.


    Now that you know you have the modified recovery image loaded, you can install the boot image:

    Code:
    D:\Android\AndroidMod>adb push boot_nosecure.img /data/local/boot.img
    939 KB/s (0 bytes in 1533952.001s)
    
    D:\Android\AndroidMod>adb shell
    $ su
    su
    # flash_image boot /data/local/boot.img
    flash_image boot /data/local/boot.img
    # rm /data/local/boot.img
    rm /data/local/boot.img
    #

    Now reboot the phone and let it boot normally. If the boot image was corrupted, it will boot into recovery mode instead. You can use the included update zip file to reload the original RC29 boot image.

    Otherwise, if it boots up normally, open a command prompt however you like (telnet, adb, terminal emulator app, etc.) and type "getprop ro.secure". If it says 0, then you're running the modified boot image. Otherwise, if it says 1, you're still running the original boot image.
    1
    Look at the original post. I added a link for the zip file..

    thank you. Sorry