yashsingh1/xdaforums huggingface dataset:
[Moto G 4G Android Development] voland34:
After last update xt1039 (1.1) i've tried to change notification sounds but some kind of in-built explorer opens up and lets me pick an uploaded sound but not the usual ones. The selector in same style as settings screens doen't show up anymore, and of course i cant listen to those uploaded sounds thorugh that ecplorer. Anyone knows about this? (I'm not sure if it happened in earlier versions)...Maybe a conflicting app has scrambled that?

update: i see also problems with alarm (screen doesnt turn on by itself when alarm starts ringing)
[Moto G 4G Android Development] lost101:
Whiles not always necessary, doing the following prior to flashing can cure a wide range of issues; possibly including everything you describe:

TWRP > Wipe > Format /data > Yes ​
[Moto G 4G Android Development] voland34:
I certainly did so, but nevertheless I'll repeat a clean install, maybe some app corrupted something. Thanks.
[Moto G 4G Android Development] Membrillo007:
What happen if I install Brazil 5.1 zip, and then Latam radio firmware (I'm from Chile), is it needed? Or I'm just a noob ? ^^

Tap-a-talked from my Moto G 4G running CM12 / Stock Kernel
[Moto G 4G Android Development] lost101:
As I understand it, flashing a different model radio firmware on your phone will break network connectivity - until you restore the correct radio firmware.
[Moto G 4G Android Development] Reyesteban:
I'm from Chile too and at least I didn't require to flash the latam radii firmware...
[Moto G 4G Android Development] Membrillo007:
So, you just flashed Brazil Zip or Canada one?

Tap-a-talked from my Moto G 4G running CM12 / Stock Kernel
[Moto G 4G Android Development] falle21:
BraZil one, works perfectly

Enviado desde mi XT1040 mediante Tapatalk
[Moto G 4G Android Development] Reyesteban:
+1
[Moto G 4G Android Development] panagiotis15:
Hi i have a Brazilian xt 1040 with 5.1 stock firmware and i want to put the optimized one with no bloatware etc.Do i need to flash radio zip or no?And if i have to flash it what is the procedure?
[Moto G 4G Android Development] falle21:
If you get the 5.1 ota you don't need the radio files

Enviado desde mi XT1040 mediante Tapatalk
[Moto G 4G Android Development] panagiotis15:
Hi and thanks for your reply.I tried to flash the roms above but i get the message Bad footer.Do i really unlock the bootloader and root the smartphone to flash the optimized roms?
[Moto G 4G Android Development] falle21:
You need to unlock the bootloader and get a custom recovery (I recommend you twrp), without that, you can't flash the optimized one

Enviado desde mi peregrine mediante Tapatalk
[Moto G 4G Android Development] Vivjen:
Is it available now? I'm asking regarding XT1042 USC
[Moto G 4G Android Development] lost101:
Sadly not. I expected it by now, but there are no guarantees of when, or even if, the Image will become available.
[Moto G 4G Android Development] Vivjen:
Thanks for reply. What kind of FW you could recommend for XT1042 with 41.13 bootloader? Does any ROM exist for using outside USC coverage? Bands unlock already done. Phone can find network on XT1045 stock FW, but can't make any call
[Moto G 4G Android Development] panagiotis15:
After that i unlocked the bootloader i managed to flash the 1.1 version.Until now its working like a charm.I noticed that its faster than the stock Rom .I am very happy that its blotware free without all these useless Google applications.I hope that i will stay with it for a long time.!
[Moto G 4G Android Development] wurstel:
Is there already a stagefright fix out for the moto g LTE? I'm curios because the dev of slightly Rom which is similar to yours teased a fixed Version for xt1039/40...
[Moto G 4G Android Development] Baratino:
help

Hello guys .

I found this error when attempting to flash the ROM stock XT1040 retail Brazil. The same error appears when trying to both ROM's (untouched and optimized). Realized full wipe before

How can I fix?

using TWRP 2.8.7

thanks
[Moto G 4G Android Development] Membrillo007:
Reboot to recovery, make wipes and flash it again, it would work (for me at least)

Tap-a-talked from my Moto G 4G running CM12 / Stock Kernel
[Moto G 4G Android Development] ahmedteling:
hi used radio firmwares from this thread after updating bootloader but gps is not working :(

i have moto g 4g xt1039 EU

every thing working except gps :((((((
[Moto G 4G Android Development] lost101:
Try this: http://xdaforums.com/showthread.php?p=60648754
[Moto G 4G Android Development] ahmedteling:
thank you very much :)))))

i flashed the zip and the gps starts working 95% accurate

then i installed the app and now its working 100% accurate :))))

do i have to flash the zip when i full wipe to install a new rom ? do i have to flash the zip when updating the current rom ( just wipe dalvik and cache ) ?

do i have to open the app , activate it then reboot to make it run ? does it stop working on every reboot after first reboot of activation ?
[Moto G 4G Android Development] lost101:
That's a lot of questions. Only flash zip as needed. You only run the app once, the settings remain - so you can reboot as much as you want.
[Moto G 4G Android Development] ahmedteling:
ok thanks again :)
[Moto G 4G Android Development] karaflix:
I'm sorry, I didn't understand. What do I have to do to update from version 1 of the stock EU optimized to version 1.1 of the stock EU optimized? Do I also wipe or just flash?
[Moto G 4G Android Development] caballero600:
Hello All,

I have a XT1039 wih a bootloop problem. I can only enter in fastboot mode.

The phone has never been flashed or unlocked.

Can I flash any official stock roms and stay locked=0?

Can I do it with the fastbood mode?

Thanks!
[Moto G 4G Android Development] mooms:
Yes and yes.
[Moto G 4G Android Development] wurstel:
is there a way to get the stagefright fix on xt1039 with this rom?
[Moto G 4G Android Development] lost101:
Wiping is always recommended. Please read OP.

A custom Recovery is essential, and that requires an unlocked Bootloader. Please read the FAQs in Q&A.

I can do it, but right now there are a long list of ROMs to work on. I also have very little free time. Hopefully I will be able to do this soon.
[Moto G 4G Android Development] an1m8:
xt1042

I feel like the xt1042 doesn't even exist anymore XD I'm stuck on older builds from July because the lollipop firmware isn't released for it yet. It sucks rather horribly.
[Moto G 4G Android Development] Baratino:
Retail Brazil 5.1 ROM (Optimized) v1.1 work. Excellent Rom. Very light and clean. thanks
[Moto G 4G Android Development] Pupet_Master:
I tried to flash the optimized Rom from Retail Brazil with TWRP (comming from Euphoria). But it wont install.

Do i need to wipe internal memory too?
[Moto G 4G Android Development] lost101:
Yes. Please read OP and FAQ.
[Moto G 4G Android Development] Skire90:
The Stagefright fix for XT1039 is available thanks to Seyaro. Check out his post with the required zip file and don't forget to thank him!

http://xdaforums.com/showpost.php?p=63072673&postcount=42
[Moto G 4G Android Development] mooms:
Do you think it can work on XT1039 still under 4.4.4 ?
[Moto G 4G Android Development] cviniciusm:
Mismatched partition size (recovery)

Hello,

I own XT 1040.

I updated bootloader to version 41.1A.

The device is unlocked.

When I try to flash TWRP 2.8.7 recovery then appears "Mismatched partition size (recovery)".

How to proceed to flash TWRP recovery, please?
[Moto G 4G Android Development] lost101:
That error means nothing. Ignore it and assume all went well.
[Moto G 4G Android Development] cviniciusm:
Hello,

I turned off the device, entered bootloader again and flash recovery a second try.

I was successfully.
[Moto G 4G Android Development] rodsayd:
If I format data and have no external SD on the phone will it wipe the zip with the ROM in it? How should I do to perform a clean install (with wiping of the internal sd) with no external SD Card?
[Moto G 4G Android Development] cviniciusm:
Hello, I wiped all except internal storage.
[Moto G 4G Android Development] Pupet_Master:
You need the external SD card or a USB OTG cable.

If you want to risk.. you can wipe internal storage and then with USB copy the ROM zip with the PC (some times windows reconize TWRP and so allow you to make a full wipe and have the zip later).

But it is too risky for my taste.
[Moto G 4G Android Development] lost101:
You can install a ROM via ADB sideload or ADB push ROM.zip /sdcard/ (Internal Storage).
[Moto G 4G Android Development] dirtyl0lharry:
Is there any good kernel that matches this optimized rom ?

By the way, does it matter the model of the xt103X to flash a bootanimation to delete the bootloader.zip warning ?

Its as simple as wiping every partition while you are in recovery, then, connect your phone to your PC and transfer the rom to the phone itself. If you cant find your device in your PC, try to go in recovery mount/enable MTB.
[Moto G 4G Android Development] J.Tichi:
Folks, my rooted 5.1 stock XT1040 got fookt-up

- stuck at boot logo after i accidentally applied recent stagefright OTA update withought unrooting first...

Bootloader and stock recovery are still functioning.. but factory reset does not help.

What is the easiest way for me to restore the undroid system? Just want stock 5.1 back..

Can I flash a rom from this thread using stock recovery and SD card?

Or twrp is a necessity? How do i install it (twrp) then?

Thank you in advance for any suggestions!
[Moto G 4G Android Development] J.Tichi:
Thank you for detailed reply. I'm still figuring out whether i want twrt, which seems to disable OTA (but so does rooting).. and it is not that we re expecting any more ota updates for this moto g lte, aren t we?

I also found out the thread by the same original author, where the pristine stock can be restored, even including latest sept 2015 update:

Either manually using mfastboot,

xdaforums.com/moto-g/general/index-moto-g-falcon-factory-firmware-t3110795

Or... using an automated TOOL MOTOFLASH

xdaforums.com/moto-g/4g-development/tool-motoflash-automated-flash-to-stock-t2934358

I wonder what are the differences between the method in this thread, and the method in two cited threads above... which one gives more pristine stock?

Apart from the obvious difference in recovery partition twrp vs native...
[Moto G 4G Android Development] J.Tichi:
thank you again! All worked smoothly!

I just noticed that you are not proposing to install twrp permamently, but rather boot phone into it remotely and use it once to flash ROM zip, which is pretty neat.

BTW, If I were to flash twrp permamnetly, would I use something like:

mfastboot flash recovery mytwrp.img?

I also installed optimized rom from this thread, which works perfectly... Thanks OP!

Not sure if I need also to refresh the radio as suggested in the first thread (i.e. if mine was screwed after messed OTA update, but will see)..
[Moto G 4G Android Development] J.Tichi:
thanks, yeah, I think I'll install twrp and plunge into custom roms on this one.. Peregrine is not gonna get anything of a value from Motorola (updates)..

N.B. there are both ROMS for falcon and peregrine i n that thread.. the url of the thread is misleading...
[Moto G 4G Android Development] Anarkau:
Nice work. Optimized xt1039 Spanish v1.1 is working perfectly. Many thanks.
[Moto G 4G Android Development] sdembiske:
XT1040 Retail Canada 5.1 ROM (Untouched)

Can you confirm the Canada XT1040 version is for Rogers/Fido Canada (cid = 14)? Thank you.
[Moto G 4G Android Development] lost101:
Yes, it's cid14.
[Moto G 4G Android Development] sdembiske:
Thanks lost101 - that's what I thought. I had installed this initially plus the radio firmware but wasn't able to get wifi at all - I then installed your KitKat Canada version and promptly downloaded the carrier stock lollipop and installed it. Same problem as I experienced with the wifi. Ran TWRP factory reset and voila, wifi back - So --- if any other user runs the versions from here and has trouble getting wifi, try the factory reset wipe, making sure you have a data backup. Thanks again, much appreciated.
[Moto G 4G Android Development] marcars:
this version have problem with AOSP Keyboard. On first Wizzard screen the keyboard app make a force close. Reinstall ROM or clean twice data, system etc. not helps.
[Moto G 4G Android Development] lost101:
Sometimes the following is required to properly clean a phone prior to flashing: TWRP > Wipe > Format Data > Yes
[Moto G 4G Android Development] marcars:
Can someone confirm that German Version - untouched works fine after fresh/new installation? For me it's not works. But EU Version works fine and i have make the same steps with installation just as by Germany Version... So i thing that something is wrong with German zip file.
[Moto G 4G Android Development] lost101:
Okay, I will investigate this weekend.
[Moto G 4G Android Development] eruji:
Not sure if its related to this rom but I'm on the latest optimized for xt1045. But under load (cpu I guess) the BT audio skips and shifts out of tune. I see many other complaints about this issue on the moto forums. Is there any way to give higher priority to the BT audio to keep this from happening?
[Moto G 4G Android Development] lost101:
XT1039 Retail Germany Stock (Untouched) 5.1 with Stagefright Patched is now available.

Changelog:

Fixed: Keyboard crash

Patched: Stagefright Bug​
[Moto G 4G Android Development] wurstel:
Awesome, is the stagefright fixing the newfound exploit too?
[Moto G 4G Android Development] lost101:
Sadly not. Motorola have not released a patch - that I am aware of.
[Moto G 4G Android Development] lost101:
XT1039 Retail EU Stock (Untouched) 5.1 with Stagefright Patched is now available. Also, XT1039 Retail Spain Stock (Untouched) 5.1 with Stagefright Patched is here.

Changelog:

Patched: Stagefright Bug​
[Moto G 4G Android Development] redavenger:
is this a official build release? my eu retail xt1039 still hasnt receive any updates relating to stagefright?
[Moto G 4G Android Development] lost101:
Motorola have rolled out first and second stage (CVE-2015-3876 and CVE-2015-6602) Stagefright Patches.
[Moto G 4G Android Development] Wyneg:
Great recopilation, thanks ;)
[Moto G 4G Android Development] Skire90:
Awesome job! Thank you so much sir :DD

EDIT:

I've just flashed the latest EU ROM but it seems like the latest 2 stagefright exploits have not been patched. Can anyone else confirm this or did something go wrong on my end?
[Moto G 4G Android Development] damian_zet:
Can I use it on Moto G XT1032?
[Moto G 4G Android Development] lost101:
I've corrected OP stating: Partially 'Stagefright' Patched. Motorola have released a new patch for the latest exploits on Falcon.

Yes, but why not use the Collection for your Model? Moggy Kernel for Falcon is required to boot these ROMs.
[Moto G 4G Android Development] redavenger:
so the've only release the patch for falcon right? not eu peregrine?
[Moto G 4G Android Development] Schmuppes:
Reboot to recovery?

I am using SaberMod, but would like to use Stock ROM for testing purposes every now and then. I can enter TWRP from the Custom ROM via the advanced reboot menu. However, if I'm running Stock XT1039, I'll have to enter the custom recovery with the help of the "adb reboot recovery" command, since there is no such menu in stock Lollipop. Is there a way to do it when I don't have my computer available? :confused:
[Moto G 4G Android Development] gen_scheisskopf:
I use Xposed + GravityBox LP for that (add Moto Checkbox for Moto G specific tweaks)
[Moto G 4G Android Development] Schmuppes:
I feel so stupid, now I know how to enter recovery... In bootloader mode (Power + Vol Down) you can choose recovery with "Vol Down" and have to confirm the choice with "Vol Up" instead of "Power". Oh god....
[Moto G 4G Android Development] ahmadsamhann:
works great on my XT1039.
[Moto G 4G Android Development] Wyneg:
Hi [MENTION=1006674]lost101[/MENTION]!

I have a question, can I use a custom kernel on Retail Brazil 5.1 ROM (Optimized) v1.1? Or this can cause troubles?

Thanks!
[Moto G 4G Android Development] lost101:
As long as it's a custom Kernel for Stock - yes. CM12 Kernels for example will not work.
[Moto G 4G Android Development] prosodyspeaks:
hi, thanks for the stock roms (and all your work!)

i have no signal from sim following botched upgrade to cm12.1

am trying to regain telephony with no luck - any help really well appreciated - i had to drive 15 miles to get internet to try and fix!

updated to cm12.1 = no sim

revert to cm11 = fine

use cm11 to research sim issue, find this thread

download radio

reflash cm12 and apply radio fix = sim but zero reception (sim works in other device)

flash stock 5.1 + radio fix = no signal

reflash cm11 no = signal

flash stock 4.4.4 (XT1039_RET-GB-SS_4.4.4_KXB21.14-L1.56-1_cid7_CFC_1FF.xml.zip) = no signal

think maybe need to revert radio to 4.4 so use non-hlos and fsg from same zip = still no signal

have reflashed cm12.1 (20151103) = still no signal phone fine apart from this.

more detail, mfastboot and logcat logs here: http://xdaforums.com/showpost.php?p=63673536&postcount=2656
[Moto G 4G Android Development] lost101:
[MENTION=5489775]prosodyspeaks[/MENTION] - in your other post, you state have used the fastboot command erase all. If this is the case; I'm sorry, but it's game over. You have destroyed your phones cellular connectivity.
[Moto G 4G Android Development] prosodyspeaks:
[MENTION=1006674]lost101[/MENTION] yeh looking increasingly like that.... although there's still some avenues to persue, and obviously i'm keen to delve....

any ideas/thoughts?

1) replace HOB DHOB and FSC as here (brazil, 1069) and here (germany?)

if anyone has HOB DHOB and FSC images from xt1039 i would *really* like copies

or else does anyone know other variants which would have interchangeable files?

any thoughts/warnings/tips for this method?

interesting notes:

from [MENTION=6883119]srikanth979[/MENTION] here

extracted HOB/DHOB here

read about 'custom fastboot binary (revolutionary)' - is this something more powerful than standard m/fastboot?

anyone need a paperweight? going cheap at $100?
[Moto G 4G Android Development] Kong2000:
Hi,

I just bought an new (very cheap) peregrine XT1039 with retail EU firmware. It is on android 5.1 v23.21.17. Is there really no stagefright update for now?
[Moto G 4G Android Development] lost101:
XT1032 GPE is fully stagefright patched. I expect OTA Updates for Peregrine will follow in the near future.
[Moto G 4G Android Development] lost101:
I've updated Flashing Instructions in OP.​
[Moto G 4G Android Development] lost101:
XT1042 US Cellular 5.1 (Untouched) ROM is now available.

Notes:

Can the XT1042 US Cellular Bootloader be unlocked?​
[Moto G 4G Android Development] lost101:
XT1042 - US Cellular 5.1 Radio Firmware added to OP.​
[Moto G 4G Android Development] Jeconias Santos:
Flash > Stock and Radio? or just stock?
[Moto G 4G Android Development] lost101:
Flashing instructions in OP updated.
[Moto G 4G Android Development] Jeconias Santos:
I got this error:

[IMG="Error Flash"]http://automotogex.eu5.org/Arquivos/Erro.flash.png[/IMG]
[Moto G 4G Android Development] Pupet_Master:
Have you wipe the internal memory, not just data, system and caches??
[Moto G 4G Android Development] Jeconias Santos:
I cleaned all; Internal, data, cache, dalvik and system.
[Moto G 4G Android Development] Gianlu92:
Imho you have to reboot your recovery and try to flash again.
[Moto G 4G Android Development] lost101:
You will not encounter this issue if you follow the Flashing instructions in the first post.
[Moto G 4G Android Development] Jumpin' Jack Flash:
After I flashed Retail Brazil 5.1 ROM (Optimized) v1.1 on my XT1040 i proceeded to install the XT1040 - Retail Brazil Radio Firmware (Fastboot) .But, mfastboot.exe was asking for AdbWinApi.dll (motorola drivers and android sdk were installed) i tried with the TWRP flashable. Thing is, the flashing went wrong and some error showed up - status 7 - something, but when I rebooted WiFi and Network were working again.

What went wrong there? anyone knows?
[Moto G 4G Android Development] lost101:
Extract Radio firmware, and extract contents of this zip into it: https://www.androidfilehost.com/?fid=24269982086993793

You don't need android sdk at all.
[Moto G 4G Android Development] Jumpin' Jack Flash:
Thanks for your answer.

I did it but both cmd prompts quickly disappear after I click them. :confused:
[Moto G 4G Android Development] lost101:
You don't click on the files - you run from cmd prompt.

Look on youtube for a tutorial about using cmd prompt. Basically you open cmd prompt, navigate to folder (cd c:/radio_firmware_folder) and run the fastboot commands listed in post #2 FAQ.
[Moto G 4G Android Development] Jumpin' Jack Flash:
oh, my mistake. Thanks mate!
[Moto G 4G Android Development] nestul:
I have received OTA update notification for stagefright fix (New version: 23.26.3 en.EU). XT1039 Spanish untouched ROM ¿?. I thought phone losts OTA update feature after unlocking the bootloader or rooting the OS. Was I wrong?

P.S: And en.EU is the update I should receive having Spanish version installed?
[Moto G 4G Android Development] lost101:
OTA Updates will arrive, but Stock Recovery is required to actually apply them - and even then, the process may fail.
[Moto G 4G Android Development] wurstel:
[MENTION=1006674]lost101[/MENTION] when you release a stock rom with Motorola's final stagefright patch, I would like to make some sort of "optimised" rom myself. Did you use a specific tool to deodex and zipalingn the rom? Can I just use your "no moto" script to get a sense what apps i can remove or is the peregrine different to falcon? Thanks in advance.
[Moto G 4G Android Development] lost101:
I use dsixda's Android Kitchen to zipalign, but also add post-install zip-aligning via init.d script. ROMs are not deodexed - but there is a tool available on xda (I don't have a link right now.)

Peregrine and Falcon share pretty much identical /system folders. You can refer to the 'nomoto' script - or just base off my optimized ROM.

PM me about this when the final ROMs are available.
[Moto G 4G Android Development] _that:
Since Google doesn't even accept apps that are not zipaligned, there is little chance that your on-device zipalign script gets anything to do. Have you ever seen a distributed apk that was not zipaligned?
[Moto G 4G Android Development] Kong2000:
Still no update for me on XT1039 reteuall.en.EU. :mad:
[Moto G 4G Android Development] Skire90:
The update does not fix all the stagefright exploits right? Only the earlier exploits.
[Moto G 4G Android Development] lost101:
XT1032 GPE is now completely patched, including the November security update. I've run Stagefright Detector and the ROM passes all tests. Hopefully Stock ROMs will also catered for.
[Moto G 4G Android Development] _jis_:
Please, could you test vulnerabilities with VTS for Android and publish the result here (Menu / Export results)?