[Android] DiamondJohn:
I am building an Unofficial crDroid Oreo ROM for a Samsung S4. I fkashed it and iuts seems to be running OK, apart from the AudioFX not working.

So I ran some logcats to see what was happening in the background, and low and behold.

Whenever I turned the screen off, it started logging the following at a rate as fast as it could ( say > 10 / second to give an idea) Thgis hard loop of logging ceased as soon as I turned the screen back on, even before I unlocked it

this can't be good for battery standby

06-07 10:44:44.987 +0000 348 360 I BrcmNfcNfa: nfc_hal_dm_power_mode_execute () event = 2
06-07 10:44:44.987 +0000 348 360 I BrcmNfcNfa: nfc_hal_dm_set_nfc_wake () DEASSERT
06-07 10:44:44.987 +0000 348 360 D USERIAL_LINUX: UPIO_Set: ioctl, state=1
[COLOR="Red"]06-07 10:44:44.991 +0000 840 840 W View : requestLayout() improperly called by android.widget.TextView{7146d38 V.ED..... ........ 6,0-97,72 #7f0a005d app:id/battery_percentage_view} during second layout pass: posting in next frame
06-07 10:44:44.994 +0000 840 840 W View : requestLayout() improperly called by android.widget.TextView{7146d38 V.ED..... ......ID 6,0-97,72 #7f0a005d app:id/battery_percentage_view} during layout: running second layout pass
06-07 10:44:44.997 +0000 840 840 W View : requestLayout() improperly called by android.widget.TextView{7146d38 V.ED..... ........ 6,0-97,72 #7f0a005d app:id/battery_percentage_view} during second layout pass: posting in next frame
...snip the constant repeats....
... and more see https://www.hastebin.com/orugegidis.vbs for the screen off for a few secinds ...
06-07 10:44:45.913 +0000 840 840 W View : requestLayout() improperly called by android.widget.TextView{7146d38 V.ED..... ........ 6,0-97,72 #7f0a005d app:id/battery_percentage_view} during second layout pass: posting in next frame
06-07 10:44:45.927 +0000 840 840 W View : requestLayout() improperly called by android.widget.TextView{7146d38 V.ED..... ......ID 6,0-97,72 #7f0a005d app:id/battery_percentage_view} during layout: running second layout pass
06-07 10:44:45.930 +0000 840 840 W View : requestLayout() improperly called by android.widget.TextView{7146d38 V.ED..... ........ 6,0-97,72 #7f0a005d app:id/battery_percentage_view} during second layout pass: posting in next frame
[/COLOR]06-07 10:44:45.939 +0000 840 840 D StatusBar: disable<e i a s b H R c s q >
06-07 10:44:45.950 +0000 840 840 W View : requestLayout() improperly called by android.widget.TextView{7146d38 V.ED..... ......I. 6,0-97,72 #7f0a005d app:id/battery_percentage_view} during second layout pass: posting in next frame
06-07 10:44:45.978 +0000 840 840 D StatusBar: disable<e i a s b H R c s q >
06-07 10:44:46.000 +0000 4176 4204 W Adreno-EGL: <qeglDrvAPI_eglGetConfigAttrib:607>: EGL_BAD_ATTRIBUTE
06-07 10:44:46.002 +0000 4176 4204 D vndksupport: Loading /vendor/lib/hw/gralloc.msm8974.so from current namespace instead of sphal namespace.
06-07 10:44:46.015 +0000 3790 3831 W Adreno-EGL: <qeglDrvAPI_eglGetConfigAttrib:607>: EGL_BAD_ATTRIBUTE
06-07 10:44:46.019 +0000 3790 3831 D vndksupport: Loading /vendor/lib/hw/gralloc.msm8974.so from current namespace instead of sphal namespace.
06-07 10:44:46.039 +0000 840 840 D StatusBar: disable<e i a s b H R c s q >
06-07 10:44:46.039 +0000 840 840 D StatusBar: disable<e i a s b H R c s q >

Anyone have any experience of this? before I start a grep/text search to see where this is happening? Doing a web search pulls up a lot of references but all are in regard to when an app is started / running, not when the screen goes off. And it appears to be more associated with older Android versions ie 4.4.4