yashsingh1/xdaforums huggingface dataset:
[Android General] andrewidya:
You need to run bootmenu in booting time, change the Moto init with 2nd-init when boot, 2nd-init is just init process, we need the hijack script to overwrite moto init (I think it possible to overwrite it because in boot time init is written in memory not in ramdisk) and hijack script could do this, first thing is to substitute XT530 boot binary (in other motorola mot_boot_mode) which I didn't find in this phone :(. Or maybe motorola has changed this to something else

CMIIW
[Android General] Mazen.kh:
*DUMB QUESTION*

can't we multi mount /system/ for example:

we can multi mount sdcard to use it with phone and pc at the same time,

can't we do a similar thing with /system?

BTW: the boot menu tells me the following

cp: can't state /system/bootmenu/binary/lsof no such file or directory

mount: Device or resource busy

why ?
[Android General] Dr. Hurt:
@andrewidya:

I think you've got the wrong the idea.

Normal boot:

kernel -> init -> init.rc -> OS

This is what bootmenu is supposed to do

kernel -> init -> init.rc -> bootmenu -> 2nd-init -> custom init.rc -> CWM or OS (depends on what you select in menu)

Yoou CANNOT by any means modify any of the first 3 steps. Absolutely no way to do it!

@everyone else:

Stop trying to get bootmenu and CWM working on top of the OS. Even if it loads, you won't be able to modify the system partition because it will be in use. Thats why we're trying to load it in early boot.
[Android General] aweosomeabhijeet:
See this:

http://www.androidenea.com/2009/08/init-process-and-initrc.html

Is this possible?
[Android General] aweosomeabhijeet:
Hey suggest me.

If i open bootsec.mbn renaming it as boot.img and open by xda's kitchen and do some changes then repack it.

Then would I be able to flash it in fastboot?

Has anyone tried that??
[Android General] Dr. Hurt:
Repacking it would destroy the signature and brick the device!
[Android General] aweosomeabhijeet:
Thanks for advice! !
[Android General] aweosomeabhijeet:
Done mounting sdcard.

Now only left with umounting /system
[Android General] andrewidya:
See from the source 2nd-init and the process it self, I still think that we need hijack script before fire the 2nd-init up, yes you were right about that flowchart all we have to do just change the step

Kernel -> init -> init.rc -> bootmenu(which we'll change with hijack to overwrite init.rc) -> 2nd-init(then deactivate it coz there is only just 1 init process) -> cwm or OS

I got this idea from milestone, droid razr & defy's process (hijackers change mot_boot_mode with hijack script since phone will not boot if they dont have this, just by symlink it)

In XT530 i dont find the main binary to call when it boot in order to change with hijack script (mot_boot_mode I mentioned), thats why I think that motorola change it with other binary in this phone

*it should be in /system/bin/
[Android General] Dr. Hurt:
Never mind, read the post below :D
[Android General] Dr. Hurt:
My exams are approaching so I won't be coming here too often :(

Here's my advice for now. After analyzing the XT530 boot process in details, I have concluded that the only remaining option is hijacking services started via binaries.

These are probably the most exploitable binaries, in chronological order:

sh (best timing)

loggerlauncher (maybe easier)

app_process (probably too late)

If you guys have time, try renaming, symlinking bootmenu to each of these and see which one works.
[Android General] Mazen.kh:
i don't think we can link sh, because the orginal sh binary will be needed to execute some of the bootmenu scripts right ?

for example: pre_bootmenu.sh < this can't be run without the orginal "sh" be in /system/bin/ or am i wrong ?
[Android General] Dr. Hurt:
I think bootmenu uses busybox instead of system binaries.
[Android General] aweosomeabhijeet:
We cannot use sh as this is necessary for terminal emulator to run.

Renaming this we wont be able to run terminal emulator and hence no symlink.

Loggerlauncher didn't worked I tried that earlier
[Android General] Dr. Hurt:
If loggerlauncher failed then sh would probably fail too!

To do it,

ln -s /system/bootmenu/binary/bootmenu /system/bin/sh.temp

rename sh to sh.bin and sh.temp to sh.

BTW, if this works, you'll need to have an SBF ready because the system will get stuck in bootmenu. We'll need to modify it work with sh instead of battery_charging.
[Android General] aweosomeabhijeet:
Didn't work. :(

Constant failures resulting into loosing hope :(
[Android General] Dr. Hurt:
What happened? Bootloop, boot stops but no boot menu, normal boot?

I tried flashing the XT532 bootloader via sbf_flash in linux but it didn't work. SBF_flash does not detect the phone in bootlooader mode, which confirms my previous finding that we couldn't start CWM via fastboot because of a problem in our bootloader mode.

I feel really pissed off now. Motorola engineers put more effort into protecting the software than actually making it work right.

I'm disgusted by the fact that this Motorola phone is slower than much older, lower spec phones.
[Android General] aweosomeabhijeet:
Yeah, now fed up of this.

Normal boot. :mad::banghead:

Will return here after some time. :rolleyes:

I have lots of school work. :)

FACT: If motorola got a unlocked bootloader, it can increase their sale upto 50% .
[Android General] Dr. Hurt:
I found out that there is a way to flash the bootloader via fastboot.

fastboot flash APPSBL appsbootsec.mbn (no erase command before).

If this works partition sizes will also be changed which would allow flashing the XT532 system.img along with the boot.img!

Thing is, I have absolutely no idea if this would work!
[Android General] aweosomeabhijeet:
I'll try it now.

And isn't there a need to rename it as .img?:confused:

Edit : Failed unknown partition name.

---------- Post added at 04:06 PM ---------- Previous post was at 03:37 PM ----------

And about system.img. I erased the system when was trying to load XT532's system. When it failed I tried flashing XT530's system back but it replied the same "remote file too large".

i.e in this phone we are not able to flash system too. :(

Now moto sucks a lot . :rolleyes:
[Android General] Dr. Hurt:
Well, I think its time to quit again.

I'm probably gonna sell this Moto soon and buy an LG nexus 4 when it comes to Egypt. It costs $299, retail unlocked. I wonder how much its gonna cost here in Egypt with our outrageous taxes
[Android General] Mr.Indigo:
JUST A TIP:

Fastboot only accept IMGs, Mazen tested on 317 recovery a day, right?

So you need to rename to appsbootsec.img

OK?
[Android General] :
Need some help !

Does it work with Android 2.3.4 on motorola fire xt 311 ?

I saw that this is for 2.3.5...

I'm afraid that I'm gonna brick my phone.

If I follow carefully these steps, is there any chance to brick my phone ?

Thanks for help !
[Android General] Mazen.kh:
which steps xD?

we didn't reach how to reboot to cwm yet

And are you all trying to flash bootloader via bootloader o.O? seriously ?
[Android General] Dr. Hurt:
It's possible on some devices because once it loads, it runs from RAM so the files in ROM can be replaced. The same applies to the kernel too.
[Android General] :
I mean steps for rooting motorola fire XT 311. wich is the main thread. What are you reading ? Stop giving stupid answers...

I want to root my Motorola fire XT 311 and it sais that it works with android 2.3.5, and I wanna know if it works with 2.3.4 That is what I'm saing. I don't want to flash anything keep your ideas for you.
[Android General] Mazen.kh:
LOl the third line in my last post wasn't for you anyway ^^

thanks for your nice language ^^

yes you can root it anyway.
[Android General] Mr.Indigo:
Guys, can anyone provide me a newer SBF than DMQ-4480-4017 or DMQ-4620-0-2013?

I think that we can find one with the binary!
[Android General] Boss442:
"remote file too large" is a known error, use motofastboot for atrix, should fix it :fingers-crossed:
[Android General] aweosomeabhijeet:
I'll give it a try

Edit : Didn't worked with moto fastboot too.
[Android General] aweosomeabhijeet:
http://www.change.org/petitions/motorola-mobility-inc-unlock-all-smartphone-bootloaders-2#

Has everyone signed this?

If not then do it now.
[Android General] Mr.Indigo:
Yep. Long time ago....
[Android General] Mr.Indigo:
GUYS,

Someone needs to reflash and take a photo of the screen while flashing... it will show the partitions Name.... simple and fast.

I Cannot reflash now by the tests that I'm doing, so anyone take a pic of the screen during flash and post in the thread.
[Android General] andrewidya:
If you need to know partision name of system just type this in terminal emulator

"mount"

Or using busybox if you installed it

"busybox blkid"
[Android General] Mr.Indigo:
Hmmm.... I will see it!
[Android General] aweosomeabhijeet:
Here's the result

# mount

mount

rootfs / rootfs rw,relatime 0 0

tmpfs /dev tmpfs rw,relatime,mode=755 0 0

devpts /dev/pts devpts rw,relatime,mode=600 0 0

proc /proc proc rw,relatime 0 0

sysfs /sys sysfs rw,relatime 0 0

tmpfs /mnt/asec tmpfs rw,relatime,mode=755,gid=1000 0 0

tmpfs /mnt/obb tmpfs rw,relatime,mode=755,gid=1000 0 0

/dev/block/mtdblock1 /misc yaffs2 rw,nosuid,nodev,relatime 0 0

/dev/block/mtdblock5 /hidden yaffs2 rw,nosuid,nodev,relatime 0 0

/dev/block/mtdblock6 /hidden/data yaffs2 rw,nosuid,nodev,relatime 0 0

/dev/block/mtdblock8 /system yaffs2 rw,relatime 0 0

/dev/block/mtdblock11 /data yaffs2 rw,nosuid,nodev,relatime 0 0

/dev/block/mtdblock10 /cache yaffs2 rw,nosuid,nodev,relatime 0 0

/dev/block/mtdblock9 /misc2 yaffs2 rw,nosuid,nodev,relatime 0 0

/dev/block/mmcblk0p2 /data/sdext2 ext3 rw,relatime,errors=continue,data=writebac

k 0 0

debugfs /sys/kernel/debug debugfs rw,relatime 0 0
[Android General] Mr.Indigo:
I'm searching for partitions name to use in fastboot!
[Android General] andrewidya:
Fastboot is on ftm partition which hidden n not mounted by system, this partision will be mount if we tell our phone to go there by pressing combination keys

Use this to show what are partitions inside our phone

"cat /proc/mtd"

The mtd'x' is the block name of the partition
[Android General] aweosomeabhijeet:
I know how to go into FTM mode but what to do then?

It has nothing just a M logo and on the left corner written enter FTM mode.
[Android General] Mr.Indigo:
FTM mode is used to transfer firmwares in .SBF format. If you connect your phone powered on with RSD Lite opened, you will go to FTM Mode.
[Android General] aweosomeabhijeet:
My phone never does that.

I have to go to moto software update to do that.

And the partitions are like(while flashing)

APPSBL HD

APPSBL boot

Android system

Android ftm

Etc etc I dont remember and I cant flash my pc os has crashed I'll tell u later on. Hope you don't mind.
[Android General] Mr.Indigo:
Thanks! :)
[Android General] krishnak1:
Systemui.apk is fine. . .

statusbar is working fine bro!!

but d frame-work.apk...it has some prob bro. .. my were'nt responding prply and phone memory got decreased . . without installin anythng new.. . .aftr replacing wid ur framework.apk. .. .
[Android General] Mazen.kh:
Which rom are you using?

And do you have link to sd installed?

If you have link2sd, try to relink all app files then reboot

Then try to relink dalvik..

I made this framework mod over global rom, uae generic, if you want this mod and theme for your specific framework pm me.
[Android General] Dr. Hurt:
I think I found out what was causing the graphics issues with the new kernel.

Copy /system/lib/libsurfaceflinger.so and libsurfaceflinger_client.so from the XT532.
[Android General] aweosomeabhijeet:
Do you have those files?
[Android General] Dr. Hurt:
There they are.

If that doesn't fix it, I'll upload the adreno libs too which might help.
[Android General] aweosomeabhijeet:
But how to replace those files?

Is it the correct directory?

And the sd card isn't mounted and adb push not working so how to replace files?

---------- Post added at 03:41 PM ---------- Previous post was at 03:26 PM ----------

Here's the full list:

Parti Table

APPSBL HD

APPSBL Boot

MODEM CODE

CUST NV

AND SECHD

ANDROID BOOT

ANDROID SYSTEM

ANDROID RECOVERY

ANDROID FTM

ANDROID FLEX

ANDROID SPLASH

(They were on the flashing screen)

I wasn't able to take a picture sorry.
[Android General] Dr. Hurt:
ADB not working?! Try disabling and then re-enabling debugging in application settings.

I think those two problems are related to bins not libs, probably vold and sdcard bins for SD card and debuggerd for ADB.

@mazen, how did you fix the sd card mount issue? Was it by replacing /system/bin/vold?
[Android General] Mazen.kh:
SDCard mounting in xt317's kernel ?

actually i didn't fix it, it was semi working,

music player and root browser detected sd card, but android system itself unmounts it as soon as the phone powers on,

a notification appears saying "sdcard is safe to remove"

though the apps i mentioned are working.

some android system related apps/activities weren't working.
[Android General] andrewidya:
Copy via card reader then insert your sdcard to the phone and try to mount it manually

mkdir /mnt/sdcard
mount -o rw -t vfat /dev/block/vold/179:1 /mnt/sdcard
ln -s /mnt/sdcard /sdcard
[Android General] aweosomeabhijeet:
Replaced them with adb facing boot loops.

:(

Will flash again :(
[Android General] Dr. Hurt:
You can just use "adb shell stop" to stop the phone from bootlooping and push the old binaries again.
[Android General] aweosomeabhijeet:
Hey all guys.

I have talked with one of the developer of XT615. He told me that we have to compile CWM with our stock recovery to get 'TEMP' CWM working.
[Android General] andrewidya:
Can you provide the stock soure code, I'll try to compile it with cwm and tell you the result
[Android General] Mr.Indigo:
LOOK and tell me: WE CAN DO THE SAME THING!

http://www.xda-developers.com/android/optimus-4x-bootloader-dump-let-the-unlock-projects-begin/
[Android General] aweosomeabhijeet:
Could you tell me more about source code? I don't know what is that.

I only have stock recovery.img.
[Android General] Mr.Indigo:
Just head:

http://sourceforge.net/motorola/

There is the source code for XT530/XT311/XT316!
[Android General] aweosomeabhijeet:
Well we can only try.

Have you tried something?
[Android General] Mr.Indigo:
Nope.... but let's try!
[Android General] mEmoZz:
hey please help I searched for this but I didn't fined anything :(

I'm want to mod the Mms.apk emotions I used apktool and unpack the file and go to res/value/public.xml and I opend it by note++ and it's open but when I goto the emotions line to edit the name & the code like ": - )" I want to make it ": )" but I never make it :s I found the line like this but not that

<public..........'word'........... name="emo_im_happy" id="07200003d"/>

something like that I want to know what is that "id" mean! please help me and excuse me for my bad English :(
[Android General] aweosomeabhijeet:
That is the id for that emoticon picture it is located in framework-res.apk.
[Android General] mEmoZz:
ok thnx alot, but where the ": - ) : -(" codes? I want to change it and add some new emoticons?

and

how I can write that id and understand it?
[Android General] Mazen.kh:
i think you need to understan java android code, not only xmls

i mean i think you need to understand smalis
[Android General] mEmoZz:
s**t! :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'(
[Android General] :
About rooting my phone

Hi, I'm the guy with the motorola fire Xt 311. I Want to root it. DO I have to install android sdk ? Because in the tutorial it doesen't sais.

Thanks !

PS: I'm a liitle scared abaout bricking my phone. Ok, ok, I'm very scared about bricking my phone... :(
[Android General] mEmoZz:
hey bro PM me ;) and hit a thnx :)
[Android General] :
Motorola fire XT 311 rooted !!!!

I just rooted my Motorola Fire XT 311 without any problems, I've just followed carefully stepst from the main post.

Thank you for your support !

Really, Thank you !
[Android General] mEmoZz:
ok man check ur PM again!
[Android General] mEmoZz:
@Mr.Indigo please check that!!!!

that thread talking about how to build an cyanogenmod 10 ROM :D check it man :D

http://xdaforums.com/showthread.php?t=1971645
[Android General] chen2011521:
Without a CWMrecovery,we can't do anything.
[Android General] mEmoZz:
I know but I think we can learn anything! and don't forget that theread for LG
[Android General] enox.co:
hey the only way to get cwm working is the temp. method that is inculde in my cwm6.0.1.5 for XT615 ....This is just a custom recovery that gets executed in the bootloader......or better to say " example: its gettin pushed between 1 and 2 stage of bootprogress.... this overwrites nothing...after using cwm you reboot your device and cwm is away...... "the problem is that the bootloader checked stocked images like recovery.img so if you overwritte the original recovery...you get into bootloops... " i hope you understand what i want to say ^^

so the "start_recovery.bat" only does this :

adb devices

adb reboot-bootloader

fastboot boot recovery.img

to create a cwm for your device i only need your stocked "recovery.img" and maybe the "recovery.fstab" file ....
[Android General] aweosomeabhijeet:
Thanks for your help

If you could help us that would be great.

I have the stock recovery.

And if you could tell me where recovery.fstab is located I'll give that too.

Here it is.

(I have seen your work for XT615. Nice work man!)

Thanks
[Android General] enox.co:
i have the recovery.fstab ..... extracted from recovery.img ^^ now i try my best to build a working cwm ^^

# mount point fstype device [device2]

/boot mtd boot

/cache yaffs2 cache

/data yaffs2 userdata

/misc mtd misc

/misc2 mtd misc2

/recovery mtd recovery

/sdcard vfat /dev/block/mmcblk0p1	/dev/block/mmcblk0

/system yaffs2 system
[Android General] aweosomeabhijeet:
Thanks
[Android General] enox.co:
ok first try fails ... but im a little bit confused about 7 xt devices called "Fire" xD but you can basically check if the script works .......just download my cwm6.0.1..-. version "link & instructions" in my signature ..... and before you start the start_recovery.bat replace the recovery.img inside the folder with your "stocked" recovery.img ....... if the phone reboots and start into stocked recovery.... we will know if it works :)
[Android General] aweosomeabhijeet:
Failed.

(remote : Incomplete boot image)
[Android General] chen2011521:
Great! Hope for your good work !

I ported a cwmrecovery for our phone since I konwn xt615 can use a rec

with 'fastboot boot recovery.img'

But on our phone,

sending 'recovery.img' XXXKB ...

OKAY

waiting 'recovery '...

OKAY

H:\>_

But devices didn't respond.

When I replace the recovery.img with the one I got with command

cat /dev/mtd/mtd3 > /sdcard/recovery.img

It told me:

FAILED (remote:incomplete bootimage )

Even I try the secrecovery.mbn which picked from sbf .it also the same notice.

Why?
[Android General] Dr. Hurt:
Thats what I was talking about a while ago. There is a problem with our bootloader, it won't recognize any external image.
[Android General] aweosomeabhijeet:
Don't have any other ideas too. :(

Probably going to sell it and buy any other.

Highly disappointed with Motorola
[Android General] andrewidya:
If cwm doesn't work for now, maybe we can still flash custom ROM system.img using fastboot, like cm6 maybe?

Eventhough cwm runs in this phone, I think we can only flash the system but not the kernel just because the locked bootloader

Have guys ever tried to porting Custom ROM to img file?
[Android General] Dr. Hurt:
I just bought a Samsung Galaxy W and I'm loving it so far. It has a very fast CPU (1.4GHz) and GPU, so it can handle future updates with ease. I alread installed CWM on it. Gonna install CM10 Jelly Bean soon once the dev fixes the bugs.
[Android General] aweosomeabhijeet:
Samsung phones are nice.

Can be fully customized.

Hope I'll get one.

Well, Congrats

I had a Galaxy Y before Moto, Sold it just to buy this crap. Was not aware of all this (rooting, etc) . Now thinking what have I done.

---------- Post added at 06:08 PM ---------- Previous post was at 06:02 PM ----------

Have tried flashing system.img ,it doesn't work.

Bootloader is very highly secured.

Now having CWM on this phone is like a challange for us by Moto-Devs.

Hope we can succeed.
[Android General] mEmoZz:
Mazen & Indigo we're r u guys?!! /:)
[Android General] Mr.Indigo:
I'm here! :)
[Android General] Mr.Indigo:
Recovery.fstab stays in /etc.
[Android General] aweosomeabhijeet:
There isn't any recovery.fstab. :(
[Android General] aweosomeabhijeet:
Guys ...

A problem.

Don't know what I did.

But when I restart my device, it comes to M logo then reboots into stock recovery.

I cannot turn my phone on. :(

Any ideas?
[Android General] Mazen.kh:
This happend with me 2 times, i was trying to flash custom roms

once with adb push

and once i created a system.img with yaffey and flashed it with fastboot

both of them leaded to the same error, which caused the phone to boot to recovery.

i just pulled the battery then re inserted it and opened rsd lite mode i.e download mode, with the button combination:

camera + volume down + power

then reflashed
[Android General] mtvdeo:
help me guys, I broke my XT611.

I tried to install a Metamorph theme and it failed.

Now the phone just shows the M logo and won't boot up.

I know I sound like a total noob but I'm desperate.

Where can I find the XT611 firmware and how should I flash it? Rsd Lite works?
[Android General] andrewidya:
I've tried to hijack the bootanimation with bootmenu got in here, by renaming bootanimation to bootanimation.bin

Then make script to execute bootmenu

#!/system/bin/sh
exec /system/bootmenu/binary/bootmenu

After reboot my phone, I can boot into bootmenu but the problems is there is messege that the busybox not set in root system.

I'll try to fix it, and hijack it to kill motorola init and change to 2nd init

Can somebody give me source code of cwm which run on 2nd init device?

I set 2nd init from binary so I need to know the process of cwm, modify the source & recompile it, so cwm can run with my 2nd init
[Android General] Mr.Indigo:
IDK where.... Sorry! :P
[Android General] aweosomeabhijeet:
I've tried that(earlier) too but my phone didn't booted in bootmenu.

How did you do that?

Edit : If you used the above command than probably you are running it on top of OS(I think)
[Android General] Mr.Indigo:
Use su command before the

exec bootmenu

command.
[Android General] aweosomeabhijeet:
I used that. I know that but it runs on top of OS i think.
[Android General] mEmoZz:
is there way to run flash player on our phones?
[Android General] Mr.Indigo:
Yep. But I didn't see any difference. Catch a XT531 ROM and you will get it.
[Android General] andrewidya:
I dont have to use su because this is in boot stage, but my power & volume button doesnt work when bootmenu appears, so I'll try to use 2nd init hijack script to kill 1st init then change it
[Android General] aweosomeabhijeet:
Is it lagging or anything annoying happening?

And how and where did you made that script.
[Android General] andrewidya:
I was creating that script by my self, after open 2nd init hijack script, so thats why I need cwm, stock recovery & 2nd init source code, source code means the programing code (C, shell or anything) with that we will know how it works & make it to runs on our phone
[Android General] aweosomeabhijeet:
ohhhhhhh :confused:

---------- Post added at 09:05 AM ---------- Previous post was at 09:02 AM ----------

I found this

http://forums.androidcentral.com/optimus-v-rooting-roms-hacks/109144-make-script.html
[Android General] 008Rohit:
Does anyone have the Fire XT 530 Indian ROM .sbf?

3G doesn't seem to be working on my XT530 running on brazilian XT531 ROM?
[Android General] aweosomeabhijeet:
I have one will give you the link soon.

Hit thanks if I helped you.
[Android General] 008Rohit:
Thanked you already. Waiting for the link.
[Android General] aweosomeabhijeet:
http://www.mediafire.com/?hhchre7lku15dzi

Here it is.

Thanks to the uploader(I don't remember )

Don't go on the name of Rom. It is Indian.

Hit thanks if I've hepled you