[MOD] [Update:5/5/2011] BootMenu - Recovery, 2nd Init , v0.5.1

Is this MOD helpful?

  • Yes

    Votes: 410 93.6%
  • No

    Votes: 28 6.4%

  • Total voters
    438
Search This thread

ksubedi

Inactive Recognized Developer
Nov 18, 2010
271
1,107
Boulder, CO, US
NOTICE: Sorry Guys, As i lost my defy, i will not be able to work for defy anymore :( So i will not be able to maintain this thread as well. Racca is maintaining another thread with updates for this bootmenu here which can now be called the official thread.

Hello XDA,

[Notice: You might have checked my signature and already figured out that i lost my Motorola Defy :( So i will be no longer able to develop anything for defy. I will not be able to edit the boot menu and optimize it, but i will still post all the updates i get from Korean Developers. I am sorry to say that i will not be able to work on porting MiUi to Defy anymore. I hope some other developer will handle the work and port MiUi to Defy. Just reply to this thread if you have anything. Thank You]

This is a pre-boot menu that loads just before the android system starts, which allows you to enter recovery, start adb daemon, run 2nd init script, run 2nd boot and few more. I recently changed the format of this post so that i can easily add updates, and i hope you guys don't mind it, and if you want to check the old post, here is the link. I have also added an unofficial changelog. This MOD was developed by Korean Developers at http://cafe.naver.com/androiders, so big thanks goes to them.

Status: Beta
Latest Version: v0.5.1

Last Update: 4/16/2011

Usage:

  • Load second init.rc file which enables you to do a lot of things that were not possible before.
  • Load custom recovery before booting os, which makes it possible to restore your nandroid backup or flash a new rom even if your system is not booting.
  • Run ADB Daemon to debug system boot using logcat or similar tools, very useful for developers.
  • Change the default boot to 2nd init, so you can load the 2nd init on default boot.
  • And much more....
Download:

  • Version 0.5.1 (Latest)
  • Version 0.5.0
  • Version 0.4.5
  • Version 0.3.1
  • Version 0.2.0
XDA-Developer Forum Members, Download Latest Attached File, Non-Members, Click Here.

Upgrading:


  • Simply follow the installation instructions, it will overwrite the old version and install the new one.

Installation:

  • Download the latest zip file.
  • Create a folder “bootmenu” on your sd card and extract all the files inside the zip file there.
  • Turn on usb debugging on your phone. And use the following commands in adb:
    C:/> adb shell
    $ su
    # cp -R /sdcard/bootmenu /data/bootmenu
    # cd /data/bootmenu
    # chmod 755 *
    # ./install.sh
    # rm -R /data/bootmenu
  • The bootmenu will be installed.
  • Turn off USB Debugging.
  • Restart your device once.
  • Check the Using "Pre Boot Menu" section for instructions on how to use.
Using Pre Boot Menu:

  • Turn your phone off.
  • Press the Power Button.
  • After 1-10 seconds, the blue led on your phone will light up for just 1.5 seconds (Still while the Motorola logo is being displayed).
  • Exactly when the led lights up, press the volume down button.
  • You will see the BootMenu, use the Volume Button to navigate up and down, and the power button to select an item.
Changelog:

Version 0.5.1

  • Bug Fixes
  • Minor Internal Script Changes
Version 0.5.0

  • Bug Fixes
  • Few Changes In UI (Background)
  • Updated All Scripts, Better Compatibility With Most ROMS
  • Changed Directory Structure
Version 0.4.5

  • Bug Fixes
  • Changed Name Of OpenRecovery To Custom Recovery
  • ADB Daemon Works Now
  • Few Minor Changes...
Version 0.3.1

  • Replaced Tenfar's Recovery With OpenRecovery
  • Added 2nd Init Script
  • Bug Fixes
  • Minor UI Enhancements
Version 0.2.0

  • Initial Release
  • Added BootMenu
  • Added Tenfar's Recovery
What Works:

  • BootMeu
  • ADB Daemon
  • 2nd Init
  • Custom Recovery
  • Default Recovery
  • Setting 2nd Init As Default
  • Reboot
  • Normal Boot
What Doesn't Work:

  • 2nd Boot (Can Be Done Via 2nd Init Though)
Credits:

  • Korean Developer "ohnholic" and Other Korean Developers for creating this
  • Korean Forum User "intohim" for providing me this file and helping me translate Korean things to English.
  • Korean Forum User "고봉현" for mailing me about the updates as soon as they are released, and also for providing some files.
  • XDA Developer "tenfar" for his ClockWorkMod Port To Defy.
  • Developer "Koushik Dutta" for ClockWorkMod.
  • XDA User "pedrodh" for creating an easy installer.
  • And everyone i forgot to mention....
Related Projects:

P.S. I do not take any responsibilities for the damages caused by this tool. If you brick your device, the most i can do is *help* you recover your system. So use it on your own. Works on my phone.
 

Attachments

  • bootmenu_v0.2.0_ksubedi.zip
    2 MB · Views: 2,008
  • bootmenu_v0.3.1_ksubedi.zip
    2.6 MB · Views: 446
  • bootmenu_v0.4.5_ksubedi.zip
    2.6 MB · Views: 938
  • bootmenu_v0.5.0_ksubedi.zip
    2.6 MB · Views: 737
  • bootmenu_v0.5.1_ksubedi.zip
    2.6 MB · Views: 20,525
Last edited:

ksubedi

Inactive Recognized Developer
Nov 18, 2010
271
1,107
Boulder, CO, US
does this mean custom kernels? once it gets figured out?

Well, not right now, but once the korean developers figure out a way to bypass the recovery signature verification, which is of course, not easy, we will be able to do that too. And according to what i kknow, the korean devs are working really hard on that. But this definitely means that we are one step closer. :)
 

mussio

Senior Member
Jul 25, 2009
121
13
CA Los Angeles
So for now this makes flashing Roms easier? safer? sorry if i seem confused i'm not getting my Defy till Monday just want to clarify if i should flash Roms this way or follow directions dor each rom, all this sbf files and being able to downgrade is kinda confusing I never had a android phone with a locked bootloader so all this is new to me.

hope that makes sense.
 

ksubedi

Inactive Recognized Developer
Nov 18, 2010
271
1,107
Boulder, CO, US
So for now this makes flashing Roms easier? safer? sorry if i seem confused i'm not getting my Defy till Monday just want to clarify if i should flash Roms this way or follow directions dor each rom, all this sbf files and being able to downgrade is kinda confusing I never had a android phone with a locked bootloader so all this is new to me.

hope that makes sense.

Well, this doesnt really make flashing roms easier (its same recovery), but it definitely makes it safer as you can always restore your nandroid or flash another rom even if your phone stops booting. And i can totally understand you, the way motorola works is a bit different than HTC and other phones, sbfs and stuff like that, but dont worry, if you read the guides here -> http://forum.xda-developers.com/showthread.php?t=919334 , you will understand everything. Enjoy :)
 
  • Like
Reactions: mussio

m11kkaa

Recognized Developer / Inactive Recognized Contrib
Jan 20, 2011
1,259
2,146
That are very great news!!
Does I have to install this after every new firmware-flash or only after a bootloader up/downgrade?
 
Last edited:

adlx.xda

Inactive Recognized Developer
Feb 4, 2010
1,541
1,752
Madrid
That sounds pretty awesome, will try later. I would have saved a lot of hours with that... anyway, I'll save them by now ;)

Sent from my Defy running adlxmod using Tapatalk
 

peetr_

Senior Member
Oct 28, 2010
2,332
2,179
I have not disabled USB debugging and I have M boot loop. Now reflashing to try again.

For everyone - do not forget to turn off usb debugging. Now it´s working and I am going to try it some more.

Edit: Finally the true, fully working recovery. With Tenfar´s recovery, this is the best developed thing for Defy, since Defy´s release
and it´s worth the donation. About only 5 minutes to recover bricked system.
I only hope some day adb will be working too, but this is great enough for now.
 
Last edited:

racca

Senior Member
Jun 4, 2009
247
85
Can't wait to see custom kernels :D

not possible unless someone can crack/get the lock

it's a great improvement but no where near custom kernels

afaik, this is another "bootstrap" executed on boot except it resumes normal boot after 2 seconds or so.

if we can get 2nd-init to work with it, we might finally be close to getting what milestone already have.
 

adlx.xda

Inactive Recognized Developer
Feb 4, 2010
1,541
1,752
Madrid
I have not disabled USB debugging and I have M boot loop. Now reflashing to try again.

For everyone - do not forget to turn off usb debugging. Now it´s working and I am going to try it some more.

Edit: Finally the true, fully working recovery. With Tenfar´s recovery, this is the best developed thing for Defy, since Defy´s release
and it´s worth the donation. About only 5 minutes to recover bricked system.
I only hope some day adb will be working too, but this is great enough for now.

Curious, just in case anyone has already tried and can give an answer: when installed, is outer persistent after you flash a sbf? Or is it overwritten by the sbf? Does anyone know? (i mean, afaik /pds isn't restored with sbf, mess with it and you get a brick! )

Sent from my Defy running adlxmod using Tapatalk
 

ksubedi

Inactive Recognized Developer
Nov 18, 2010
271
1,107
Boulder, CO, US
Any news from the Koreans who develop this recovery?

Sent from my MOTO Defy :)

Nope, i have just emailed "intohim" and asked him to come online, as he is the only one who can read korean, and the korean page doesnt work here for some reason. I will update as soon as i get a reply


Curious, just in case anyone has already tried and can give an answer: when installed, is outer persistent after you flash a sbf? Or is it overwritten by the sbf? Does anyone know? (i mean, afaik /pds isn't restored with sbf, mess with it and you get a brick! )

Sent from my Defy running adlxmod using Tapatalk

Sorry to say, but nope, this is not hardcoded in to rom or is not replaced in place of original recovery as the bootloader is still locked. And installing a sbf update is like replacing everything on the phone with the contents from sbf. So it wont work if you reflash the sbf, unless it is included in the mod or rom you installed. Some developers have just contacted me and said that they are going to include this on their rom. So future defy roms are going to be more safe :)
 

Top Liked Posts

  • There are no posts matching your filters.
  • 43
    NOTICE: Sorry Guys, As i lost my defy, i will not be able to work for defy anymore :( So i will not be able to maintain this thread as well. Racca is maintaining another thread with updates for this bootmenu here which can now be called the official thread.

    Hello XDA,

    [Notice: You might have checked my signature and already figured out that i lost my Motorola Defy :( So i will be no longer able to develop anything for defy. I will not be able to edit the boot menu and optimize it, but i will still post all the updates i get from Korean Developers. I am sorry to say that i will not be able to work on porting MiUi to Defy anymore. I hope some other developer will handle the work and port MiUi to Defy. Just reply to this thread if you have anything. Thank You]

    This is a pre-boot menu that loads just before the android system starts, which allows you to enter recovery, start adb daemon, run 2nd init script, run 2nd boot and few more. I recently changed the format of this post so that i can easily add updates, and i hope you guys don't mind it, and if you want to check the old post, here is the link. I have also added an unofficial changelog. This MOD was developed by Korean Developers at http://cafe.naver.com/androiders, so big thanks goes to them.

    Status: Beta
    Latest Version: v0.5.1

    Last Update: 4/16/2011

    Usage:

    • Load second init.rc file which enables you to do a lot of things that were not possible before.
    • Load custom recovery before booting os, which makes it possible to restore your nandroid backup or flash a new rom even if your system is not booting.
    • Run ADB Daemon to debug system boot using logcat or similar tools, very useful for developers.
    • Change the default boot to 2nd init, so you can load the 2nd init on default boot.
    • And much more....
    Download:

    • Version 0.5.1 (Latest)
    • Version 0.5.0
    • Version 0.4.5
    • Version 0.3.1
    • Version 0.2.0
    XDA-Developer Forum Members, Download Latest Attached File, Non-Members, Click Here.

    Upgrading:


    • Simply follow the installation instructions, it will overwrite the old version and install the new one.

    Installation:

    • Download the latest zip file.
    • Create a folder “bootmenu” on your sd card and extract all the files inside the zip file there.
    • Turn on usb debugging on your phone. And use the following commands in adb:
      C:/> adb shell
      $ su
      # cp -R /sdcard/bootmenu /data/bootmenu
      # cd /data/bootmenu
      # chmod 755 *
      # ./install.sh
      # rm -R /data/bootmenu
    • The bootmenu will be installed.
    • Turn off USB Debugging.
    • Restart your device once.
    • Check the Using "Pre Boot Menu" section for instructions on how to use.
    Using Pre Boot Menu:

    • Turn your phone off.
    • Press the Power Button.
    • After 1-10 seconds, the blue led on your phone will light up for just 1.5 seconds (Still while the Motorola logo is being displayed).
    • Exactly when the led lights up, press the volume down button.
    • You will see the BootMenu, use the Volume Button to navigate up and down, and the power button to select an item.
    Changelog:

    Version 0.5.1

    • Bug Fixes
    • Minor Internal Script Changes
    Version 0.5.0

    • Bug Fixes
    • Few Changes In UI (Background)
    • Updated All Scripts, Better Compatibility With Most ROMS
    • Changed Directory Structure
    Version 0.4.5

    • Bug Fixes
    • Changed Name Of OpenRecovery To Custom Recovery
    • ADB Daemon Works Now
    • Few Minor Changes...
    Version 0.3.1

    • Replaced Tenfar's Recovery With OpenRecovery
    • Added 2nd Init Script
    • Bug Fixes
    • Minor UI Enhancements
    Version 0.2.0

    • Initial Release
    • Added BootMenu
    • Added Tenfar's Recovery
    What Works:

    • BootMeu
    • ADB Daemon
    • 2nd Init
    • Custom Recovery
    • Default Recovery
    • Setting 2nd Init As Default
    • Reboot
    • Normal Boot
    What Doesn't Work:

    • 2nd Boot (Can Be Done Via 2nd Init Though)
    Credits:

    • Korean Developer "ohnholic" and Other Korean Developers for creating this
    • Korean Forum User "intohim" for providing me this file and helping me translate Korean things to English.
    • Korean Forum User "고봉현" for mailing me about the updates as soon as they are released, and also for providing some files.
    • XDA Developer "tenfar" for his ClockWorkMod Port To Defy.
    • Developer "Koushik Dutta" for ClockWorkMod.
    • XDA User "pedrodh" for creating an easy installer.
    • And everyone i forgot to mention....
    Related Projects:

    P.S. I do not take any responsibilities for the damages caused by this tool. If you brick your device, the most i can do is *help* you recover your system. So use it on your own. Works on my phone.
    19
    I have successfully launched the CM7 on defy!
    BT, 3D, Sd-card working :)

    I will create git on Github soon
    8
    I'm starting create CM7 for defy... with 2nd-init :) 2nd-boot not necessarily
    About result i'm will write here
    4
    Wifi now works:)
    I have problem with RIL. - no errors, and does not work...
    When RIL will be ready I'll post the first test version.

    The sources will be uploaded on the GIT as some free time ..... too many university studies.
    My GIT - https://github.com/Quarx2k
    4
    I've been following this topic and been playing around with this, I also have been playing with the recovery bootstrap coding in the last few days (thanks Tenfar by the way, for the help he gave me on that) so all that knowledge came in handy and now I'm sharing back with the community. I've put together a small app that installs this 2ndInit menu automatically, no need to push stuff to sdcard, or run scripts, etc, because the app does all that automatically. I've tested this on 3 Defy phones, works ok.

    Just install the apk, open the app called "Defy 2ndInit", press the button to install, and then reboot 2 times as indicated on the first post instructions, and all is installed and well. This is based on ksubedi work, and actually uses the tar.gz file from him (I hope you don't mind, if you do please tell), so great credit goes to him and others who helped on that.

    You guys can test, and let me know how it went with you. I'll update the app with newer versions of this MOD when they exist ;).
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone