[Sony Cross-Device General] nailyk:
Dirty rebuild: the bluesleep and HL0 wakelock disappear. Nice! I try to enable bluetooth: now way ;) But at least we now that disabling bluetooth stop his wakelock ;)

Nothing else changed from screenshot.

After tracking the modeminfo error it seems to came from the mTxTimesMs set to 0. Now need to find why...

I add a log into ModemActivityInfo.java, but into constructor so not sure it mean something but this array doesn't seems to be set elsewhere (and is private so can't be set from another class iirc).

adb logcat -d | grep "Modem info set to" | cut -d":" -f4,5 | uniq -c
72 Modem info set to: ModemActivityInfo{ mTimestamp=0 mSleepTimeMs=0 mIdleTimeMs=0 mTxTimeMs[]=[0, 0, 0, 0, 0] mRxTimeMs=0 mEnergyUsed=0}

And I can't find constructor calls... I'm not good in java :s I bet it is called by this Parcelable. function ?

My nfc isn't enabled as it is not working and spam log (2 times every 10 sec). I literally don't take a look at this problem for now.

E NfcAdaptation: NfcAdaptation::Initialize: ver=NFCDROID-AOSP_N_00.01 nfa=NFA_PI_1.03.66+
E NfcAdaptation: NfcAdaptation::InitializeHalDeviceContext: fail hw_get_module nfc_nci
E NfcService: Watchdog triggered, aborting.
E BrcmNfcJni: nfcManager_doAbort: abort()
F libc : Fatal signal 6 (SIGABRT), code -6 in tid 6067 (enableInternal)
F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
F DEBUG : CM Version: '14.1-20161206-nailyk-SonyCM-leo'
F DEBUG : Build fingerprint: 'Sony/D6603/D6603:5.1.1/14.6.A.1.236/2031203603:user/release-keys'
F DEBUG : Revision: '0'
F DEBUG : ABI: 'arm'
F DEBUG : pid: 6049, tid: 6067, name: enableInternal >>> com.android.nfc <<<
F DEBUG : signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
F DEBUG : r0 00000000 r1 000017b3 r2 00000006 r3 00000008
F DEBUG : r4 b398f978 r5 00000006 r6 b398f920 r7 0000010c
F DEBUG : r8 b398f3c0 r9 6e576500 sl b398f070 fp 6e576500
F DEBUG : ip 0000006e sp b398eff8 lr b548f087 pc b54918f0 cpsr 600f0010
F DEBUG :
F DEBUG : backtrace:
F DEBUG : #00 pc 0004a8f0 /system/lib/libc.so (tgkill+12)
F DEBUG : #01 pc 00048083 /system/lib/libc.so (pthread_kill+34)
F DEBUG : #02 pc 0001d715 /system/lib/libc.so (raise+10)
F DEBUG : #03 pc 00019261 /system/lib/libc.so (__libc_android_abort+34)
F DEBUG : #04 pc 00017128 /system/lib/libc.so (abort+4)
F DEBUG : #05 pc 0000f0f9 /system/lib/libnfc_nci_jni.so
F DEBUG : #06 pc 000ad999 /system/lib/libart.so (art_quick_generic_jni_trampoline+40)
F DEBUG : #07 pc 000a8fc1 /system/lib/libart.so (art_quick_invoke_stub_internal+64)
F DEBUG : #08 pc 004022e9 /system/lib/libart.so (art_quick_invoke_stub+232)
F DEBUG : #09 pc 000b0271 /system/lib/libart.so (_ZN3art9ArtMethod6InvokeEPNS_6ThreadEPjjPNS_6JValueEPKc+136)
F DEBUG : #10 pc 001eaefb /system/lib/libart.so (_ZN3art11interpreter34ArtInterpreterToCompiledCodeBridgeEPNS_6ThreadEPNS_9ArtMethodEPKNS_7DexFile8CodeItemEPNS_11ShadowFrameEPNS_6JValueE+198)
F DEBUG : #11 pc 001e54c3 /system/lib/libart.so (_ZN3art11interpreter6DoCallILb0ELb0EEEbPNS_9ArtMethodEPNS_6ThreadERNS_11ShadowFrameEPKNS_11InstructionEtPNS_6JValueE+478)
F DEBUG : #12 pc 003faa21 /system/lib/libart.so (MterpInvokeInterface+836)
F DEBUG : #13 pc 0009c014 /system/lib/libart.so (ExecuteMterpImpl+14740)
F DEBUG : #14 pc 001c922f /system/lib/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadEPKNS_7DexFile8CodeItemERNS_11ShadowFrameENS_6JValueEb+290)
F DEBUG : #15 pc 001cdcf9 /system/lib/libart.so (_ZN3art11interpreter30EnterInterpreterFromEntryPointEPNS_6ThreadEPKNS_7DexFile8CodeItemEPNS_11ShadowFrameE+92)
F DEBUG : #16 pc 003f17d1 /system/lib/libart.so (artQuickToInterpreterBridge+716)
F DEBUG : #17 pc 000ada13 /system/lib/libart.so (art_quick_to_interpreter_bridge+34)
F DEBUG : #18 pc 000a8fc1 /system/lib/libart.so (art_quick_invoke_stub_internal+64)
F DEBUG : #19 pc 004022e9 /system/lib/libart.so (art_quick_invoke_stub+232)
F DEBUG : #20 pc 000b0271 /system/lib/libart.so (_ZN3art9ArtMethod6InvokeEPNS_6ThreadEPjjPNS_6JValueEPKc+136)
F DEBUG : #21 pc 00312d07 /system/lib/libart.so (_ZN3artL18InvokeWithArgArrayERKNS_33ScopedObjectAccessAlreadyRunnableEPNS_9ArtMethodEPNS_8ArgArrayEPNS_6JValueEPKc+58)
F DEBUG : #22 pc 00313ab5 /system/lib/libart.so (_ZN3art35InvokeVirtualOrInterfaceWithJValuesERKNS_33ScopedObjectAccessAlreadyRunnableEP8_jobjectP10_jmethodIDP6jvalue+256)
F DEBUG : #23 pc 0032a99d /system/lib/libart.so (_ZN3art6Thread14CreateCallbackEPv+848)
F DEBUG : #24 pc 00047b53 /system/lib/libc.so (_ZL15__pthread_startPv+22)
F DEBUG : #25 pc 00019cbd /system/lib/libc.so (__start_thread+6)
E : debuggerd: failed to kill process 6049: No such process

Yes from your thread and Drakonizer's one z1 is only affected by ril wakelocks (in my case seems to appear under 'PowerManagerService.WakeLocks' into /sys/kernel/debug/wakeup_sources).

We are also experiencing bluetooth, and usb locks. Displays locks disappears when I disable double tap to wake. I can't tell about NFC as it is not working for now.

Any advice appreciated :)

P.S.: I notice the screen auto dim but won't auto shut-down while the usb lock problem is present.