yashsingh1/xdaforums huggingface dataset:
[Moto G 4G Android Development] mihaum:
Tried that, no luck. However, 0730 flashed without a problem.

There is a regression report on jira
[Moto G 4G Android Development] sevenrock:
Hi,

I am not an expert when it comes to wifi problems related to regulatory domains

but I am having a problem after these two commits using latest CM 12.1:

https://github.com/CyanogenMod/andr...mmit/d098f7314754796e8287c66613f9801576f4d703

https://github.com/CyanogenMod/andr...mmit/33465c57ae87c49cd179631ef351f7b119b5e5cc

I am living in Germany and the wifi country settings in my phone are set to

Germany but after these patches my phone does not find channel 13 anymore.

Reverting both patches fixes the problem.

If you need more infos (logcat/dmesg) please ask, here are some quotes from

the ROM with those two patches reverted:

EDIT: Filed jira: https://jira.cyanogenmod.org/browse/NIGHTLIES-1630
[Moto G 4G Android Development] Somcom3X:
Yep, anything under a brightness value of "10" causes the device to reach a non-navigable setup. Currently working on rescaling it with the new blobs and decompiling the stock framework.

Mind submitting this on jira? https://jira.cyanogenmod.org
[Moto G 4G Android Development] Lysergic Acid:
Okay great, fixing issues with old sources is a waste of time ;)

Do you know what the values are in the stock rom? I could try to gather them if you want some help, btw I'm new to this device, but I can try to help with anything needed, although it seems that's the only issue left with my usage.
[Moto G 4G Android Development] eteles:
Tested your suggestion but cast screen option doesn't work... To be honest the option has always been available... Even with display certification option disabled. The problem is that you can't turn it on and find devices to cast, unless you add the line persist.debug.wfd.enable=1 to build.prop.

I'm using your latest build.

Please add the line to build.prop as default, would you please?

Thanks!
[Moto G 4G Android Development] mihaum:
It seems that the blank screen issue's been fixed on 0801.
[Moto G 4G Android Development] Somcom3X:
Can you tell me if it shows up in this build by default without adding that build.prop line?

https://www.androidfilehost.com/?fid=24052804347785750 You might have to click "settings" from the cast screen for it to load.

http://review.cyanogenmod.org/#/c/94339/

You can find the values by decompiling the stock framework. Welcome aboard!
[Moto G 4G Android Development] MrMD69:
Report

Dont know why but 0108 give me magicaly "No SIM card - emergency calls only"
[Moto G 4G Android Development] mihaum:
Have you flashed LP bootloader and radio?
[Moto G 4G Android Development] scattoit:
Can anyone explain me step by step ow can update my bootloader and radio? I have an old version right now.

Thanks so much.
[Moto G 4G Android Development] Bastlwastl2010:
http://xdaforums.com/showpost.php?p=62066941&postcount=2437
[Moto G 4G Android Development] mihaum:
Anyone know how to (re)enable switching screen lock mode with profiles? Now I get message, that it is blocked by administrator. I couldn't find it in the settings.
[Moto G 4G Android Development] eteles:
No good... There's no settings option, so you can't turn it on.

Enviado de meu XT1040 usando Tapatalk
[Moto G 4G Android Development] Somcom3X:
How exactly are you accessing cast screen? Its working beautifully for me on my end.
[Moto G 4G Android Development] andres5791:
Don't recognize SIM CARD

For some reason the official branch of CM12.1 won't recognize my SIM card. I installed most nightly versions between 07/25 and 08/01 and no one works. I went back to CM11 and doesn't have any problems at all.

Another strange thing is that an unofficial CM12.1 made by AndroGeek 974 (LINK HERE) works perfect to me. So it's not so urgent to fix this problem, since I have a functional version of CM12.1 working for me, but it's not the perfect situation since there are a lot of features added in the last months.

my model is: XT1040

bootloader: 41.1A

recovery: CWM 6.0.5.1

I installed CM11 from stock 4.4.4 firmware, later upgraded the bootloader and update to CM12.1. Didn't recognize SIM card, so tried going back to CM11 and it worked perfectly. So i installed AndroGeek version Cm12 and worked fine. Since then I've been installing differents nightlies and no one recognized sim card.

Any idea of how to fix this?
[Moto G 4G Android Development] Bastlwastl2010:
Do you update the radio to?
[Moto G 4G Android Development] Travisholt92:
Flash 5.1 radio and your issue will be fixed.
[Moto G 4G Android Development] andres5791:
thanks! Any link at hand to download it? Can't manage to find it. I'm sorry
[Moto G 4G Android Development] Bastlwastl2010:
Here:

http://xdaforums.com/showpost.php?p=61529005&postcount=1

Or read this:

http://xdaforums.com/showpost.php?p=62066941&postcount=2437
[Moto G 4G Android Development] eteles:
System settings -> Display & lights -> Cast Screen

Here's what it shows:

After adding the line persist.debug.wfd.enable=1 to build.prop:
[Moto G 4G Android Development] andres5791:
thanks! I'l try it in the evening

EDIT:

it worked! thanks to everyone.
[Moto G 4G Android Development] Somcom3X:
What exactly are you trying to do with those settings?
[Moto G 4G Android Development] mihaum:
Bump.
[Moto G 4G Android Development] eteles:
With those settings you are able to mirror the phone screen to your miracast compatible device, for example, a smart TV.

it's different from video streaming, when you can only share a media file, like a DLNA media server.

Screen Cast or Miracast shows exactly the same content that is shown on your phone screen, real time (with a little delay, depending on your network connection speed) with sound.

With your ROM, you can only do that after adding the line to build.prop.
[Moto G 4G Android Development] Somcom3X:
The issue I'm having is the wifi display overlay is working for me without that build.prop flag.

_________

I'm currently without a computer or build machine. Gotta love failing hardware issues. Who knows when I'll be back to deving.
[Moto G 4G Android Development] eteles:
Hum... Not for me and some other guys here... But I hope you can figure it out when you are back to deving!

Enviado de meu XT1040 usando Tapatalk
[Moto G 4G Android Development] aveyer:
[MENTION=4802051]Somcom3X[/MENTION] Thanks for the great work fixing the adaptive display brightness, it no longer flickers / blacks out when at the lowest, same as stock.

Now all we neeed is full flashlight brightness :D
[Moto G 4G Android Development] Somcom3X:
All that requires is the new blobs which won't take effect until the other devices receive 5.1
[Moto G 4G Android Development] aveyer:
I thought that only required the 5.1 Peregrine blobs (to fix it for Peregrine only)?
[Moto G 4G Android Development] Somcom3X:
We share blobs with over devices. Without the shared blobs being changed it will crash the camera/phone. When I release carbon it will have the 5.1 blobs.
[Moto G 4G Android Development] ahmedteling:
plz somcom3x why did you remove the option of choosing install location of apps from setting > apps :(((((((((((((((((
[Moto G 4G Android Development] scattoit:
After I've update to latest bootloader and radio I've installed latest build. It's very leggy. Anyone has similar problem?
[Moto G 4G Android Development] ahmedteling:
the build 08082015 seems to drop wifi connection when screen locked even it is checked to be ALWAYS in wifi setting

for me the build 08052015 is the best cm build ever
[Moto G 4G Android Development] Morality1/24:
From where did you get the updated radio and bootloader in a standalone form?
[Moto G 4G Android Development] rodsayd:
You can use this tool for bootloader: http://xdaforums.com/moto-g/general/falcon-bootloader-upgrader-tool-t3093793

And in this post you'll find the radios, thanks to [MENTION=1006674]lost101[/MENTION]: http://xdaforums.com/moto-g/4g-development/rom-stock-motorola-4g-lollipop-rom-t3142816
[Moto G 4G Android Development] mihaum:
Once again, does anyone know how to 'unlock' profiles screen lock switch? After introducing new API I cannot find an option to give admin access to that feature.
[Moto G 4G Android Development] myzterioux:
[MENTION=4977500]sevenrock[/MENTION]

I have the same problem, no channel 13 or just sometimes for some minutes. How do i exactly fix this issue step by step? Or which tools do i need.

Device: Moto G LTE XT1039

Country: Germany

Nightly: 08/08/15 with new bootloader and updated radio files
[Moto G 4G Android Development] sevenrock:
You need to be able to compile CM12.1 yourself

and revert the two patches I mentioned

http://xdaforums.com/showpost.php?p=62135732&postcount=2469

before you start compilation.
[Moto G 4G Android Development] mihaum:
Found the solution, accidentally. All you have to do is clear certificate storage. Not sure what caused the 'block' though.
[Moto G 4G Android Development] Scarlett25:
This ROM worked with TWRP? ¿What bug presing to far?

Thank you

Best regards
[Moto G 4G Android Development] Libor1:
Channel 13 is not working all the time on my xt1039 cm12.1 20150805. Had connection one day, then 2 days without it, cleared cash, clean install but no work. Next day connection for few hours, then again dead, its driving me mad on hotel wifi mostly without connection.

Odoslané z XT1039 pomocou Tapatalku
[Moto G 4G Android Development] cptechnik:
Can you write down a few howto-steps to solve this problem? Where do we clear the certificate storage?

Do you get this also with older versions?
[Moto G 4G Android Development] fangelici:
sorry for my bad English

I upgrade to latest version of CM12.1 and now can not solve the problem.

E: Error executing updater in binary zip / external ...

If someone can show me the solution, post or topic, I'm looking here more'm not able to solve this problem.

Thank you so much.
[Moto G 4G Android Development] mihaum:
Sorry, you've got to go to Settings -> Security (or another place where you can encrypt your phone, I translated on the fly) -> Clear certificate storage.
[Moto G 4G Android Development] sevenrock:
Known bug: https://jira.cyanogenmod.org/browse/NIGHTLIES-1630
[Moto G 4G Android Development] Libor1:
Reverted back to older CM version, free wifi changed to channel 1, cant test if ch13 works

Odoslané z XT1039 pomocou Tapatalku
[Moto G 4G Android Development] fangelici:
afff

solved
[Moto G 4G Android Development] Libor1:
Tried ch13 on my xt1039 cm 20150707 same problem as with 20150805 sometimes works mostly not

Odoslané z XT1039 pomocou Tapatalku
[Moto G 4G Android Development] blugonjic:
I have a questions if somebody would be kind to answer.

On the last few nightlies I have insanely low mic volume. People I call can barely hear me. No matter over cell, Skype, Whatsapp or others. Yes, I tried setting the volume higher via apps, didn't work. Anybody got the same problem or a solution maybe?

Thanks in Advance
[Moto G 4G Android Development] Skire90:
This might sound a bit dumb, but my brother who owns a Moto G 1st gen (3g version) for about 2 years now has had the same issue. Turns out his microphone hole was clogged up with dust and dirt. Try removing the cover and use a needle to get the dirt out. Be careful you don't damage the internals.
[Moto G 4G Android Development] Somcom3X:
To all those with the channel 12/13 issues, would you please test this build for me? https://www.androidfilehost.com/?fid=24052804347794752

The faster I get a confirmation the faster this'll get merged.

Contains newer blobs as a forewarning.

Change: http://review.cyanogenmod.org/#/c/106195/

edit: reuploading with a correct kernel change

edit2: uploaded
[Moto G 4G Android Development] Kayant:
You uploaded just the checksum and not the rom image :p
[Moto G 4G Android Development] blugonjic:
Tried it and sure enough that was the problem. Thanks a lot kind stranger
[Moto G 4G Android Development] Kayant:
[MENTION=4802051]Somcom3X[/MENTION]

Just tried it with AOSPAL. Can confirm it works.
[Moto G 4G Android Development] dc239:
Does somebody know what causing the non-blinking led in facebook messenger ?
[Moto G 4G Android Development] Somcom3X:
The derp is real. I uploaded it through ftp and must have accidentally added it.

Merged the change. New nightly should have it working now!
[Moto G 4G Android Development] droident:
I returned to stock and flashed this lastnight. Alongside the Optimus kernel port and CM recovery. No bugs thus far but my device chugged a fair bit whilst going through and logging back in on my apps. Is there any workaround for the memory constraints of the Moto G 4G? I used the SaberMod for a while and it seemed that was a lot better with memory management - but marred by issues I was bumping into (FCs, silent calls).

If anyone has any pointers as to what sort of tweaks can be done I'd be grateful. I have Kernel Aduitor and have set killing to "aggressive" in the meanwhile and ZRAM to 0 to see if those two improve things. For the most part it seems like apps are staying in the memory a bit more - I mainly just need things like music players, Greenify and Mi Band Notify to be persistent.
[Moto G 4G Android Development] Pupet_Master:
Try this script of mine for a better RAM management:

#!/system/bin/sh
echo "9472,12032,15104,19200,27648,39424" > /sys/module/lowmemorykiller/parameters/minfree
[Moto G 4G Android Development] RLNTLSS:
Looking at the download site of the CM , now has a recovery for each build , it is necessary to flash it to use the new nightlys ? or you can continue using the TWRP 2.8.7 ?
[Moto G 4G Android Development] Skire90:
No it's not necessary. I flashed the 15-8 nightly with TWRP without any issues.
[Moto G 4G Android Development] michael_ch:
Hmm, sounds very random once more. Please check this to see how we came to the current values: https://jira.cyanogenmod.org/browse/NIGHTLIES-1361
[Moto G 4G Android Development] Pupet_Master:
It isn't random, in fact it is based on other device with a better OOM management that i have.

Work perfect for me and the friend i quote to use wasn't happy with the current values so maybe give a try can make him happy.
[Moto G 4G Android Development] Skire90:
Care to be less cryptic and reveal to us what other secretive device you're talking about? :p
[Moto G 4G Android Development] Pupet_Master:
Cryptic?

Well i find cryptic how you judge my script random before to know the research i've done and the tests i had to make before come to it.

Anyway the device is an LG L5 II. It is a much lower spec device then the moto G but it actually run more smooth. After dig up what was the difference in optimization of not just the Moto G vs the L5 II (but also on my experiences to research and test OOM values) it was the way the OOM was setup.

I didn't just copy and paste the LG device value, as it has less RAM then the Moto G i took it in consideration and applied new values based on the LG.. but no the same.

Now.. test it before judge if it will help our friend or not. If it don't help it's all good, but i want to try to help him. This is the way i can.
[Moto G 4G Android Development] Skire90:
Take it easy on the assumptions there, sir! I didn't judge your script at all. I was just curious and meant no wrong :)
[Moto G 4G Android Development] michael_ch:
Well I'm no expert in this, just trying to put those numbers into a relation that makes sense. If this gives a better result for you then we should try to understand the numbers and see if they could be used by default in CyanogenMod. Let me try to explain the change:

Check the Google sheet that I linked in the issue tracker above, and make sure to read http://www.androidcentral.com/fine-tuning-minfree-settings-improving-androids-multi-tasking.

I have added your numbers in row 26 (Test 1). Your values set the number of pages where 1 page is 4 KB. So with EMPTY_APP=39424 it means that the limit is 154 MB. The limit tells the system that background apps will be killed when less than 154 MB RAM is free. By default, CyanogenMod (Moto G) sets the EMPTY_APP value to 120 MB.

The other numbers relate to the EMPTY_APP value. By default, they are set to 40%, 50%, 60%, 70%, 80% of it, or 25/37.5/50/75/87.5 on low-memory devices. In your case, this is set to 24/31/38/49/70 (and this is the reason why I think this was a random result, even though it seems to give a good result for you).

I do understand that it could make sense to start killing unused apps earlier than before (EMPTY_APP is higher than before) and get more memory for required apps like foreground tasks, launcher, etc. Thanks to this, you have more memory available for foreground tasks (see other minfree values), which means they will be killed less often.

I did some search and found out that stock AOSP also doesn't go beyond the 25/37.5/50/75/87.5 stepping (https://github.com/android/platform...e/java/com/android/server/am/ProcessList.java). I don't know the reason about that, but I assume there is one. Considering all this, I suggest to try the numbers from row 27 (Test 2) which take all this into account:

#!/system/bin/sh
echo "10240,15360,20480,30720,35840,40960" > /sys/module/lowmemorykiller/parameters/minfree

This will hopefully still give a similar result like your original values, however the numbers are now based on some logic. Can you take a look and compare?
[Moto G 4G Android Development] Pupet_Master:
It is all about the device weakness and strengths. After doing some tests i came to the conclusion that if more 240mb or less is free the experience the device start to lag.

But set the background services to be kill at that value seen too extreme to me, as well as the foreground services add to the math so it don't need a very extreme background number.

About the numbers, there isn't a logic as a straight line or a fix math. How ever the logic i figured out with the LG device is that it take in consideration the size of each app that the device usually run, the size of apps in foreground, service ground, background, etc. So with that logic i made a research on the apps on the Moto G that it usually handle (specially at first the size of the facebook app as this was the app that we had issues when i first made the script, even though it evolved with time).

That is the logic behind.

I'll test your values
[Moto G 4G Android Development] Skire90:
New nightly (08-19) is out. This release should fix all issues with WiFi channels 12 & 13 :) See http://www.cmxlog.com/12.1/peregrine/ for the complete changelog. Thanks Somcom3X!
[Moto G 4G Android Development] /user8888:
Works :)

Thank you, for sharing that information [MENTION=4977150]Skire90[/MENTION] !

I downloaded this release and everything works fine!

No bootloops and no major bugs! :good:

(This was the first ROM flashing Ive ever done and it went very fast and well!)

(I have a XT1039 and I am using a TWRP recovery)

;)
[Moto G 4G Android Development] sevenrock:
Just re-compiled my ROM based on current git code, I can

confirm that the new firmware fixes the channel 13 problem here.

Thanks!
[Moto G 4G Android Development] molnaratt:
Hello,

I have receive com.motogeofencesvc has stopped message most of the time when I start using Waze navigation app. Does anyone has idea why?

Thank you.
[Moto G 4G Android Development] iambig:
I have same problem, but I simply don't care of it, because Waze works.
[Moto G 4G Android Development] yggdrasil31:
in waze, I got the same message too

i was on the 08242015 nightly build... never happened on 5.1 stock
[Moto G 4G Android Development] zvz2:
Did anyone try the encryption with the newest nightlies? So far I've read only about failed attempts but mostly with older builds ...
[Moto G 4G Android Development] peter_baz:
im having soft reboots sometimes when i turn on/off wifi or data in all 5 latest nightlies

anyone else is having that?
[Moto G 4G Android Development] Pavel9099:
I have the same problem.
[Moto G 4G Android Development] mihaum:
It's been already reported at jira.
[Moto G 4G Android Development] Skire90:
I am also having soft reboots since a couple days
[Moto G 4G Android Development] dhermit:
For me the camera bug is still not solved ... can't take photos with any camera app (nightly of today).
[Moto G 4G Android Development] rodsayd:
What camera bug? Disable KSM with some kernel settings app. That will solve it.
[Moto G 4G Android Development] dhermit:
The app freezes when I try to take a picture ... killed ksmd process but didn't help.
[Moto G 4G Android Development] rodsayd:
Download Kernel Adiutor, go to KSM settings and disable it... It isn't a process. That happened to me before but I disablet it and never happened again. Reboot your phone after disabling it.
[Moto G 4G Android Development] st3rox:
The past week or so my lte has been acting funny, keeps disconnecting randomly, when I switch to 3g the problem goes away.

Anybody else seeing that?
[Moto G 4G Android Development] molnaratt:
Hello.

Do anyone know if peregrine will receive the first release of 12.1 (not nightly)? It was released for many devices.

Thanks.
[Moto G 4G Android Development] Bastlwastl2010:
From CM Blog

So... Somcom3X means it is not stable enough for an offical stable release....
[Moto G 4G Android Development] zvz2:
If anyone else was trying to encrypt the phone, here's what I've tried so far (short version: it doesn't work at least not for the xt1039)

cm-12.1-20150827 nightly >> encryption process finishes, bootloop afterwards

cm-12.1-20150404 unofficial v2	(Somcom3X'S version) >> encryption process just doesn't work, it reboots without any changes

cm-11-20141004 unofficial (Somcom3X'S version) >> encryption process finishes, black screen afterwards (to get into recovery you have to enter the password)

I was using the TWRP 2.8.7 recovery with encryption support for all of this. If anyone manages to get it done with CM, please let me know.
[Moto G 4G Android Development] molnaratt:
In the next nightly doze function will be cancelled according to the changelog. Does anyone know the reason of this? Unstability?
[Moto G 4G Android Development] sevenrock:
http://xdaforums.com/showpost.php?p=62639084&postcount=4540
[Moto G 4G Android Development] sevenrock:
@ all users suffering soft reboots: Please test the newest nightly build 20150904:

https://jira.cyanogenmod.org/browse...issuetabpanels:comment-tabpanel#comment-76638

It includes this patch: http://review.cyanogenmod.org/#/c/108403/

which is aimed at fixing the soft reboots.
[Moto G 4G Android Development] yairigal:
with the lastest nightly ( 6/9/15) i cant use the LTE signal , is it just me?
[Moto G 4G Android Development] joeldq:
Have it for two days. I still get random reboots.
[Moto G 4G Android Development] nikobadboy:
why every nightly have a Cyanogen Recovery? i must flash it?
[Moto G 4G Android Development] matmutant:
FAQ update : Motodoze

[SIZE=+1]Q12: Why Ambient display and gestures are gone and how to get it back?[/SIZE]

Ambient display and gestures were handled by motodoze which conflicted with Android's way of turning screen On and Off, this application from motorola has its sources closed and thus cannot be modified by CM team to handle the conflict.

Motodoze has been nuked (20150903)

But we have a new king to rule the kingdom: AcDisplay !

​

(or its fork, built by [MENTION=5778309]luca020400[/MENTION] who modified the way proximity sensor is checked to get closer to motodoze's way)

Here the fork : http://xdaforums.com/showpost.php?p=62668999&postcount=4587 (using motodoze implementation for gestures)

Here is the official app : https://play.google.com/store/apps/details?id=com.achep.acdisplay&hl=en (using [MENTION=3685328]AChep[/MENTION] 's implementation for gestures)

Play with settings and tune the app to get either the closest experience possible you were used to, or make it fit better to your own needs.
​
[Moto G 4G Android Development] nikobadboy:
why every cm 12.1 nightly have a Cyanogen Recovery? i must install that recovery and then cm? i installed a version couple of days ago without nightly cm recovery and i had some problems : when i tried to connect at cellular data(3g) nothing happened and when i tried to connect at my wifi i have no networks to connect. i m on ota 5.1 gb with root and on this stock rom i have no connection problem.