yashsingh1/xdaforums huggingface dataset:
[Moto G 4G Android Development] colophonius:
This is a wonderful ROM! I was about to get rid of my (still-under-warranty) Peregrine because the stock was getting very annoyingly laggy, but now I really couldn't be much happier. Thank you!

edit: I've tried beeeto's CM13 build 4 now, but couldn't stand it for longer than a couple of hours. This ROM right here feels a lot more responsive. Just an FYI for beginners like myself who might be wondering.
[Moto G 4G Android Development] Axaion:
Okay, yeah hard changing it might be an issue then

How about an option like beeto gives?

With his it's default 1500ms, but there's an option to change it to 1000 and 500ms
[Moto G 4G Android Development] fonz93:
I am not going to do any type of change on the source code because i am not directly testing my builds (i am on cm13.0, a friend with peregrine is on cm12.1), then in case of errors i would discover it too late.
[Moto G 4G Android Development] Dev!n:
updated to last build. works fine! thanks!
[Moto G 4G Android Development] galoneta:
Master fonz93,

Updated to latest april build without wipe: only had to reinstall super su 2.65 and select again "aplications only" in "root access" at developer options: then all apps run fine!

Super su ask to update binary and reboot.

Thanks for your amazing rom!
[Moto G 4G Android Development] fonz93:
You messed up, you don't require any root application here, CyanogenMod already has root access included, if you want to use SuperSU you must disable the root access in developer settings in order to "hide" CyanogenMod's root.

Having to update the binary of SuperSU at each update it's absolutely normal, because at each update the ROM . zip overwrites the su binary with cyanogen's one
[Moto G 4G Android Development] J0hnick:
Seeing as this is 5.1.1, is it Stagefright patched ?.
[Moto G 4G Android Development] fonz93:
Sure, it includes google security patches until april 2016
[Moto G 4G Android Development] J0hnick:
Nice!, I was gonna upgrade to Marshmallow for this but all the current custom roms still have bugs. Speaking of which, seeing as the xt1309 got 5.1 stock officially but not 5.1.1, does everything work like stock 5.1 seeing as its only a minor update ?.
[Moto G 4G Android Development] wurstel:
it works like CyanogenMod, which means its better than stock. a lot a customisation, improved battery, better performance, security patches etc. and its smoother than cm13, which is the cherry on top. flash it you won't be disappointed.
[Moto G 4G Android Development] J0hnick:
Ive used CyanogenMod before, but its always been to run a newer version of android then my phone supported at that time, and there's always been issues because of no official drivers for that version of Android on that device. Things like no flash on camera, no camcorder, no bluetooth file sharing etc, fine if you don't use them but I want everything I use to work. Seeing as the Moto G did get 5.1 but not 5.1.1, and its only a small iterative update, I was wondering if there were any compatibility issues.
[Moto G 4G Android Development] fonz93:
If you install the .zip as it is (no mods or custom kernels, no xposed), it will work fine
[Moto G 4G Android Development] wurstel:
dude, i cant flash the Rom FOR you, i can just tell you its good. flash it and find out if you like it. if not, go back to stock. :D I can asure you everything you mentioned (and everything else) works just fine.
[Moto G 4G Android Development] colophonius:
Silky, silky smooth :)
[Moto G 4G Android Development] wurstel:
hey fonz, since I flashed the latest build I'm getting wakelocks again, android OS keeps my device awake for hours at a time... maybe the removal of motion sensor support causes this? because the build before that was fine.
[Moto G 4G Android Development] fonz93:
No, is not possible, list me your wakelocks
[Moto G 4G Android Development] wurstel:
there you go. ~4h awake while screen off is weird right?
[Moto G 4G Android Development] fonz93:
That's not enough, i need kernel wakelocks too and a logcat + kernel log if you didn't reboot the device yet.

Do you have a different kernel or any mod? This is not a common issue (that's the first report i get about it) so i need to know everything.

I see "Doze Interactive Time", what is it?
[Moto G 4G Android Development] wurstel:
I restarted 3h ago because I ran out of battery :/ I'm gonna provide you with everything tomorrow evening, after another, battery cycle. thanks for the help, you are really awesome!
[Moto G 4G Android Development] fonz93:
I've added and tested the feature, next build will include it
[Moto G 4G Android Development] Axaion:
Awesome! It's such a nice little tweak - thanks for doing it man
[Moto G 4G Android Development] galoneta:
Master fonz93,

I used to apply "super su .zip" in all my devices. Did not know about this SU already built in CM! Does it control apps from accessing root privileges like "super su" app does?

Apps to control root access I know / used before:

https://play.google.com/store/apps/details?id=com.noshufou.android.su

https://play.google.com/store/apps/details?id=eu.chainfire.supersu

https://play.google.com/store/apps/details?id=com.koushikdutta.superuser

I know I do not need to root anything: do not get me wrong, I mean only the app wich controls root access to other apps!

Thanks for this amazing ROM!
[Moto G 4G Android Development] fonz93:
Yes, it does control and prevent apps from accessing root automatically.

SuperSU it's not just an app, to work it requires its own SU binary, that overwrites the CyanogenMod's one
[Moto G 4G Android Development] rouyal:
Ambient display and gesture features work amazing on this phone/ROM. Just like on the 3rd gen! Super work! :good:
[Moto G 4G Android Development] Toorsel:
Hi Fonz,

Thanks for this rom! Did not had any hope left that there would come out a stable rom for my peregrine.

Couple of questions I did not see where asked before.

1) Can't Cyanogenmod.org take your rom release and finally declare a stable release for peregrine?

2) How do we keep your release up2date? How do we get (security updates?)

Rom shows now like said in your posts: Android security patch level: April 1, 2016. But if next month comes, how do we get Googles monthly update?

3) Which GAPS do you recommend for your release?

Your rom release gave my peregrine an Up time until so far of: 357:33:04!

That's just being standby and no sim card in it.
[Moto G 4G Android Development] fonz93:
They're not taking unofficial ports on cyanogenmod.org

Every month, when google releases a new security patch, CyanogenMod syncs their source with Google ones, then i sync my sources with CyanogenMod ones and i make a new build.

Open gapps for 5.1
[Moto G 4G Android Development] Toorsel:
Thanks, just made a little donation.

So basically if you quit supporting the phone we are screwed :crying:

How much do we need to donate to you every month to keep you going? :silly:
[Moto G 4G Android Development] fonz93:
Thank you very much for the donation!

Anyway, i will hopefully keep supporting this ROM until my phone dies
[Moto G 4G Android Development] Makis71:
HI there Fonz,

the only 'bugs' i see/have is that you can't chose music from the SD card for the alarm and a couple of apps don't work if they are moved to the SD card. That's Chrome browser and Google Drive. Also battery stats don't refresh if you press the refresh icon on top. It does show new stats every time you go into the battery menu.

They didn't work on Beeeto's latest builds either, but did all work on his cm-12.1-20150917-Build 24.

Don't know if that helps or if you are planning to fix it it if others or yourself have the same 'minor' problems...

Don't know if they are just Cyanogenmod bugs. I've got no developer knowledge myself.

Maybe it's just my phone.

Regards and keep up the good work.
[Moto G 4G Android Development] fonz93:
That's how it is meant to be, you have to create a folder in sdcard named "alarms" and put it in there, then it will be listed in the alarm list, if not, there's nothing i can do about it, there is a procedure for that and you can probably find it on google, it's not something up to the ROM or the device

Can someone confirm that? i have the falcon variant and i can't access to a peregrine right now

It refreshes just fine here
[Moto G 4G Android Development] Toorsel:
Downloaded Drive. Moved it to the SD card. Force quit it, then I started Drive normally. Works fine from SD.

Battery stats refreshes normally here also.
[Moto G 4G Android Development] Makis71:
I guess force quit did the job! How about Chrome?

About battery refresh stats (on my phone)...when you just unplug it from charging and it's discharging for lets say...10 seconds, if you refresh with the refresh icon on top it remains on the 10 seconds. No big deal, just mentioned it, because it wasn't like that on other custom ROMs I've used.

Guess all my questions besides Chrome on the SD card are already answered.

Everyone enjoy this ROM that gives a lot to our Peregrine.
[Moto G 4G Android Development] Axaion:
I hope fonz is okay, or on vacation :^)
[Moto G 4G Android Development] fonz93:
What do you mean?

I am still active on Git (https://github.com/MotoG-2013), i can't release the build of May yet, Google released the OTA update for nexus, but didn't release the source code, i hope tomorrow they will
[Moto G 4G Android Development] Axaion:
Oh, i just checked your profile and coulda sworn it said you hadent been on for like 2 weeks

Guess I read wrong haha ^^
[Moto G 4G Android Development] wurstel:
[MENTION=5439829]fonz93[/MENTION] what is your stance on flashing SU on your ROM? do you think its better to use the integrated super user?
[Moto G 4G Android Development] fonz93:
Honestly i don't even know why are you thinking of flashing a different Superuser app when you have a perfectly working integrated root in the ROM, don't you feel dirty?
[Moto G 4G Android Development] wurstel:
haha what!? do you think it affects the performance? i dont feel dirty, i just got used to superSU over the years :D
[Moto G 4G Android Development] fonz93:
It's not about performance, i don't think you have installed two dialers or two messagging apps in your system, do you?
[Moto G 4G Android Development] wurstel:
yes, I do. Google dialer has better features than stock, textra is better than cm-messaging.
[Moto G 4G Android Development] Axaion:
why not signal if you gotta have another one?
[Moto G 4G Android Development] wurstel:
hi [MENTION=5439829]fonz93[/MENTION] will you update your sweet sweet rom with may's security patches? or do you think the vulnerabilities are not worth patching this time?

grazie mille for your awesome work.
[Moto G 4G Android Development] fonz93:
I already have the build done,i only need to upload it, i just uploaded falcon's build, i will hopefully be able to upload peregrine's one this evening
[Moto G 4G Android Development] fonz93:
NEW BUILD IS UP!

Changelog:

- May security patches

- Kernel security fixes

- CM fixes

- Added possibility to disable lockscreen album art

- Lockscreen clock android 6.0 style

- Added possibility to move the date to the right of the clock

- Configurable timeout of the long press back to kill action

- Removed MotGeoFence, the GPS works and it is faster to lock in too, so i removed it in order to avoid the FC that some peoples experienced with the Waze app (or any other app that uses the GPS)

- Sync with CM sources at 12/05/2016
[Moto G 4G Android Development] Axaion:
Running like a boss here, thanks fonz :good:
[Moto G 4G Android Development] AzaraT:
Thanks for your work fonz, running great here!
[Moto G 4G Android Development] tenchi16:
is rom appears 4g and h + in the status bar ??

---------- Post added at 10:57 PM ---------- Previous post was at 10:56 PM ----------

is rom appears 4g and h + in the status bar ??
[Moto G 4G Android Development] fonz93:
Don't quote the whole OP, anyway, yes, it does show 4g (lte) and h+ in the status bar
[Moto G 4G Android Development] galoneta:
fonz93,

Thanks again!

This is sure the best rom for our phones!

Will test new build and report asap!
[Moto G 4G Android Development] tme_007:
Quickly updated my device soon after you published this new build. It's battery life and general behaviour is amazing !

With 4G activated all day long, a normal day use and flight mode during night, I can safely leave charger during 2 days (and without activating power saving mode) :)

I also like that you keep the Radio FM application which I use every day ;)

PS: . I just discovered one time my device rebooted in bootloader mode when I took it from my desk (but just one time) :)
[Moto G 4G Android Development] fonz93:
Rebooting to bootloader mode randomly is not normal, i am pretty sure is not related to the ROM (since the first release i didn't get a single reboot), if it happens again send me the "last_kmsg" so i will hopefully be able to see what caused that reboot (of course i am assuming you're running everything stock, no xposed or custom kernels, if not, back to stock and then verify if you still have the issue)
[Moto G 4G Android Development] wurstel:
I didn't have reboots into bootloader, but I had soft reboots: what fixed it for me was to disable the option to prevent accidental screen wakes in display settings. with it enabled I sometimes got into deep sleep that I couldn't wake the device up from.

(I'm running all stock now BTW, no xposed, nothing :))
[Moto G 4G Android Development] tme_007:
Thanks for your advice, my ROM is absolutely clean. Didn't changed kernel or installed Xposed :)
[Moto G 4G Android Development] fonz93:
A logcat taken after the soft reboot will help discovering the cause because i can't reproduce the issue, thanks
[Moto G 4G Android Development] wurstel:
i will send it to you if it occurs again, thanks :)

edit: btw, logcat extreme and CatLog are good apps in the play store to obtain logs, if anybody runs in to issues. should definitely make things easier for fonz.
[Moto G 4G Android Development] fonz93:
I saw your logcat, there is something strange in it that i would like to take care of, were you switching from wi-fi to mobile data or doing something similar when the soft reboots occurred?
[Moto G 4G Android Development] wurstel:
the phone is usually in my poket when it happens, so I'm not actively doing anything. I usually feel the vibration once its booted up, that's how I realized. I have a carrier here in Austria that switches carriers between HSDPA and gsm if the reception is bad, so maybe that's happening?

I also leave WiFi always on so it connects whenever my home or work WiFi is in range.

your support is awesome, thanks!!!
[Moto G 4G Android Development] fonz93:
Try to see if it happens when you are out of range of the wi-fi and it automatically switches to mobile data
[Moto G 4G Android Development] fonz93:
sorry duplicated
[Moto G 4G Android Development] wurstel:
i walked out of the house and go out of range, but i didnt trigger a soft reboot. it does not seem to be reproducable reliably....
[Moto G 4G Android Development] galoneta:
Hi master fonz93.

Reporting about latest build: working fine, good speed and stability! Now using native su app!

Thanks again.
[Moto G 4G Android Development] wurstel:
hi fonz, just a quick heads up: the random reboots have stopped completely, I suppose it was an app that was acting up, I couldn't find out which one, but now everything runs smooth.
[Moto G 4G Android Development] J0hnick:
Does this rom have OTA updates or do you have to flash each update via recovery ?.
[Moto G 4G Android Development] fonz93:
You have to flash the update
[Moto G 4G Android Development] tme_007:
About battery saver mode ... even if set to be enabled automatically at 15%, it only shows a warning and do not activate it itself. I need to click manually to activate.

I suppose this is not normal ?
[Moto G 4G Android Development] fonz93:
It is normal, it is that at AOSP
[Moto G 4G Android Development] tme_007:
On this specific point, why the option suggest that battery saver is automatically enabled at 15% if it's not the case ?
[Moto G 4G Android Development] fonz93:
Ask it to google, they've made it this way
[Moto G 4G Android Development] luks333:
Does encryption work or does it not (like in CM13)? Thanks.
[Moto G 4G Android Development] fonz93:
I honestly don't know, i didn't ever try and i probably never will, i don't even know if it's something related to the recovery or not
[Moto G 4G Android Development] J0hnick:
" Removed the motion sensor support, it is not fully stable and it has no really use on Lollipop, so to avoid any issue

that we had and we are having on cm-13.0, i removed it."

Can you explain how it has no use on Lolipop ?, can it be flashed back in using a zip or would we need to extract it from one of the older builds. If it does have some functionality, would it be a lot of work to have an option in the settings to enable or disable it ?, or does it just being there cause the issue ?.

Thanks, looking forward to flashing this rom when I get some free time ;)
[Moto G 4G Android Development] fonz93:
Why are you making this question? Did you find some uses for it? If not, the question has no sense and you already have the answer
[Moto G 4G Android Development] J0hnick:
Yes, doesn't Smart Lock need the motion sensor to work ?.

I can see Motion Sensor affects battery life on this rom, so I understand why it was taken out, I was just wondering if it broke anything else besides smart lock.
[Moto G 4G Android Development] fonz93:
It doesn't work properly anyway so the smart lock feature would be "false" most of the times, i didn't even remember about that feature in smartlock so i didn't think about it when i removed the motion sensor, anyway, i removed it because this ROM is made for stability and the motion sensor isn't
[Moto G 4G Android Development] AzaraT:
I am continuing to have issues with the cellular connection causing calls getting dropped. This has been a problem for me since I upgraded from stock kitkat to stock lollipop, so it is probably not rom related. Is anyone else having these issues and could someone maybe point me to the correct radio firmware to install for this rom? I am running the ones here: http://xdaforums.com/moto-g/4g-development/rom-stock-motorola-4g-lollipop-rom-t3142816 but I believe motorola released an upgrade some time ago in regards to issues with cellular connection (https://forums.lenovo.com/t5/MOTO-G...ter-lollipop-update-Xt1039/m-p/3255595#M22665), but all the radios I can find are from an older date.
[Moto G 4G Android Development] dnraphs:
In this latest version (05/12/2016) I have not found the option to force the expancion of notifications, which was in its previous version (04/05/2016).

I think it is much needed.

Greetings has done a great job in his rom.

* May be from the build.prop fix this?
[Moto G 4G Android Development] tme_007:
This morning suddenly, my phone is showing 'no service' and it runs on Lollipop radio firmware (from lost101 post) since a few months without any problem. Did you find newest radio firmware (in case of) ?

Thanks
[Moto G 4G Android Development] fonz93:
That option wasn't there, you are having confusion between this and other ROMs you tried before

Is the radio firmware matching with your country area?
[Moto G 4G Android Development] tme_007:
Yes I used the Retail EU for 5.1 (I'm in Belgium)

A few months ago, I updated my radio with this one when coming from Kitkat to Lollipop and same problem occured. After flashed it, signal come back till now :(
[Moto G 4G Android Development] fonz93:
Try to give me a logcat, i'll see what i can do
[Moto G 4G Android Development] tme_007:
Thanks for your proposal !

In the meantime, I don't understand why but my signal is back after :

- set prefered network to 2G

- reboot phone

- signal is back in EDGE

- set prefered network to LTE

- signal moved to LTE

If this is occuring again, I will export a logcat.
[Moto G 4G Android Development] wurstel:
[MENTION=5439829]fonz93[/MENTION] hey fonz: my question is a little bit off topic, but I want to try to build cm too: do you have to cherry pick security patches, or are they synced automatically with the stable cm12.1 source?
[Moto G 4G Android Development] fonz93:
They are synced with CM
[Moto G 4G Android Development] tme_007:
Problem occured again and this trick didn't worked :(

As a testing feature, I restored previous version of your ROM (when I didn't experienced this issue) and got signal back as usual.

Tested also multiple power off and reboot and no problem.

So probably something in this updated ROM is not completely compatible my XT1039 ...
[Moto G 4G Android Development] wurstel:
fonz stated that he will ignore bug reports without the neccesary logs. so unless you provide them (use syslog in the play store for instance) you can't expect any help.

edit: here's the link to the app, for the lazy click. its 30seconds of work to get all the logs.
[Moto G 4G Android Development] fonz93:
He already sent the log if i remember correctly, his problem is a very rare case which anyone experienced here, the logs show a bug which has already been fixed 3 months ago by CyanogenMod, honestly i don't know where to look right now
[Moto G 4G Android Development] wurstel:
i think that was me. its the random reboots that are caused by the switch from radio to WiFi :)
[Moto G 4G Android Development] lfuentes:
BTW, it´s June 14! When could we espect for a newer build?
[Moto G 4G Android Development] fonz93:
What do you want from me? CyanogenMod just merged the security patches in the cm-12.1 branch, i have a life too if you didn't know

You're right, sorry ?
[Moto G 4G Android Development] fonz93:
New build is ready, i just need to upload it, please be patient
[Moto G 4G Android Development] lfuentes:
Do not be angry, not a reproach...

We all are very grateful for your work!

Great! Thanks once more!
[Moto G 4G Android Development] fonz93:
NEW BUILD IS UP!

Changelog:

- June security patches

- Kernel security fixes

- CM fixes

- Sync with CM sources at 15/06/2016
[Moto G 4G Android Development] lfuentes:
Works Flawlessly!
[Moto G 4G Android Development] wurstel:
[MENTION=5439829]fonz93[/MENTION] I've been running the new build since you released it, and I was wondering: did you change something concerning the bug I had? because I haven't had a single random reboot, that's great!!! thank youbso much!

I was also wondering if anyone of you guys in this thread tried to encrypt their phone, and if it worked?
[Moto G 4G Android Development] fonz93:
No i didn't, i just merged the security patches
[Moto G 4G Android Development] galoneta:
Latest build running fine here too!

Thanks.
[Moto G 4G Android Development] fonz93:
NEW BUILD IS UP!

CHANGELOG:

- July security fixes

- Sync with CM sources at: 09/07/2016
[Moto G 4G Android Development] fonz93:
NEW BUILD IS UP!

CHANGELOG:

- August security fixes

- Kernel security fixes

- Sync with CM sources at: 10/08/2016
[Moto G 4G Android Development] J0hnick:
Thanks, I'm currently on CM11 (20150105), do I need to flash stock 5.1 first to update my bootloader ?. There was an issue with people going from stock 4.4.4 or lower to CM 12.1 being stuck in a boot loop, on the official Cyanogen site they recommended going from CM11 to 12.1 to fix this, I assume the same is true for your custom build CM12.1 ?.

Thanks again.

Edit: OK, got impatient and tried it, didn't work. Wiped Davlik etc and tried again, same thing. Am I doing something wrong ?.
[Moto G 4G Android Development] wurstel:
dude, you are awesome ? ! every time I think about buying a new phone you prolong the life of the trusty old peregrine. you the real MVP.
[Moto G 4G Android Development] fonz93:
You need to update your bootloader to the latest one, then you flash latest TWRP recovery and after that you can flash cm12.1, i suggest you to do a "format data" in TWRP before flashing cm12.1
[Moto G 4G Android Development] J0hnick:
Thanks, I using TWRP 3.02, the one with the flickering display and sticky touch buttons (its usable but a pain), do you mean the custom build of TWRP you made or the official version ?.