yashsingh1/xdaforums huggingface dataset:
[Verizon Samsung Galaxy Note II] lacoursiere18:
I am not saying twrp is better. I enjoyed using twrp for a LONG time, ui is GREAT. But since 4.3 came out it has had a data corruption bug and sometimes root issues. So no I have used philz for the past couple weeks with aroma file manager and it has been great.

The only reason I recommended twrp was because of the available wipe options and that I do not know of anything like that in cwm recoveries..
[Moto G Q&A, Help & Troubleshooting] TyCaliburEX:
[FIX] [XT1031] How to fix "Roaming indicator off" issue and "No APN specified"

THIS IS FOR THE BOOST MOBILE VARIANT OF THE MOTO G

Hi guys this is my first thread!

Ok so say you flashed Paranoid Android or any other custom ROM. You are using it and exploring all the wonderful features of that ROM. The FIRST thing you might notice is the "Roaming Indicator Off" on the lockscreen and the statusbar. A lot of people (even me) find that extremely annoying. You want it to say Boost Mobile like it should.

THEN when you either use it for a few ours or you are days into the ROM, the most ANNOYING toast message appears.... "No APN specified on this device." Now mostly when it first appears it goes away for like 10 seconds and returns. Only this time it is constantly there. (For me this caused a huge battery drain:(. SO HERE IS HOW TO FIX BOTH ISSUES!

Requirements:

Custom Recovery

And the file attached

(Not sure if you need a backup but why take the risk?)

Step 1: Boot into recovery mode.

Step 2: Flash the zip file

Step 3: Reboot back into rom

The problem should be fixed! Everything now says Boost Mobile where it needs to be said AND the no APN message is now gone!

(I flashed it on my device and to this day no problems).

Credit goes to this site for the solution to the problem and the file: androidforums.com/cdma-moto-g-all-things-root/853504-how-i-achieved-mms-cm-nightly-20140615-a-2.html
[Moto X Android Development] tdhite:
TDH Kernel for the Moto X Unified (CAF)

The kernel is that which manages the phone at a fundamental level. To learn more, see the "Index of Documentation for People Interested in Writing and/or Understanding the Linux Kernel."

How I Support This Work:

Donations always work :D

Thanks buttons also work wonders. Don't forget to hit the Thanks button for those whose work benefits you.

If I don't respond to a question, there is a very high likelihood the answer already exists in this thread -- use search as I rarely forget what's already covered.

Working Features:

AOSP

Best battery life (kernel installs init.d script to setup SmartMax governor)

Governors: SmartMax, Intelliactive, interactive, ondemand, userspace, powersave, performance (more coming if relevant -- 'marketing checkmarks' -- a.k.a. useless but stuck in just for feature count -- won't get into this kernel)

Optional IOSched: Noop, Deadline, CFQ, BFQ, FIOPS, SIO (more coming if relevant -- same comment applies as for Governors)

Optional GPU Governors= Performance, Ondemand, Simple, Interactive

User voltage control

Kexec support

Initial Kexec support

ExFAT support

KSM optimizations

Enhanced NEON support

Reduce kswapd schedule enhancement

EXT4 file system speed ehancements

Many stability and optimizations upgrades.

In progress / futures (not stable yet) ...

Overclocking/underclocking options (in progress ... sigh :(, coming soon)...

Optional GPU overclocking

Doubletap2wake

Logo2wake

Pocket detection

Logo2menu.

Credits go to many, but most particularly:

Linus Torvalds (for Linux itself)

Flar2

Faux123

ThickLizard

TBaldin

A lot of other kernel devs whose code I read regularly to learn

All the Moto X Community

Instructions:

READ THE DISCLAIMER.

Download the kernel

Reboot into Recovery

Nandroid backup

Flash the kernel

Enjoy

Things to Know:

The flash uses standard 'by-name' partitions, so should install correctly on most AOSP based ROMs

The flash supports the CM11 standard /data/local/userinit.d init script (99-tdhk)

That script will delay one minute after boot and force the SmartMax governor on all cores

FIOS is the default IO scheduler

No need for Trickster or Performance Settings if you want those defaults (which you should)

KERNEL SOURCE

Enjoy.

XDA:DevDB Information

TDHK, Kernel for the Moto X

Contributors

tdhite, skiwong20

Source Code: https://github.com/tdhite/android_kernel_motorola_msm8960dt-common

Kernel Special Features: Governors, schedulers, sleep/wake options, battery tweaks, performance tweaks.

Version Information

Status: Stable

Current Stable Version: KitKit: 12/21/2014;

Stable Release Date: 2015-09-20

Created 2014-07-19

Last Updated 2015-09-20
[Moto X Android Development] tdhite:
Disclaimer

*** Legal Disclaimer -- READ ALL OF THE FOLLOWING ***

If you use any of the software provided by this thread, or convey such software to

someone else, you and all subsequent conveyees are bound by the following:

# LEGAL DISCLAIMERS AND ASSUMPTION OF THE RISK BY THE USER OF THIS PROGRAM

# Assumption of the Risk of Use

# YOU ASSUME, AND AGREE TO ASSUME, ALL THE RISK OF HARM BY USING THIS

# PROGRAM. THIS PROGRAM MAY VOID YOUR WARRANTY WITH A THIRD PARTY,

# IT MAY IMPROPERLY OPERATE AND DAMAGE YOUR DEVICE, IT MAY CAUSE ANY

# MYRIAD OF HARMFUL OUTCOMES REGARDING YOUR DEVICE OR THE USE OF THE DEVICE

# ON WHICH IT GETS INSTALLED. YOU ACKNOWLEDGE THAT YOU ARE AWARE OF THOSE

# RISKS, UNDERSTAND THOSE RISKS, AND VOLUNTARILY AND INTELLIGENTLY ELECT

# TO ENGAGE THOSE RISKS BY USING THE PROGRAM.

#Disclaimer of Warranty.

# THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE

# LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR

# OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND,

# EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED

# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.

# THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH

# YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME ALL LIABILITY AND

# AGREE THAT IN NO EVENT WILL YOU SEEK ANY FORM OF RECOMPENSE, WHETHER LEGAL OR

# EQUITABLE, INCLUDING BUT NOT LIMITED TO NECESSARY SERVICING, REPAIR,

# CORRECTION OR OTHERWISE.

#Limitation of Liability.

# IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL

# ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE

# PROGRAM, PERMITTED OR NOT, BE LIABLE TO YOU FOR LEGAL DAMAGES OR EQUITABLE

# RELIEF, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES

# ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT

# LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED

# BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER

# PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE

# POSSIBILITY OF SUCH DAMAGES.
[Moto X Android Development] tmimaesk:
Yay! AOSP kernel..

Booted up great!

XT 1058 running leonardoafa unofficial carbon rom!
[Moto X Android Development] kenosis:
Thanks. Downloading to test on XT1053.
[Moto X Android Development] XAlexander_AlexanderX:
Flashed great. XT1058 on Dirty Unicorns
[Moto X Android Development] Marco Lomas:
Can i install it on stock 4.4.2? Or just 4.4.4?
[Moto X Android Development] tdhite:
Sorry, dude. Not looking backwards, I doubt less than 4.4.4 will work but you can always flash any try.
[Moto X Android Development] tdhite:
Do me a favor and turn on the CPU options in the developer's options. See that the smartmax governor is on all cores.

Want to be sure the init.d script is properly executing on that ROM (DU).
[Moto X Android Development] kenosis:
Wi-Fi and Signal lost after installing on XT1053 (Stock 4.4.3)
[Moto X Android Development] Kittiesoncrack:
Im just making sure, this only works on AOSP roms and not stock, right?
[Moto X Android Development] tdhite:
Yip, that's right.

4.4.4, not 4.4.3. Maybe one day I'll look at building backwards to others, but while stabilizing some new features, it's 4.4.4 or up.
[Moto X Android Development] Gundabolu SC:
Works great on the Droid Maxx!! Thanks man... Much needed! ;) :)
[Moto X Android Development] Kittiesoncrack:
What 4.4.4 rom is everyone using?
[Moto X Android Development] kenosis:
Thanks. Hope to see it for 4.4.3.
[Moto X Android Development] XAlexander_AlexanderX:
View attachment 2859148

Remember to quote so I'll get the notifications
[Moto X Android Development] ##W4TCH0UT##:
[MENTION=4988866]tdhite[/MENTION], can you provide the sources...
[Moto X Android Development] skiwong20:
awesome job tdhite. thanks for your time on this project, so happy to see a CAF kernel available. ?

kernel source add to OP
[Moto X Android Development] ##W4TCH0UT##:
It's not the source. It doesn't include the commits of features he has mentioned in the op. So he hasn't uploaded the kernel source.
[Moto X Android Development] infectedorganism:
Is this kernel undervolted by default?

I'm experiencing random reboots and I'm trying to find the reason behind them.

Here is the last_kmsg: http://pastebin.com/99hhSkc8

If anyone knowledgeable enough wouldn't mind taking a look at that, it would be greatly appreciated.

Thanks in advance.
[Moto X Android Development] Ejvyas:
After flashing do I need to do anymore steps ?

How do I verify its working and not the default kernel ?

Sent from my Moto X
[Moto X Android Development] orky87:
No the Kernel runs on default volts and clock speeds.

Settings -> About phone and look for "Kernel Version".

[MENTION=6105220]tdhk[/MENTION]

Will your new build support 5.1?

Cheers!
[Moto X Android Development] CsR0501:
Waiting... :fingers-crossed:

pdt: At the moment, the kernel works GREAT in the last CM Nightly! ;)
[Moto X Android Development] mac1996:
If I am not wrong this kernel can be flashable on 5.1???
[Moto X Android Development] Ejvyas:
Was there any update posted to this last weekend ? Did I miss ?

Sent from my Moto X
[Moto X Android Development] CsR0501:
Nope... :crying:
[Moto X Android Development] matt1313:
Running latest on Bliss pop. Running good. Pain to install but worth it
[Moto X Android Development] tdhite:
No, voltages start at default values unless you modified them.
[Moto X Android Development] tdhite:
Coming tonight. Sorry, my bad. Got busy with work stuff.
[Moto X Android Development] tdhite:
Ok -- all up. Check the download post and changelogs posts. Let me know how it goes. In full disclosure, I don't have a Moto X to test right now, so do indeed let me know how it goes.
[Moto X Android Development] CsR0501:
Thank you so much [MENTION=4988866]tdhite[/MENTION]... Flashed (wipe cache/dalvik after) and running...

I'll post a feedback tomorrow! [emoji2]

Enviado desde mi Moto X mediante Tapatalk
[Moto X Android Development] tdhite:
No need to wipe anything. Kernels don't deal with Dalvik or the cache partitions. Saves you the battery drain and time on that first boot.
[Moto X Android Development] wahyuwidi:
Does its work on stock 4.4.4
[Moto X Android Development] stealtheye:
Thanks a mil [MENTION=4988866]tdhite[/MENTION]

Does this latest lp version have doubletap2wake or is it still future? If not please work on it!

Or would i have to extract your kernel from the latest pacman rom for the moto x?

if so please would provide steps on how to extract that. I have cm12 and dont want to redo a whole new os cause mines up and running as a daily.

thanks
[Moto X Android Development] Ejvyas:
[MENTION=4988866]tdhite[/MENTION] No sorry...we are just too eager to try it out :)

Thanks again!
[Moto X Android Development] Megatron007:
I Must Say This is The One Of The Best Kernel I Have Been Used Almost 3hrs Of SOT and Still 40% left Thanks For The Awesome Kernel [MENTION=4988866]tdhite[/MENTION]
[Moto X Android Development] jco23:
how was it a pain? i would imagine just need to download to sdcard, reboot to recovery, install kernel without wiping, and then reboot. right?
[Moto X Android Development] orky87:
You don't have to lose you configurations just back up your rom first, Clear cache/dalvik flash pac reboot back to recovery, next backup boot only which is the actual kernel. When done wipe everything as if doing clean flash and restore your rom backup followed by pac boot/kernel backup. This what I've done!
[Moto X Android Development] matt1313:
I did it before the zip was uploaded. Flashed PAC backed up boot.IMG then restored bliss and then boot.img

Loving it so far!
[Moto X Android Development] tdhite:
Yip. That's it. No wiping necessary (if it ever is, i'll put that in the Flash so no one need worry about it anyway).

Only other thing is backup the boot image if you want prior to flashing in case you want to restore to your original boot image (dunno why, but hey -- just in case).
[Moto X Android Development] jco23:
Thx. And what are the optimal settings?

I think I read from a prior post to set to smartmax? Understood that each persons experience would differ.
[Moto X Android Development] orky87:
SmartMax/fiops combination works the best with this kernel. See here regarding schedulers http://androidmodguide.blogspot.ie/p/io-schedulers.html
[Moto X Android Development] jco23:
good read, thanks.

going to try NOOP though for my IO scheduler.

OP, I tried to look at my states via CPUSpy, but got a message saying that the states file is not readable. I was able to read them prior to flashing this kernel. Is there something I can do on my end to get this readable again? I use CPUSpy to check and see if my phone is going into deep sleep mode (still not readable when using BBS).

thanks!
[Moto X Android Development] tdhite:
I'll take a look at enabling.
[Moto X Android Development] jco23:
I'm sorry to report that battery life is not good for me at all. Phone still remains in wake mode.

:(
[Moto X Android Development] ConstantHero:
A quick glance with cpuspy shows deep sleep here with 4/06 kernel on latest aicp nightly.
[Moto X Android Development] jco23:
thanks for the feedback...

that's interesting b/c CPUSpy is telling me that the states file is not readable. I'm currently running blisspop 2.2, and I was able to view the states prior to flashing the kernel.

I did have a constant wake mode previously, but a simple reboot and wipe cleared that up. those steps did not work after installing this kernel.

but now I re-flashed the ROM, and i get the same message...
[Moto X Android Development] orky87:
Have you tried the kernel from PAC-ROM? Also, in Privacy Guard, try disabling certain apps from "keep awake" feature. GApps load and run lots of service try disabling the ones you don't need. Lastly make sure you have greenify installed and create hibernation shortcut in the "pull-up" feature.
[Moto X Android Development] tdhite:
LOL, this IS the kernel I committed to PAC-MAN ROM.
[Moto X Android Development] jco23:
right - i've tried all of that - greenify is working properly... not sure what is keeping my awake... need to better examine the wake locks. prior to flashing the kernel though, my was sleeping just fine....
[Moto X Android Development] Ejvyas:
How to I set smartmax in cm12? I dont see any such option
[Moto X Android Development] Megatron007:
using cpu frills or trickster kernel mod app :)
[Moto X Android Development] jco23:
settings -> performance -> device control -> CPU settings -> CPU governor
[Moto X Android Development] orky87:
Yeah I know you're the man behind it but since the flashable zip is newer I assumed there might be a slight difference. I guess there's not then!

[MENTION=4344373]jco23[/MENTION]

Works perfectly fine on my end I'm on latest Bliss also. BTW I had to disable/freeze built in device control app it never behaved right and would not switch the 2nd core to SmartMax and was stuck at Intelliactive. Maybe try that and see...
[Moto X Android Development] Ejvyas:
Performance just has per app profiles and io scheduler. At you talking about cm 12.1?

Sent from my Moto X
[Moto X Android Development] orky87:
Device control is in BlissPop rom. Look for no frills cpu control/manager app in playstore.
[Moto X Android Development] Ejvyas:
I did it. But its not in default cm12 . I mean I couldnt control governor

In short I had to use an app

Sent from my Moto X
[Moto X Android Development] Younex:
Hello,

How do I know if my Moto X (XT1052, something msm8960) is compatible ?

I'm on 4.4.2 stock rooted, which kernel version do I need ?

Thanks in advance :)
[Moto X Android Development] Saythis:
Edit: Not sure this kernel works on stock being its CAF.
[Moto X Android Development] Younex:
What is CAF ?

I'm not good with abreviations ^^

OK found answers, Reddit : What is CAF ?

But, if CAF is something specific to the kernel, why being stock is a problem ?

Maybe I didn't fully understand, sorry :-/
[Moto X Android Development] mac1996:
It is not meant for stock ROMs.. This kernel is made for aosp based ROMs such as cm11 and cm12 ... If you want to get kernel install cm11 or cm12..
[Moto X Android Development] Saythis:
CAF is Code Aurora which is Qualcomm's branch android/kernels that are usually filled with optimizations for Snapdragon chipsets. Basically because its a branch of Android and kernel I'd assume the overall functionality differs from stock.The reason stock firmware on the MotoX is incompatible with stock is likely because Google tends to not compile with most of the commits from CAF's development.

TL:DR version is that the commits for CAF make it make it incompatible with non-CAF roms.
[Moto X Android Development] orky87:
Use this one for stock ROM http://xdaforums.com/moto-x/development/kernel-zwliew-kernel-r1-t2926315
[Moto X Android Development] Younex:
Flashed it, can't boot now :/

If you can help, please see my post on that thread, thank you
[Moto X Android Development] stealtheye:
DoubleTap2Wake

What's going on with this feature? Is it being introduced or what? If not is there any other LP kernel that will work with cm12?

And why isn't SmartMax the default governor in this kernel. I have to change to it from interactive.
[Moto X Android Development] marbertshere:
If you're referring to double tap to wake, I'm interested in knowing as well.
[Moto X Android Development] mac1996:
Work in progress ..check op
[Moto X Android Development] stealtheye:
Ya I'm asking about that progress because it doesn't seem to be happening and if there is an alternative to get the feature
[Moto X Android Development] athulele:
Would this kernel work on the new 5.1 ROMs?
[Moto X Android Development] mbush78:
I'm using it on one and it seems just fine
[Moto X Android Development] CsR0501:
Works great in CM12.1 nightly! ✌ [MENTION=4988866]tdhite[/MENTION] you are the best... Almost 5 hrs in CM12 [emoji16] ... I'll let a feedback of CM12.1 soon! ?

Enviado desde mi Moto X mediante Tapatalk
[Moto X Android Development] perfoliate:
[MENTION=4988866]tdhite[/MENTION] I was trying out multirom from this thread http://xdaforums.com/showthread.php?t=3091896 with your 1-11-15 kernel.

After trying to boot the secondary ROM it reported my primary ROM did not have kexec support although your kernel from 1-11 listed as having initial kexec support. Any thoughts?
[Moto X Android Development] Ejvyas:
Any update of this ROM on cm12.1? Review ?
[Moto X Android Development] tdhite:
I'll take a look. Should be there.
[Moto X Android Development] KD25:
I am running the latest CM12.1 nightly. I wanted to know that if i flash the kernel and update the nighlty afterwards, do i have to reflash the kernel again?
[Moto X Android Development] perfoliate:
Yes
[Moto X Android Development] CsR0501:
The same... Works awesome! :good:...
[Moto X Android Development] mac1996:
[MENTION=4988866]tdhite[/MENTION] cannot control my feelings anymore.. How's the progress going for the implementation of Double tab to wake/Sweep to wake..?
[Moto X Android Development] tdhite:
It's quite difficult. I don't actually own this device, so have no places to test or even debug.
[Moto X Android Development] mac1996:
It is good to hear that you are still working on development of our motox even you don't own a device ..I understand it is difficult. If you need any tester for beta version .let me know I will be there for you
[Moto X Android Development] Ejvyas:
Me too:good::good:
[Moto X Android Development] JimJ2Mz:
Has anyone dirty flashed this on top of CM12.1 or am I supposed to wipe everything and do a clean install?
[Moto X Android Development] Saythis:
Dirty flashing a kernel should work fine since it has the same effect as clean flash. Just wipe caches.
[Moto X Android Development] jco23:
I installed this without wiping on nexus ROM with no I'll effects.
[Moto X Android Development] agentcelsius:
Deleted
[Moto X Android Development] JimJ2Mz:
So I flashed this kernel and didn't wipe anything. Booted fine on CM12.1 but I'd like to know if there is anything else I should do. Like adjust any settings or modify files. Or is it just flash and go? I'm strictly asking those who are also using this kernel on CM12.1- did you guys do anything after flashing the kernel?

Many thanks to Dev and users for support in this thread.
[Moto X Android Development] tdhite:
In CM, go to Settings -> Performance and set the governor to smartmax, also scheduler to FIOPS and have that set at boot. If you prefer others, use what you wish.
[Moto X Android Development] JimJ2Mz:
The I/O scheduler I can change, but ever since CM12 landed, this includes CM12.1, you couldn't change the CPU governor anymore. Unless I missed it and can actually do so within Performance, I guess I'll have to use Trickster?
[Moto X Android Development] Snaipersky:
I use device settings, wonderful toolbox. Undervolt, tweak governor settings, hotplug, under/overclock. Great.
[Moto X Android Development] marbertshere:
Use a 3rd party app. I use Kernel Adiutor. Spelled like so.
[Moto X Android Development] tdhite:
The kernel includes a script that should set things. See if its not already done. If not, I'll fix up some magic.
[Moto X Android Development] JimJ2Mz:
Via Kernel Adiutor, Smartmax will not stick unless I set to apply on boot. Reverts to Interactive after a reboot.

FIOPS on the other hand is set to be applied on boot in Settings>Performance, so that's good. I think.
[Moto X Android Development] athulele:
The GPU governor doesn't seem to stick. Changes back to Ondemand as soon as I change it to anything else.

Anyone know how to fix this?

CM12.1 - 6th May Build
[Moto X Android Development] CsR0501:
Use kernel adiutor and pick yours options! ;)

Enviado desde mi Moto X mediante Tapatalk
[Moto X Android Development] athulele:
I use that.

This happens - 1. Set gpu governor to Simple

2. Navigate to any other menu

3. Go back to gpu menu to find that it's again set to on-demand
[Moto X Android Development] jco23:
latest version of Nexus ROM Experience (9.4) allows kernel tweaking in the settings - no need for a 3rd party app.
[Moto X Android Development] CsR0501:
smartmax + fiops = awesome!
[Moto X Android Development] athulele:
Yes, that works nice. but i'm talking about the gpu governor, not the cpu one.
[Moto X Android Development] orky87:
Yeah I've noticed this as well like with BlissPop's/Kernel control. Might be the rom itself because I tried other Kernel apps yet could not get Simple Gov to stick. TDHK works on other roms just fine even on newer 5.1.1 branches.
[Moto X Android Development] athulele:
Not a rom issue I guess.

No kernel app can change the gpu governor.. Immediately it's reverted to on-demand. I've noticed this on Resurrection remix, cm, aicp and nexus experience
[Moto X Android Development] orky87:
KTweaker worked for me or so it appears, I've also removed the built in kernel control app manually in case of a conflict. CyanHacker if I remember didn't have this issue with Simple Gov. TDHK on 5.1.1 if underclocked causes random reboots for me lately.
[Moto X Android Development] Ejvyas:
How did u remove the built in kernel control app ?
[Moto X Android Development] Saythis:
TiBu probably.
[Moto X Android Development] CsR0501:
Or just a root explorer ?

Enviado desde mi Moto X mediante Tapatalk
[Moto X Android Development] Ejvyas:
Want to know specifically what process was stopped. I know TiBu etc. But still wondering what process
[Moto X Android Development] tdhite:
New AOSP. Yes, should be fine, read the disclaimer post as always you should.