yashsingh1/xdaforums huggingface dataset:
[Android General] Dr. Hurt:
Here is the source code for bootmenu (in C then the compiled binary loads shell). Remember to compile for armv6.

How it works: bootmenu is basically a binary that loads early in boot, kills ADB and other processes, unmounts /system, clears root then loads CWM (all done via shell scripts).

It also provides an option to load a 2nd-init binary which loads a custom init.rc. I tried making use of this to create a clean environment (using init.rc similar to stock recovery) to load CWM but for some reason phone keeps resetting and stock init takes over. I probably did something wrong in the scripting so maybe you can make it work :D

PS. I think you're loading CWM way too late in the boot process. Remember that for CWM to work correctly, you need to unmount /system which means you probably need to shutdown all the services that have started up till the point you triggered CWM. Maybe you can fix 2nd-init to reset the system and create a clean environment for CWM or use a more dirty method by killing (killall, ssdaemon) all the processes manually then unmounting /system.
[Android General] deadwasher:
Motorola Fire XT311

Hi there

i own a white motorola fire xt311. it occasionally freezes, and laggy, so slow. 2.3.4, stock firmware, no rooted...

i really like this mobile, so any suggestions to make it more stable, or faster would be kind to me.

thanks in advance!
[Android General] Mazen.kh:
I own white one too :P!

I suggest:

Root it, uninstall some un-important apps

Replace moto-switch with any other smooth launcher like holo or adw launchers

I can give you a list of system apps that you can uninstall if you don't need them, when i login from my pc :)

You can also try to integrate updates into system, using link2sd

And you can also partition sdcard and link apps to sd card ext2 partition to increase phone memory :)

You can also install setcpu, or similar app, and set the cpu frequencies to 600 mhz min/ 600 mhz max, governer = performance, but that may drain the battery faster :) but you will see a difference
[Android General] mtvdeo:
OMG I am freaking out My xt611 is dead since yesterday and no one has got a firmware to flash it.

If someone could help me, I would be very pleased.
[Android General] leankuroneko:
Hi!

I'm totally newbie at this of modding. I have a MotoSmartFlip from Movistar Argentina, Rooted 2.3.7 Stock ROM (I've deleted some default apks but nothing more). I'm thinking of do a backup of the firmware, but I have no idea how to do this (and I don't want to kill my phone). If someone could help me I would send the ROM for the community.

Thanks!~
[Android General] mtvdeo:
OMG if you did it, you would save me, 'cause my smart flip has been dead since Saturday, lol.

I am a newbie too with this kind of Moto smartphones (I've got Droid Razr and it's totally different).
[Android General] leankuroneko:
LOL no problem!! (I think if I were you, I think I'll be walking on the walls 'cause I've killed my phone XD).

But... No idea how to do a nanBackup on the XT611 ._. I never did one.

I think it's similar to XT615 ('cause I've rooted my phone like that model), I'm just guessing...
[Android General] Mazen.kh:
you can use on android backup tool, search for it, it do NANDROID backups without cwm

but it's not fully compatible, you can only backup system.img succesfully, not sure about other imgs

then after you backup, upload it so that guy who have a dead smartflip can flash it using>>

adb reboot-bootloader

fastboot flash system system.img

fastboot reboot

i hope i helped :)
[Android General] Mr.Indigo:
OK. So you want a RETAIL ROM?

Here is it: LINK

It's an RETAIL ROM from Brazil. Configure everything.
[Android General] Mazen.kh:
So how are you going mr.indigo ? i can't find perfect rom for galaxy fit yet to start porting from !

also how can the build.sh get fixed ?

and do you know how to mkyaffs on windows :D ? because i don't like dealing with ubuntu :$
[Android General] Mr.Indigo:
I want to test with an Galaxy Fit rom. An 2.3.5 ROM that i found. And i didn't foun mkyaffs for Windows. If we can MOD it and test on the emulator... but i didn't found the bootanimation, launcher, etcetera.

That's the problem!
[Android General] Mazen.kh:
Is it even possible to test custom roms ? I don't think so

And how can we change the data in build.sh so it would match build.prop ?

Sent Burning From My Stock Stock Stock Motorola Fire's XDA Premium.
[Android General] Overcrasher:
Kernel mod

Hey guys, i was thinking about one thing... its possible to "extract" the Kernel from this 2.3.5 Global ROM and mod it to support Overclocking? im having some troubles with this stock CPU speed, ChainFire3D is helping a lot, but i need more CPU speed to run some "heavy" games... is it possible?

Im testing some games here, and here are some good ones runing fine:

Running OK

Crashing / Facing problems

well, i will keep this list up to date.
[Android General] Mazen.kh:
when the bootloader is unlocked, it can happen but for now it's locked, and it's impossible :D
[Android General] Mr.Indigo:
Build.sh, i didn't found this file on the ROM.

And we can unlock our kernel, OR port CWM and try w/ the locked bootloader. We need a bricked phone to test everything. And YES, we can test it. I discovered how today.
[Android General] Mazen.kh:
then how ? what did you discover :D

and do you know how to extract other images like hidden.img ? because i could only extract systemsec.mbn
[Android General] Mr.Indigo:
I've discovered using unyaffs. You can extract:

flex.img (bootanimation and CDA...)

hidden.img (setup & drivers)

systemsec.mbn

How i discovered how to test ROMs:

1. I installed SDK

2. Downloaded the API for 2.3.3

3. Then i've go to C:/PROGRAM FILES/Android/android-sdk/platform/api10 or api-10 or 10/images and got system.img

4. Then i've extracted with Unyaffs!

IMG files are recognized by unyaffs. And to pack everything again i use mksdcard -l system 200M system.img

For packing:

download the attachment and execute the above command into the CMD.

View attachment 1148496
[Android General] Mazen.kh:
yeah , while i was messing around i extracted felx.img, and i was going to tell you about testing roms on sdk but i didn't know how to repack images so thanks anyway !!

by the way check /hidden/data/cda >> setting.xml you'll find some mods in it it's awesome !

my rom didn't support font size changing but i found this line

<SETTINGS_FONT_SIZE_ADJ_OPT>false</SETTINGS_FONT_SIZE_ADJ_OPT>

and i changed it's value to true instead then i found font size option in my display settings !
[Android General] Mr.Indigo:
Repacking you just use mksdcard with the CMD, so download the attachment from the other post and execute the command:

mksdcard -l NAMEOFTHEFILE SIZEM (M for MegaBytes and GigaBytes) NAMEOFTHEFILE.img

Example:

mksdcard -l system 200M system.img
[Android General] Mazen.kh:
Thanks !!

by the way i found a strange line

<SYSTEM_BATTERY_MANAGER>true</SYSTEM_BATTERY_MANAGER>

in that file i told you about in the first post, when i changed it to true a new item appeared in settings application called battery manager but when i click it force closes :/
[Android General] Mr.Indigo:
Battery manager comes activated in VIVO ROM. And don't FC (hehe).

EDIT: Did you find OTA? Look:

<OTA-settings>

<OTA-update-server><![CDATA[http://TPE-OTA.fihtdc.com/]]></OTA-update-server>

<OTA-server-type>default</OTA-server-type>

<check-interval>1</check-interval>

<download-setting>1</download-setting>

<show-URL-menu>false</show-URL-menu>

<OTA-wifi-character>Wi-Fi</OTA-wifi-character>

<support-cache-storage>true</support-cache-storage>

</OTA-settings>

It's crazy but XT316 gets OTA from FOXCONN!
[Android General] Mazen.kh:
do you have an apk that is called battery manager ? so you can upload ?

by the way i'm XT311

i have those lines in setting.xml but i don't see any ota update option in the phone :D by the way what's foxconn ? :$
[Android General] Mr.Indigo:
OK, here is the BatteryManagerAP.apk:

View attachment BatteryManagerAP.apk

And FOXCONN is the "Manufacter" behind iPad, iPhone. They make the devices for Apple, Motofail, etc. And FIH is an Foxconn division, where our device software borns!

I've changed the OTA value from 0 to 1. We have to test it.
[Android General] Mazen.kh:
it worked, but power saver doesn't dim display but anyway..

i found that vivo rom came with games lol :D also it have quick office which i don't have and that windows live app is cool , just sayin :D
[Android General] Mr.Indigo:
Oh, Vivo ROM is pretty modded. And Windows Live you have to pay :O.

And the games are ALL DEMO! That's the matter. And Quickoffice is pretty good to edit, etc. And comes with Facebook & Orkut.
[Android General] Mazen.kh:
I FOUND THIS IN SETTING.XML !!!!

<ro.MEDIA_ENABLE_SRS>false</ro.MEDIA_ENABLE_SRS>

<MEDIA_ENABLE_SRS>false</MEDIA_ENABLE_SRS>

I'll try, not sure if it's gonna work

i found this too

<ro.SYSTEM_LED_NOTIFY_STYLE>0</ro.SYSTEM_LED_NOTIFY_STYLE>

but i think it doesn't work, at least for me.

and the windows live messenger in that app appears to be integrated messenger withyou
[Android General] Mr.Indigo:
You've downloaded the VIVO rom ? What is the version? 2.3.4 or 2.3.5???
[Android General] Mazen.kh:
2.3.5

I found a thread in mod2extreme that contains many motorola xt311/xt316 sbfs, http://www.mod2xtreme.com/downloads.php?do=cat&id=117

but you'll need to register

Sent Burning From My Stock Stock Stock Motorola Fire's XDA Premium.
[Android General] leankuroneko:
Thanks!!! (Yep, I've been talking with him :P)

Just a doubt, I remember that when I've installed nandroid, It prompted something about recovery menu (or recovery boot, can't remember), and threw a list. Do you know 'bout this?
[Android General] aweosomeabhijeet:
You just can't backup nandroid with recovery because backing up nandroid is a feature of custom recovery and we are not having any custom recovery in our phone(s) because of locked bootloader.
[Android General] Mazen.kh:
Hey i made many nandroid backups without even shutting down android system :P

there are many tools like ( on android backup [Phone] ) and ( Universal Android AIO Flasher [PC] )
[Android General] aweosomeabhijeet:
Ya i know how that is done.

I was talking about making it with Custom recovery. i.e. not possible on these phones
[Android General] Mazen.kh:
Oh sorry i misunderstood :cyclops:
[Android General] aweosomeabhijeet:
It's ok.

Doesn't matter. :laugh:
[Android General] no_pride:
USB tether problem

Reposting this here in case somebody has a solution...
[Android General] aweosomeabhijeet:
Have you tried with any other app from market?

I haven't tried this,just a suggestion.
[Android General] no_pride:
I haven't yet. I will try to search for 3rd party apps this weekend when i have more free time to download and test. But i also hope we can have an updated version of the two files. Thanks
[Android General] aweosomeabhijeet:
Maybe
[Android General] Mazen.kh:
Notification LED fix : NotifyLed.apk

Heyy! xt530, xt531, xt316, xt311, xt532, xt317 users! (maybe more)

Thanks to a Spanish xt316 blog/forum taringa.net I found that

NOW YOUR NOTIFICATION LED (ONLY BLUE) WILL WORK WITH ANY APP, NOT ONLY SMS, MISSED BATTERY LOW!

I tested it and it works with whatsapp,

Just replace NotifyLed.apk with this one in attachments :)

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

My extra mod:

Removed Batterylow, Missed call, New sms/mms blinking, so you can re add them *IF YOU NEED THEM* with Light flow

i did so in my own new apk for those who hate battery low blinking

or those who want to change the blinking speed for Mms/Missed call via light flow, the old apks would conflict with them.

also because when the battery is 15% or lower and for example you have a whatsapp notification it won't blink because of the battery low blinking already

Press thanks if i helped, pointing you to the apk :angel:
[Android General] Mr.Indigo:
Now we just need a CWM...

I Was thinking in get back to FroYo and try to run battery_charging. But Terminal Emulator doesn't work, even fastboot doesn't work.

Since my PC is back, now I have to download FroYo again, and TRY to make Google Apps work. Please, wish me luck!
[Android General] Mazen.kh:
i remember once i made gapps work from 2.3.5 arabian rom to 2.3.5 chinese rom that doesn't have gapps

maybe we can do the same with 2.2.2 rom?

I wanted to add that i installed init.d support via PimpMyRomAlpha.apk

and it's working, awesome, now the v6 supercharger works flawlessly, and it says "current values match prior SUPERCHARGE!

:)
[Android General] mEmoZz:
I just test it and it's not work I tested it wiz whatsapp! it's not work!!!!

EDIT: it's works NW when the phone's sleeps as u say thnx alot for ur work man but I was hope the color can be changed :(
[Android General] Mr.Indigo:
I dunno. I Know that we cannot install GoogleServices Framework in a normal install. We need to use ADB. I will flash NOW. Wish me Luck! :)
[Android General] Mazen.kh:
Yup that's exactly how i made it work with chinese 2.3.5

---------- Post added at 10:45 PM ---------- Previous post was at 10:32 PM ----------

@mEmoZz

It will work when the phone is sleeping, and you recieve a msg. On whatsapp, talkdroid, etc..
[Android General] Mr.Indigo:
SUPPORT FOR XT611 STOPPED!

I'm very sorry to announce it, but read only:
[Android General] mEmoZz:
please help :(

the home & search touch keys not work :( I restart my phone 4 times and it's not work :( help plz :(
[Android General] Mazen.kh:
If you delete the "setupwizard.apk" and did a factory reset, they won't work

also when you're very low on phone memory they won't work.

If i were you i'd SBF the phone
[Android General] mEmoZz:
I made a factory reset no one help me I made it & NW u come and say to flash new sbf :D the keys works NW thnx for everything Mazen 'for everything' and for "block"!!!!!!!
[Android General] andrewidya:
Hi guys defy cwm works on my phone by executing via terminal, I tried last night & make nandroid backup, maybe there is someone here wanna make this recovery to .img file & temporary boot via fastboot? :)
[Android General] aweosomeabhijeet:
The problem is that temp CWM via fastboot is giving error in our phone.

Via exec command cwm for xt300 also works.

Error:

Failed : Incomplete bootimage
[Android General] Mazen.kh:
But if he could make a nandroid via cwm, does that mean he could mount system ?
[Android General] aweosomeabhijeet:
I think so.
[Android General] Mazen.kh:
Then i think that means that he can flash zips ?
[Android General] aweosomeabhijeet:
Exactly.

But lets wait for him to come and throw some light on this topic.
[Android General] andrewidya:
Yes it mount system, but because its for defy, the partision table is different, in our phone the partition table of system is mtd but in defy is mmc so when I tried to flash my nandroid the cwm failed to mount /dev/block/mmcblk1p21 to system because this partition doesnt exist, in our phone should be /dev/block/mtdblk0p8 (our system partition).

I edit the installer script (line of system mount point, its easy because the script is shell command) but the recovery binary was compiled to work on defy partition table, so we need to find the source and recompile it after make some modification.

It difficult for me to build it, coz I need linux to do that.
[Android General] aweosomeabhijeet:
PM me how to do it.

I'll get linux from somewhere and do it.

Can we use recovery from XT300 bootmenu?
[Android General] Mr.Indigo:
Wait... what init.d controls?
[Android General] aweosomeabhijeet:
Where is init.d?

I had seen how to enable script at system booting.

But it requires init.d n I can't find it:confused::confused:
[Android General] Dr. Hurt:
Our phone doesn't have init.d as it requires a custom kernel!

I run the v6 supercharger via script manager but it makes the phone sluggish instead of boosting performance.

Another way to start a script after every boot would be to add an entry to the postboot script (in /system/etc)
[Android General] aweosomeabhijeet:
Post boot will be too late.

It is after all system processes are finished.
[Android General] Mazen.kh:
Init.d scripts are scripts that run at the booting of system *I guess?*,

The ability to have init.d is in custom roms, but the alpha apk of PIMP MY ROM gives you the ability to have init.d scripts in stock roms WITHOUT CUSTOM KERNEL, inside the folder "/system/etc/init.d" and they will run at boot, i enabled it, tested it with some scripts like "V6 super charger" and some other test scripts

@7amdoun

at the first boot after enabling V6 the phone maybe laggy, but after a while it will be perfect!

And i think that we don't have post boot? We have another thing called qcomm post boot that didn't work with me,
[Android General] aweosomeabhijeet:
Can you provide the apk?

Edit : nvm I got it. :laugh:
[Android General] mEmoZz:
hey guys I use PimpMyRom and 'init.d' in my ROM! look at that screenshot!
[Android General] aweosomeabhijeet:
It works.

Successfully booted into bootmenu no lags

Mounted system ,sdcard :)

Too happy

Edit : But within 2-3 min it shuts down the system to not working state

---------- Post added at 10:56 AM ---------- Previous post was at 10:38 AM ----------

Now we need someone to mod CWM for our device.

I can do that but for that I need Linux.(with the help of andrewidya)

I can get linux but it may take some time.

If someone is having Linux could you please do that for us.
[Android General] mEmoZz:
sh*t!!! u say u can do CWM for our devices!!!!!

man take all time u need but do it!! please do it pleaaaaase!!!
[Android General] aweosomeabhijeet:
okk!!!

I am downloading Linux Live CD it may take upto 3 hours.

Then I'll do it.
[Android General] mEmoZz:
okey bro our hearts with u :D I hope u success :)
[Android General] aweosomeabhijeet:
The bootmenu shuts down systen within 2-3 min's

Could someone suggest me how do I make it working till I want.

And please tell me if we can load it through other keys so that it doesn't disturb normal boot.(like defy's)

Hope any one could help me :)

---------- Post added at 11:18 AM ---------- Previous post was at 11:12 AM ----------

**** man internet is not woking in PC.

It could take some more time.
[Android General] mEmoZz:
take all time u need man! but can that CWM work on XT311,XT316?
[Android General] aweosomeabhijeet:
Think so.

Doesn't matter if it doesn't work I'll port for your device too. :) :fingers-crossed: :cool:
[Android General] Mazen.kh:
Hey i have full ubuntu installed aside with windows already

if you tell me exactly what should i do i'll do it

because i'm totally noob in linux
[Android General] mEmoZz:
I was installed wrong CWM Recovery and it's dead my device 2 times if ur CWM dead my device I will dead wiz it :D
[Android General] aweosomeabhijeet:
I am also a noob in linux I even didn't saw linux. :p

Contact andrewidya he will tell you how to do it he was telling me to do it. Now you have it so do it.

Hopes with you
[Android General] Mazen.kh:
Okay, when i reach my pc. Again

By the way, can't we use cwm builder online?

There's a site that you can upload your stock recovery then it builds cwm via stock, then you download cwm for your specific device?

Can't we just use it?

I suggest using our stock recovery pulled from nandroid made via "onandroid tool" instead of trying with recoverysec.mbn
[Android General] aweosomeabhijeet:
Yes use pulled from onandroid tool.

And I tried online builder with romdump recovery but that failed.

So we have to do it on our own. :thumbup:

---------- Post added at 12:06 PM ---------- Previous post was at 12:00 PM ----------

It will not let our device to be dead.

Since we are not installing it.
[Android General] Mazen.kh:
I Think online tool finally built it ?

I think the online tool finally cooked it :)

and gave me this output:

Build Artifacts

android_device_fih_DMQ.zip	3.28 MB

inputrecovery.img	7.00 MB

manifest.xml	53.95 KB

recovery.img	5.07 MB

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

The final result was:

"You can download the recovery image and other artifacts by clicking "Status" in the menu on the left.

Archiving artifacts

Finished: SUCCESS"

android_device_fih_DMQ.zip << i dunno what's this

inputrecovery << the recovery that i uploaded to the site that i dumped from my device

mainfest.xml << dunno what's this

recovery.img << the output recovery that site has built

YOU CAN ALSO FIND THE RECOVERY AT http://builder.clockworkmod.com/builds

DOWNLOAD FIH - DMQ

Fih dmq refers to foxconn domino q

if you do it with xt530 it will be FIH DMP < refers to domino plus
[Android General] aweosomeabhijeet:
Can you exteact recovery.img with kitchen?

I am not able to do it because I am using phone.

And I am away from home.

Bcoz we need it extracted
[Android General] Mazen.kh:
Here it is
[Android General] mEmoZz:
I feel good :D
[Android General] aweosomeabhijeet:
now everything's above my head. :P

now waiting for someone to give light.

Edit : Well I succeeded in flashing a ZIP. :)

But CWM shuts in 1-2 mins why is it so?

As flashing ROM takes 5 mins it would be a crap to have it shutted down

And please somebody come and give light on how to get it working by some keys. :)

If any one has any idea please share

Hoping for success
[Android General] Mazen.kh:
well maybe the system tries to boot ?

PS:

i added your init.d script and the bootmenu still doesn't boot :/
[Android General] aweosomeabhijeet:
Maybe.

Anyway to stop system from booting.?
[Android General] Mazen.kh:
Idk actually..
[Android General] Mazen.kh:
Can anyone help me?

When i try to manually execute the boot menu it replies with the following (in terminal emulator):

$ su

# exec /system/bootmenu/binary/bootmenu

Run Bootmenu..

I:Starting bootmenu on Fri Nov 16 16:56:32 2012

I:exec /system/bootmenu/script/pre_bootmenu.sh

Ln: /sbin/sh: File exists

cp: can't stat '/system/bootmenu/binary/Lsof': No such file or directory

I:default_bootmode=3

I:default_bootmode=3

I:Start Stock boot....

I:exec /system/bootmenu/script/stock.sh

$

then it doesn't load bootmenu

i know running bootmenu on top of android is useless, but if i couldn't run it through "exec /system/bootmenu/binary/bootmenu" it won't be able to execute at boot also.
[Android General] Dr. Hurt:
To stop the system from booting, I use "adb shell stop" command from my PC. Maybe you could add something like that command to the prebootmenu script or something.
[Android General] aweosomeabhijeet:
I added that but Cwm still shuts
[Android General] andrewidya:
The cwm start is great but shutdown after 2-3 minutes because this one is for jellybean see from the manifest.xml (used for describes class in android app)

Need linux to github the source of cyanogen repo, it contains cwm, git the repo for gingerbred or froyo (try to build in both version) then compiled the cwm using structure of our boot.img (get this from romdump tool)

Try with fastboot, when runs make a fakeflash (zip format)
[Android General] aweosomeabhijeet:
I tried but it doesn't load CWM

Nevermind i didn't get what you said about linux
[Android General] Mr.Indigo:
TRANSLATING TO NON-LINUX USERS:

You need to download CyanogenMod or Android Stock repositories using repo and git. I tried once, but Wubi only allowed 25GB in my hard drive. REPO needs 50. After downloading the repositorues, you need to compile a boot.img using CM repositories. Then you go to fastboot and make a fakeflash (explain to me what's fakeflash)
[Android General] chen2011521:
I try it before

But from ics and jellybean source.

One told me the version of this has nothing to do with rom version.
[Android General] aweosomeabhijeet:
Hey guys.

Wanted to tell you something.

I'm using CWM that Gentry-lamp made for XT300 and 7amdoun modded for XT530.

And what I think that it is not for jellybean.

Here it is.

See yourself and tell me if it is so.

And I found how to use Git in windows

http://nathanj.github.com/gitguide/tour.html