yashsingh1/xdaforums huggingface dataset:
[Flipout and Charm General] polovinamozga:
Big Bootstrapped Recovery Update

Big Bootstrapped Recovery Update

20 June Update

25 Sep 2011

mot_boot_mode.bin updated

12 Oct 2011

Version bump from 2.x.x.x to 5.x.x.x

I totally reworked process for start clockwork recovery.

Now it started via hijacking mot_boot_mode.

More stable.

Not needed symlinks for mot_boot_mode.

Not needed shell-scripts for reboot into recovery (rr.sh).

Not needed terminal or adb shell acess.

APK available :D

How it works.

It hijacked mot_boot_mode executable if /data/.recovery_mode file exist

system at boot will start recovery from

/cdrom/recovery !!!

# ls -l /cdrom/recovery

-rwxr-xr-x root root 483020 2011-06-17 03:52 hijack
-rwxr-xr-x root root 1422867 2011-06-17 03:52 recovery.zip
-rwxr-xr-x root root 255908 2011-06-17 03:52 update-binary

Hijacked executable will unpack recovery.zip via update-binary, restart root-hacked adbd.

Don't forget that will be /cdrom/cdrom_vfat.bin REMOVED

If you need it backup it by hands.

If you use my previous recovery you need

or manually remove all files (needed normal lvl of unix knowledge)

or reflash your phone via RsdLite or sbf_flash

known bug:

system can't remount from recovery menu.fixed

Needed TESTERS

Needed Designer for create logo for apk :rolleyes:

Features request welcome!

Apk in attach.

Mirror here

Oh!

Needed smart guys with C-code experience for develop own Bootmenu.

I do not have time to do everything.

source code here:

https://github.com/fedya/CharmBootstrap
[Flipout and Charm General] hyperioneo:
Thanks for your wonderful work! polovinamozga.

tun.ko work perfect.

Thanks.
[Flipout and Charm General] therkr:
Ready to test but again pls post proper instructions on testing. What to test? How to undo? Etc..

What does bootstrap do?
[Flipout and Charm General] fifa_dxy:
great work! thx~ :)

(t-mobile mb502 from china)
[Flipout and Charm General] davidjp14:
base band

I can help change the baseband of my motorola wcdma1900 2100 need to work in but my phone is WCDMA 2100 1700 anyone can help me
[Flipout and Charm General] polovinamozga:
Don't quote large postes.

How works bootstrapper i explained.

If you want to remove it

adb shell
su
mount -oremount,rw /dev/block/mtdblock7 /system
cd /system/bin/
rm mot_boot_mode
mv mot_boot_mode.bin mot_boot_mode
rm -r /cdrom/recovery

And deinstall apk.

Thats all.

If I knew it...try backup, restore etc :D

Use imagination
[Flipout and Charm General] polovinamozga:
BPSW block working with radio-image.

You need to change bpsw.

But still there is no way to do this for motorola charm :cool:

I succesfully can dump bpsw, mbm, devtree and any other partition

but can't write it lol.

And why i don't know.

If you kernel-hacker welcome in pm
[Flipout and Charm General] m2k4:
sorry, I dont think I understand (charm is my first android device). what does this entail? Does this mean that we could flush 3rd party roms with this apk?
[Flipout and Charm General] polovinamozga:
Yes you can it
[Flipout and Charm General] MGA2009:
Great work POLO!

Any chance this work on TELUS Charm?

I hope we get a Froyo or Gingerbread 3rd party ROM for Moto Charm, asi it is a great phone but still with Android 2.1!!
[Flipout and Charm General] Chahk:
After installing the APK and running the Bootstrap and Reboot option, I can get into recovery. However, after rebooting my Charm is getting stuck on the Motorola logo. Re-flashing with RDSlite now.

P.S. Installed on a freshly wiped Charm with no previous recovery. The only other thing I had installed was Superuser (via SuperOneClick) and apps2sd from this post.
[Flipout and Charm General] :
Same as post above
[Flipout and Charm General] polovinamozga:
it's working on a telus charm too.
[Flipout and Charm General] polovinamozga:
Just now i don't know what happened with your charm.

I have T-mobile Motorola Charm with latest motoblur and it working
[Flipout and Charm General] polovinamozga:
Show me your

cat /proc/bootinfo

and

ls -l /system/bin/mot*

Bootstrap.apk u can remove

mount -oremount,rw /dev/block/mtdblock7 /system
cd /system/bin/
rm mot_boot_mode
mv mode_boot_mode.bin mot_boot_mode
chmod 755 mot_boot_mode
sync
[Flipout and Charm General] bkhuraijam:
Links to custom ROM for charm

Hi polo...

I have a rooted T-mobile charm (with the latest updates), I have installed your bootstrapper and it is able to boot into recovery also. Can u please tell me which custom rom can be used to flash into my charm using your bootstrapper?
[Flipout and Charm General] kevintor113:
Hi polo

I have a motorola charm from Movistar (Argentina).

If I root my charm I could use your method and install a custom rom?

Could I install the original froyo or gingerbread (from the nexus one)?
[Flipout and Charm General] polovinamozga:
bkhuraijam

kevintor113

Custom rom for Charm not exist yet.

U can help me port it =)
[Flipout and Charm General] kevintor113:
how could I help to port the rom and could I install the original froyo or gingerbread on my charm?
[Flipout and Charm General] polovinamozga:
sync android tree

add charm

compile source

test

Install via update.zip.
[Flipout and Charm General] kevintor113:
could you explain me how to do it? i'm just a noob in android
[Flipout and Charm General] drwario:
I'm stuck on M logo. Can't flash with RSd . Phone is not seen. On my defy I plug USB in hold volume up key, and insert battery the the phone says ok to program. What do I need to do to my charm to get it into flash mode
[Flipout and Charm General] m2k4:
its similar with Defy, but instead of up volumn you hold up arrow key on the key board
[Flipout and Charm General] drwario:
Ahh yes thank you!
[Flipout and Charm General] polovinamozga:
U used my recovery and stuck at M-logo?
[Flipout and Charm General] kevintor113:
could you explain it to me more simply, please? I'm just a noob in android
[Flipout and Charm General] polovinamozga:
Modified firwares not exist yet.
[Flipout and Charm General] therkr:
I will try to contact other developers to make custom ROMs. What info should I give them? Anything special except saying bootloader can be bypassed?
[Flipout and Charm General] bordapapa:
Wow!

Works like... Charm? :D

Polo, thanks for the great work!

Hopefully custom roms will start to flow in soon.

Or maybe I'll had to try to dabble into making one. :D
[Flipout and Charm General] bkhuraijam:
Hi bordapapa,

That will be great if you can make one. If you can guide me how to make one, I am ready to do it.
[Flipout and Charm General] polovinamozga:
If you want to help me:

We need research debug method for android 2.2 for example analog of bootmenu

In bootmenu we need options

reboot into modrecovery

rooted adb

2nd-init
[Flipout and Charm General] Juanito216:
What would it take to make a custom rom for this phone, say like if I wanted to make one and never made one before? Not saying i will, but just a question.
[Flipout and Charm General] polovinamozga:
Make hijacked bootmenu
[Flipout and Charm General] kevintor113:
polo could you adapt cyanogenmod 6 or 7 to use it in charm?
[Flipout and Charm General] esophoric:
Hey Polo,

All I can say is thanks for the hard work. If you can get a stable, potentially overclockable (or at least MOTO BLUR-less) ROM working, then you will need to link me your paypal account so I can toss some money your way.

Because I love my Charm and I don't wanna have to replace it! :p
[Flipout and Charm General] polovinamozga:
CyanogenMod7 not possible, because we have kernel 2.6.29, it builded only for 2.1.1.Maybe out kernel can working with 2.2.
[Flipout and Charm General] esophoric:
Is there anything I can do to help the process?
[Flipout and Charm General] kevintor113:
is there any progress in the custom rom?
[Flipout and Charm General] diamond_4g64:
I don't understand how come we can't overclock this phone since it has the same processor as the milestone and the defy that are easily overclockable....
[Flipout and Charm General] kevintor113:
I'm using SetCPU in my moto charm and it allows the overclock to 720 mhz, it makes it a bit faster, but it's difficult to note the diference
[Flipout and Charm General] therkr:
Isn't the Charm clocked at 720MHz by default?
[Flipout and Charm General] polovinamozga:
cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq

720000

It can be overcloked over 1Ghz if you want write overcloacking module.

I think that 700Mhz it very good rate and we has not any task for 1ghz

For more info look here

http://code.google.com/p/milestone-overclock/wiki/Disassembly
[Flipout and Charm General] jonxz:
Any custom ROM confirmed working on this device using this bootstrap.apk? (T-Mob Charm)

Thanks :)
[Flipout and Charm General] daymio375:
any froyo room for this device? the device runs well with 2.1 but there are some apps that i cant use because i have to use froyo =(
[Flipout and Charm General] polovinamozga:
Now im revers engeneering motorola proprieatry stuff,Has no time for froyo.
[Flipout and Charm General] daymio375:
and some cyanogen mod =(?
[Flipout and Charm General] polovinamozga:
https://github.com/fedya/mot_boot_mode/

Reversed mot_boot_mode binary.

It's working 100%

Enjoy
[Flipout and Charm General] bordapapa:
So if I get it correctly, we can make it run custom scripts, maybe try overclocking?
[Flipout and Charm General] polovinamozga:
Run custom scripts you can without mot_boot_mode too :3

Overclocking not needed i think :rolleyes:
[Flipout and Charm General] diamond_4g64:
Is there someone here that is able to cook an overclocking module for us because i don't understand how to make one even if i look at all the links. I already have milestone overclock but the module is not ready for now. I am anxious to see what this phone can take. Do you guys find this one to usually stay over the 40° mark? To be able to play whit the clock speeds could help it keep its cool!
[Flipout and Charm General] therkr:
+1. I also want to overclock!
[Flipout and Charm General] bordapapa:
OC would be nice, but the CPU already runs on 720 MHz, so it is more than enough, the Motorola bloatware slows down the whole device.

I really suck at developing and all the related stuff, but I'll try to do something with the original kernel and with CM 5 or 6 source on the weekend.

I'll be extremely proud of myself if I even get to the CM bootscreen. :D
[Flipout and Charm General] therkr:
Actually, I need to encrypt and decrypt big files on the go for dropbox upload so I thought a faster clock speed would help.

Nice to know someone has begun the work on ROMs. Best of luck. :)

Though polovinamozga must be given credit for cracking open the bootloader.
[Flipout and Charm General] bordapapa:
I'm about 99% sure that I will fail, but thanks anyway! :D
[Flipout and Charm General] polovinamozga:
Why fail lol?
[Flipout and Charm General] bkhuraijam:
Hi polo,

can you please give a guide how to install that reversed mot_boot_mode binary?
[Flipout and Charm General] polovinamozga:
Download it

https://raw.github.com/fedya/mot_boot_mode/master/mot_boot_mode

and copy to /system/bin/
[Flipout and Charm General] aghilvr:
Hey matt could you explain in detail....i really dont use voice dailing n im desperatly ready to throw to gaoin for some back up...so could you please explain in detail?

thank you...
[Flipout and Charm General] polovinamozga:
Voicecommand.apk

sending sms at restart or one time per day lol.

Remove it if you use not T-mobile sim.

07-06 16:34:36.405 1661 1661 V PollAlarmReceiver: onReceive, starting PollService
07-06 16:35:32.553 1605 1605 I vvm:Service: onCreate(): invoked
07-06 16:35:32.561 1605 1605 I SMSSender: Didn't get the answer, try again attempts left 2
07-06 16:35:32.561 1605 1605 I SMSSender: sending activate request SMS
[Flipout and Charm General] matrix0807:
i have a little problem using charm.

when my phone wake from sleep mode, and slide to unlock or type a password to unlock, somehow the touchscreen not responsive. so i have to re-wake up again (wake-sleep-wake). and after that the touchscreen working again.

it's a problem when from sleep mode (locked), and a calling come. slide to answer is not responsive! the touch screen not work. so i have to press power button, which is to block the call.

so, any solution? thx :)
[Flipout and Charm General] polovinamozga:
No solutions.lol.

I know how i can fix it but we can't flash other kernel :(

Module for touchscreen compiled in kernel.
[Flipout and Charm General] amassere:
Weirdest thing happening.

I bricked my Telus Charm and could not get a single firmware to work except the

T-Mobile one.

Needless to say, no other firmware works now.

I did copy all the radio modules.

My phone restarts for no reason at all, in the middle of the day or at night. I cant pin point what it is. I reflashed it, put the radio for Telus. nothing else...

Still having same issue. sometimes i have an uptime of 12hrs and it just restarts on its own. or sometimes 30min uptime.....no consistency...

Would anyone know whats going on here?
[Flipout and Charm General] jonxz:
Coz when you flash T-Mob firmware it mess with the bootloader and you cannot flash other firmware or rollback.
[Flipout and Charm General] amassere:
No No..I know already I can't rollback...I'm ok with that!

It's just finding the root of why the device restarts intermittently!
[Flipout and Charm General] therkr:
If we can't flash other kernel then how are ROMs possible? Can ROM use other kernel or not?
[Flipout and Charm General] polovinamozga:
You reflashed from telus firmware to T-mo firmware?

If it is that mean now u can't flash other firmware except T-mobile.sbf.

System reboot:

It's not "reboot" it reinit of zygote

like a command

setprop ctl.stop zygote

setprop ctl.start zygote

After reflashing it restarts randomly one time or twice.

Enjoy motorola proprietary **** :D

Also try this:

Download it

And it

Put on your sdcard

/sdcard/clockworkmod/backup/2011-07-12.15.52.49

Reboot into my recovery and nandrestore system.img
[Flipout and Charm General] bkhuraijam:
Hi Polo,

The system.img you have given is a custom rom or the t-mobile ****?
[Flipout and Charm General] polovinamozga:
Heh it's my system.img with some mods.

Like last version of mot_boot_mode and few tweaks.

Based on T-mobile
[Flipout and Charm General] jonxz:
Tried "backup and restore" > "Restore" > "2011-07-12.15.52.49" > "Yes - Restore"

Checking MD5 sums...

MD5 mismatch!

I have downloaded and check the checksums few times, two files were put in the directory you mentioned, anything I did wrong?

Thanks polo :)

Edit: OK I sort it out.... I did a Nandroid backup myself, and copy data & boot img to the folder and edit the md5sum file...

It showed MD5 mismatch since the data and boot img file wasn't there :)

But not much difference with your img, Motoblur is still there and still can't validate my company's email address... is there anyway to port CM6 or 7 to install to T-Mob Charm to work with ClockWorkMod? (Other than just the bootscreen...)
[Flipout and Charm General] anshul84:
Any way to install flash 10
[Flipout and Charm General] bkhuraijam:
Hi polo,

md5 mismatch! with your system.img
[Flipout and Charm General] polovinamozga:
Restore only system

Recovery - backup and restore - Advanced Restore - 2011.. - Restore system

4f5b612947c07d554b8b330eafaf9d00 system.img
[Flipout and Charm General] jonxz:
Ya i finally got that working :) It is not CM6 right? Just the boot screen, and that annoying motoblur is still there...
[Flipout and Charm General] polovinamozga:
Yeah it no CM6.

But now you can skip motoblur setup.

Press Settings on screen and do skip.

And some new features.
[Flipout and Charm General] jonxz:
OK, too bad I still can't add my corporate exchange account :(

It won't take my company's email address as it is domain.asia, 4 digit it said its not valid...
[Flipout and Charm General] polovinamozga:
Just skip motoblur.
[Flipout and Charm General] diamond_4g64:
Hey guys! Just wondering here if there was someone on the case for overclocking this one. I am maybe impatient but no one has said a thing on it for a week now! Arg!
[Flipout and Charm General] jonxz:
Ya I know, but the error still pop. :(

http://img16.imageshack.us/i/snap20110715101838.png/
[Flipout and Charm General] polovinamozga:
Ask about new motoblur in Defy forums.

He has 2.3.4 firmware
[Flipout and Charm General] syaoranlii:
Hey Polo! Thank you for starting to work on custom ROMs for our devices! :D

Hope you can make a deblured one, or maybe help us to upgrade to Froyo Gingerbread or in the future (hehehe)!

I would support your work with a donation! :cool:
[Flipout and Charm General] clxer:
http：//bbs.gfan.com/android-1316127-1-1.html
[Flipout and Charm General] clxer:
insmod ext2.ko then link2sd can use ext2 partition
[Flipout and Charm General] y3kt:
Hi Polo, excellent job with Motorola Charm which seems to be forgotten. I have a problem and don't know what to do, i have rooted and installed cwm without troubles but when i restored your system.img in order to avoid Motor Blur setup i can only go i nto the phone after a i do a full wipe, if then i reboot then i can only see Motorola logo.

Do you have any clue on what could be the problem?

Thanks in advanced!
[Flipout and Charm General] polovinamozga:
I have 2 motorola charm from T-mobile, if you have phone from another vendor like emara, latam it mean that problem here.

try to launch

adb logcat

put output to pastebin.org
[Flipout and Charm General] jonxz:
I have the same issue,

VPCX:~/android-sdk-linux_x86/platform-tools$ sudo ./adb logcat
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
07-21 09:26:12.315 1071 1071 I mot_boot_mode: :MOTO_PUPD: mot_boot_mode 0.2
07-21 09:26:12.338 1071 1071 I mot_boot_mode: ADB Enabled
07-21 09:26:12.338 1071 1071 I mot_boot_mode: :MOTO: cid_recover_boot:0x00

Then it stopped.
[Flipout and Charm General] victory144:
Seems to be an official "Source Code" from Motorola.

Good Luck...
[Flipout and Charm General] zincro3:
Hope some one can use that for dev a rom for charm :D
[Flipout and Charm General] polovinamozga:
Thanks.

Now plz output from

adb shell
cat /proc/bootinfo

Your charm from T-mobile?
[Flipout and Charm General] y3kt:
I have the t-mobile version and i found a way to avoid this, the problem is that you need to add at least one icon to the one of the screens, when you bypass the motoblur account, at least with this model i have, no icons nor widgets are added to the screens. If you manually add one or as many as you want, then it won't restart anymore.

It is weird behaviour i know, but at least it is working right.

regards!
[Flipout and Charm General] polovinamozga:
Hmmm.

Tell me more :3

how reproduce your problem with steps

1.xxxx

2.yyyy

3.zzzzz

4.PROBLEM here
[Flipout and Charm General] y3kt:
It is not difficult. I just rooted the phone, installed recovery, made a backup and then replace your system.img and restore that image. I have now the option to bypass motoblur account setup.

When you create an account for the first time, after that process finishes, you will get a lot of widgets created automatically in the different screens.

Bypassing the activation (skipping it) i got nothing, just empty screens, just the wallpaper and menu buttons. The same occurs when you use ALT+E,ALT+E,B,L,U,R,O,F,F method.

In this case when you turn the phone off and then on it is stuck at motorola logo, i can't even see cyanogen mod logo.

I found that adding icons to the screens will prevent this from happening, at least with my phone.

I had this issue once with a Motorola Defy and when i upgraded it to 2.2 the problem was solved, never tried adding icons manually to the screen at first boot after wiping the phone.

I hope you understand now.

BR
[Flipout and Charm General] matrix0807:
I (and all of user charm) hope polovinamozga can make a 2.2 rom for charm :D
[Flipout and Charm General] nodanero:
Yes, what is the problem to code 2.2? Can we boot unsigned kernels in the Charm?

We could get de drivers, firmware, blobs or whatever from other motorola roms.
[Flipout and Charm General] polovinamozga:
Very helpfull.

I commit changes to my repo soon as possbile.

UPD

Ok now i can reproduce issue.

1.put my mot_boot_mode to /system/bin/

2.wipe data

3.skip blur setup

4.poweroff

5.start

6.Won't start with error: device offline

I think that POWERUPREASON changed when phone starts first time (not reboot)

Fixed.

https://github.com/fedya/mot_boot_mode/raw/master/mot_boot_mode
[Flipout and Charm General] waltercell:
hi mr polo first congratulations of u good job !

brow i need put portuguese language in my mb charm y try with all more locale custon locale etc but no change language :( with more locale 2 change only 3 aplicattion :( really i need u and all menbers help :D

thks in advance
[Flipout and Charm General] newzen:
Would you re-upload the tun.ko for charm android 2.1? The links say the files es removed. Thanks for your time.
[Flipout and Charm General] waltercell:
pls any one can help me to put language portuguese to this phone :(
[Flipout and Charm General] polovinamozga:
Need recompile android 2.1 for this.

Or use sbf file not from T-mobile.
[Flipout and Charm General] polovinamozga:
Tun.ko module download
[Flipout and Charm General] waltercell:
i try with this firmware

BASEM_U3_01.12.4_DEBLUR_SIGNED_USABASIL01RINT150AI013.0R_PDS000_UC1SOMPBASLRTINT_P025_A016_HWp3_1FF

BASLA_U3_00.32.202_SIGNED_USABASMSTLALA02A.0R_PDS001_GCXBASLMSTLALA_P039_A023_M006_HWp3_1FF

BASLA_U3_00.32.203_R02_SIGNED_USABASCLALALA02C.0R_PDS000_GCXBASLCLALALA_P051_A021_M009_HWp3_1FF

but all after flash stuck in bootloader mode :(
[Flipout and Charm General] polovinamozga:
Try extract system.img from sbf

and flash it from recovery
[Flipout and Charm General] lele029:
thanks

thank you ，can you give me some forum about charm。i‘m a new user。

i want a deblur rom。
[Flipout and Charm General] pindey02:
FM Radio!

Jus got a motorola charm in India, sadly it doesnt seem to hav the normal Radio FM tuner! is there any possibility to get the radio function???

THanks in ADvance!
[Flipout and Charm General] viperthegod:
sorry to bug you guys but Is there there a guide on how to deblur stock Tmobile Charm. I tried to install the deblur rom with rsdlite but the phone will not boot.
[Flipout and Charm General] elliot.newnham:
Deblur- the charm!

Hey viperthegod

Here is how I "de-blurd" my phone. it really really speeds it up.

1) root the phone using Superoneclick (reboot)

2) Install Launcher Pro (we will be removing the stock homescreen)

3) Install Titanium Backup, launch

4) Now, click on each program in the list below, backup, then uninstall

*note* something might break? When in doubt, you can just re-install. Thats why we backed it up :D I removed a lot of the functionality like e-mail (i use gmail app) and happenings. Text messaging/dialing/internet/contacts/etc... all still work

TTS Service

Amazon MP3

Music Visualization

Setup Wizard

Android Live Wallpapers

Live Wallpaper Picker

My Uploads

ESMusica

HIHopOfficial

Revolver TV

TrueCountry

Com.Handcent.nextsms

Audio Postcard

DLNASystemService

AdService

My Album

Voicemails

AtCommandService

com.motorola.atcmd.plugin

Battery Manager

Admin Notifier

Work Contacts

Happenings

Home

Date and Time

Messages

Social Status

Messaging

Universal Inbox

News

Social Messaging Service

Accounts

Social Messaging

Motorblur Social Sharing

Weater

Quick Tutorial

*Takes breath*

Bluetooth Low Battery

Connected Music PLayer

IM 02.00

ImOfflineService

Task Manager

Com.Motorola.settings.anr.provider

Sticky Note

Toggle Widgets

My Space

Voice Dialer

Quick Office

My Account

Just pulled the list from what I have uninstalled in Titanium Backup.
[Flipout and Charm General] waltercell:
hi pls how to extrat systen.img from sbf file _:confused:
[Flipout and Charm General] jonxz:
I did that with sbf_flash on linux

# sbf_flash -x filename.sbf

Will extract a long list of img file, the one with biggest filesize, should be system.img, just rename it and put that on the SD card and restore.

Tried nandroid recover to restore system.img, but didn't work, my charm stuck at Motorola "M" logo and cannot boot now.