yashsingh1/xdaforums huggingface dataset:
[Android Q&A, Help & Troubleshooting] MrMiLk:
Hong Kong Stock rom is different as China one.

Hong Kong Stock rom only run as 2.2. And the rom in

China didn't really installed with GMS package.

No gmail, gmail account sync bla bla all not installed.

Tried to find some package and install them, crashed

immediately...

Was looking for stock sbf or rom from net but nothing

available.:(

Many thanks for your effort. Hope will hear from you soon

Thanks very much.:D

---------- Post added at 04:59 PM ---------- Previous post was at 04:54 PM ----------

Is there any backup img or sbf that i can have. I just wanted

my phone work as normal android phone with android market
[Android Q&A, Help & Troubleshooting] Dataslycer:
I would probably just take it back into motorola if its really not working out. The only problem is that the phone still works right? I'd put it into a bootloop of some sort or something like that so that the technicians dont know that the phone was rooted or anything. And of course you would need the warranty.

Btw @smnc, what settings are your vm heapsize at? I finally got my phone back and wanted to know some stable settings XD.
[Android Q&A, Help & Troubleshooting] insalubrious:
Not to self: Stop poking fun at spice, they somehow managed to sell a few to not so noob guys.
[Android Q&A, Help & Troubleshooting] henry225:
hey dude I think you can help me with me problem

http://xdaforums.com/showthread.php?p=20696556#post20696556

can u extract the moto swicht ui and upload it?, i deleted that app, I thin that is the problem. or do u have any suggestion?
[Android Q&A, Help & Troubleshooting] gnarf1979:
XT311 I nee a rom file

Hello,

i have root my motorola Smartphone XT311.

Later i used the tool root uninstaller.

Now my Smartphone dont boot.

Recovery

I seek a Rom for my mobilephone, so that it functions again.

Hope somebody could help me.
[Android Q&A, Help & Troubleshooting] Dataslycer:
What app did you use exactly? and what was the app SUPPOSED to do?
[Android Q&A, Help & Troubleshooting] gnarf1979:
Hello,

my Motrola Fire XT311 has supplied successfully with rootrights

If it has created then, unfortunately, with the app

"Root-Uninstaller" from dohkoos to make my Smartphone useless.

Strictly speaking I have removed some Apps

Only a black screen, or the following boot expiry is to be seen.

Motorola logo-> Android welcome menu - error message:

"The Setup-Assisten (process com.android.setupwizard) was unexpectedly finished"

Now I can still connect the device to the USB connection and the mass memory USB . A change of the settings or the starting of an App is impossible. The Debugging mode is deactivated.

Furthermore it is possible to me to activate:

Android system Recovery (Volume + and - low-spiritedly held)

- reboot system

-apply updates from sdcard

wipe data/factory reset

wipe cache partition

Download nb0 from sdcard

MBM Flash fashion

Dominoes Q

Version 01.0 B

Bootloader boat USB Unit Secure Enbaled

The function wipe data/factory reset also produced no result.

Who can help me yet?

Or should I register this excursion to the rootrights as failed and the mobile phone in lead pour. With the next spot I will provide a protection of the proficient product. But this also does not help me right now.

I have found for my mobile phone a called Romdump File with the following contents:

Boot.img

checksum.md5

config.gz

recovery.img

system.info.gz

system.tar

If this cannot apply, unfortunately. I know the programme RSD LITE and could help myself with a suitable compatible file. So, unfortunately, not....

So over again the call. Who can help me?

Many greetings
[Android Q&A, Help & Troubleshooting] sreeharsha.k8:
I think i've the answer that you're looking for... :) though mine is a FIRE XT or DOMINO+ or watever else it is named as.. oh yeh... XT 530/531... had the same black screen/ moto logo after i removed a few apps using titanium backup after i rooted my phone successfully...!! but now that i've solved the problem.. i feel really good abt having messed it up in the first place :cool:
[Android Q&A, Help & Troubleshooting] Mazen.kh:
people i rooted my fire xt311 and by fault flashed wrong clockworkmod and now it doesn't respond or start or boot or open recovery or boot loader or any **** i need help so fast
[Android Q&A, Help & Troubleshooting] Dr. Hurt:
I'm sorry but I think you've bricked it. You'll have to take it to "Delta" (Motorola dealer in Egypt) for repair or replacement. Don't tell them what you did or else they'll void your warranty.
[Android Q&A, Help & Troubleshooting] Roqu3:
Hi have you tried already to restore your system using fastboot? I thought motorola devices need an especial fastboot file, I had an XT531 and i want to have some backup in case of need. Thanks
[Android Q&A, Help & Troubleshooting] Mazen.kh:
Do You Think They Will Repair/Replace It ?

It Doesn't Boot/Recoveryboot/Bootload/boot download mode.. doesn't do any thing.. would they know i rooted it ??
[Android Q&A, Help & Troubleshooting] Dataslycer:
I have had my phone sent in for repairs numerous times (while it was rooted) when I had a bootloop. I could go into recovery (although I wouldnt be able to do anything) but in the end they simply repaired it and sent it back to me without any problems whatsoever.
[Android Q&A, Help & Troubleshooting] Lcs222SpiceKey:
Hey, i have an .sbf and a .xml here. Is an brazilian ROM, from VIVO.

The version is 2.3.5...

If helps, i will upload.
[Android Q&A, Help & Troubleshooting] chen2011521:
i can not dump something from my xt316 with 2.3.5rom,why?:(
[Android Q&A, Help & Troubleshooting] Dataslycer:
What is the error that says when you try dumping your xt316? we cant figure out why if thats all the info u give us :)
[Android Q&A, Help & Troubleshooting] chen2011521:
when

#/data/local/install

it only says

Android ROM dumper v0.72b

(c) 2010 sebastian 404

romdumper installed

[1] + Stopped (signal)

so i think it can not work

#/system/bin/romdump

then it only tolds me

Android ROM dumper v0.72b

(c) 2010 sebastian 404

Device:v4.500

[2] + Stopped(signal)

[1] + Segmentation fault

what`s wrong
[Android Q&A, Help & Troubleshooting] Dataslycer:
Hmmmm the last time I had that kind of problem was when my phone was bootlooped and adb technically did not have superuser permissions. Are you sure your phone is rooted and adb has permissions?
[Android Q&A, Help & Troubleshooting] chen2011521:
I'm pretty sure

that i root my xt316 with sut 1.7.5,but you see i can not dump my xt316

---------- Post added at 07:22 PM ---------- Previous post was at 07:17 PM ----------

Do you have any progress on this work?
[Android Q&A, Help & Troubleshooting] arcangelluzz:
I need to get the root of my xt316 pleasseeeee!!!!! progressed somewhat in four months?

Thank you...
[Android Q&A, Help & Troubleshooting] Mazen.kh:
when is the rom coming out ? i need one so bad -.-

and is there any clockworkmod or overclock or anything i can do with this phone?!
[Android Q&A, Help & Troubleshooting] :
I have hijacked /system/bin/charge_only_mode to bootmenu so that I can use 2nd-init.Because of locked Bootloader,I have to use 2nd-init for custom rom.I have compiled CM7.2 for XT300,but it didn't boot successfully because servicemanager always exit so that the phone boot into stock recovery automatically. :mad:

Anyone can help me?
[Android Q&A, Help & Troubleshooting] chen2011521:
Xt316 locked bootloader?

This afternoon I use fastboot flash splash. Img

and replaced it successfui ，WHY？

so i thought can we mod a recovery to replace ？
[Android Q&A, Help & Troubleshooting] Dr. Hurt:
Here is the link to the Motorola Defy 2nd-init installer apk.

http://xdaforums.com/attachment.php?attachmentid=649870&d=1310220786

decompress it, and compare it with your implementation to see if you're doing something wrong.

Unfortunately, I don't have much experience in chain booting.

I have an XT530 (very similar to your phone) and played a bit with signatures in an attempt to bypass secure boot but bricked it. After talking to experienced moto devs, I found that 2nd-init is the only way so you're on the right track. Keep it up, hope to hear good news soon :)
[Android Q&A, Help & Troubleshooting] chen2011521:
i know what you say,

but are you sure "2nd-init is the only way"

you see moto xt800 use 4extrecovery

&milestone with Openrecovery

my phone is xt316

Xt316 locked bootloader?

This afternoon I use fastboot flash splash.Img and replaced it successfui ，WHY？

so i thought can we mod a recovery to replace ？
[Android Q&A, Help & Troubleshooting] Dr. Hurt:
The phones you are talking about are old. This problem is with most modern Motorola phones (starting late 2010 or maybe android 2.1+).

I'm sure my XT530 has a locked boot loader, because when I boot in flash mode it says "secure boot enabled". Not sure about the XT316.

Maybe it doesn't check for signatures on the splash.img
[Android Q&A, Help & Troubleshooting] chen2011521:
Erm ,i think xt 316 locked bl from what you said ,maybe splash.img

no sign atures .

when i flash a recovery ,it can not boot ,,the only way is flash a new sbf and it will ok
[Android Q&A, Help & Troubleshooting] :
I would like to port cwm recovery&bootmenu 2ndinit for xt311/316.Anyone can provide its init.rc & init.*.rc to me?:confused:
[Android Q&A, Help & Troubleshooting] Dr. Hurt:
I have an XT530 with 2.3.5 which has very similar hardware, and software to the XT316.

If it would help, here are the requested files from my XT530.
[Android Q&A, Help & Troubleshooting] :
I have looked up your init,I did not find a binary to hijack.
[Android Q&A, Help & Troubleshooting] Dataslycer:
Not sure what I was supposed to attach exactly, but my phone is the xt300 and it also has really close specs, supposedly only the upgraded cpu is different.
[Android Q&A, Help & Troubleshooting] :
Well,I have ported bootmenu&cwm recovery for xt300.I will upload these if I am free.
[Android Q&A, Help & Troubleshooting] chen2011521:
i hava a phone xt316,The following is xt316 's init.rc ..... , thank you very much
[Android Q&A, Help & Troubleshooting] :
Emmm...your init.zip cannot open....Please upload again.
[Android Q&A, Help & Troubleshooting] Dr. Hurt:
Does that mean that there is no way to get 2nd-init on the XT530? Is there any other way to do it?

Thanks in advance
[Android Q&A, Help & Troubleshooting] Roqu3:
Try uploading the whole ramdisk there's an init binary there along with the .rc files
[Android Q&A, Help & Troubleshooting] Dr. Hurt:
Here is the entire ramdisk

Why is there reference to the peoplecentric widget and motoaccuweather in the init.rc?

Thats probably the reason people got bootloops when they removed weather widget.

Won't that affect our ability to install a custom ROM on the system partition, since it'll probably be missing those proprietary moto files?

Maybe we'll have to clean up the init.rc before we can get a custom ROM running.

EDIT: I think I found it; check the init.qcom.rc
[Android Q&A, Help & Troubleshooting] :
Because of it(reded) in init.rc:

export BOOTCLASSPATH /system/framework/core.jar:/system/framework/bouncycastle.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/android.policy.jar:/system/framework/services.jar:/system/framework/core-junit.jar:/system/app/PeopleCentricWidget.apk:/system/app/MotoSinaWeather2_Service.apk:/system/app/MotoAccuWeather2_Service.apk:/system/app/MotoSinaWeather2_mdpi.apk:/system/app/MotoAccuWeather2_mdpi.apk

I search "exec /system/... " in init.rc&init.*.rc , I did not find a suitable hijacking way for 2nd-init.
[Android Q&A, Help & Troubleshooting] Roqu3:
And to remove those lines from bootclasspath first we have to deodex the ROM right? But we can't deodex the ROM because of that lines O_o?

Damn Motorola, It has to be somewhere right?
[Android Q&A, Help & Troubleshooting] Dr. Hurt:
I'm not sure I understand, but lines 28 and 29 of init.qcom.rc (of my XT530) have:

Isn't this a suitable insertion point to load 2nd-init?

Please forgive my ignorance, I'm new to all this.
[Android Q&A, Help & Troubleshooting] :
Yes,I did notice it,but I think this action "boot-pause" may be too late.
[Android Q&A, Help & Troubleshooting] :
The reded line can tell you why the system will get bootloop if you remove the damn moto weather app.
[Android Q&A, Help & Troubleshooting] Dr. Hurt:
I actually think our ROM is deodexed by default, probably to save space!

---------- Post added at 06:45 PM ---------- Previous post was at 06:34 PM ----------

Again, I'm not expert, but if the two commands have the same function (despite different names and locations), shouldn't they be loading at the same time, to be able to perform the same function?

If not would it be possible to add an exec to the init.rc?

Anyway, I guess It'll be up to trial and error to see what happens.

Thanks for your help, and looking forward to your release of CWM for the XT300 :)
[Android Q&A, Help & Troubleshooting] :
CWM Recovery&Bootmenu 2ndinit for XT300

Installation:

Download the bootmenu.tar file.And push it into /sdcard/

Turn on usb debugging on your phone. And use the following commands in adb:

C:/> adb shell
$ su
# mount -o remount,rw /dev/block/mtdblock1 /system
# mkdir /system/bootmenu
# cd /system/bootmenu
# tar -xf /sdcard/bootmenu.tar
# ln -s /system/bootmenu/binary/bootmenu /system/bin/charge_only_mode
# sync
# mount -o remount,ro /dev/block/mtdblock1 /system
# exit

The bootmenu will be installed.

Restart your device once.

Using Boot Menu:

Turn your phone off.

Press the Power Button.

After 1-10 seconds, the red led on your phone will light up for just 3 seconds (Still while the Motorola logo is being displayed).

Exactly when the led lights up, press the volume down button.

You will see the BootMenu, use the Volume Button to navigate up and down, and the power button to select an item.

EDIT:Please using ln -s /system/bootmenu/binary/bootmenu /system/bin/battery_charging for XT316/520 to hijack;)

You also need to edit some scripts for your phone.

This bootmenu is compiled with armv6j Instruction.
[Android Q&A, Help & Troubleshooting] Dataslycer:
It sounds almost too good to be true. With this have we bypassed the locked bl or are there still some risks? Sorry, I'm not too experienced with 2nd init :)
[Android Q&A, Help & Troubleshooting] chen2011521:
:(，oh,sorry, I upload them again,
[Android Q&A, Help & Troubleshooting] :
Well,I have taken look at your init.zip.I found that xt316 is too similar to xt530.Only "exec /system/bin/battery_charging" in "boot-pause" action may be hijacked for 2nd-init,but I think this hijack maybe too late.We should have a test whether it would be hijacked for 2ndinit.

There is no risk.2nd-init do not make a change to bootloader.
[Android Q&A, Help & Troubleshooting] chen2011521:
how test it can we？ use xt300 ’s 2ndinit？？
[Android Q&A, Help & Troubleshooting] Dr. Hurt:
Thank you very much for your work, and help. Really appreciate it.

And I'm sorry if I was being annoying by all my questions :o

Edit: Download is not working. Apparently there is a problem with the XDA forum. Many download are broken, not just this one.
[Android Q&A, Help & Troubleshooting] Dataslycer:
Reupload please :D
[Android Q&A, Help & Troubleshooting] ReSkid:
I am also a Motorola Fire XT311 owner, Can I be of any help? I have rooted the droid. Eagerly waiting for CM ROM for this phone. :)
[Android Q&A, Help & Troubleshooting] Dr. Hurt:
GentlyLamp,

I have a recommendation, though I'm not sure if its actually possible.

Why don't we keep all the bootmenu and CWM files in /sbin and change the init.rc to point there and execute the files from there.

That would make it a lot easier and safer to flash new ROMs and avoid having to integrate 2nd-init into every new ROM image we make.

With the CWM on /system, a bad flash would have disastrous results. (we'll lose both system and CWM, leaving a soft brick)

Another thing, after reading about boot-pause, people were able to hijack it on the optimus V. I guess this gives us XT530 and XT316 users hope. :D
[Android Q&A, Help & Troubleshooting] Mazen.kh:
So can someone tell me how to install cwm on xt316?
[Android Q&A, Help & Troubleshooting] :
I am sorry for my uploading.I am working outside so that I will upload again on this weekend.

Sent from my E15i
[Android Q&A, Help & Troubleshooting] Dr. Hurt:
The XT316 and the XT530 have almost the same software.

Once GentryLamp re-uploads his work, I'll try to get it to work on my XT530, and if I succeed I'll post instructions for both phones here :)
[Android Q&A, Help & Troubleshooting] :
Well,we can't not modify ramdisk to save what we change.We must integrate 2nd-init to new ROM.

I hope we can get success on xt3xx.

Sent from my E15i
[Android Q&A, Help & Troubleshooting] Dr. Hurt:
Ahhh, sorry. I forgot that the init.rc is loaded from the ramdisk.

Thanks for the heads up.
[Android Q&A, Help & Troubleshooting] :
I have to take some modification for msm7227a(XT316/XT530) so that let the led light up while the phone boots up.

Anyone can provide the list of /sys/class/leds/ and which folder contains "brightness" file?

Sent from my E15i
[Android Q&A, Help & Troubleshooting] Dr. Hurt:
sys/class/leds/button-backlight:

brightness

blink_offMS

blink_onMS

/device

kpd_blink

max_brightness

/power

/subsystem

uevent

sys/class/leds/lcd-backlight:

brightness

/device

max_brightness

/power

/subsystem

uevent

There is a problem with our phone, in which no third-party apps can control led, or change led color. No flashlight apps work either!! Thought I'd let you know.

Would it be possible to make bootmenu load CWM by default when starting with charger plugged-in ie. without requiring user input?
[Android Q&A, Help & Troubleshooting] chen2011521:
all of them of xt316 same with xt530
[Android Q&A, Help & Troubleshooting] :
OhOh... I am sorry for we can't control the moto's leds,but it is possible to make bootmenu load CWM by default

Sent from my E15i
[Android Q&A, Help & Troubleshooting] Dr. Hurt:
I have checked your bootmenu.

I think there is a difference between our phones' partion layout.

In the scripts _config.sh:

For the XT530 (cat proc/mtd) says "system" is on mtd8, "cache" is on mtd10, and "userdata" is on mtd11

Is changing the values in this file only enough, or do I need to edit to other files too?

BTW, Does restoring a nandroid backup reformat /system?

I think if it does, that might damage the partition signatures.
[Android Q&A, Help & Troubleshooting] :
Changing this value may be enough,but I recommend you to do some suitable modification for your phone.

Nandroid won't damage signatures if you do not restore boot partition.

Sent from my E15i
[Android Q&A, Help & Troubleshooting] Dr. Hurt:
What do you mean by suitable modification to my phone?

And how do I uninstall this in case something goes wrong?
[Android Q&A, Help & Troubleshooting] :
Such as adbd.sh,recovery.sh...

I found adbd.sh didn't work for xt300.

BTW,does bootmenu work?

You need to write "bootmenu" to default_bootmenu.conf if you want to enter bootmenu.

Sent from my E15i
[Android Q&A, Help & Troubleshooting] Dr. Hurt:
I'm a bit worried, I don't want to brick my phone for second time.

Is this safe? Is there a way to uninstall it?
[Android Q&A, Help & Troubleshooting] :
I tested it on xt300,it works great.

If you want to uninstall,plz unlink the hijack.

If it cause bricked,you can fix by RSD Lite.

Sent from my E15i
[Android Q&A, Help & Troubleshooting] Dr. Hurt:
Just tested it, but it didn't work. Here is what I did.

Extracted the bootmenu.tar using 7-zip

Modified the _config.sh and default_bootmenu.conf using notepad++

Copied folder to SD-card

Used root explorer to copy bootmenu folder to /system

Used terminal emulator to create symlink

Rebooted with charger plugged-in

-> phone booted with battery charging logo

I didn't touch adbd.sh,recovery.sh

Did I do something wrong? Do I have to use ADB instead of what I did?!
[Android Q&A, Help & Troubleshooting] Roqu3:
I think you get the correct partitions with "mount" on shell
[Android Q&A, Help & Troubleshooting] Dr. Hurt:
Tried that, same result.

Can someone else with an XT530 try it?

Uploaded below is the one with the changes for our XT530.

Does this mean it's failing to load bootmenu or not even trying?
[Android Q&A, Help & Troubleshooting] Roqu3:
Maybe because is on boot-pause
[Android Q&A, Help & Troubleshooting] Dr. Hurt:
Got any other ideas?

How about hijacking logwrapper?
[Android Q&A, Help & Troubleshooting] Dr. Hurt:
Strange that my phone didn't have a battery_charging binary to start with.

On the other hand, the XT532 has a battery_charging binary in /system/bin

I have posted on an XT532 thread to ask them to test this.
[Android Q&A, Help & Troubleshooting] chen2011521:
i did not find charge ..... to symlink at my xt 316 ,how you did it ?
[Android Q&A, Help & Troubleshooting] :
Have you ever " chmod 777 " to your scripts&binaries ? If you don't fix permission for these files,these files will not exec.

Plz following my installation,and then modify scripts by editor included in Root Explorer.

BTW: Before your installation,can this phone enter charge only mode when it power up by charger?:confused: If yes,it may not related to "boot-pause".
[Android Q&A, Help & Troubleshooting] chen2011521:
perhaps you can install it with another 2.?.?

My xt316 2.3.5 have no battery_charge

But xt316. 2.2.2 have the files.

Then i install it ,but failed,

and i am sorry for can not help you much,i know little about 2ndinit,,,,,
[Android Q&A, Help & Troubleshooting] Dr. Hurt:
Yes, I repaired permissions, edited scripts.

My phone did boot up into charge only mode before the hack even though there was no binary in the /system/bin so I guess you're right. It's probably not related to boot-pause.

If this is the case, then what does boot-pause refer to? Where does this battery charging animation load from?

Can we hijack logwrapper. There is a binary for it in /system/bin
[Android Q&A, Help & Troubleshooting] :
It's sad that moto did such stupid thing.It's so strange that the phone can boot up into charge only mode without binary.:(

It's impossible for your phone to hijack logwrapper because it isn't exec by init.

Sent from my E15i
[Android Q&A, Help & Troubleshooting] Dr. Hurt:
Strange indeed. There must be some other hidden script loading all the items missing from init.rc!!

Should I try symlinking the 2nd-init to logwrapper to see what happens. What are the risks of such an attempt?

Do the scripts, or binary need any other modification to be loaded in place of logwrapper. Does bootmenu have have an option to continue normal boot (because in this case bootmenu will load on every normal boot)?
[Android Q&A, Help & Troubleshooting] Roqu3:
What if you create a battery_charge file with a shell script inside to load 2init? could that be possible?
[Android Q&A, Help & Troubleshooting] :
Making a symlinking to logwapper will be failed.You need to modify the source code.

It's not easy to hijack for your phone.

Sent from my E15i
[Android Q&A, Help & Troubleshooting] Dr. Hurt:
We already create a symlink (shortcut to bootmenu binary) and call it battery_charging, add it to /system/bin.

The problem is that the phone is not even

trying

to execute the battery_charging (whether its the original binary or the symlink). There was no battery_charging binary in bin folder to start with!!!!!!!!

We have to find another binary to hijack but this won't be easy, because as I see it, not all binaries are executed by init.rc (there is probably some other script, or maybe a firmware module loading the other binaries)!!

I hate Motorola now.