yashsingh1/xdaforums huggingface dataset:
[Verizon Samsung Galaxy S 4] AdamIsYou:
Hey guys, just wanted to drop a line to say I've gotten rid of this nasty battery drain.

Heres what I did:

I'm on 11/21 build (old, but I found it worked best)

First thing I did was go into Developer settings and uncheck the box for NuPlayer and reboot

Cleared all data from Google Play Services (I remember having to do that for KitKat, some reason if you clear it all out it fixes things)

Then I renamed NfcNci.apk to NfcNci.apk.bak to stop the massive wakelock it was causing

I now get over 20hrs on a charge, it deep sleeps when it should, and no Miscellaneous shows in battery logs.

Hope this helps.
[Verizon Samsung Galaxy S 4] el6006:
Some updates:

On my Tapatalk app, when I press menu it has white text on a white background but I haven't made any changes to the inverted colors or anything. Weird.

I look forward to getting a new SIM card to hopefully be able to use LTE again. LOL

On build 11/27, Miscellaneous is battering and killing my battery life :(

On a side note, CM12 is running great on my old S3 and it doesn't have the Miscellaneous battery bug either.

DSPManager has bad distortion on all builds I've tried and also on the S3. I have tried installing other versions of DSPManager, but it doesn't fix the distortion, either it makes it worse, or just FCs on all my audio players. Sigh.
[Verizon Samsung Galaxy S 4] gonzlobo:
'Invert colors' is actually one of the pull down icons too.
[Verizon Samsung Galaxy S 4] FernBch:
I'm a "little behind" some here (only been runnin CM12 since 11/27), so I have to ask. There are some things I don't see. When I go into settings I see no option for DSP Manager, etc or pull down tile settings. I also don't see the "invert colors" in the pull down. Did I miss something somewhere?

---------- Post added at 02:23 PM ---------- Previous post was at 02:21 PM ----------

I just found an example of "white on white". I opened the menu while viewing this thread in Tapatalk and found it.
[Verizon Samsung Galaxy S 4] gonzlobo:
Color inversion is under accessibility.
[Verizon Samsung Galaxy S 4] el6006:
I'm back in LTE business :D
[Verizon Samsung Galaxy S 4] arcane spade:
Did this and could not stop getting nfc fc's after that. Am I missing something? I am using 11/27 instead of 11/21 BC it h has the least bugs for me.
[Verizon Samsung Galaxy S 4] AdamIsYou:
Although I was expecting all those FCs after I did it, it happened never to me. Is your NFC on, or anything trying to use it?

I know there have been some changes to the NFC module since 11/21.

A bit to add as well,

I forgot to mention that I also removed CM Updater. I read on another build of CM12 it was preventing deep sleep.

Edit: Did you reboot after you renamed the NFC apk? You have to do that or else the system will flip out.
[Verizon Samsung Galaxy S 4] FernBch:
That can definitely stay off for now. I don't want to look at negatives all day.

---------- Post added at 07:11 PM ---------- Previous post was at 07:02 PM ----------

I've read a couple things about the poor battery life and NFC. My wakelocks of death are msm_serial_hs_dma and powermamangerservicewakelocks. It's just killin my battery. Drained 80% in 8 hours. I remember CM11 being like this when it was young.

---------- Post added at 07:25 PM ---------- Previous post was at 07:11 PM ----------

One other question. When I flash I get a message in CWM about possibly losing root when I choose to reboot. Anyone remember the fix or should I install SuperSU?
[Verizon Samsung Galaxy S 4] gonzlobo:
I bet you can freeze cm updater as fitsnugly doesn't use it.
[Verizon Samsung Galaxy S 4] FernBch:
I tried to freeze a couple items with TiBu. It said the app in question was froze but it is still visible and functional.
[Verizon Samsung Galaxy S 4] gonzlobo:
Same here. I had to download supersu to get TIBU to work.
[Verizon Samsung Galaxy S 4] FernBch:
I haven't downloaded it yet. Been holding off for TiBu to make the update. I remember something like this happening when ICS first came out.

On a side note I have my battery drain figured out. If I turn BT off when not in use my battery life goes up significantly. This happened in the early days of CM10 and CM11 (msm_serial_hs_dma wakelock). Once the proper fix gets merged it will go away. When it was happening in CM11 I think it was a "bluedroid" related commit that was merged and it stopped.
[Verizon Samsung Galaxy S 4] Shaftamle:
Tibu has been saying that for a while. I thought everyone used super su. What do you use?

Sent from a Shaftamle Galaxy S4

"Thanks Button" is always appreciated!

149ThemedGoogleKeyboards!!!!!!

Friends don't let friends buy iPhones!

MyColorScreen
[Verizon Samsung Galaxy S 4] rwSN1PER:
I tried this and I got the same results. My wakelock is gone.
[Verizon Samsung Galaxy S 4] brasewel:
How did you get it to work? I'm not seeing my 5ghz network as well

Edit: Looks like it doesn't recognize 5ghz SSIDs with special characters in them. After removing them I could see and connect.

Love this ROM so far. Hopefully BT and battery life is good.
[Verizon Samsung Galaxy S 4] mangalo2004:
Is anyone having issues with apps showing a black screen? I can't get the Starbucks app to show the payment barcode and can't get msecure to work at all. I'm on a clean install of 11/29.
[Verizon Samsung Galaxy S 4] gonzlobo:
Two pages back...
[Verizon Samsung Galaxy S 4] FernBch:
I have noticed something else in CM12. I am having a two-fold issue related to time zones.

I am in Arizona so the I'm not the standard GMT-7 Mountain Time (we don't change our clocks for DST). The problem is that I had my phone set to get time info from the network and it thinks I'm in standard mountain time not Arizona. That is causing issues with Google Calendar (it was set to get device time zone). I have to turn the network time zone setting off for it to know the correct time zone. I also discovered in the time zone list there are two entries that say GMT-7:00 Mountain Standard Time. After playing with manually setting the time zone I found that the first one on the list is actually GMT-7:00 Mountain Standard Time-Arizona so the list needs to be edited.

The other part of the problem is I get Gmail calendar alerts and the time stamp on those is two hours off. The thing I don't know is if it is a Google problem (east coast time stamp), a device time issue, a network reported time issue (VZW), or some combo of the above.

One other item I have noticed is when using Tapatalk. If I am typing in a reply window in landscape mode and I pause long enough for the screen to go off when I wake it the screen is blank. I have to rotate the device to portrait and back and then the text I had typed becomes visible again.

---------- Post added at 12:11 PM ---------- Previous post was at 11:39 AM ----------

Anyone experience a settings FC when trying to view the Superuser log or SU settings?
[Verizon Samsung Galaxy S 4] brasewel:
Does anyone know how to take a screenshot? The power+home hotkey doesn't work anymore.
[Verizon Samsung Galaxy S 4] justda:
I still have the same issues since CM went unified. WiFi works great but I have no cellular connection.

I am using a T-Mobile Sim card, APN is correct, tried going airplane mode and back, 2g 3g LTE CDMA global... Nothing works.

Any help on this would be mucho appreciated.

Sent from my SCH-I545 running a T-Mobile Sim, using the XDA Premium HD app
[Verizon Samsung Galaxy S 4] hlxanthus:
That has never worked on any aosp ROM. Stock aosp method is power+volume down.
[Verizon Samsung Galaxy S 4] FernBch:
Flashed 11/30 today, I am seeing repeated WiFiStateMachine starting scan. I am connected to my WiFi and all seems to be ok.

Logcat link:

https://www.dropbox.com/s/sjbuj7uhnwtdhnj/Log_2014-11-30_10-35-54.txt?dl=0
[Verizon Samsung Galaxy S 4] arcane spade:
I've been running 11/30 about 4 hours no problems with wifi scan, only issue is battery still not great and bt glitchy but that's not new.
[Verizon Samsung Galaxy S 4] Alxoom33:
Anyone know how to access Xposed? I need some of the functionality.
[Verizon Samsung Galaxy S 4] ribenabob:
Can't use Xposed with this.

Lollipop did away with dalvik and exclusively uses ART. Xposed is not compatible with ART at this time.
[Verizon Samsung Galaxy S 4] brasewel:
Hmm that doesn't seem to work as well. I got an app for now that I mapped keys to take a screenshot.
[Verizon Samsung Galaxy S 4] mcconvict:
And I can't read...edit
[Verizon Samsung Galaxy S 4] arcane spade:
Don't believe xposed works on lollipop yet. It's not art compatible.
[Verizon Samsung Galaxy S 4] FernBch:
For BT my culprit is msm_serial_hs_dma wakelock preventing deep sleep. Tie that to the repeated WiFiMachineState starting a scan tied to the wpa_supplicant (which may be BT or NFC related - seen it before) it may explain a fair amount of the battery drain. CM11 had this issue at one time as well. Both items were BT related and caused a decent drain, for me anyway.
[Verizon Samsung Galaxy S 4] FernBch:
Man I wish I could edit code. I would so upload to Gerrit if I knew what I was doing.
[Verizon Samsung Galaxy S 4] rajones19:
Wish you could too!
[Verizon Samsung Galaxy S 4] el6006:
Renamed NFCnic like an earlier post indicated and erased play services data and battery life has been better. No more miscellaneous listed on the battery stats screen [emoji1]
[Verizon Samsung Galaxy S 4] rajones19:
For me, renaming NFCNIC kills the abiility for the phone to communicate with BT devices like the Jawbone UP, and presumably the FitBit, etc. Not a great answer to the problem. Hope they get it figured out soon!
[Verizon Samsung Galaxy S 4] FernBch:
Didn't work for me, either. Using BBS I found msm_serial_hs_dma caused a wakelock preventing deep sleep. For now the workaround is to turn BT off when not using a BT device. With BT off my battery life is double. Tomorrow is a work day and I need BT so I'll be keeping the charger close all day. It'll get straightened out. I just don't know how long since bug reporting is not active yet. I would imaging someone may pick up on it soon. There are a few ports of CM12 floating around. I've also heard that sometime in the future the S4 is getting Lollipop too, so that will help as well.
[Verizon Samsung Galaxy S 4] ahoslc:
You guys should give ktoonz 5.0 kernel a try ;)
[Verizon Samsung Galaxy S 4] PSBJ:
Anyone having issues with their home button? After a while it stops working.

I tried rebooting but that didn't fix it. Turned off my phone for a minute and then it started working again. Had no issues on CM11 so I'm certain it's a ROM issue.
[Verizon Samsung Galaxy S 4] arcane spade:
Just curious, are you find any benefits to it or just plugging it bc he's great?

When I did this I got constant FC's from BT typo, FC's from NFC. Did that happen to you and did you get it to stop?
[Verizon Samsung Galaxy S 4] kinggroin:
Will this rom work for NC5 locked bootloaders running Safestrap 3.75? Didn't see anything when searching the thread.
[Verizon Samsung Galaxy S 4] red3razor:
No safestrap
[Verizon Samsung Galaxy S 4] vanberge:
What recovery are you guys using to flash this?

I see a recovery lok file up on euroskank's site... I've been using a 6.0.50 version that Invisiblek posted when they went to unified builds of CM11.
[Verizon Samsung Galaxy S 4] rwSN1PER:
I'm using TWRP 2.8.1.0.
[Verizon Samsung Galaxy S 4] ecossais:
I am using TWRP 2.8.2.0
[Verizon Samsung Galaxy S 4] FernBch:
Went back to 11/27 this morning. I put the gs4 down with messaging open and later it kept FCing. Even a reflaah of 11/30 didn't help. How's 12/1?
[Verizon Samsung Galaxy S 4] mcconvict:
There is no 12/1 that I see. However, I am having zero issues with this at all. With KT kernel even the battery life is phenomenal

Edit...literally just showed up on the site...at least for me
[Verizon Samsung Galaxy S 4] Alxoom33:
12/1 is up. I've been using the ktoontsz kernel. Glad he's back! Any idea of how to get some of the functions of the Xposed modules, since it is not compatible with ART?
[Verizon Samsung Galaxy S 4] mcconvict:
Nope. Never been a fan of xposed
[Verizon Samsung Galaxy S 4] dirwin:
Bug: No GPS Fix, apparently can't turn on GPS

I searched this thread and couldn't find anything. I also see lots of reports of this build being very stable and almost daily usable for many, so I assume there's something odd about my device.

Failure symptom:

I'm seeing a complete failure to use GPS on my device. With Location Mode set to High Accuracy I do get a fairly accurate location, but not accurate enough to use for driving in Google Maps or Waze. GPS Status shows 0 Satellites/0 Locked, even after 30 minutes of the device sitting outside with a clear view of the sky. Ordinarily I'm used to 10-15 seconds to lock in these conditions at most.

ROM Install notes:

This is on a VRUAMDK jfltevzw device. Before installing this ROM I was on Hyperdrive RLS19. I clean flashed (actually, due to some weirdness I went all the way back to stock, re-did the root exploit, reinstalled CWM Touch, then installed cm-12-20141128.0914-jfltevzw).

I've tried this both with and without GApps installed. I hard reset, installed cm-12-20141130.0951-jfltevzw by itself without GApps, and observed the same problem. After observing the problem on 1130 I installed GApps, TiBu-ed the rest of my apps back, and then dirty flashed to 1201. I'm willing to hard reset again to gather more logs though.

Possibly relevant Logcat:

12-01 11:18:59.096 W/ResourcesManager( 8925): Asset path '/system/framework/com.android.location.provider.jar' does not exist or contains no resources.

12-01 11:19:00.687 D/LocationInitializer( 7656): Restart initialization of location

Odd thing about the Logcat: /system/framework/com.android.location.provider.jar is there, set with 644 permissions.

Back in the day I feel like I would have cleared dalvik, fixed permissions, and been on my way.

Again, I realize that since this seems to be impacting me and maybe not many others it might not be super high-pri, but I wanted to get the report out there. I'm happy to do anything necessary to my device to help debug or get better logs.

Thanks for the ROM. Other than the location issue I'm really very happy with the progress!
[Verizon Samsung Galaxy S 4] dorioo:
I love it when detective fern is in a thread! Running 12/1 with toonz kernel and turning off Bluetooth allows my phone to go to sleep. Progress towards daily driver. Thank you.
[Verizon Samsung Galaxy S 4] ribenabob:
try flashing (clean flash or restore backup) a stock rom. Get a GPS lock (I like GPS status). Immediately boot into recovery and restore this ROM.

I don't know why this works, but I've used this trick on my S4 as well as other phones, hopefully it will work for you.
[Verizon Samsung Galaxy S 4] AdamIsYou:
I can confirm this trick has worked for me in the past as well, strangely enough. You should try deleting all Maps cache before you attempt the first lock on the new restore.

---------- Post added at 06:18 PM ---------- Previous post was at 06:13 PM ----------

A reboot immediately after the rename cured my FCs.
[Verizon Samsung Galaxy S 4] whichonespink73:
I'm having a weird issue with my MMS. I am able to send always, but when receiving they almost always show up as "New MMS message to doanload: size xKB, expires [date]". At first I just thought it was my reception, but that doesn't seem to be the case as it's kind of a rampant issue. I only noticed this because I'm in an ongoing group chat with some old friends and I will get about 10 of these obnoxious messages with very few coming through on the first try. Thoughts?
[Verizon Samsung Galaxy S 4] musicfreak190:
There is no Verizon mms apn settings.. Makes no sense to me as well.
[Verizon Samsung Galaxy S 4] namedkwon:
Try some of the methods from here:

http://xdaforums.com/android/software/tool-verizon-mms-apn-patch-t2833914

Worked for me.
[Verizon Samsung Galaxy S 4] dirwin:
Yep - this did the trick. Thanks! Now that you mentioned it here I do seem to remember reading something about this a few months ago on some unrelated thread. This definitely worked for me :)
[Verizon Samsung Galaxy S 4] whichonespink73:
Thanks a lot, the zip worked like a charm! :)
[Verizon Samsung Galaxy S 4] gonzlobo:
Are BT speeds fixed? Sounds like it!
[Verizon Samsung Galaxy S 4] vanberge:
12/2? I dirtied 12/1 and still had issues
[Verizon Samsung Galaxy S 4] gonzlobo:
Nevermind, apparently I'm an idiot.
[Verizon Samsung Galaxy S 4] musicfreak190:
Is the Misc battery drain still an issue?
[Verizon Samsung Galaxy S 4] FernBch:
I dirtied 12/1 as well. I did notice NFC is working.
[Verizon Samsung Galaxy S 4] mcconvict:
I clean flashed 12/2 and had to revert back because of constant systemui fc's. It dirty flashed fine tho
[Verizon Samsung Galaxy S 4] FernBch:
Dirtied 12/2 a couple hours ago and it seems good so far. The only FC I've seen is when trying to view su settings. SystemUI will FC.
[Verizon Samsung Galaxy S 4] AdamIsYou:
So I've been investigating the BT streaming issue and I've found something.

(Pardon me if its already fixed, but I'm still on 11/21)

Our problem seems to be a sample rate issue, so I dove into "audio_policy.conf" to investigate.

There is a section of our original audio_policy.conf file that is commented out. If you open the file, scroll down a bit and you'll see some out of place '#'s. Playing around, if you delete all of them, it breaks all audio. But if you leave the ones for the Fast Flag, nothing seems to change.

Also

I dropped in this: https://android.googlesource.com/device/lge/hammerhead/+/android-5.0.0_r2/audio_policy.conf

Its the audio_policy.conf from the Nexus 5 (android 5.0.0_r2).

I found that THIS FIXES BT MUSIC STREAMING!!! But....it breaks call audio. if you try to place a call, phone audio only comes through the earpiece even when BT is connected, then it breaks the whole damn phone app. If no BT is connected, calls work fine.

Anybody have any ideas?
[Verizon Samsung Galaxy S 4] tats_06:
Hello everyone!

I am getting ready to flash 12/2 nightly. What I found is I have gapps for lp dated 11/9. Also saw someone suggest updating SU to BetaSU v2.19. Do I need to do that?

Lastly, I haven't updated radio in a while. Which one works the best with 5.0?

I am doing a clean flash. Anything else I should know besides the obvious bugs? Thank you! :)
[Verizon Samsung Galaxy S 4] Train88:
Yes, I would recommend flashing SuperSU, but it's not required - standard su is still accessible in developer options. Flashing radios is also optional; which one works best all depends on your service area.

Team BlackOut... or Back Out - "These colors that you've shined are surely not your style”
[Verizon Samsung Galaxy S 4] mrbigdrawsz:
Ringtones/Sounds Not Sticking

I'm on the 12/2 build and my ringtones/sounds won't stick after a reboot. I didn't notice this issue in previous builds. Anyone else seeing this happen?
[Verizon Samsung Galaxy S 4] tats_06:
Thank you! I am on MK2. Haven't updated baseband in a while. Will read up on what's available. :)
[Verizon Samsung Galaxy S 4] tats_06:
Did it go away? I am getting SystemUI FCs as well. Rebooting right now. Any suggestions? :)
[Verizon Samsung Galaxy S 4] IMMORTALKING69:
Ng6 ftw!
[Verizon Samsung Galaxy S 4] freakyguy88:
nc5 dev edition modem seems like the most common choice, im using that with great results!

http://xdaforums.com/showthread.php?t=2487298
[Verizon Samsung Galaxy S 4] tats_06:
I clean flashed 12/3 nightly and the FCs went away. Enjoying the ride! :)
[Verizon Samsung Galaxy S 4] vanberge:
Anybody with suggestions on getting rid of the misc battery drain? I get FCs everywhere when renaming NFC apk. BT is off. I froze NFC with tibu and cleared data on Google play services. But still get wicked drain
[Verizon Samsung Galaxy S 4] arcane spade:
Sounds like you've read most of the suggestions, also try KT kernel. Did you try rebooting after renaming NFC? I've been running 11/30 build with battery comparable to what I had on KK, maybe better but I keep playing Plants vs Zombies lately.
[Verizon Samsung Galaxy S 4] whichonespink73:
I too am in this boat. I've tried all of those and am running KT kernel but my battery still drains about 10% or more an hour. I've noticed that I'm getting a ton of wakelocks from this RILJ process. In other threads people usually relate it to location services but mine are turned off.
[Verizon Samsung Galaxy S 4] Gosimer4:
I hope this helps with the wakelocks...... BBS shows constant awake but didn't show any process causing it. I tried an app called wakelock detector and it pointed out Pandora as the culprit. I froze it and it now says deep sleep. So far, so good. Love the ROM, BTW, thank you
[Verizon Samsung Galaxy S 4] red3razor:
In addition to those... Also try: go to developer options (by clicking about phone/build number: 7times)... Then in dev options: uncheck "Use NuPlayer" toward the bottom. This has been mentioned awhile ago, seems helpful.
[Verizon Samsung Galaxy S 4] AdamIsYou:
Deleted
[Verizon Samsung Galaxy S 4] brasewel:
Hey guys, so when you dirty flash do you have to install gapps everytime?
[Verizon Samsung Galaxy S 4] Alttwo:
Because installing the ROM rewrites the system partition and the gapps are not in the Roms zip for them to be written with the new rewrite. So installing them separately writes them in the system partition separately :)
[Verizon Samsung Galaxy S 4] vt0r:
Most gapps packages put a script into /system/addon.d that backs these apps up before the format of /system and copies them back afterwards.

So you usually only need to flash gapps after you manually wipe /system - dirty flashing should preserve gapps.
[Verizon Samsung Galaxy S 4] FernBch:
No need to reinstall Gapps. When you dirty flash you only wipe cacge and davlik cache. The only thing you would need to reinstall would be any app that you install as a system app.
[Verizon Samsung Galaxy S 4] Train88:
It also depends on if you only flash stock gapps or mods...zips you flash afterwards (like TBO apps or theme zips for example), will need to be flashed again after first boot on the updated ROM.

Team BlackOut... or Back Out - "These colors that you've shined are surely not your style”
[Verizon Samsung Galaxy S 4] musicfreak190:
Anyone having issues with the chase app and a clean 12/3 install?

I have a black screen. It seems thd app is there but just won't display.
[Verizon Samsung Galaxy S 4] dirwin:
I don't use Chase, but I'm seeing this with LastPass. I think I saw it with Spotify as well. I cleared the app data on Spotify, tried to log back in, ran into the same issue with LastPass, and then ran out of time to play with it.

The screen itself is black, but if you tap on the screen where UI elements are you can interact with them (so tapping where the login area for LastPass should be pops up the keyboard).
[Verizon Samsung Galaxy S 4] Loop4zil:
I'm getting this with my Starbucks app. I'm so sad...and cranky :)
[Verizon Samsung Galaxy S 4] musicfreak190:
Im sad too.. I really hope it is a rom problem and not a 5.0.1 problem lol.
[Verizon Samsung Galaxy S 4] gonzlobo:
Although I've logged into the lastpass app a hundred times, I don't know where in the screen to enter my password. Somewhere in the middle...
[Verizon Samsung Galaxy S 4] vanberge:
I have a few apps doing the black screen. Dish Anywhere and also my email app Touchdown. I believe it is an issue with the Apps not being ART compatible and therefore not working properly in Lollipop.

SECONDLY, I have found the magic mix to kill my misc battery drain. I did the following:

Froze NFC service with TiBU

Cleared data on Google Play Services

Unchecked "Use NuPlayer" in development options

Flashed Ktoones' 5.0 Kernel
[Verizon Samsung Galaxy S 4] mcconvict:
The bump up to 5.0.1 should fix the drain. My battery life went way up with it. Misc was at 9% down from 50-80%
[Verizon Samsung Galaxy S 4] ahoslc:
Is F2FS compatible on this ROM?