yashsingh1/xdaforums huggingface dataset:
[Moto G 4G Android Development] sevenrock:
Unfortunately I think this patch will not solve the problem, I had it included

in my ROM from this afternoon:

http://xdaforums.com/showpost.php?p=61988440&postcount=2376

Now I reverted the interactive patches like this and kept the alsa stuff:

cd kernel/motorola/msm8226
git checkout -b sevenrock
git reset 180ea653df20b9bbe4cad4e2eedb70c2e818c9b2 --hard
git cherry-pick 9f5f2ee1993a49e8a333e80afcc812a0f784df46
git cherry-pick 02bb4d5aefd70e3c3366282a06d98e26e00d443d
git cherry-pick 86f002d1b6f8a6be355622487631fd77213f8180
git cherry-pick bed07650649d4fcd2a4ecc02532e9f3d00a88658
git cherry-pick 3414db158678ef111bcf62f159b06acfbcb289a1
git cherry-pick ca921c7590f735b08b4ef8661ac087a2b6ec9db3

After 30m uptime of that new ROM I still have 6%/h battery drain...

PS:

git log of kernel/motorola/msm8226 looks like this:

* de80f68 - (HEAD, sevenrock) ALSA: compress: add num_sample_rates in snd_codec_desc (68 minutes ago) <Eric Laurent>
* e52f298 - ALSA: compress: update struct snd_codec_desc for sample rate (68 minutes ago) <Eric Laurent>
* 03c5a38 - ALSA: compress: update comment for sample rate in snd_codec (68 minutes ago) <Eric Laurent>
* 609ae2f - ALSA: compress: remove the sample rate check (68 minutes ago) <Vinod Koul>
* 03079b6 - Revert "Revert "ALSA: compress: change the way sample rates are sent to kernel"" (68 minutes ago) <LuK1337>
* f50f714 - Revert "Revert "arm/dts/peregrine: Adjust modem memory layout"" (69 minutes ago) <Ethan Chen>
* 180ea65 - msm8226: defconfig: Enable FIOPS (11 days ago) <luca020400>
* e872e24 - block: fiops ioscheduler core (11 days ago) <Shaohua Li>
[Moto G 4G Android Development] setherd:
Downloaded 22/7 I get no SIM card found error. tried rebooting, reseating SIM card. nothing worked.

INstalled 21/7 everything works.

Is this related to the radio? I have the 5.1 bootloader.
[Moto G 4G Android Development] Travisholt92:
Do you have the 5.1 radio as well?

And somcomx is making some build changes to compensate for changes between 4.4.4 and 5.1 firmware files (bootloader and radio).

He posted (a day or two ago) stating that the builds going up within the next few days may cause users who are not on 5.1 firmware to lose radio functionality.

If you encounter this issue and you ARE on the most up to date firmware, post the issue here IF SOMEBODY HAS NOT DONE SO ALREADY.
[Moto G 4G Android Development] setherd:
I don't have the 5.1 radio. I didn't think any ROM could be dependant on the radio.
[Moto G 4G Android Development] Somcom3X:
The blobs (libs & jars) depend on the newer radio. Also, the model number is determined via the radio version.

The Moto G 4G (2014) doesn't appear to be a supported Miracast device. That's why I won't add it.
[Moto G 4G Android Development] sevenrock:
You seem to have a different problem, yesterday evening I reverted back to

my private cm-12.1-20150718-UNOFFICIAL-peregrine.zip build and the

drain is back to 0,5%/h. So the bug was introduced after 2015/07/18

and seems unrelated to the interactive patches, because reverting

them did not fix the problem.
[Moto G 4G Android Development] knizmi:
You might need to revert this as well http://review.cyanogenmod.org/#/c/103798/
[Moto G 4G Android Development] dermig:
Phone encryption

Hi,

has anyone of you tried to encrypt the phone? I'm using the 5.1 bootloader with twrp2.8.7_encryption on a XT1039. I flashed CM and GAPPS via twrp, then flashed bootForEncryption.img via fastboot, booted and set up the phone. If I then try to encrypt the phone via Android settings, the phone reboots after a while and asks for SIM-PIN and unlocking pattern. Afterwards, the screen stays blank/black... Any suggestion?

Regards

Michael
[Moto G 4G Android Development] eteles:
Motorola has taken miracast support from the moto G on purpose, so people interested on miracast had to buy the moto X. But I can assure you it works great on the moto G. It's fully working since your CM11 builds! So why can't the line be added as default?

Thank you for the response!

Enviado de meu XT1040 usando Tapatalk
[Moto G 4G Android Development] RLNTLSS:
Hello , well I am newbie in these terms of android, after I tried to update the cm for the day 22/07 , has a problem with the bootloader , due to the fact that mine is still kitkat , I was wondering if I have to give flash only in bootloader and radio lollipop ? I lose my data? Or I would have to go back to kk stock and update over the air ?

Sorry for the stupid questions and thank you !
[Moto G 4G Android Development] st3rox:
You won't lose data just from flashing the bootloader and radio, since you explicitly tell fastboot where the files go
[Moto G 4G Android Development] Bastlwastl2010:
i am still confused....

Found the Lollipop Radio Firmware.

But i can not found any motoboot.img for my xt1039.

I think i am not have a "front seat" :):) at the moment :confused::confused:
[Moto G 4G Android Development] mihaum:
[MENTION=4909149]Bastlwastl2010[/MENTION], you have to download original zip from here and unpach the motoboot.img. Or, if you use Windows, you could use this. However, I haven't used the other option.

PS. Remember to get firmware that matches yours phone CID, otherwise you could brick your device.
[Moto G 4G Android Development] Bastlwastl2010:
[MENTION=4677565]mihaum[/MENTION]

Thanks a lot..........

I do not look in the Moto G General Sektion.........

Edit: and there are also the modem files in the zip.....
[Moto G 4G Android Development] mihaum:
[MENTION=4909149]Bastlwastl2010[/MENTION], maybe, I unpacked just the motoboot.img file, since I had radio files from another thread.
[Moto G 4G Android Development] sevenrock:
Correct, also reverting this patch seems to fix the drain.
[Moto G 4G Android Development] drakohla:
It Is already reverted for the next nightly.

http://www.cmxlog.com/12.1/peregrine/

Gesendet von meinem XT1039 mit Tapatalk
[Moto G 4G Android Development] sevenrock:
I know, the ROM containing all these changes is currently optimizing its apps

and now asks for the SIM pin. I will now unplug the USB cable and let the device

get into deep sleep.
[Moto G 4G Android Development] Somcom3X:
http://www.wi-fi.org/product-finder...sort_order=desc&capabilities=2&companies=2059

I'll see what I can do.
[Moto G 4G Android Development] eteles:
Please look into that! The absence of miracast support is just a "clever" move from Motorola... And it wouldn't cause you much trouble to add the build.prop line as default...

Thanks man!
[Moto G 4G Android Development] partizann:
Hi,

Just wanted to report (confirm), that I also had issue with high battery drain in latest builds.

As I went through the change logs, it looks that it was introduced in "kernel/motorola/msm8226" at 20. july, with the changes to cpufreq and kernel governors.
[Moto G 4G Android Development] padonkadonk:
How can I flash 5.1 radio?

I've tried installing the latest nightly, it complained about the bootloader version. I've updated the bootloader to 411A. Now the phone doesn't see the SIM card. I figured I need to flash the radio as well. I downloaded 5.1 radio and tried to flash it using fastboot but it says "Permission denied". I tried flashing the same zip using TWRP and it says "Installation aborted". What am I doing wrong?

Update: found it here in the FAQ section: http://xdaforums.com/moto-g/4g-development/rom-stock-motorola-4g-lollipop-rom-t3142816
[Moto G 4G Android Development] RX14:
Is it a simple

fastboot flash motoboot motoboot.img

Or do I need to do something special?
[Moto G 4G Android Development] dermig:
That's it - you might also want to flash Radio and fsg.mbn:

fastboot flash modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
fastboot flash fsg fsg.mbn
[Moto G 4G Android Development] setherd:
That's what I came in to post. Flashed, all that and Everything seems to be working:good:
[Moto G 4G Android Development] Travisholt92:
Just wanted to report that with optimus kernel and the 7/23 build I have very little battery drain (comparing to sabermod which had excellent standby). About 1%/hr with data off and 2g only selected. (When mobile data is off, why connect to hspa or lte? Its pointless and drains battery.)
[Moto G 4G Android Development] hotbld5:
What were your kernel settings to get that standby time?
[Moto G 4G Android Development] Travisholt92:
No changes to kernel settings. Just using optimus kernel

Switching to 2g only when data isn't on makes a pretty big difference. In 2 hours my battery percentage didn't change. (It remained at 95℅).

Anybody know if there is a way to have your phone set to 2g only when data is off and back to LTE preferred when data is turned back on?

Nvm. I'll just set it to use 2g only when screen is off. That should do the trick ;)
[Moto G 4G Android Development] eteles:
Use intelli3g module! Needs xposed framework (search how to install it on android 5.1)
[Moto G 4G Android Development] partizann:
I use battery-fu app for the same task - it switch connection to 2G whenever the phone is locked,

and switch to 4G when the phone is unlocked. Then also once in a hour (configurable), it turn data on and force data sync.

With this I get around 3 - 4days with light phone use, but still get mails and other notifications with reasonable delay. ;)
[Moto G 4G Android Development] eteles:
Intelli3g has other events to set, like switching to 2g when wi-fi is connected too.
[Moto G 4G Android Development] bl4ckbluntz:
Bootloader version

Hello !

Sorry, I'm a newb and I would like to understand.

I have problem trying to flash last nightlies on my XT1039 with my bootloader's version.

Now I'm on Bootloader 41.16 unlocked, CWM 6.0.5.1, Official Nighlies CM12.1 : 12.1-20150706-NIGHTLY-peregrine, and Spirit.Kernel for peregrine-r3.

My bootloader is too old : 41.16, but the 41.1A is needed.

I would be sure to not do an error :

To update the bootloader, can I use this soft BUT-English-1.16a.exe ?

Or I have to use the file XT1039_Bootloader_v41.1A.zip and use fastboot to flash it ?

like this : fastboot flash motoboot motoboot.img

After that, I must update my radio drivers from this file XT1039_Retail_EU_5.1_Radio.zip using :

fastboot flash modem NON-HLOS.bin

fastboot erase modemst1

fastboot erase modemst2

fastboot flash fsg fsg.mbn

If I unsterstood correctly, after that, I have to flash the TWRP-v2.8.7.0 with Encryption Support to replace my CWM 6.0.5.1 ? or not ?

And after I can flash the last official nighlies using TWRP ? (20150724) ??

I would'nt have to do a full wipe.

Can someone help me please ?

Thanks in advance.
[Moto G 4G Android Development] dermig:
Either methods of updating the bootloader should work - and all the other steps are right, too.
[Moto G 4G Android Development] setherd:
Installed 25/7 this morning. now I can't get past the white powered by android screen.

I went back to 24/7 and it does the same thing.

Any ideas before I do a full wipe?
[Moto G 4G Android Development] bl4ckbluntz:
Thank's [MENTION=6636137]dermig[/MENTION] !!!

It works well !!

- 1 Update to Bootloader 41.1A with BUT-English-1.16a.exe

- 2 Update my radio drivers from this file XT1039_Retail_EU_5.1_Radio.zip using :

fastboot flash modem NON-HLOS.bin

fastboot erase modemst1

fastboot erase modemst2

fastboot flash fsg fsg.mbn

- 3 Install TWRP 2.8.7.0 with encryption support using :

fastboot flash recovery recoverytwrp2-8-7encryption.img

- 4 Reboot recovery using :

fastboot boot recover recoverytwrp2-8-7encryption.img

- 5 Choose Install zip and flash the 20150725 CM12.1 official nighly.

++ And thank's all for your work.
[Moto G 4G Android Development] aveyer:
Has the battery drain been fixed in build 25/07?
[Moto G 4G Android Development] MeltingMushroom:
Battery life seems much better.
[Moto G 4G Android Development] sevenrock:
Yes
[Moto G 4G Android Development] mac-duff:
much better is quite understated! Its awesome :)After 20h still having 53% and was using it for Whatsapp, radio and playing
[Moto G 4G Android Development] Francesco27:
Hello!

Yesterday I flashed the ROM stock Android 4.4.4 on my moto g lte. Now I would like to flash a ROM based on cm 12.1. Which is the best? Euphoria, BlissPop or ResurrectionRemix?

I have to root my device, flash the last version of TWRP and then can I flash the custom ROM? The bootloader is already unlocked. Thanks
[Moto G 4G Android Development] MeltingMushroom:
I forgot to reconfigure my Apps, battery life is perfect :)

You have to update the bootloader before installing the rom. Just update to 5.1 over Playstore first or flash motoboot.img of the stock 5.1 rom with the correct CID.

Rooting your device is the last step, flash latest supersu. After flashing the rom of your choice, flash the correct Radio files for your device from here http://xdaforums.com/showthread.php?t=3142816.
[Moto G 4G Android Development] Travisholt92:
Don't link radio files like that. They didn't specify what model they have, installing the radio that you linked could potentially brick their phone.
[Moto G 4G Android Development] Akutsito:
From the research I've done, the XT1040 sold in Chile should work with the basebands/radio files from Brazil, can anyone help me confirm this? for some reason the SIM is not being detected (getting error while fetching networks).

Also, are 4.4.4 radios not compatible with Lollipop? (We haven't gotten the oficial update yet, so I haven't been able to get Chile radio files)
[Moto G 4G Android Development] MeltingMushroom:
Thank you that you have brought to my attention, I corrected my post now.
[Moto G 4G Android Development] Francesco27:
I read that i can download the android 5.1 stock and flash these to update my bootloader and radio firmware, is it correct?

fastboot flash motoboot motoboot.img

fastboot flash modem NON-HLOS.bin

fastboot erase modemst1

fastboot erase modemst2

fastboot flash fsg fsg.mbn

Or i must update the radio firmware after flashing the ROM?
[Moto G 4G Android Development] mihaum:
[MENTION=6848927]Francesco27[/MENTION], not sure about motoboot, but flashing radio after flashing ROM won't do any harm. The phone won't just detect SIM card.

So, just to avoid frustration, do these steps before flashing ROM.
[Moto G 4G Android Development] Francesco27:
Ok, but flashing the steps i copyed can I update my radio firmware? Or it is a separated process?
[Moto G 4G Android Development] mihaum:
[MENTION=6848927]Francesco27[/MENTION], pasted steps will update your radio.
[Moto G 4G Android Development] Francesco27:
I also tried to ask in the thread of the ROM I want to flash and they gave me a different answer. I'm a bit confused :/

http://xdaforums.com/showpost.php?p=62059706&postcount=298
[Moto G 4G Android Development] dermig:
I updated my phone the same way, so it should work for you, too. Actually, it shouldn't matter if you flash radio or CM first.
[Moto G 4G Android Development] tsaber:
Hey my widgets on the home screen do not update. I have for example my calendar widget and on the widget it's still saturday and that frustrates me a lot.
[Moto G 4G Android Development] Travisholt92:
Flash all of the files listed above from the 5.1 firmware and wipe dalvik/cache, you should have no issues. The way that you listed IS THE CORRECT WAY.

motoboot.img is the bootloader file and must be installed along with radio to ensure a functioning radio on current builds.
[Moto G 4G Android Development] mihaum:
[MENTION=4711784]Travisholt92[/MENTION], yeah, I know, I meant that you could flash radio after flashing ROM and wasn't sure whether bootloader should be flashed before or could be flashed after the ROM.
[Moto G 4G Android Development] Travisholt92:
You can flash both before or after, but I recommend flashing them both at the same time. I personally had sabermod installed when I flashed bootloader/radio. I just wiped dalvik and cache, the Rom booted with no issue.

If you have a Rom installed and working, I suggest a simple dalvik/cache wipe after flashing bootloader/modem and avoid immediately flashing a new ROM to ensure that the device has no issues with the new firmware.
[Moto G 4G Android Development] tsaber:
After installing nightly 27 I got stuck in a bootloop.

I installed the 5.1 optimized stock. Now I'm going to install nightly 27 again. wish me luck!
[Moto G 4G Android Development] Bastlwastl2010:
I think we need a sticky to update bootloader and radio coming from the old one with cm like this, because nobody find this here in this thread and its forgotten in two weeks:

1. check your CID with

fastboot getvar all

2. Download the right Firmware Image from here: http://xdaforums.com/showpost.php?p=60793911&postcount=2

3. Extract

motoboot.img

NON-HLOS.bin

fsg.mbn

4. Try this fastboot commands:

fastboot flash motoboot motoboot.img
fastboot flash modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
fastboot flash fsg fsg.mbn

5. Flash CM and GAPPS

6. Wipe Dalvik and Cache

Reboot

Hope you enjoy
[Moto G 4G Android Development] Travisholt92:
Step 5 isn't needed if you're already running a CM 12.1 based Rom (new or old).

---------- Post added at 03:07 PM ---------- Previous post was at 03:04 PM ----------

Coming from stock you must wipe internal storage, data, dalvik, and cache. Also make sure to flash a 5.1 compatible gapps with the Rom you flash.
[Moto G 4G Android Development] Somcom3X:
If anyone feels the need to make a thread, I can ask a mod to sticky it. PM if anyone takes this suggestion and creates a thread.
[Moto G 4G Android Development] Vicrol123:
here are a tool to easily update the bootlader, http://xdaforums.com/moto-g/general/falcon-bootloader-upgrader-tool-t3093793

the next update would be radio/modem here http://xdaforums.com/moto-g/4g-development/rom-stock-motorola-4g-lollipop-rom-t3142816

thats the easy (and lighter) mode to install latest nightlys

Cheers!
[Moto G 4G Android Development] witheld9:
Please add support for bootloader 0x4113.

This is the bootloader you get after upgrading to the lolipop modem, it's fully compatible and the installer simply needs to add support for it.
[Moto G 4G Android Development] Travisholt92:
7-27 build seems pretty solid
[Moto G 4G Android Development] itslumxz2:
Hey guys, so I'm 5.1 XT1039 stock right now, I want to experiment a bit and see what's CM like now since I haven't used it since a few months, I have one question though.

Will I need the get the CM11 first, install it and then update it to the latest CM12 nightly? Since that's what I had to do the last time around, I would always get a bootloop installing CM12 from 4.4.4 stock hence I'd always get the CM11 first, and install the CM12 on top of that, you get the drill.

Would that potentially be an issue since I have the update bootloader from the OTA update.

Thanks in advance.
[Moto G 4G Android Development] Travisholt92:
Wipe data, internal storage, cache, dalvik, and system. Install cm12.1 and 5.1 compatible gapps and it should boot up first try ;).
[Moto G 4G Android Development] mikel10k:
Hmm roms after bootloader update have awfull batery life :p
[Moto G 4G Android Development] DKCN:
The 07/28 broke my radio signal again. I wonder why this issue keeps appearing and disappearing for me. I went back to a previous build, 07/19

EDIT: Found out I didn't install the 5.1 radio correctly. Now radio signal works
[Moto G 4G Android Development] Travisholt92:
Are you on the 5.1 bootloader/radio? If not then you need to flash them.
[Moto G 4G Android Development] DKCN:
Yes I updated them, even TWRP was update to the latest.

EDIT: Found out I didn't install the 5.1 radio correctly. Now radio signal works
[Moto G 4G Android Development] Travisholt92:
My guess is bad hardware. (FYI the new Moto G LTE came out 2 days ago. It costs 10% less than the a new Peregrine)
[Moto G 4G Android Development] mdmoose29:
Just throwing in my 2 cents on your broken radio. I have been having issues with that for some time. Sometimes the radio will go out for a few hours... Sometimes up to 2 days. Definitely seems like a hardware issue. Whenever it happens I go to dialer and use the "*#*#4636#*#*" and no matter what I can never get the radio turned on. Until the radio comes back on I use my Google voice number on open WiFi networks.... Its not the best but it leaves me with a usable phone.
[Moto G 4G Android Development] Somcom3X:
Could I have a logcat & dmesg? I had to reflash my radio for it to work if that helps.
[Moto G 4G Android Development] mdmoose29:
As this is a random occurrence, I probably can't get it to happen while hooked to a computer. What app is recommended for logcat that I could leave running in background?
[Moto G 4G Android Development] rouyal:
Anyone have live display working? I've never had it automatically change colors at night time. I have my GPS enabled always, and know its OK cause Google maps works. Do I have something disabled that I don't know it uses? I'm on xt1045
[Moto G 4G Android Development] AlanS181824:
Hi guys,

Been having this issue for the past few days, I'm unable to flash any new nightlys. My device is a European XT1039 and the last nightly I successfully flashed was from 14 July.

Pic included.

Any help would be greatly appreciated.

Sent from my Nexus 7 2013.
[Moto G 4G Android Development] st3rox:
You need to update your bootloader, the stock rom thread should have the 5.1 update for your device, download it on your PC and extract, then flash motoboot.img

---------- Post added at 11:06 PM ---------- Previous post was at 11:03 PM ----------

Just gave it a shot and it worked immediately, attach a screenshot of the page and the settings pages
[Moto G 4G Android Development] mattydk:
No USC love?

I have the XT1042 (The US Cellular variant), and we still don't have Lollipop yet. I'm going to assume its not safe to flash any of those other boot loaders?
[Moto G 4G Android Development] ahmedteling:
what is better in battery life blisspop 3.7 or official latest nightlies cm12.1 ?
[Moto G 4G Android Development] st3rox:
Correct, flashing the bootloader from another device will must likely brick your device
[Moto G 4G Android Development] crakeron:
Catlog is à good app ;)
[Moto G 4G Android Development] DKCN:
The problem for me is it happens on different ROM version dates. I flash one nightly and it's good from the start. I flash another and it's bad from the start. If it's bad from the start, no matter how many times I reflash it, the radio won't turn on. If we do a logcat, what info would you need?

EDIT: Found out I didn't install the 5.1 radio correctly. Now radio signal works
[Moto G 4G Android Development] mihaum:
Does anyone have a problem after latest update (0731)? After the update the home screen is blank, I can open drawer, but setting won't work. I use Apex Launcher as my default launcher.

I had skipped 0730, so it might affect this version aswell.
[Moto G 4G Android Development] drakohla:
Just flashed 07-31 over my mid July build. Have no issues with stock cm launcher

Gesendet von meinem XT1039 mit Tapatalk
[Moto G 4G Android Development] Somcom3X:
I need the entirety of the logs whenever it occurs. PM them to me if you like.

If you enable WiFi display certification in the developer settings, the cast screen option appears.
[Moto G 4G Android Development] eteles:
Will test it! Thanks!!
[Moto G 4G Android Development] Lysergic Acid:
Guys, I was in the stock 5.1, with lollipop bootloader of course, flashed cm-12.1 without problems, booted, and in the middle of the initial setup the screen starts to flicker like if the phone was low on battery, I can barely see anything on the screen. I coudn't find a similar issue in this thread, can someone point me some information on that?

Thanks

EDIT: Nvm, it's the brightness issue. [MENTION=4802051]Somcom3X[/MENTION] have you tried to mess with "config_autoBrightnessLevels" overlay?
[Moto G 4G Android Development] AlanS181824:
---------- Post added at 03:49 AM ---------- Previous post was at 03:45 AM ----------

[/COLOR]

Trying that now, thanks.

Will update how it goes.

Edit: I tried that and it flashed okay but now I'm stuck on the Motorola logo.

Please help.
[Moto G 4G Android Development] st3rox:
Try going back into recovery, wiping system and reflashing the latest cm12.1