yashsingh1/xdaforums huggingface dataset:
[Moto G 4G Android Development] Ketcchup:
do this with fastboot, it fixes GPS (those are cache partitions as I read, it works like a charm at least for me)

fastboot erase modemst1

fastboot erase modemst2

http://forum.cyanogenmod.org/topic/100143-gps-not-working/
[Moto G 4G Android Development] TheFixItMan:
I'm sure I read on here that the torch light is weak

If that's so try changing or adding this line to the build.prop

ro.media.capture.torchIntensity=65
[Moto G 4G Android Development] hourwatch:
Shouldn't this be integrated directly in the ROM?
[Moto G 4G Android Development] raulillo88:
I'm having problems with camera. If I do pics with back camera, pic stuck in the screen but is not saved and does not go back to camera to take another pic.

I can take pics with front camera and videos.

I have tried with 3rd party camera apps and I've tried deleting camera cache and data but nothing works.

Any solution without factory reset? Thanks in advance
[Moto G 4G Android Development] rodsayd:
Raulillo88, you have to deactivate KSM memory. That solved it for me.
[Moto G 4G Android Development] LluísGili:
I'm suffering random reboots and poweroffs, anyone having the same issue? may help reflashing with wiping data?
[Moto G 4G Android Development] joeldq:
It's slowly getting fantastic. I don't wanna even bother with stock 5.1

This was achieved with cm-12.1-20150611-NIGHTLY-peregrine.zip

[IMG="awesome sot"]http://i.imgur.com/YvIM0wt.png[/IMG]

Using:

Profiles (completely disabling data when on wifi)

Disabling location access to google play services

Disabling keep awake for play services again and google app.

I'm normally 80% of the time on wifi throughout the day. When not SoT is around 5 hours.

The only bug I've found up to now (super clean install) is that I get a FC when I get to data usage on settings.
[Moto G 4G Android Development] scattoit:
Anybody have a solution to fix bug on outgoing calls?
[Moto G 4G Android Development] setherd:
What bug?
[Moto G 4G Android Development] Justin64:
Good job but I have bugs

Hello, thank you for your great job.

I have one bug regarding the sound. It cut when I listen music and I remove the jack with the music is still playing. After impossible to cet back the sound, I have to reboot to have sound again.

Other bug, my GPS work but I can use it in my car because If I move it can not follow m'y position (in car)

Bugs regarding the graphic, with freeze with HD video with YouTube and other player VLC MXPLAYER ...

And a problem with the refresh of the screen when I boot the phone. But If I lock ans unlock the phone this bug disapear.

XT1039 French retail phone.

Nightly update CM perigrine

Regards

Justin
[Moto G 4G Android Development] scattoit:
I describe diealer outgoing bug:

Make a call, non answer ---> dialer show the last contacted number

Make a call, answer on the other side ----> dieler show "Unknown" or "Private Nuber" as last contacted entity
[Moto G 4G Android Development] Skire90:
Now 5.1 has officially been released to most Moto G 4G models, and with it the proprietary drivers, does that mean that the 'Bluetooth stack issues' and 'GPS issues' in CM12.1 will be fixed soon?

I'd love to jump ship to the Cyanogenmod camp! But I really need Bluetooth and GPS to work correctly ;)
[Moto G 4G Android Development] mcastagnaa:
Are you sure we have issues with Bluetooth and GPS at the moment?

As far as I am concerned the big issue was about memory management and, right now, even that one (I am on 15/6) is much much better.

I didn't have an issue with Bluetooth and GPS since long ago to be honest. And I use heavily both of them.
[Moto G 4G Android Development] triovi:
In the last nightly 15.06.2015 and maybe 14.06 i,m not sure, i have some problems with the network. I had this problem 3 times already in the last hours, all on the street, so maybe is related with cell changing or with the signal drop. The network is Vodafone Romania. For no reasons when i look on my phone I found no network sign, but if I reboot ,the network is back online. It's only me or someone had the same problem?
[Moto G 4G Android Development] tijuanacartel:
Without fail on any nightly so far, phone turns into a sluggish ness after around 24 hours uptime. Only reboot clears it.
[Moto G 4G Android Development] diziet_sma:
new launcher?

hi, i recently updated to a new nightly, and now my list of apps is in a strange - for me - a to z thing which requires a lot more scrolling than the previous arrangement, since i have only a few apps they all fitted on 1 1/2 screens, needing just one flick to the left to see them all. being new to android i believe that i'm referring to the 'launcher' is that correct? and is there a way to get back to the old behaviour?

diziet
[Moto G 4G Android Development] DKCN:
Anyone tried the latest nightlies?

The only problem I have now with 11 June nightly is there are times it sort of hangs and then suddenly the screen goes black. I can't get the screen working again unless I reboot.
[Moto G 4G Android Development] Sebaherrer:
Same problem here. But in my case, this is happening for time a long. Before the 20150531 in fact. :(

i got a xt1040.
[Moto G 4G Android Development] aveyer:
Tried this here, doesn't work.

Still weak, and I'm already on the Lollipop bootloader.
[Moto G 4G Android Development] Nistenf:
My notification light is staying on (not blinking) as long as I have a notificacion, even when the blinking settings are correctly set. Any ideas on how to fix it?
[Moto G 4G Android Development] Lurker-Observer:
Anyone knows if calls using WhatsApp/Line are working now?

Thanks
[Moto G 4G Android Development] zackwire:
Received a call trough Whatsapp yesterday and it worked flawlessly.
[Moto G 4G Android Development] Lurker-Observer:
AWESOME! Thanks.

EDIT: Only via WhatsApp, but nope with LINE.
[Moto G 4G Android Development] LluísGili:
Hi,

my phone is rebooting randomly, about once or twice a day.

I tried to reflash with wipe cache, dalvik and format /system, installed 20150615 build, with gapps from http://wiki.cyanogenmod.org/w/Google_Apps (20150602 arm)

Only installed gmail and whatsapp apps

what else can I try? flash another rom?

when phone reboots it does in bootloader, I attach an screenshot:

[IMG="bootloader when reboots"]http://i4.minus.com/jovtqA3LSnr73.jpg[/IMG]
[Moto G 4G Android Development] bejunk:
Your bootloader is still locked!!!!

Unlock it quickly on Motorola Website!!!

You can use CM & other custom rom only with custom Kernel, this need bootloader unlock

Man, feel happy you have no full brick....

Next time be more carefully & read instructions exactly.

Peace
[Moto G 4G Android Development] LluísGili:
no, I have unlocked it long time ago, I am using CM since then... why you think its locked?
[Moto G 4G Android Development] ssirK:
we can read "Device LOCKED" on the picture, i think thats why ;)

Maybe try Slim zero Gapps ( http://xdaforums.com/slimroms/general/gapps-official-slim-gapps-trds-slimkat-t2792842 ), thats the ones i use, and no problem with them
[Moto G 4G Android Development] Raan03:
Could you try following link:

http://www.reddit.com/r/MotoG/comments/32a3ry/moto_g_2014_stuck_in_device_locked_status_code_0/
[Moto G 4G Android Development] bejunk:
Because your phone say so?!?! Read the log file. It says boot cant be access even up there is stated device is locked... Lol

---------- Post added at 08:03 PM ---------- Previous post was at 08:01 PM ----------

This has nothing to do with this problem its OT.

This guy on reddit should reflash stock, then try to boot. Flash recovery again, done.

EDIT: the full image of stock. If bootloader is still locked, he should try unlock it, can be done from bootloader menu.
[Moto G 4G Android Development] Raan03:
It's worth a try, isn't it?

and i'm quoting the post on the reddit that I actually am referring to:

Look at the reason on the screen why it entered fastboot in the first place -> corrupt/incorrect partition table.
[Moto G 4G Android Development] LluísGili:
thanks for looking into this, if I reboot to bootloader it says unlocked:

the "device locked" screenshot it's when it reboots itself, then if I choose "normal powerup" show the error on the screenshot, but I can poweroff and then powerup normally

I've already did the wipes before flashing image
[Moto G 4G Android Development] bejunk:
The kernel sets also sizes for partitions. To change partitions in system is Hard if your are not a pro...

I guess he install some cuszom rom on locked bl and thats why.

---------- Post added at 08:23 PM ---------- Previous post was at 08:16 PM ----------

Hmmm very strange... I take it back with the unlock

...

EDIT: boot to recovery & make a full wipe ( /system /cache) + /intetnal!!!

I would advice you to flash stock again to get rid of the partition table error. Also look in the q&a maybe theres a methood/command to make sure it goes back to stock... Use a kitkat image. Then boot the stock rom & see if its still selfrebooting/bug present. After that install socoms twrp & before install custom rom make a full wipe, INCLUDING internal storage

Your model also is the 4g version?
[Moto G 4G Android Development] LluísGili:
I unlocked device months ago (on last screenshot it shows unlocked), before flashing CM 11, my trouble started about 2 months ago (previous post)

EDIT: about version yes it's 4g (XT1039)
[Moto G 4G Android Development] bejunk:
Download a full stock image & flash it. It will on begin, repartition your phone that should fix it.

Then proceed like i said above.

Look ths thread for reference where it says "repartition phone" even it dont works fir this guy :D

http://xdaforums.com/showpost.php?p=52786653&postcount=12

Remember to flash a KK rom
[Moto G 4G Android Development] LluísGili:
how can I do a full wipe? these steps are correct?

- "wipe data/factory reset"

- "wipe cache partition"

- "mounts and storage" -> "format /system"

--------------------------> "format /cache"

and how do I wipe internal ?

about flashing stock, will be the last thing I'll try...

EDIT: I've flashed twr instead of cwm, I see what you mean now :)
[Moto G 4G Android Development] bejunk:
ok cool in twrp in wipe menu choose advanced wipe & mark all th partitions i say :)

then install rom + gapps

if still the partition error , you will NEED to flash stock to fix it AFAIK. if stock works, flash recovery again & custom rom. should be no more problems..
[Moto G 4G Android Development] Flashy1272:
Hi all, lollipop has arrived for my retail in UK ? .

---------- Post added at 09:21 AM ---------- Previous post was at 08:31 AM ----------

Cannot install lollipop though. Have unlocked and rooted and have recovery. Recovery asks me if I want to install untrusted package, say yes and it just reboots, any help appreciated.
[Moto G 4G Android Development] crakeron:
Official OTA won't install if you have a custom recovery. Only stock one will.
[Moto G 4G Android Development] DKCN:
There is a bug when adding groups in a message. If you have 13 contacts in a group, it only adds 3 on the contacts. If you have 14, it only adds 4. Somehow there must be a code that ignores two digit numbers.
[Moto G 4G Android Development] tijuanacartel:
every few days I have an issue where the lock screen stops accepting input. Animations still display when I hit numbers but no numbers register in the pin entry. Only a reboot fixes it.
[Moto G 4G Android Development] DKCN:
Does cast screen work for our device?
[Moto G 4G Android Development] bluegrass55:
Just bought the G sim free UK (third time) and it did a system update but not to Lollipop.

The build number is KXB21.14-L1.56.

How did you get the Lollipop one?
[Moto G 4G Android Development] Travisholt92:
Ota gets sent out in waves "check for update"will not get you lollipop. You have to wait for the notification. Stay on stock until you get it.
[Moto G 4G Android Development] aveyer:
Is there any hope of fixing the weak flashlight? It's pretty much the only bug left.

Difficult to see in the dark with it and I really don't want to use Moto stock.
[Moto G 4G Android Development] setherd:
Anyone else get dialer crashes? Every time I tr to call someone the dialer crashes for the last 3-4 builds.

If I use voice commands to dial it doesn't.
[Moto G 4G Android Development] aveyer:
My dialler doesn't crash except when using Csipsimple, it crashes in the background when asking whether or not to dial using mobile or SIP.
[Moto G 4G Android Development] setherd:
I used to have google voice ask me which account to call out from, my carrier number or google voice. If I tell google voice to always use my carrier number, the dialer doesn't crash.
[Moto G 4G Android Development] afox27:
STILL no support for the xt1042. Bootloops
[Moto G 4G Android Development] Mathracer1:
It should work. I had this problem, although I have an XT1045. If you use CWM switch to TWRP and try again. Also, make sure to clear all data/caches before flashing, and flash gapps at the same time. Good luck!

- Mathracer1
[Moto G 4G Android Development] Lurker-Observer:
Question. Are you going to update Lollipop to the latest release (5.1.1_r5)?
[Moto G 4G Android Development] Flashy1272:
Hi. Have returned to stock, retail gb 4.4.4, and successfully updated to lollipop. However I am now unable to root and install recovery though it says it has completed successfully. When try to enter recovery I just get the android image with no command comment. Any ideas greatly appreciated.
[Moto G 4G Android Development] dog121:
Had the same issue with recovery just fastboot it again it will work are u using twrp?? Did you use CF auto root I had no issues with that..
[Moto G 4G Android Development] eteles:
Hello guys! Is CM 12.1 good to go? I'm on stock lollipop and it's great, except for the miracast function not working properly even after adding the line persist.debug.wfd.enable=1 to build.prop (it disconnects wi-fi on the phone, as with the previous stock ROM).
[Moto G 4G Android Development] afox27:
I have cleared everything with twrp but when I flash the cm package it says updater binary isn't found or mis something. It only flashes on cwm an then it bootloops I've tried letting it set on charger. For 3 weeks it stayed on the blue cm boot screen

---------- Post added at 10:07 PM ---------- Previous post was at 10:05 PM ----------

Its not even listed on the cyanogen mod wiki. As compatible
[Moto G 4G Android Development] Jaro89:
I have one question - is not working otg function connected with kernel (i'm using spirit from 21.04) or cm (12.06) have some kind of bug?
[Moto G 4G Android Development] Flashy1272:
Hi. Have managed to get root and recovery, currently cm touch from Socoms easy recovery. But I cannot change to TWRP or install any cm 12 nightly zips all just fail on install. Plus I get the line drawing down just in recovery . Any ideas please.
[Moto G 4G Android Development] Mathracer1:
I totally understand, I had the exact same problem. Have you tried flashing with TWRP? Make sure you wipe absolutely everything, including data. Also, I only managed to get it working by flashing gapps with cm, before booting it.

Just going to post full instructions here, because I have nothing better to do with my day.

VVV LINKS BELOW VVV

Flashing TWRP: Open a command line,

cd C:\Users\*YourUserHere*\AppData\Local\Android\android-sdk\platform-tools

Connect device to PC, enable usb debugging,

adb devices

You should see your device listed.

adb reboot fastboot

Open a windows explorer window, and move the TWRP file you downloaded to: C:\Users\*YourUserHere*\AppData\Local\Android\android-sdk\platform-tools\

(I renamed mine to recovery.img for simplicity.)

Wait for fastboot, then

fastboot flash recovery recovery.img

Now using volume up/down navigate to recovery, and select it. Note: mine didn't work first try, reboot or possibly reflash if it doesn't go to TWRP right away.

Installing CM 12.1:

In recovery, Wipe>Advanced Wipe> check all options(Not external sd if you have one.)

Now go to Mount>check /data/, and mount it.

Move the CM file and gapps file to C:\Users\*YourUserHere*\AppData\Local\Android\android-sdk\platform-tools\

(I renamed the CM file to cm-12.1.zip, and the gapps file to gapps.zip.)

adb push cm-12.1.zip /sdcard/
adb push gapps.zip /sdcard/

(NOTE: If you have an external sd card, then you can just move the cm and gapps files onto the external sd card and flash from there.)

Now go back to your device, and choose Install, and then choose both cm-12.1.zip and gapps.zip, making sure to choose the cm zip first. Swipe to install. You might get an error relating to partition sizes, don't worry, it doesn't effect it. After it finishes, reboot into system, and cm will start. Give it about 5 minutes, then it should boot. There will be some screen tearing, once it boots just turn off the screen then turn it back on again and it will be fixed. Best of luck!

Use this TWRP, this CM, and this gapps.

---------- Post added at 05:45 PM ---------- Previous post was at 05:39 PM ----------

That is certainly weird. Try following the guide in my previous post, if TWRP still fails then you might want to try to flash a stock recovery. Beyond that I'm not really sure, it sounds like you have a corrupt recovery.
[Moto G 4G Android Development] rouyal:
I've been having an issue for a while. My phone rings in my pocket, I pull it out, look at the screen and it just stays black for 4-5 seconds before screen comes on so I can answer it. XT1045
[Moto G 4G Android Development] fygonzalo:
Just dialer or the phone?
[Moto G 4G Android Development] joeldq:
I'm getting "unfortunately settings has stopped" when I go to "Data Usage". Any ideas? I have just 4 apps from stock cm 12.1 (wahstapp, skype, telegram and moonreader)
[Moto G 4G Android Development] Flashy1272:
Yes strange. Can manage to get twrp recovery from the motoflash tool working but still line drawing in recovery only and still cant flash newer version or any cm zip. Just keep failing.
[Moto G 4G Android Development] afox27:
Hm sounds like write protection is on. Or your boot loader isn't unlocked
[Moto G 4G Android Development] Flashy1272:
Well it says its unlocked, only had this issue since I went back to stock and updated to lollipop. How would I check write protection? Many thanks
[Moto G 4G Android Development] setherd:
What? No talk about Motorola releasing a 5.1 kernel for us?

https://github.com/MotorolaMobilityLLC/kernel-msm/releases/tag/MMI-LPB23.13-35

does this help the cause?
[Moto G 4G Android Development] RLNTLSS:
In nightly today ( 04/07 ) has a problem, boot if a message " Failed encryption " , then he goes to recovery , but it is locked on the screen of " TeamWin " is just that .

What can I do to be able to use my phone again?

sorry for bad english
[Moto G 4G Android Development] Skire90:
Same here! 4/7 nightly has made my phone unusable :(
[Moto G 4G Android Development] taconi dantas:
04/07 is bad, I returned to stock 5.1 for repair .
[Moto G 4G Android Development] Skire90:
Same here. Flashed the stock zip via TWRP.

Damn that was pretty unlucky for me. Just yesterday I decided to try CyanogenMod (build 3/7). Completely reinstalled my phone. Now I can reinstall all over again :D I'll probably hold off from trying CyanogenMod again until Android M comes out.
[Moto G 4G Android Development] RLNTLSS:
What Should I Do Now ? I do not I'm managing to do anything, I'm lowering the stock rom 4.4.4 ( xt1039 ) , to try to return via the command prompt, I can do this ?
[Moto G 4G Android Development] setherd:
Same here. I can't even get into recovery. This is bad
[Moto G 4G Android Development] Skire90:
Please be careful! You can only return to stock 4.4.4 if you still have the old kitkat bootlader. If you have previously installed the 5.1 stock rom, you CANNOT go back to 4.4.4!
[Moto G 4G Android Development] RLNTLSS:
I still had the stock 5.1 I was with 4.4.4 and went straight to CM 12
[Moto G 4G Android Development] michael_ch:
I can confirm. Please download the previous nightly from http://get.cm/?device=peregrine and copy it to the phone while in TWRP recovery. You can simply flash it over the current installation, no need to erase any data.

I'm going to investigate what got broken...
[Moto G 4G Android Development] RLNTLSS:
but I am unable to enter the recovery
[Moto G 4G Android Development] mcastagnaa:
Power the phone off. Press power+vol key, select recovery, flash previous version.

It looks scary but no actual damage is done. I went back to 20150629 this way and it's all fine.
[Moto G 4G Android Development] michael_ch:
Google for how to enter fastboot, then run "fastboot boot <recovery-image>. You can download TWRP from http://xdaforums.com/moto-g/4g-development/collection-somcom3xs-experimental-corner-t2996266
[Moto G 4G Android Development] taconi dantas:
here was not possible to enter recovery, Xt1040.
[Moto G 4G Android Development] Skire90:
I was able to get into TWRP recovery, but unable to mount. So there was no way for me to get the 3/7 zip on my device.
[Moto G 4G Android Development] taconi dantas:
I am returning to the CM 12.1 03/07.:D
[Moto G 4G Android Development] RLNTLSS:
How?

---------- Post added at 11:37 AM ---------- Previous post was at 11:21 AM ----------

someone who was not able to enter the recovery , he found a way out ?
[Moto G 4G Android Development] taconi dantas:
I installed the rom stock 5.1 and custom recovery twr 2.8.3.

---------- Post added at 11:47 AM ---------- Previous post was at 11:42 AM ----------

I used this rom to repair.

http://www.filefactory.com/file/14gny3nu8vy9/XT1040_PEREGRINE_RETBR_5.1_LPB23.13-8_cid12_CFC.xml.zip
[Moto G 4G Android Development] setherd:
I couldn't get into recovery at first.

Then this worked for me.

--power off.

--wait a few minutes, then power on while holding the vol dn button. I thin kmy xt1045 just had a problem rebooting into recovery. I was able to flash a previous one then.
[Moto G 4G Android Development] RLNTLSS:
for me , I can not enter the recovery , the screen is locked in " TEAMWIN " she carries , but back to image again , and is looped .

I have a XT1039
[Moto G 4G Android Development] mcastagnaa:
Did you press the reset thing you were presented with once the boot routine stopped on the failed encryption screen?

I didn't so I was able to flash a different nightly.

If recovery fails I guess you need to refresh it via faatboot as suggested above.
[Moto G 4G Android Development] triovi:
Unfortunately I have the same problem. After I install the 04.07 version appear that message with content encryption and the only thing you can do is to restart to wipe the system. But when TEAMWIN photo appear it freeze and stay that way.

So I tried to install via Fastboot a TWRP recovery image. But was the same result. Also i tried with older TWRP version, same. It freeze at that starting image .Also i tried with CWM and CWM PHiL recovery the result was more disastrous. An image with Android system logo appear for few seconds and restart. Also I tried to use and stock recovery image form an old backup, same.

Unfortunately the only thing I find to bring back the phone was to take from Internet an stock ROM version. ( XT1039_RET-EU-SS_4.4.4_KXB21.14-L1.56-1_cid7_CFC_1FF.xml.zip) worked for me. I take everything inside archive, I copy to fastboot directory and than I install the stock ROM. Then i install an working CM12.1 older version.

Sorry for the english, isn't my native language.
[Moto G 4G Android Development] Somcom3X:
I have stopped nightly's for the peregrine pending investigation. They've been bumped down to cm-12.0.

It's very difficult for me to diagnose all of these issues with differing bootloaders/radios.

Currently working on a new TWRP, but I'm having issues with the older bootloader on the newer kernel.
[Moto G 4G Android Development] mcastagnaa:
Basically this 0704 seems to trigger encryption which fails and ask the user to reset the phone.

If you don't you are OK by flashing an earlier ROM, if you do you are in trouble (apparently).

This is my understanding.
[Moto G 4G Android Development] michael_ch:
Here is the fix: http://review.cyanogenmod.org/#/c/102512

PS: Looking forward to the new TWRP :)
[Moto G 4G Android Development] taconi dantas:
04/07 with beetos kernel works fine.