[Xperia Arc Android Development] DooMLoRD:
BootManager

Boot Manager for Xperia 2011 devices based on ClockworkMod recovery source.​

Credits and special thanks to Koush and everyone else involved in Cyanogenmod project!​

​

[ info ]

The bootmanager will reside on the main kernel of the device and will provide u with access to multiple recoveries! This is a continuation of my work from Xperia X10 BootManager, that is why the version number begins from 2.0 ;).

ONLY FOR UNLOCKED BOOTLOADERS

[ credits / special thanks ]

Koush - for the brilliant work & coding on CWM recovery

Napstar - for doing most of the work on Touch capabilities for CWM recovery

zdzihu - for xRecovery v1.0.0 sources! (this is based on modified xRecovery v1.0.0 sources)

jerpelea and FreeXperia Team - for TOO MANY THINGS!!!

Androxyde - awesome shell scripting which powers the recovery triggers (for keypress) and recovery switching

soheil_rf - for background image & signature/banner

Frosty666 for the LED triggers

[ features ]

Multiple recoveries (more info below)

Keypress based entry - based on the keypress u can select which recovery u want to boot into (more info below)

Theme support! - I know that most of u like to theme every aspect of the device, so I thought why not have this for BootManager! (more info below)

on-screen TouchBased navigation buttons!

Execute Custom Script ability - this will allow devs/modders/users to execute custom scripts right from BootManager (more info below)

adb is active in BootManager and sdcard is automounted at /sdcard

Build time-stamp & Current kernel info displayed at startup! - this should be helpful for users to identify which kernel is currently on the device

soft reboot for all recoveries! - say u hit some option in a recovery by mistake (e.g.: start nandroid backup) or if any of the recoveries freezes/crashes then u can hit the POWER button anytime to do a soft reboot (the device WONT reboot, only the active recovery will be killed and restarted) to restart the particular recovery

[ WARNING ]

PLEASE TAKE BACKUP OF

SDCARD

BEFORE TESTING

[ LIMITATIONS ]

currently we

CANNOT flash FTF OR kernel.sin OR boot.img using any recovery

, only option is to use FLASHTOOL

[ how to use? ]

when u see the BLUE LED light up keep pressing BACK key & u will enter BootManager

on-screen buttons for touch based navigation

[ Feature: Multiple recoveries ]

Bootmanager includes 3 recoveries:

Full Touch CWM5 Recovery (by my Team UtterChaos)

My modCWM-v4 CWM5 Recovery [DEFAULT]

Official CWM5 Recovery (Thanks to FreeXperia Team)

My modCWM-v4 CWM5 Recovery is the default recovery, i.e. "Reboot into Recovery" action from any app/ROM Manager will take u straight into this default recovery.

how to run a specific version of recovery at boot?

Here are affected keys you can press at boot :

(FOR ARC)

BACK : BootManager

MENU : Full Touch CWM5 Recovery (by my Team UtterChaos)

VOLUP : My modCWM-v4 CWM5 Recovery

VOLDN : Official CWM5 Recovery (Thanks to FreeXperia Team)

(FOR PLAY)

BACK : BootManager

SEARCH : Full Touch CWM5 Recovery (by my Team UtterChaos)

PAD-L : My modCWM-v4 CWM5 Recovery

PAD-R : Official CWM5 Recovery (Thanks to FreeXperia Team)

the PAD-L/PAD-R are the big buttons flanking the volume buttons

how to reboot into a specific recovery from OS?

GScript app is required.

Here are gscript scripts for each function :

BootManager :

cp /system/recovery/KernelDefaultMenu/recovery.desc /data/local/tmp/recovery
touch /cache/recovery/boot
reboot

Official CWM5 Recovery (Thanks to FreeXperia Team):

cp /system/recovery/KernelDefaultCWM1/recovery.desc /data/local/tmp/recovery
touch /cache/recovery/boot
reboot

My modCWM-v4 CWM5 Recovery:

cp /system/recovery/KernelDefaultCWM2/recovery.desc /data/local/tmp/recovery
touch /cache/recovery/boot
reboot

Full Touch CWM5 Recovery (by my Team UtterChaos):

cp /system/recovery/KernelDefaultCWM3/recovery.desc /data/local/tmp/recovery
touch /cache/recovery/boot
reboot

[ Feature: Theme Support! ]

I know that most of u like to theme every aspect of the device, so I thought why not have this for BootManager!

The user can now customize the following in BootManager:

background image

menu color

text color

for this u will need to create the following folder structure on SDCARD: /sdcard/00_bm/res/images/ (those are double zeros in 00_bm)

for customizing do the following

background image

image should be PNG format and of size (480x854)

it should have the file name: bootmenu_bgk.png

save it in the folder /sdcard/00_bm/res/images/

so the complete path of this file should be /sdcard/00_bm/res/images/bootmenu_bgk.png

menu color

u will need to create a comma delimited file which will contain the integer values to control the RED, GREEN, BLUE, ALPHA

limit is from 0 to 255

example:

if u want the menu color to be RED the following should be content of the file:

255, 0, 0, 255

if u want the menu color to be GREEN the following should be content of the file:

0, 255, 0, 255

it should have the file name: menu-text-color (no extension)

save it in the folder /sdcard/00_bm/res/

so the complete path of this file should be /sdcard/00_bm/res/menu-text-color

text color

same as above

EXCEPT

it should have the file name: normal-text-color (no extension)

save it in the folder /sdcard/00_bm/res/

so the complete path of this file should be /sdcard/00_bm/res/normal-text-color

WARNING

(Regarding Theme Support)

for these customization to work the files SHOULD BE IN THE CORRECT PATH AND WITH CORRECT FILE NAMEs

each of these customization are independent of each other, meaning if u want u can change only one, or both or all of them :)

BootManager will check if each of those files are there, if it find them then it will use those, else BootManager will use the default values/image

[ Feature: Execute Custom Script ]

So this option will allow the user to execute a custom script:

/data/local/tmp/customscript.sh

That shell script MUST have all execute permissions (777)

This will be useful as modders/devs/cooks/users can now execute special scripts right from BootManager

Scenarios where this can be useful:

execute code to boot OS off SDCARD

use ur imagination ;)

[ sources ]

Xperia 2011 Boot Manager @ GITHUB

IF U PLAN TO USE THIS WORK IN UR OWN KERNEL THEN SEND ME A P.M. ON XDA!

[ donations ]

if u feel that this work has helped u OR u think that the work i put into making this is worthy of donations, then click on the following link for buying me some coffee/beer/etc ;)

PAYPAL DONATION LINK

[ download link ]

there is no separate download link! BootManager is a part of DooMKernel!!!

please test it out and report back!