yashsingh1/xdaforums huggingface dataset:
[Moto G 4G Android Development] Bad_Calzoncillos:
I don't know if you've solved your issues, but I'll answer anyway. I think what you mean by standard wipe is factory reset. This formats the data, cache and dalvik cache partitions. You should always format system partition too (in a clean install). Another thing that some users have claimed (and I myself do when coming from stock 4.4.4) that worked is formatting Internal storage too. Remember to make a backup first ;)
[Moto G 4G Android Development] cpthornman:
Yeah that works with no issue. I have also found out that voice input setting for the Google/Android keyboard is also grayed out. No doubt related to the "Ok Google" missing.

Thanks for the info! Is it safe to just flash the GApps on top of the current ROM? Or will I have to wipe anything?
[Moto G 4G Android Development] j29ster:
Does anyone have any problems with bluetooth or muting their microphone during calls? My bluetooth keeps disconnecting and finally crashes. Also, the mute button is grayed out during calls. Any help would be appreciated. Otherwise, battery life and fluidity in this ROM is awesome.
[Moto G 4G Android Development] brownl:
Someone previously mentioned that the mute button was greyed out. I have it too.

I'll try and test Bluetooth now.

---------- Post added at 09:28 AM ---------- Previous post was at 09:26 AM ----------

I have no idea. I'm going to take a nandroid backup first and then try it.

---------- Post added at 09:57 AM ---------- Previous post was at 09:28 AM ----------

The answer is no, you cannot just flash the GApps. You need to wipe your system partition first or the GApps will refuse to install. I'll try this later.
[Moto G 4G Android Development] Hastaloego:
if i wipe internal storage too, how will i be able to flash the rom ? only with extern sd card i guess ?

btw. apps like gmail keeps crashing if i open them from the swipe lockscreen with doubletap.
[Moto G 4G Android Development] brownl:
How to fix "OK Google" and face unlock

I got it to work.

How to enable "OK Google" and face unlock

I used TWRP for this, you should be able to do the same thing with ClockworkMod.

1. Download the latest build of this ROM and PA GApps 5.1 Micro Package (download link, post). Place both of these files in your phone's storage.

2. (This step might not be necessary, I did it to stay on the safe side) Use the Play Store to delete the following apps if you have them installed: Google Calendar, Google Now Launcher, Google (search app), Google Text-to-Speech, Gmail

3. Boot into recovery and

take a nandroid backup

. I am not responsible if this deletes everything on your phone - you should have a backup.

4. Clear your system partition. This will not delete your data. (In TWRP, go to Wipe -> Advanced Wipe -> Tick the 'System' box -> Slide the slider to wipe.)

5. Flash this ROM (Install -> Choose the zip file)

6. Flash PA-GApps Micro (Install -> Choose the zip file)

7. Flash any other zips that you want.

8. Clear cache and dalvik (if you use TWRP, you should be given an option after flashing each zip file.)

9. Reboot

I hope this works for you. Enjoy!

Edit: you might need to re-install anything in /system (eg Busybox, Viper4Android SuperSU) after doing this.

---------- Post added at 10:56 AM ---------- Previous post was at 10:54 AM ----------

You can use ClockworkMod to sideload it. (TWRP also has sideload, but it doesn't work for me).

You need to have the Android SDK installed on your computer. Choose 'Install Zip' -> 'Install zip from sideload'. Then, on your computer, type

adb sideload /path/to/rom.img

Edit: you can also delete the data then connect your phone to your computer and copy the zip onto it. TWRP supports this. On windows, your phone should show up in 'My Computer'. On Mac, you need to download Android File Transfer. Not sure about Linux.
[Moto G 4G Android Development] Kayant:
[MENTION=5270463]beeeto[/MENTION]

Sorry for the late commit but here it is - https://github.com/Kayant/android_k...mmit/565d8c189a5ea2bed8a610f350aaa0d86abc2d4f and https://github.com/Kayant/android_k...mmit/836bdc1ba19584a2f721822b3a1add0168dd061a

You may need this also if you're building on a Linux distro with 4.8 GCC.

It's probably best to revert these https://github.com/IndieBeto/androi...mmit/7ea51229141e49fa5707be40f7a939c19d0d18e8, https://github.com/IndieBeto/androi...mmit/08e48835e655f2b8800d71e8af4855a85f495154 commits before applying the patch because you will have conflicts and most of the flags are already included in the main patch. Expect -fmodulo-sched, -fmodulo-sched-allow-regmoves, -fipa-pta. Need to see if these go well with the main patch

Now to work on getting AOSP 5.1 stable
[Moto G 4G Android Development] AndreiSant:
this build is not very fluid, the RAM of the official build is better than this rom ... the part system in the memory ram arrived to me: more than 400 mb and the application gets at around 100 or 200mb, I'd better go back CM12 or wait for the official cm12.1, the battery improves when disables some services in google play services
[Moto G 4G Android Development] beeeto:
Wow, gotta love to see you are having fun with optimizations flags the same as I do. This commit looks just badass, thanks again for pointing it out. Now that I think it twice, if you didn't show me Saberize commit I would never have discovered the awesome optimizations we are using with this build.

It is always good to hear of you buddy, I was wondering what you were doing, rofl. I will try this commit ASAP, hoping to see your AOSP thread around here very soon (So I can go there to point you good stuff the same way yo do here :D)

Oh and dear users, my test is finally over, I have my head destroyed to be honest, but I am eager to start building once again.

Regards and hope everyone is enjoying these builds.
[Moto G 4G Android Development] idontknowcats:
Thanks for your work! It is fantastic! What is the status on the GServices battery drain? Is this currently unfixable? I've read about disabling the wakeups and everything in privacy guard, but battery life was still rather... meh. Is there something else causing battery loss?
[Moto G 4G Android Development] beeeto:
Honestly I study in a place with a very bad signal, thought that my bad battery was becouse of that, now that I'm home I'll be able to take a better look of it. I have also noticed a huge battery drop on 5.1 builds compared to 5.0.2, but I don't know if it is isolated to my build or if it is a general google play services issue. Hope you guys can inform me better about this subject.
[Moto G 4G Android Development] Pupet_Master:
I never did try this ROM without my OOM script. For me i get a lot of free RAM to use for the apps.

I personally found this rom the most fluid. As all the optmizations beeeto did aren't in most (if not any other) ROM for our device.

About the memory, you can do a script to improve it, check my topic that i've done for crDroid and pink kernel it may help you.
[Moto G 4G Android Development] stewyfallingup:
Anyone's BBS look like this? Just took off the charger about an hour and a half ago
[Moto G 4G Android Development] brownl:
I never used your 5.0.2 builds but the battery drain on 5.1 is *much* worse than on KitKat. I've been listening to music for about 2hrs and I'm already at 74%.

If you don't know any fixes for this, I might have to go to 5.0.2 :/
[Moto G 4G Android Development] beeeto:
Indeed, will try a couple of builds, if things keep going this way think I might stop development, there's no point on releasing builds with bad battery life. I would prefer bad memory management than bad battery to be honest. (Stock KitKat, I am looking at you.)
[Moto G 4G Android Development] AndreiSant:
i cant flash your script , gives installation aborted

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

or you should go back to 5.0.2 in cm12 to your next build, you dont have to stay in a bad android version, the battery and ram in cm12 is better, and donts stop your work because these issues, all of them have or will have fix one day, but today, i think you have to base your rom with cm12.

---------- Post added at 02:06 PM ---------- Previous post was at 01:08 PM ----------

I gathered the two profiles that shows which service is to disable in google play service and the play store, the battery has improved and the memory ram now is better than before!, only little problem is the android OS in battery is taking 21%.
[Moto G 4G Android Development] Travisholt92:
Note to self, don't change users before falling asleep, it can burn your house down. (This didn't happen but could have very easily.) I was checking to see exactly what guest mode does, I let it sit for about 3 minutes because it was loading pretty slowly. It must have been utilizing 100% of the processor because by the time I picked up my phone to check it I could have cooked a grilled cheese sandwich right on my screen. It didn't finish loading guest mode, I was able to get it to start loading my "owner" profile, forced shutdown by holding down the power button, it booted up just fine. Kind of a biiiiiiiiiiig bug though.

Sent from my Grill/XT1045
[Moto G 4G Android Development] danny8:
Yep. Boss as your tech chops are, your positive attitude makes you totally awesome, b!
[Moto G 4G Android Development] brownl:
Could you not go back to 5.0.2, even if it is more work? That would be better than nothing. Also, CM11 was very stable, I wouldn't mind sticking on that for a while until lollipop improves for this device.
[Moto G 4G Android Development] acorrente:
Anybody else having a problem answering calls?

I did a clean install of version 7.1, coming froms stock with cm11 step. The phone rings, i see who's calling but if i try to pick up, it aborts the call. Outgoing calls and everythings else is working fine.

Big Thanks to [MENTION=5270463]beeeto[/MENTION] for his brilliant work...
[Moto G 4G Android Development] The-Hulk:
Thread Closed Per OP Request

Thanks

Mod Edit: Thread now open.
[Moto G 4G Android Development] beeeto:
Hello guys,

After flashing builds every 4 hours every day and countless hours of testing I have finally made a build I'm totally satisfied with, battery life is completely normal this time and I am proud to tell you this project continues. I am building Build 8 featuring Android 5.1.1 right now and it should be ready in about a hour. Thanks all of users who sent me PMs supporting this project.

Now lets go to business, here's the changelog.

Link: Build 8

That's all, there's still some work to do with optimization flags and I will work it out on the following days.

Hope you guys enjoy it, kind regards to all. :cowboy:

Edit, here's a little example of deep sleep with this beauty :D
[Moto G 4G Android Development] Pupet_Master:
Good Job Beto.

I had good battery life with one of the "betas" of these trys.

Now that you made one that is even batter do make me allot exited for flash it.
[Moto G 4G Android Development] Travisholt92:
You just made my night man. Sincerely, thank you.

Sent from my Moto G 4G LTE

Variant: Unlocked Retail US (xt1045)

ROM: Blisspop 3.1 (5.1 Lollipop)

Kernel: Spirit Kernel 2.0
[Moto G 4G Android Development] pozidrivphil:
FANTASTIC news :D

Thank you for your continued efforts, we owe you a ton!
[Moto G 4G Android Development] rodsayd:
Great to see you back here friend! I've already clean flashed the ROM, will let you know if I found any problems.
[Moto G 4G Android Development] ssirK:
im glab you're back with a new build, downloading ASAP and i will report back if i have any problem

thanks again!
[Moto G 4G Android Development] hotbld5:
Is it recommended to stay on the default kernel or flash spirit kernel ?
[Moto G 4G Android Development] beeeto:
I tried Spirit kernel and it is pretty good indeed, mine kernel is a minimalist version optimized for my ROM, I rather use mine couse Spirit is compiled with Uber GCC which doesn't play nice with the native optimizations of this ROM. (Of course you can always try it)

Hey guys, I made a little derp, compiled the ROM with Uber GCC (same as Spirit), I am to uploading 8.1 with SaberMod right now, sorry for the annoyance.

[MENTION=5610367]rodsayd[/MENTION] Glad to be here mate, hope you like my new work.
[Moto G 4G Android Development] ssirK:
is it this link for build 8.1 ? https://www.androidfilehost.com/?fid=96042739161891589

thx
[Moto G 4G Android Development] Radra:
That's 8. He hasn't uploaded it yet
[Moto G 4G Android Development] ssirK:
Build8 link: https://www.androidfilehost.com/?fid=96042739161891447

the one i linked was uploaded later than that first link, so i think this might be 8.1
[Moto G 4G Android Development] EternalFlame:
Guys chillaxx, he will announce it when its up :cyclops:
[Moto G 4G Android Development] beeeto:
That was a test build, this is the correct link;

Changelog

Build 8.1
[Moto G 4G Android Development] Travisholt92:
[MENTION=3128778]beeto[/MENTION]

Is there any chance you can implement double tap to wake into your kernel? That's one feature I've been dying to have and it never worked with spirit kernel for me anyways and I'd much rather use you're ROM and kernel.

Sent from my Moto G 4G LTE

Variant: Unlocked Retail US (xt1045)

ROM: Blisspop 3.1 (5.1 Lollipop)

Kernel: Spirit Kernel 2.0
[Moto G 4G Android Development] rodsayd:
Can we dirty flash over build 8?
[Moto G 4G Android Development] AndreiSant:
how its going the RAM?, if possibe, post a screenshot please...
[Moto G 4G Android Development] Travisholt92:
I dirty flashed over blisspop with no issue, wipe cache and reflash gapps

Sent from my Moto G 4G LTE

Variant: Unlocked Retail US (xt1045)

ROM: Blisspop 3.1 (5.1 Lollipop)

Kernel: Spirit Kernel 2.0
[Moto G 4G Android Development] Pupet_Master:
Guys, do a "semi dirt" flash.

Wipe dalvik cache, cache and system.

Keep Data and Internal data though.

---------- Post added at 06:40 PM ---------- Previous post was at 06:01 PM ----------

I made a topic about my setup for the Kernel. I would like the opinion from you guys.

http://xdaforums.com/moto-g/4g-development/script-kernel-auditor-t3089984
[Moto G 4G Android Development] Travisholt92:
Is anybody else experiencing Google play issues? I'm seeing issues all over the place. In hangouts even. It doesn't stop me from using anything (after removing the account, wiping cache and readding the account) it WAS preventing me from downloading apps.

I'm running 8.1

EDIT: it was the gapps I was using, flashed slim mini gapps and it fixed the issues.

I definitely see the issues with using spirit kernel with this Rom. Random massive lag spikes when multitasking (I didn't have this issue on the kernel integrated into your ROM). Note to self, learn to take the ROM developers word when they say something has compatibility issues. Lol

Thank you for the amazing ROM!

Sent from my Moto G 4G LTE

Variant: Unlocked Retail US (xt1045)
[Moto G 4G Android Development] Vicrol123:
Very nice, testing...

Cheers!
[Moto G 4G Android Development] jac0708:
Anyone else getting the really annoying "screen roll"? There is a line that rolls up the screen and the display is really glitchy. Device is Xt1045
[Moto G 4G Android Development] Bad_Calzoncillos:
Hi. Have flashed rom and is working great! Have you gone back to MPdecision? Anyway, it's blazing fast.

Besides that, is anyone else having trouble with better battery stats? Mine force closes every time.
[Moto G 4G Android Development] lans_98:
Can I dirty flash from build 7 ?
[Moto G 4G Android Development] mieru:
8.1 is a really great working and fast build. I've tried different roms, but this is the absolutely best running one for this device at the moment.

Thank you beeeto! You're the man!
[Moto G 4G Android Development] BlueFlame4:
Once you turn your screen off and on again it should be fine.
[Moto G 4G Android Development] mikel10k:
I have problem with google play, i get an error when i want to download a larger game, and one time google play just crashed, just those two issues
[Moto G 4G Android Development] pargop:
Thanks for the idea! I did the same and it works without problems so far! Really impressive performance!
[Moto G 4G Android Development] neiko:
screen roll

Me too, a strange anomaly?
[Moto G 4G Android Development] jac0708:
Idk, but I tried turning screen off and on, rebooting, fixing permissions and nothing worked.

Back to stock I go
[Moto G 4G Android Development] Hastaloego:
see here: http://xdaforums.com/showpost.php?p=60235865&postcount=58
[Moto G 4G Android Development] beeeto:
So, next build will have a bunch of updates on the optimizations we are currently using, including improved O3 implementation. :cool:

https://github.com/IndieBeto/android_build/commit/2324e10624f61615308b76d98136b4b563fa45f9
[Moto G 4G Android Development] pargop:
The flickering is always there if you reboot. But all you have to do is turn power off-on once and after that all is ok. Problem is related to old (KK) bootloader, whish will updated after Motorola will release official Lollipop update to Moto G 4G.

Sorry, if you have done allabove and the problem still persists.
[Moto G 4G Android Development] mieru:
Wifi disconnecting frequently on standby

Does anyone else also have infrequent wifi disconnects when device is sleeping? I had this issue with every CM12.1 based rom, tried also with spirit kernel. I've noticed that particularly on wifi access points with roaming (two devices with same ssid) the wifi connection disconnect after a few seconds when the screen is off.

Thanks for your feedback.
[Moto G 4G Android Development] pozidrivphil:
So if I get this right, nobody at xda is trying to write a new bootloader? Just out of curiosity, is it because it's too dangerous, or just impossible?
[Moto G 4G Android Development] hotbld5:
What's odd is that my Samsung S3 has lollipop ported to it without Samsung releasing any official update for that phone. And yet it doesn't have this screen tearing issue.
[Moto G 4G Android Development] danny8:
This ROM is awesome! Thank you so much! Love the lock screen options.

I too have the initial scan line misbehavior, a minor issue compared to all the chocolatey goodness.

Have not found any issues so far.
[Moto G 4G Android Development] Bassealrd:
First of all - really, really great ROM!

And about the only real option to use 5.1.1 without any kind of problems.

Only one question: can anyone explain, how to activate "ok google" search everywhere?

The "google" app, that had option to recognize ok google, havn't option to "recognize everywhere" now :-|
[Moto G 4G Android Development] dog121:
Go to Google settings ..voice.. Google detection..Then tick the boxes and then you will be prompted to retrain Google voice..

;);););)
[Moto G 4G Android Development] pargop:
This is by far the fastest Lollipop ROM I have tried (and I have tried several of them). Keep it up!

Sent from my microwave
[Moto G 4G Android Development] Bassealrd:
That's a problem...

In voice -> detection the only option I have is "inside google when google opened" (may be not literally, I have a non-english system, but that's a point), no option to re-train, that I had in stock ROM.
[Moto G 4G Android Development] dog121:
Are you using the latest version 4.4.11.16 and also do u use the Google now launcher if you don't use Google now launcher try it and see if the options are there to use..
[Moto G 4G Android Development] Bassealrd:
4.4.11.16. arm

Yes, tried to install launcher already, nothing changed. Same options in GNL and in Trebuchet.
[Moto G 4G Android Development] Travisholt92:
Removed
[Moto G 4G Android Development] pozidrivphil:
Are there any options in this latest rom to change the cpu governor and ondemand/intelliplug? I can only change the I/O scheduler?

And THANKS for this rom!! It's the best/smoothest/most stable rom I've tried!
[Moto G 4G Android Development] dog121:
Try using kernel auditor that's what I use with spirit kernel ..
[Moto G 4G Android Development] pozidrivphil:
Doh! Of course, works great, thanks! I've gotten used to having these settings in the 'performance' menu.

Not to beat a dead horse, but is there a fix to get the supersu icon back in the app drawer. Not an urgent matter, brownl's solution works (*#*#1234#*#*)
[Moto G 4G Android Development] beeeto:
Hey guys, thanks for the kind comments, Build 9 is coming shortly, featuring a lot of improvements under the hood,

Changelog

Link: Build 9 (Sorry for the delay guys, AndroidFileHost is having issues with files right now, so I have uploaded to MEGA)

Just check this pic with the results of the combo, I think they are pretty neat and battery life also have those beautiful straight lines on deep sleep we all love.
[Moto G 4G Android Development] Travisholt92:
I'll definitely be giving it a try once it's uploaded. I have a flashing addiction, and you help supply me with my drug, and for that I thank you.
[Moto G 4G Android Development] ssirK:
as i didnt want to download mega app, i mirrored your file there :

http://kriss-prod.net/cm-12.1-20150425-UNOFFICIAL-peregrine.zip

will try asap and report if any problem

thx again for your awesome builds !
[Moto G 4G Android Development] Travisholt92:
Great build, thank you!
[Moto G 4G Android Development] sbpetro:
[MENTION=5270463]beeeto[/MENTION] - do we still need to use a kernel auditor and change any settings or just run the ROM without any tweaks?
[Moto G 4G Android Development] ebol94:
So nice to see you again [MENTION=5270463]beeeto[/MENTION].

Until now, I've only found the same issue as every other CM12.1 ROM which is that battery shows it's charging when it's not. Another thing is that i've never been able to reach 100% of battery because it remains at >95% for more than 15 minutes so I unplug it to avoid battery overheat.

Like this

Spoiler content hidden.
[Moto G 4G Android Development] agusaon:
From my personal expierience, I think it might be a problem of your device or the charger. Are you using Motorola's original charger? If not, perhaps the amps delivered by the charger aren't enough to pump up the battery to 100%.

Another thing that comes to mind is resetting your battery. It's a method that used to work for moto g. I don't quite remember it right now, but if you look around you'll find it.
[Moto G 4G Android Development] sbpetro:
Have you tried something like this? I know I've had to recalibrate my battery a few times after ROM installation. Give it a try.

https://play.google.com/store/apps/details?id=com.nema.batterycalibration
[Moto G 4G Android Development] sclcn12:
It works better than a stock rom .

Thank you very much

Will you add other kernel costumization on next builds? I don't know if it's possible but I think that undervolting could increase a lot battery life

On the contrary if I wanted to increase the performance of my device , do you think it is possible make a little overclock ? I've seen that in other devices with our same cpu have kernels that bring the clock to 1.6 GHz
[Moto G 4G Android Development] beeeto:
Motorola has crippled our chipset, we can overclock it to heaven and further and it will show higher freqs, but it will not be a real overclock, the only thing we can do is OC ram, bus and GPU, things that I have already done. I would love to get a real overclock, but well, we can't have everything I guess. (Blame Motorola for not wanting this device catching up with Moto X)

Sorry to hear that, I don't have that issue here. Maybe you can try calibrating your battery?

ROM works damn good with stock settings (At least for me), but there's also stuff to play with on Kernel Auditor, stuff like Intelli-Plug (which has some tweaks made by me for a smoother UI) and Simple Adreno mod by Faux, that's the only thing I advice you guys to play with. Of course you can always change governor, scheduler, etc.

Remember NOT keeping MP-Decision and intelliplug ON at the same time, your battery will burn if you do so.
[Moto G 4G Android Development] sclcn12:
That's really sad :/ so there is no hope?

Optimization is the only way! :)
[Moto G 4G Android Development] Pupet_Master:
As long as Beto keep working on this phone there is always hope :P
[Moto G 4G Android Development] rodsayd:
I'm experiencing this issue too. And have the same connection type as you (two devices with same ssid - access point).