yashsingh1/xdaforums huggingface dataset:
[Motorola Droid RAZR] whirleyes:
I don't know samsung. :p

Back to topic:

BMM Development progress

1. Format secure partition

Just finish making CDT parser. (Based on Razr,Atrix2,Bionic CDT partition data)

Now it is safe to format secure partition via BMM. (cdrom, webtop, system)

- bootloader won't notice we play cheat.

- mke2fs will format those partition to the exact size (safe region) calculated from CDT data.

- default partition block size is set to 4096. (Maybe gain a little performance in read speed but partition become few MB smaller.)

To check a partition block size. I think default value from factory is 1024.

dumpe2fs /dev/block/system | busybox grep 'Block size'

With this I think it's now safe to upgrade 0.2.7 people to 0.2.9++ style partition layout.

In 0.2.9, I put a pre-calculated value. Now it's calculated directly from user's CDT partition.

2. Ramdisk cache (2nd-init & kexec)

Due to the difference in how BMM & SS3 handle partition mount, there's always a need to convert ramdisk data.

0.3.0 will feature a ramdisk cache (compressed)

- stored at /system/etc/bmm/cache/ramdisk.img

- ramdisk conversion will be done only if ramdisk cache is missing. (Usually first boot take few sec longer)

- erase dalvik-cache from BMM will also delete this file

- this folder won't be included in backup.

3. Kexec support.

kexec boot will be supported in 0.3.0 release.

STS-Dev-team based kexec ROM should work flawlessly.

4. CWM recovery with BMM touch button system.

- Direct button to launch Aroma file manager & console

- Mimics BootMenu Manager APK UI.

Need a few 0.2.9 user to test a pre-released 0.3.0 version.

It just to check my touch algorithm against different kernel version.

I still have a few bug to fixed before going public.

As I have no idea of who's currently using this now, so If you're interested please reply.

(I'll PM you when it's ready, in 2~3 days)
[Motorola Droid RAZR] HSD-Pilot:
I would like to test it, as usual ;)

Gesendet von meinem XT890 mit Tapatalk 2
[Motorola Droid RAZR] raziel23x:
Sounds interesting as always you know I am game
[Motorola Droid RAZR] leisures:
I will like to test it :thumbup:

Enviado desde mi XT910 usando Tapatalk 2
[Motorola Droid RAZR] sevenup30:
I m in !!!! If only we had a kernel dev kexec would be awesome
[Motorola Droid RAZR] whirleyes:
Thanks for sticking with this. Only you guys know how this thing has evolved.

I'll upload to our private test group (Only active people from this thread will be approved)

Btw, information in this thread is becoming hard to find.. I should start a wiki

Another changes details:

BootMenu Manager apk will be missing until this achieve a stable stage

Add up to 6 system (things become complicated above 6, I'm keeping it simple)

User will be able to change partition setup. Currently only support mmc&loop, will add bind option later.

To add more system, just add an entry for that. (for now manually edit bootmenu.prop)

You can just copy system.img from fastboot file or create them from recovery.

If data.img & cache.img is missing, BMM will auto create them with default size.

Merge recovery config file to bootmenu.prop

Move BMM boot trigger file from /preinstall to /trigger (Details later)

How to make a BMM compatible ROM. (Just so you know)

Installation zip.

Use /sbin/mount to mount a partition. (Just like how Gapps installer does)

logwrapper

Just put a regular logwrapper binary. BMM recovery will overwrite this file with BMM hijack

2nd-init & kexec. (ramdisk/rootfs file)

Move all "on fs" section in *.rc file to init.fs.rc

Add "import init.fs.rc" into init.rc

No need to distribute BMM file inside your ROM. Let user install it them self.

All of this is optional as BMM does check this stuff during installation & boot.

It just my way of defining a universal ROM format.

bootmenu.prop contents for system setup

system1=system:mmc@system,userdata:mmc@userdata,cache:loop@/data/media/cache.img
system2=system:mmc@cache,userdata:mmc@webtop,cache:mmc@cdrom
system3=system:loop@/sdcard/bmm/system3/system.img,userdata:loop@/sdcard/bmm/system3/data.img,cache:loop@/sdcard/bmm/system3/cache.img
system4=system:loop@/emmc/bmm/system4/system.img,userdata:loop@/emmc/bmm/system4/data.img,cache:loop@/emmc/bmm/system4/cache.img
...
system6

for cdma_spyder, this is how it will look like.

system1=system:mmc@system,userdata:mmc@userdata,[COLOR="Red"]cache:mmc@preinstall[/COLOR]
[Motorola Droid RAZR] jessel0001:
Will bmm 0.2.7 restore ss3 backups? I know it restored SS2.11 backups or will I have to wait and update to 0.3.0?

Thanks in advance.
[Motorola Droid RAZR] whirleyes:
Haven't used 0.2.7 for a while.

Maybe you need to manually change something in /system/etc/rootfs/*.rc

Make sure correct hijack & logwrapper is installed before boot.

0.2.9++ convert rootfs at boot time so, I think it won't be a problem for this version.
[Motorola Droid RAZR] jessel0001:
I'll give it a try and report back, my be a day or two.
[Motorola Droid RAZR] falchetto68:
Hi Whirleyes,

if it's still possibile, I am available to test the new version.

:)

Best Regards,

F
[Motorola Droid RAZR] bigdee888:
Whirleyes!

Whats up with the PAC-MAN Dev. Team, and it is sure that Quarx will working on our Razr?

Sent from my Motorola RAZR Maxx.
[Motorola Droid RAZR] raziel23x:
Will There be a feature that will allow this to reinstall itself when installing on main boot our will it have to be manually installed each time we want to flash anything as the main system
[Motorola Droid RAZR] theZest:
Yep!

His RAZR has passed customs' clearance several days ago and now it's on its way to owner. If no bad thing happens (Russian Post is very unpredictable) Quarx will receive his device soon.

whirleyes, sorry for maybe stupid question, but will BMM 0.2.9 or 0.3.0 boot Chinese ROM? I have my CID erased and boot now with 2nd init (BMM 0.2.7).
[Motorola Droid RAZR] whirleyes:
Not yet. custom kernel is priority.

JB from Moto for xt910 is coming anyway.

For now only backup restore.

It should work.

Tester only

BMM 0.3.0 alpha uploaded.

This is WIP release. Download link :

http://xdaforums.com/group.php?do=discuss&gmid=29462#gmessage29462

Install :

- Boot to 1st-system, run install.bat (Supply your own adb & it's dll)

Details :

- Ramdisk cache is not completed yet. So BMM will do convert on each boot. (boot time 1~2 sec longer)

- No automatic partition image creation for system 3,4,5,6. For now, supply your own system.img, data.img & cache.img

You can use internal & sdcard or mixed them for location of these image file (as you like). Specify them in bootmenu.prop

- Some text for button label is not properly split.

- Install zip filemanager is hard to browse. Use keypad for accessing next page

- adbd binary included is from old version. (adb reboot recovery won't boot to new BMM recovery)

- new trigger file for boot mode is /data/.restart_mode (1st-sytem /data). BMM will check this file permission to determine boot mode.

(chmod 71x /data/.restart_mode; x is system number)

- Aroma filemanager. For now download it from here. Rename it to aromafm.zip & put inside internal storage

(/emmc/clockworkmod/aromafm.zip)

What to check :

- the touch button function

- kexec rom
[Motorola Droid RAZR] bigdee888:
Thanks!

Do you mean the JB comes for the x910 officially?

Because I can't see it in the Motorola's update schedule.

Sent from my Motorola RAZR Maxx.
[Motorola Droid RAZR] AndroidOL:
I think you can upload a donate program on GooglePlay(only donate, no special).:p
[Motorola Droid RAZR] whirleyes:
Google policy doesn't allow donate app. Here's my view & understanding.

- No duplicate of same apk for paid & free app.

- Paid app need at least to have a feature to differentiate itself from the free version

- Paid app is one time only purchase. Unless your app is a must have app like superuser, launcher, filemanager... making money from it is hard.

- Paid app will divide fan into 2 religion of free & paid. It's also hard to maintain 2 version.

@offtopic

In general :

- Only Iphone user tend to buy an app. Android user have many choice. (getting free app by visiting site like this.)

- Monetization from ads?

*Most rooted phone use adblocker.

*From past experience, it's hard to monetize from people behind the "firewall"

- Donation rarely happen. (at least from my experience with this project.)

Workaround : Profitable path?

- some developer sell a thanks button inside his free app.

Sell & buy is done via in-app-purchase. User can buy "the thanks" many time. :D

- Move to new device. (New phone = new monetizing chance)

At some point, maybe I need to make some $$ just enough to justify further development (buy new device)

For now, I'm not going to sell an app in Google play.

- I'm living in a foreign country, where I didn't really understand the law & language (Trust me, it's weird here)

- Selling an app there will leaked some private information like address/phone number.

- whirleyes is just my geeky profile.

* Non of my facebook friend should know it & vice versa (Due to past mistake /paypal at least my real name leaked out)

BMM should be free to use. (Not freeware, it just someone else paid for you)

@back to topic

Due to radically different BMM 0.3.0, It will have it's own thread.

I will leave this thread as archive for 0.2.8 & bellow.
[Motorola Droid RAZR] AndroidOL:
There seems to be some misunderstanding~ Isn't Donate version, like "Perfect Viewer"-->https://play.google.com/store/apps/details?id=com.rookiestudio.perfectviewer.donate

The reason of I say this is just because I only have GooglePlayGiftCard(In other words I haven't credit card[U18]).:p
[Motorola Droid RAZR] whirleyes:
Save it for something else. :cowboy:

I'm not selling app there until Google Play support my home country.

You can help in other ways such as providing feedback.
[Motorola Droid RAZR] silentjet:
Well.

Do yiu fix permissions for vibro?(in apk)

Also can you 'fix' rom converter to remove format command from update script?
[Motorola Droid RAZR] whirleyes:
I fix it in 0.2.8. but no uploaded it to Google Play. Then I bricked my phone..:p

After recovering from bricked & gaining way to un-brick it, I decide to make a new version. (entirely different principal).

- It's not smart have to convert each ROM.zip before install

- I figured a way to format cdrom partition & used it as cache partition

Since 0.2.9a

- Remove the need to convert ROM. Just flash it as it is.

- recovery aware of what process to skip in updater_script.

- rootfs conversion is done at boot time.

- move away from preinstall partition

Upcoming 0.3.0b

- ramdisk cache (convert rootfs only on first boot)

- add another 4 virtual system. (Total 6 now)

- kexec boot

- more details on previous post

sevenup30 & lukas77 has confirm that 0.3.0a working nicely.

I need a few more day to finish it.
[Motorola Droid RAZR] raziel23x:
0.0.3a is working here as well was able to flash apps and misc apps as system apps on main system and it seems stable with pimp my ROM update.zip I have only encountered issues with the file manager but that is a third party issue.
[Motorola Droid RAZR] leisures:
...I still have problems trying to use custom init for my Chinese ROM with erased cid(still have to use bptool but with 2.7 it works)

Enviado desde mi XT910 usando Tapatalk 2
[Motorola Droid RAZR] whirleyes:
oops.. I didn't check.

To keep BMM portable, I remove init binary (since 0.2.9)

If you want a quick fix, just copy init binary from 0.2.7 to /system/etc/rootfs

Note : init binary from 0.2.7 is not compatible with JB rom.

I'll think of a new hack that doesn't require init binary modification.

Possible option :

1. make a kernel module to fake /proc/bootinfo

2. make a program to overwrite ro.bootmode

(normally init won't allow you to overwrite ro.* property)

For long term, maybe I'll go with option 2. this maybe can be apply to other device as well

update : other guy already did it.

I'll try to do "erased cid" boot & modify ro.bootmode with it.
[Motorola Droid RAZR] AndroidOL:
Why the battery always show 99% in 0.3.0 Recovery?[edit 09:15:After 1 minute is right]

And "Settings" can't enter...Flash ROM no problem.:p

1st System can't enter...(Before install Recovery)

booting system_1(Flick+GSM-P)

Reboot->enter Choose

booting system_1

...

Reflash and work well...lf ROM no bootmenu Recovery auto install it when we click "no".

Now I flash and check bootmenu recovery is install right when I flash rom. But reboot no hijack tip.
[Motorola Droid RAZR] whirleyes:
I don't understand.

Update:

Erased CID boot workaround done. Now can boot without bp-tools.

- use ptrace to hijack android property service, set "ro.bootmode BMM" on boot
[Motorola Droid RAZR] raziel23x:
Is this method safe to flash on main system our should wait until further testing
[Motorola Droid RAZR] AndroidOL:
First, I install BMM Recovery0.3.0 and boot into Recovery, then I reboot and choose system_1, but loop boot.

Reflash the ROM(Flick) and install hijack at over. But, when I reboot I found no hijack. Direct boot into bootanime.

Sent from my XT910
[Motorola Droid RAZR] whirleyes:
Ok. I will try myself.

Last time I bricked by installing this ROM.
[Motorola Droid RAZR] HSD-Pilot:
Flick 4. 0 is save to flash :thumbup:

Sorry for not giving feedback about V 3. 0. It's hard to go back to the RazR, when the RazR i is such an nice Phone :cool:

It would be great to see BM on the i!

Gesendet von meinem unlocked XT890 mit Tapatalk 2
[Motorola Droid RAZR] AndroidOL:
Thanks for your work!

Sent from my XT910
[Motorola Droid RAZR] whirleyes:
Razr i is x86. I hope it can be done over emulator.
[Motorola Droid RAZR] HSD-Pilot:
Yeah, but the great part is the unlocked Bootloader. Till now we use CWM which replaces the Stock Recovery. Great thing, because an Rom never touches the Recovery Partition (never happened to me during an flash)

Gesendet von meinem XT890 mit Tapatalk 2
[Motorola Droid RAZR] whirleyes:
It's easier to to make BMM for locked bootloader device. Everything is in control.

Unlocked bootloader device usually have many custom kernel, extra check is needed to hijack boot process. (unless the init script is identical to original kernel)

Hopefully one day, BMM can make it's way to other device..

~ I need to finish BMM 0.3.0 for Razr ASAP. I'm sorry if I'm keeping somebody's waiting.

This new version is completely a re-build from scratch.

Older version was AOSP recovery for bootmenu executable & CWM for recovery executable.

Now I'm integrating both as one portable binary & use only CWM as base.
[Motorola Droid RAZR] pokatusher:
Why closing thread? =(

What can we expect? Thx!
[Motorola Droid RAZR] whirleyes:
Not closing it. just keeping this as archive for older version.

This thread is almost 100 pages. It's better to start a new one.
[Motorola Droid RAZR] pokatusher:
Will wait new thread =) When 3.0 is expected?
[Motorola Droid RAZR] whirleyes:
No timeline. It takes time to fix bug, test...

New thread for 0.3.0++

http://xdaforums.com/showthread.php?t=2005187
[Motorola Droid RAZR] blackhawk_LA:
Are there any problems with servers? I'm trying to install BMM packages but always says "Download error"

Thanks!
[Motorola Droid RAZR] whirleyes:
Re-open this thread so that people can have a discussion. I didn't subscribe to this thread anymore.

No dev work/info will happen in these thread. BMM 0.2.7 is not supported anymore.

Some info for download server.

Since last week, I move the download server to my unused free Google app engine account.

GAE free bandwidth limit is only limited to 1GB/day.

Due to this reason, if you cant download, always retry after 12am (Google server using California time?)

Hopefully many will take this chance to upgrade to BMM 0.3~ or SS3.

Btw, it still nice to see the server stat.

Daily almost 1GB bandwidth is used for BMM package(3MB) download .

With simple math, maybe that translate to 100++ of BMM 0.2.7 re-installation.
[Motorola Droid RAZR] deathpnc:
when i installed BMM. it present please clear/ preinstall...

what must i do now ?
[Motorola Droid RAZR] Irthu:
how can i restore my cid

can anyone give me the steps to restore my cid using bmm
[Motorola Droid RAZR] Vatazhka:
Only BMM 0.3 has options to clear/backup/restore CID.
[Motorola Droid RAZR] macroman8807:
For some reason I can't boot in to 2nd system do I have to activate it or am I missing something also how do I convert ROMs for bmm?

sent from my Awesome MotoMaxx
[Motorola Droid RAZR] tufoz:
Not Enough Free Space

Please clean/preinstall partition

how can i go further?
[Motorola Droid RAZR] IFLPI:
Odp: [RECOVERY][ICS] BMM - Boot Menu Manager - v0.2.7 [ARCHIVE]

I made backup of the ICS (system) in the dup format. Backuped also the kernel. I installed JB vodafone rom on my ICS as an update. Now after a kernel and backup (system) restore it wont boot up. I can have JB but my backup ICS isnt booting up. What can i do.
[Motorola Droid RAZR] whirleyes:
Nope.

wipe data / factory only erase /data & /cache
[Motorola Droid RAZR] thepsen:
Can I install another ics nandroid in to second system ?
[Motorola Droid RAZR] An1mA:
No, with bootmenu in total you can only have 2 roms.
[Motorola Droid RAZR] thepsen:
so now i'm on ICS 4.0.4 and another ICS that on boot menu. what i can do with this second patition ?. thanks
[Motorola Droid RAZR] An1mA:
Ok let me try to explain it to you so you understand.

Without this tool you only can have one rom installed.

Now with bootmenu you can install 2 roms and switch between them.

For example I have the Chinese ICS as 1st rom and as 2nd rom (another ICS) I have ICS MIUI.
[Motorola Droid RAZR] Ramdanih:
after update, can't install 2nd boot ROM..

installing custom ROM really fast, after booting another ics rom only blank..
[Motorola Droid RAZR] J.Y.Daddy:
Awesome work man!

Our razr (Korea razr) still not upgrade ics.

But, bootmenu will be very useful.

I‘m waiting for ics firmware upgrade.

Thanks for your work!
[Motorola Droid RAZR] thepsen:
It cleared thanks for kindly explain I will try for install on 2nd rom.
[Motorola Droid RAZR] SoulGraphicsBrand:
This tool is simply amazing the best safeguard for our RAZR

Thanks for the work :good:
[Motorola Droid RAZR] DanielMod:
I may be a dumbass but i installed MIUI as second system without backing up the WEBTOP partition (I never use it any way) and installed the ZIP file which is MIUI rom.

choosed the first option in the boot menu which is boot second partition (or something similar) rebooted,than MIUI won't load(stuck on boot logo) so i freaked out that i had no backup of my china ICS 120 leak GSM haha.

than i tried to wipe data and cache from the stock recovery and MIUI rom does work nice...but still i got two questions:

1.how can i go back\is it possible now to (restore) my china leak? i cant reach the boot menu that you sir created,and on the rom itself it wont give the app root permissions,or actually miui rom wont give root permissions at all...not to any app.

2.when i wiped my data and cache from stock recovery,i wiped MIUI rom data and cache,or ICS China leak data and cache,or i wiped both of them?

and of course BIG THANKS!
[Motorola Droid RAZR] darkavenger_u2:
Man can u share your china ics nandroid?
[Motorola Droid RAZR] leisures:
Most of the answers u want should be asked on miui thread.

Miui update script as it comes writte over 1st system.

Miui has its own root permission manager.

U should install bootmenu again on miui.

U didn't make a backup of your china leak system so i guess u lost it.(ask someone to hand u a nandroid of the china leak) .

Enviado desde mi XT910 usando Tapatalk 2
[Motorola Droid RAZR] farhanito:
@danielmod,

Most likely you haven't modified the updater-script of miui zip, so miui was installed in primary instead of secondary system. That's why you've lost the China leak as well as the bootmenu..

If you previously had created nandroid of China leak, you can easily restore it.
[Motorola Droid RAZR] whirleyes:
In newer version, I put a script to check /system/bin/logwrapper for a correct version on exit.

If version is mismatched. It'll prompt for confirmation & notification before reboot.

He must have select the "Yes -Good Bye BootMenu" option...
[Motorola Droid RAZR] SoulGraphicsBrand:
Yeah, that script saved my life the other day :)
[Motorola Droid RAZR] DanielMod:
Thank you people for your answers.

I managed to successfully gain root privileges and restore half of my data at least :).

If it interest some one,MIUI rom is pretty nice except this LBE guard which crashes when i run an app which requires root and i need manually give it permission.
[Motorola Droid RAZR] HSD-Pilot:
Ask questions about MiUi in the MiUi Thread in General section. There you'll see, that the German Version got no FC of Permission Manager and the battery drain of MiUi on chinese kernel is huge [it was for me, so i switched back to Retail Eu Leak]

Gesendet von meinem XT910 mit Tapatalk 2
[Motorola Droid RAZR] evonc:
Hey whirleyes. I had a thought. I'm not sure how the hijack for bootmenu is executed but is there a way to have a flashable zip of bootmenu that can be flashed after installing a new rom to give everyone a failsafe incase they end up bootlooping their device?
[Motorola Droid RAZR] whirleyes:
That option already exist in Recovery - System Keeper - Install Bootmenu hijack.

or did you want to flash it via cwm(RazrBootstrap) ?

I haven't make a full document about BootMenu feature.. It has a few failsafe feature.

Check hijack version on Exit Recovery.

Install BootMenu hijack from Recovery.

Always load on boot (adjustable timeout & default option)

Always show BootMenu when boot with "BP HW Diag & Boot AP"

(usefull when timeout is set at zero & had a bootloop.)

Maybe in next version, I put a symlink to support RazrBootstrap recovery.

If any user accidentally restored/install a ROM with an older hijack, he/she still can access BootMenu & have a chance to install correct version.
[Motorola Droid RAZR] evonc:
Oh lol. I never saw that haha. Thats perfect whirleyes. Thanks!
[Motorola Droid RAZR] Vatazhka:
1) Wrong thread, you're using BMM 0.3.4.

2) There's nothing you can do if you upgraded via OTA. You can't downgrade to ICS.
[Motorola Droid RAZR] IFLPI:
Odp: [RECOVERY][ICS] BMM - Boot Menu Manager - v0.2.7 [ARCHIVE]

Ok, sorry for the OT, but i can't pm you. I installed JB via BMM recovery on the ics system slot (without a wipe). Why its impossible to get back to ICS either via BMM or by flashing it in the RDS? Someone flashed it by RDS and got back to ICS as he says.
[Motorola Droid RAZR] Crumplet:
On entering boot menu manager at start up, when activating slot 3, you have 3 options to set sizes for cache,system,data.My question is what is the correct default sizes i should use if i was gonna install a custom rom on it?
[Motorola Droid RAZR] Vatazhka:
You're in a wrong thread, you're asking about settings for BMM 0.3.4.

As per partition sizes, each firmware has different requirements for /system, /cache is best left at the default 300 MB, /data holds your apps and data, so you can set as much as you need.
[Motorola Droid RAZR] Dallo28:
i have a small problem with bmm 0.34 in my cyano...default settings make me wait 3 seconds before booting the rom, but i don't want to wait...i put 0 seconds delay, but when i restart the app, it shows me again 3 seconds delay...everything i write in the app is not saved when opening the app again..how can i solve it?

only things that i modify when the recovery is active are saved ( like screen brightness or keypad light) but if i disable them in the recovery, when i boot the phone and open bmm app, it shows me always default settings...
[Motorola Droid RAZR] kylesinho21:
Please, y don't find download link...

Enviado desde mi XT910 mediante Tapatalk
[Motorola Droid RAZR] AztekSoul:
Just download from playstore..
[Motorola Droid RAZR] mithun23:
Thank you [MENTION=567190]whirleyes[/MENTION] for bmm...because of which now i am able to run kitkat...

Requesting you to please continue the development of ProjectLense(bmm) :crying:

Thank you very much for your efforts :D

Regards
[Motorola Droid RAZR] welder73:
+1 for that