Ir a contenido

  • Loguearse utilizando Facebook Log in with Twitter Log In with Google Conéctate
  • Regístrate

Foto

[RECOVERY][GSM/CDMA][ICS] Bootstrap BootMenu - version 0.2.7

- - - - -

  • Inicie sesion para responder
97 respuestas a este tema

#1
Pzyduck

Pzyduck

    Firmware Team Member

  • Super Moderador
  • 32098 Mensajes:
  • 161576 gracias
  • UbicacionLa Rioja
  • Equipo:RAZR HD XT925
  • ROM:Vodafone France Jelly Bean 4.1.2
  • Operadora:Personal
What is BootMenu?

BootMenu is like a second-stage loader. It run after Motorola bootloader and hijack android initial boot process. It allows you to to run custom command before booting android, run customized CWM-based recovery & booting from a second system partition. (Most people call this dual-booting.)

So, in summary, BootMenu is an almost complete package for toying with your phone.
It was specially design to work with our locked bootloader system & to prevent software brick.
(Trust me, you'll be using less fastboot after this)


Features


Quote:

Quote: Fail safe hijack operation :
  • Loaded on each boot.
  • Configurable timeout, auto-boot to default setting.
  • Force showing BootMenu when boot using BP HW Diag & Boot AP

Quote: CWM-based Recovery :
  • Based on latest open source CWM-5.5.0.4
  • Touch-able interface.(Experimental features)
  • Highly customized & added function like backup individual partition.
  • Safety features. - install BootMenu hijack, install root, backup & protect root.
  • Safe partition format operation (Won't do real format of our locked/signed partition, just rm -r *)
  • System integrity check on exit of recovery : ensure system is bootable in next boot
  • Auto-removed file protection flag : ensure 100% successful nandroid restore
  • Working ADB & Mass-storage : ADB service is available as soon as Recovery is started.
  • Dual operation : Select between 1st & 2nd system.

Quote: 2nd-System :
  • Run a second system on abandon webtop partition
  • Great for testing ROM.
  • Recommended for ROM development.

Quote: Custom init (via 2nd-init):
  • Boot android with customized init environment
    -Enable custom service
    -Disable stock background service (service like qe)
  • Bypass bp-tools (In some kernel - ChinaRetail)

Quote: Insecure adbd:
  • Always run adb as root, so there's no need to run su command each time
  • Custom adb reboot mapping


    Code:
    adb reboot recovery -> Reboot to custom recovery
    adb reboot second -> Reboot to 2nd-system
    adb reboot stockrecovery -> Reboot to stock recovery
  • adb remount with noatime,nodirtime flag
    subsequent call to this command will remout /system as ro.
  • This feature is disabled by default. Use BootMenu Manager to enable/disable it

Quote: Integration with android OS (via BootMenu Manager app) :
  • Configure BootMenu & Recovery option.
  • Clean uninstall option
    Other recovery package lack this option & leave a leftover files on your system.
    (this leftover files cause OTA update to fail)
  • Reboot widget
Screenshots

High res screenshot -
Hola amigo! Por favor registrate o Ingresa para ver enlaces/links y mucho más!.

bootmenu
Imagen

recovery
Imagen

Remarks and thanks

koush & CyanogenMod - CWMR codes
TeamWin - touch related item
STS-Dev-Team - Spyder related configuration
koush & cvpcs - hijack binary codes
tpruvot & CyanogenMod - ICS busybox
dhacker29,koush,cvpcs - *Bootstrap
Skrilax_CZ - 2nd-init codes
Hashcode - 2nd-init script


Special thanks

lukas77,dtrail1,leisures,sevenup30,FrAsErTaG & core720 for their ideas, support, bug report & testing for alpha release.

@Translation
androidol - Traditional & Simplified Chinese
maarawoe - Czech
spryte - German
pedrotorresfilho - Portuguese

HSD-Pilot -for helping with Q&A, guide


Redistribute

You're welcome to include/distibute BootMenu Manager app on your ROM.
(Just make sure you don't re-sign it's security certificate)

Sample config for BootMenu compatible ROM :
Hola amigo! Por favor registrate o Ingresa para ver enlaces/links y mucho más!.


How to install

1. Get BootMenu Manager app from Google Play -
Hola amigo! Por favor registrate o Ingresa para ver enlaces/links y mucho más!.
2. From here (link below)

BootMenu Manager is an application to provide an easy install of BootMenu for Motorola Razr.
It also includes a simple updater, reboot widget & configuration tools.

Please respect my work & don't re-upload/re-publish on file sharing service. I've paid google to host this file for me.
Enjoy & give suggestion for improvement.
Hola amigo! Por favor registrate o Ingresa para ver enlaces/links y mucho más!.
Hola amigo! Por favor registrate o Ingresa para ver enlaces/links y mucho más!.


Quote:
WARNING : This release is only for ICS with 3.0.8 kernel. Although it has been tested many times, there is still a possibility for a bug to exist.Proceed at your own risk. Don't try this if you're not comfortable fixing your phone/fastboot/troubleshooting

Fuente:
Hola amigo! Por favor registrate o Ingresa para ver enlaces/links y mucho más!.

Editado por Pzyduck: 27 August 2012 - 21:02


Agradecido por 19 Miembros:
ckristoff , rafaw810 , nikolas010 , ismael523 , snoopy6782 , mospeada71 , omarcillopr , Luis Ruiz Figueroa , emmaaz , FLacco , mesihas , frosmar , osiris_corp , kimora13 , Gerard , leandrox32 , Pedro Uribe Beroiza , gattuhwarro , Castiel Aensland

#2
Pzyduck

Pzyduck

    Firmware Team Member

  • Super Moderador
  • 32098 Mensajes:
  • 161576 gracias
  • UbicacionLa Rioja
  • Equipo:RAZR HD XT925
  • ROM:Vodafone France Jelly Bean 4.1.2
  • Operadora:Personal
Imagen

Source code

BootMenu & Recovery source code is availabe at
Hola amigo! Por favor registrate o Ingresa para ver enlaces/links y mucho más!.
(razr-ics branch)


Official project page - WIP

Hola amigo! Por favor registrate o Ingresa para ver enlaces/links y mucho más!.


Change logs (technical stuff~)

Quote:

BootMenu Manager app

0.2.0
- Initial public release
0.2.1
- Minor UI fix, add reboot widget
0.2.3
- fix hijack uninstall
- reallocate second system & recovery trigger file from /data to /preinstall
- add suppport for insecure adbd & 2nd-init
- add reboot option confirmation.
- add an option to clean/remove leftover files from RazrBootstrap (/preinstall/recovery/*)
- add /preinstall/recovery/update-binary symlink to BootMenu (for older version hijack(cvcps) / RazrBootstrap compatibility)
- add 1st & 2nd system manager
- add little integration with recovery (an attempt to mimic ROM manager)
- add live backup menu
0.2.4
- Minor change, fix blank screen on startup.
0.2.5
- Change startup behavior (Async task for backgroud task)
- Add check for Bootstrap installer
- Add Chinese translation (Thanks androidol)
0.2.6
- Fix download error & sha1sum miss matched for non MotoBlur based ROM (CM9/CM10/AOKP)
0.2.7
- Enable ROM manager function, add ROM Converter, Fix UI & Bugs (Download error)
Quote:

BootMenu packages & component

0.1
- alpha release

0.2.0
- Initial public release

0.2.1
/preinstall/bootmenu/binary/bootmenu
- Fix framebuffer. Revert back to /dev/graphics/fb0
- Add another fail-safe feature. Ignore bootmenu configuration file when booted with "BP HW Diag & Boot AP".
- Fix script boot_stock.sh (fix removal of /xbin = disable qe service)
/preinstall/bootmenu/binary/recovery
- Fix UI draw = results in faster restore & backup
- Add fast backup option (Only do backup /data, /cache & /system) = faster backup
- Add backup /pds as option (MAC address & stuff from factory)
- Fix backup of app inside .secure_android
- Disable format of /data & /cache (recovery will only do rm -r /path/*) = safer
- Checks /system/bin/logwrapper for correct version on exit (Prompt user if it's being replaced)
- Display battery level (approximation)

0.2.2
- Rebuild using SPDU 10 ICS source code

0.2.3
/preinstall/bootmenu/binary/bootmenu
- add suppport for insecure adbd & 2nd-init
- Red LED ON when booting by 2nd-init
- reallocate second system & recovery trigger file from /data to /preinstall
/preinstall/bootmenu/binary/recovery
- strip unused CWM function (We don't deal with flasing radio/boot.img, formatting filesystem on this recovery)
- change batt level from % to voltage
/preinstall/bootmenu/binary/adbd
- tweak/mods for bootmenu reboot action
/preinstall/bootmenu/rootfs/init
- tweak for custom init use.(appear as xXx-init in kernel log)
/preinstall/bootmenu/rootfs/2nd-init
- tweak for custom init use.(appear as 2nd-init in kernel log)

0.2.4
- Minor change, fix boot_second.sh script (Improve 2nd-init compatibility)
(bootmenu & recovery part remains at 0.2.3 until next updates/build)

0.2.5
/preinstall/bootmenu/binary/bootmenu
- Change to touch button system
/preinstall/bootmenu/binary/recovery
- Enable webtop format in recovery
- Add more reboot option
- Fix for Atrix2

0.2.6
/preinstall/bootmenu/binary/recovery
- rebuild & update to latest busybox 1.20.2

0.2.7
/preinstall/bootmenu/binary/bootmenu
- Add support to 2nd-system recovery boot (For ROM manager function)
/preinstall/bootmenu/binary/recovery
- Fix dalvik-cache erase, Add radio firmware flashing.


Todos los creditos a:
Hola amigo! Por favor registrate o Ingresa para ver enlaces/links y mucho más!.

Editado por Pzyduck: 27 August 2012 - 21:03


Agradecido por 2 Miembros:
kimora13 , Castiel Aensland

#3
Pzyduck

Pzyduck

    Firmware Team Member

  • Super Moderador
  • 32098 Mensajes:
  • 161576 gracias
  • UbicacionLa Rioja
  • Equipo:RAZR HD XT925
  • ROM:Vodafone France Jelly Bean 4.1.2
  • Operadora:Personal
Q: What is this for??

Quote: This is a stuff that helps you messing with your phone. It's powerful but lacks documentation.
(Currently I don't have time to do a full documentation).
Q: Is BootMenu same with what Cyanogen* BootMenu is??


Quote: Maybe it's different from what Cyanogen* BootMenu is. My BootMenu just take the idea & the name, not the codes.
This is a very lightweight version of BootMenu. I rewrite it from scratch (code is based on ICS recovery).
It's not any doing any fancy stuff. It just wait for user input/timeout & do jobs based on predefined script.
That's all.
Q: I have a RazrBootstrap installed. Do I need to uninstall it??


Quote: Not really. This installer will work. It will replace RazrBootstrap hijack with BootMenu hijack.
It will not remove RazrBootstrap files located at /preinstall/recovery. But it's a good idea to keep it (Useful when you restored a nandroid with a RazrBootstrap inside)
If you have low space on preinstall. you need to remove this folder manually.
Q: I want to reinstall RazrBootstrap/taking OTA. How do I remove BootMenu???


Quote: Open BootMenu Manager. Select uninstall hijack, uninstall package (optional)
Q: I want to use a Safestrap based ROM


Quote: 1.Download Rom Converter from
Hola amigo! Por favor registrate o Ingresa para ver enlaces/links y mucho más!.
2.Convert the ROM with it
3.Install it from BootMenu recovery
Q: My batt is messed up.


Quote: Tips for getting a good batt stat. (Not messed up/inaccurate reading)
  • Always do ROM flashing with USB power connected & batt level at 100% (Recommended)
  • When batt level is not 100%
  • Reset both batt stat of stock & second
  • Reboot to stock, let it register current batt stat
  • Reboot to second, let it register current batt stat
Q: I want to install a ROM (Nandroid backup) in second system.


Quote: 1.Go to custom recovery, Backup&Restore, Advanced Backup, Backup Webtop.
2.Toggle second system recovery, Backup&Restore, Advanced Restore, Restore System.
3.Reboot.

Suggestion : If you have access to webtop fastboot files, you may skip the backup.
Q: Webtop backup took long time to finish.


Quote: Original webtop content from Gingerbread 2.3.6 have too many small files & folder, that's why it's slow.
Since webtop partition is abandon in ICS, you only need to backup this partition once only.
Empty this partition if you're not using second system.


Code:
adb shell mkdir /tmp/webtop
adb shell mount -t ext3 /dev/block/webtop /tmp/webtop
adb shell rm -r /tmp/webtop/* Update : ver 2.0.1 & newer has an option to do a "fast backup" (backup only data,cache&system)
Update : ver 2.0.5 & newer can do webtop format from recovery
Q: Will Webtop 3.0 works if I empty/delete all files in /dev/block/webtop?


Quote: Webtop 3.0 is just ICS in tablet mode. It's no longer based on ubuntu. It will work
Q: I have a "low storage space" on 2nd system?


Quote: Webtop partition size is only 1.3GB.
To make thing simple, the included boot_second.sh script bind mount /system & /data inside this webtop partition.
You have at least 4 option, if you want to have bigger /data
1.Reassign /data to /sdcard (IO speed depend on sdcard speed rating)
2.Reassign /data to /dev/block/userdata (this will replace all your data for stock system)
3.Reassign /data to /dev/block/cache (bind /cache to somewhere else e.g : /webtop/cache)
4.Use a lightweight ROM (/system size = small)

You need to modify these files to suit your needs.
/preinstall/bootmenu/script/boot_stock.sh
/preinstall/bootmenu/config/stock.recovery.fstab
/preinstall/bootmenu/script/boot_second.sh
/preinstall/bootmenu/config/second.recovery.fstab

Sorry, for now you all have to configure this files manually.
Q: What is 2nd-init??


Quote: Its a method/hack to have a customized init environment. (Thanks to Skrilax_CZ)
cvcps made a good explanation of this on his blog... go read it if you are interested.
Hola amigo! Por favor registrate o Ingresa para ver enlaces/links y mucho más!.

Q: How to use BootMenu 2nd-init??


Quote: 1.Enable 2nd-init option in BootMenu Manager
2.Copy init files (*.rc) from ramdisk (rootfs) to /system/etc/rootfs/
3.Tweak / edit those file to suit your need(s)
4.Reboot.

*BootMenu will copy & overlay files in /system/etc/rootfs/ to ramdisk on startup. Then it loads 2nd-init.
*Red LED will lit to indicate a 2nd-init booting.
** IMPORTANT : Mount point for 2nd-system is need to be change. Else, 2nd-init will boot the 1st system.
** IMPORTANT : Don't overlay or replace /sbin/init with other version. (CM9,AOKP etc)
Q: What need to be change for 2nd-system+2nd-init??


Quote: Basic init.mapphone_*.rc modification for 2nd-system:


Code:
on fs
mount ext3 mmc@preinstall /preinstall noatime nodiratime barrier=0
mount ext3 mmc@webtop /webtop noatime nodiratime barrier=0
mkdir /webtop/system 0775 system system
mkdir /webtop/data 0775 system system
exec /preinstall/bootmenu/binary/busybox mount -obind /webtop/system /system
exec /preinstall/bootmenu/binary/busybox mount -obind /webtop/data /data
mount ext3 mmc@pds /pds noatime nodiratime barrier=0
mount ext3 mmc@cache /cache noatime nodiratime barrier=0 ** Above sample is for mounting ext3. Change it to reflex your setup. (I have all of them as ext4)
** All partition is mount directly (Skip disk checking).
** If partition is corrupted/not clean, boot to 1st-system & let it repair/check those partition.
Q: How to clone 1st-system to 2nd-system (simple)


Quote: Make sure the total size of system & data is less than 1.3GB
Switch to 1st-system recovery


Code:
Backup & restore -> Selective backup
*backup system
*backup data Switch to 2nd-system recovery


Code:
Backup & restore -> Selective restore
*restore system
*restore data Optional, hijack in 2nd system is just a waste of resource.


Code:
System Keeper -> Remove logwrapper hijack **Make sure the total size of system & data is less than 1.3GB
Q: How to clone 1st-system to 2nd-system (advance)

Quote:
Switch to 1st-system recovery mode. Connect to phone using adb

Code:
mount /data
mount /system
mount /webtop
rm -r /webtop/*
mkdir -p /webtop/data
mkdir- p /webtop/system
cp -a /data/* /webtop/data/
cp -a /system/* /webtop/system/
Optional, hijack in 2nd system is just a waste of resource.

Code:
rm /webtop/system/bin/hijack
rm /webtop/system/bin/logwrapper
mv /webtop/system/bin/logwrapper.bin /webtop/system/bin/logwrapper
**Make sure the total size of system & data is less than 1.3GB

Editado por Pzyduck: 27 August 2012 - 21:03


#4
starkz

starkz

    Conocido

  • Compañero
  • Pip
  • 179 Mensajes:
  • 536 gracias
  • Equipo:Motorola Droid Razr XT910
  • ROM:ICS 4.0.4 SmartRazr V1
  • Operadora:Otra/Fuera de Argentina

Yo menos jaja no entendi tu pregunta a que te referis? :S


es como un recovery mas chingon?

#5
Pzyduck

Pzyduck

    Firmware Team Member

  • Super Moderador
  • 32098 Mensajes:
  • 161576 gracias
  • UbicacionLa Rioja
  • Equipo:RAZR HD XT925
  • ROM:Vodafone France Jelly Bean 4.1.2
  • Operadora:Personal

es como un recovery mas chingon?


asi es el mejor :D

Agradecido por 1 Miembro:
rikmas

#6
starkz

starkz

    Conocido

  • Compañero
  • Pip
  • 179 Mensajes:
  • 536 gracias
  • Equipo:Motorola Droid Razr XT910
  • ROM:ICS 4.0.4 SmartRazr V1
  • Operadora:Otra/Fuera de Argentina

asi es el mejor :D


Enviado desde mi XT910 usando Tapatalk 2

Bueno esperaré a una versión estable xd gracias por compartir :D

#7
Pzyduck

Pzyduck

    Firmware Team Member

  • Super Moderador
  • 32098 Mensajes:
  • 161576 gracias
  • UbicacionLa Rioja
  • Equipo:RAZR HD XT925
  • ROM:Vodafone France Jelly Bean 4.1.2
  • Operadora:Personal

Enviado desde mi XT910 usando Tapatalk 2

Bueno esperaré a una versión estable xd gracias por compartir Imagen


SI es estable el mejor Recovery que vi en mi vida :D

La fusion de todos ;)

#8
Antonio Stia

Antonio Stia

    Motorman

  • Compañero
  • PipPip
  • 222 Mensajes:
  • 69 gracias
  • Ubicacioncapital federal . bs. as. Argentina
  • Equipo:Motorola Razr XT-910
  • ROM:ICS Epsilon Project V5 - Miui V4
  • Operadora:Personal
Excelente.. Funciona de diez y es On boot.. Gracias..


#9
Lagro

Lagro

    SENIOR

  • Compañero
  • PipPip
  • 373 Mensajes:
  • 24 gracias
  • UbicacionHaedo
  • Equipo:Galaxy S3 - Acer Iconia Tab A500
  • ROM:UltimaROM 4.1
  • Operadora:Personal
Tengo un problemita...le doy a install packages y no hace nada!solo tengo tildadas la primer, segunda y cuarta opcion de la parte installes el resto no puedo hacer nada...

Tengo un problemita...le doy a install packages y no hace nada!solo tengo tildadas la primer, segunda y cuarta opcion de la parte installes el resto no puedo hacer nada...



ya lo soluciones borre la carpeta recovery que esta dentro de preinstall! Gracias.

Editado por Pzyduck: 21 June 2012 - 19:18


#10
PUNKY85

PUNKY85

    Conocido

  • Compañero
  • Pip
  • 154 Mensajes:
  • 13 gracias
  • UbicacionHaedo - Argentina
  • Equipo:Samsung Galaxy SIII
  • ROM:Stock
  • Operadora:Personal
Al fin salio algo bueno para el Razr ! Ahora hayq ue esperar que aparescan buenas ROM para poder elegir las dos con cuales quedarnos ... Excelente Mod para los que les gusta probar ROM tambien ya que siempre pueden tener una funcionan 100 % y la otra la tiene para descajetarla de lo mas lindo.

#11
starkz

starkz

    Conocido

  • Compañero
  • Pip
  • 179 Mensajes:
  • 536 gracias
  • Equipo:Motorola Droid Razr XT910
  • ROM:ICS 4.0.4 SmartRazr V1
  • Operadora:Otra/Fuera de Argentina

Tengo un problemita...le doy a install packages y no hace nada!solo tengo tildadas la primer, segunda y cuarta opcion de la parte installes el resto no puedo hacer nada...


Debes de borrar algo en la carpeta preinstall, yo borre el need for speed xd estaba en preindtall/app

Enviado desde mi XT910 usando Tapatalk 2

que pasa si se descarga mientras hago backup? xd va en webtop xd


Editado por ice: 19 May 2013 - 16:32
doblepost.


#12
qlesdn

qlesdn

    NEWBIE

  • Compañero
  • 70 Mensajes:
  • 2 gracias
  • Equipo:motorola razr
  • ROM:Epsilon Project v3
  • Operadora:Personal
una pregunta yo tengo la 4.0.4 oficial de brazil, le puedo poner esto sin tener problemas?

#13
Antonio Stia

Antonio Stia

    Motorman

  • Compañero
  • PipPip
  • 222 Mensajes:
  • 69 gracias
  • Ubicacioncapital federal . bs. as. Argentina
  • Equipo:Motorola Razr XT-910
  • ROM:ICS Epsilon Project V5 - Miui V4
  • Operadora:Personal

una pregunta yo tengo la 4.0.4 oficial de brazil, le puedo poner esto sin tener problemas?


Si. Podes ponerlo, anda muy bien...

Enviado desde mi XT910 usando Tapatalk 2

#14
gattuhwarro

gattuhwarro

    Newbie

  • Compañero
  • 55 Mensajes:
  • 6 gracias
  • UbicacionSantiago Chile
  • Equipo:Motorola Razr
  • ROM:4.0.4 ICS
  • Operadora:Otra/Fuera de Argentina
yo lo instale y anda muy bien, eso si al prender el Razr se demora un poco mas al iniciar porq sale un opcion de si uno qiere entrar a el Recovery ,ahora solo falta esperar a los cocineros que creen roms :) sldos

#15
qlesdn

qlesdn

    NEWBIE

  • Compañero
  • 70 Mensajes:
  • 2 gracias
  • Equipo:motorola razr
  • ROM:Epsilon Project v3
  • Operadora:Personal
bueno pongo la nueva version del 4.0.4 d brazil y le pongo esto

Desde q le instale el bootmenu el cel se me reinicia solo...lo desinstalo como cualquier otra apk?

Editado por Pzyduck: 22 June 2012 - 13:49


#16
starkz

starkz

    Conocido

  • Compañero
  • Pip
  • 179 Mensajes:
  • 536 gracias
  • Equipo:Motorola Droid Razr XT910
  • ROM:ICS 4.0.4 SmartRazr V1
  • Operadora:Otra/Fuera de Argentina
Quita el hivaj y paquetes desde la app

Enviado desde mi XT910 usando Tapatalk 2

#17
iOmega ~

iOmega ~

    JUNIOR

  • Compañero
  • PipPip
  • 262 Mensajes:
  • 48 gracias
  • Equipo:Motorola RAZR
  • ROM:CyanogenMOD 9
  • Operadora:Personal
Instale esto pero no tengo Custom Recovery, ni tampoco me instala los paquetes del programa, que onda?

EDIT; Ahi lei como e instale los paquetes y ahi va todo bien.

Editado por iOmega ~: 22 June 2012 - 21:24


Agradecido por 1 Miembro:
marcoscxx

#18
qlesdn

qlesdn

    NEWBIE

  • Compañero
  • 70 Mensajes:
  • 2 gracias
  • Equipo:motorola razr
  • ROM:Epsilon Project v3
  • Operadora:Personal
me sale desfortunadament la aplicacion bootmenu se detuvo

#19
Castiel

Castiel

    FULL Member

  • Compañero
  • PipPipPipPipPip
  • 1551 Mensajes:
  • 1249 gracias
  • UbicacionEn tus pesadillas (Mexico D:!)
  • Equipo:Samsung SII LTE
  • ROM:ICS 4.0.4 Stock
  • Operadora:Otra/Fuera de Argentina

me sale desfortunadament la aplicacion bootmenu se detuvo

Regresa al bootstrap de ics mejor.

Enviado desde mi XT910 usando Tapatalk 2

#20
qlesdn

qlesdn

    NEWBIE

  • Compañero
  • 70 Mensajes:
  • 2 gracias
  • Equipo:motorola razr
  • ROM:Epsilon Project v3
  • Operadora:Personal

Regresa al bootstrap de ics mejor.

Enviado desde mi XT910 usando Tapatalk 2

voy a tener q hacer eso