[Galaxy Note 3 Android Development] KrzysztofGW:
Hi! I need ANT+ support and bluetooth headset working. Under 5.1 or 6.0 Temasek ROMs I could not have achieved those so I downgraded to 4.4.4 (V160.1) which I remember to be the most stable. Moreover 4.4.4 reboots 3 times quicker.

The only problem is the Google Play services that keep crashing. Clearing app's cache always helps. Eventually app's data (in 100%). But after a reboot or some time working with the mobile the problem returns. The gapps are from OpenGapps (stock version). Any hints?

Logcat:

I/ActivityManager( 784): Process com.google.android.gms.persistent (pid 954) has died.

W/ActivityManager( 784): Service crashed 2 times, stopping: ServiceRecord{667f0d48 u0 com.google.android.gms/com.google.android.location.internal.GoogleLocationManagerService}

W/ActivityManager( 784): Service crashed 2 times, stopping: ServiceRecord{66753258 u0 com.google.android.gms/.icing.service.LightweightIndexService}

W/ActivityManager( 784): Service crashed 2 times, stopping: ServiceRecord{6622e258 u0 com.google.android.gms/.config.ConfigService}

W/ActivityManager( 784): Service crashed 2 times, stopping: ServiceRecord{65f26fc8 u0 com.google.android.gms/com.google.android.location.reporting.service.ReportingAndroidService}

W/ActivityManager( 784): Service crashed 2 times, stopping: ServiceRecord{65d08f48 u0 com.google.android.gms/com.google.android.location.internal.server.GoogleLocationService}

I/art ( 297): Process 954 terminated by signal (7)

E/GoogleConversionReporter(30996): Error sending ping

E/GoogleConversionReporter(30996): java.net.ConnectException: failed to connect to www.googleadservices.com/127.0.0.1 (port 443) after 60000ms: isConnected failed: ECONNREFUSED (Connection refused)

E/GoogleConversionReporter(30996):	at libcore.io.IoBridge.isConnected(IoBridge.java:223)

E/GoogleConversionReporter(30996):	at libcore.io.IoBridge.connectErrno(IoBridge.java:161)

E/GoogleConversionReporter(30996):	at libcore.io.IoBridge.connect(IoBridge.java:112)

E/GoogleConversionReporter(30996):	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:192)

E/GoogleConversionReporter(30996):	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:460)

E/GoogleConversionReporter(30996):	at java.net.Socket.connect(Socket.java:833)

E/GoogleConversionReporter(30996):	at com.android.okhttp.internal.Platform.connectSocket(Platform.java:152)

E/GoogleConversionReporter(30996):	at com.android.okhttp.Connection.connect(Connection.java:101)

E/GoogleConversionReporter(30996):	at com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:294)

E/GoogleConversionReporter(30996):	at com.android.okhttp.internal.http.HttpEngine.sendSocketRequest(HttpEngine.java:255)

E/GoogleConversionReporter(30996):	at com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:206)

E/GoogleConversionReporter(30996):	at com.android.okhttp.internal.http.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:345)

E/GoogleConversionReporter(30996):	at com.android.okhttp.internal.http.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:296)

E/GoogleConversionReporter(30996):	at com.android.okhttp.internal.http.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:503)

E/GoogleConversionReporter(30996):	at com.android.okhttp.internal.http.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:136)

E/GoogleConversionReporter(30996):	at bqa.a(SourceFile:230)

E/GoogleConversionReporter(30996):	at bqd.run(SourceFile:174)

E/GoogleConversionReporter(30996):	at java.lang.Thread.run(Thread.java:811)

E/GoogleConversionReporter(30996): Caused by: libcore.io.ErrnoException: isConnected failed: ECONNREFUSED (Connection refused)

E/GoogleConversionReporter(30996):	at libcore.io.IoBridge.isConnected(IoBridge.java:208)

E/GoogleConversionReporter(30996):	... 17 more

W/art ( 297): Could not get current activity

I/ActivityManager( 784): Start proc com.google.android.gms.persistent for service com.google.android.gms/.icing.service.LightweightIndexService: pid=999 uid=10007 gids={50007, 3007, 2001, 3003, 1007, 3006, 1028, 1015, 1023, 1006, 3002, 3001}

D/ActivityThread( 999): handleBindApplication:com.google.android.gms.persistent

D/ActivityThread( 999): setTargetHeapUtilization:0.75

D/ActivityThread( 999): setTargetHeapMinFree:2097152

D/AudioPolicyManager( 299): getOutput() device 2, stream 1, samplingRate 0, format 0, channelMask 3, flags 0

D/AudioPolicyManager( 299): getOutput() returns output 2

D/AudioPolicyManager( 299): getOutput() device 2, stream 1, samplingRate 0, format 0, channelMask 3, flags 0

D/AudioPolicyManager( 299): getOutput() returns output 2

D/AudioPolicyManager( 299): getOutput() device 2, stream 1, samplingRate 48000, format 1, channelMask 3, flags 4

D/AudioPolicyManager( 299): getOutput() returns output 2

D/AudioFlinger( 299): start(4100), calling pid 784 session 54

D/AudioFlinger( 299): ? => ACTIVE (4100) on thread 0xb847e8d0

I/QCOM PowerHAL( 299): Processing audio hint. Metadata: state=1

D/AudioPolicyManagerBase( 299): startOutput() output 2, stream 1, session 54

D/audio_hw_primary( 299): start_output_stream: enter: stream(0xb84187a8)usecase(1: low-latency-playback) devices(0x2)

V/msm8974_platform( 299): platform_get_output_snd_device: enter: output devices(0x2)

V/msm8974_platform( 299): platform_get_output_snd_device: exit: snd_device(speaker)

D/audio_hw_primary( 299): select_devices: out_snd_device(2: speaker) in_snd_device(0: )

W/msm8974_platform( 299): 24bit not enable, no need to check for backend change

D/hardware_info( 299): hw_info_append_hw_type : device_name = speaker-cdp

D/ACDB-LOADER( 299): ACDB -> send_audio_cal, acdb_id = 15, path = 0

D/ACDB-LOADER( 299): ACDB -> send_adm_topology

D/ACDB-LOADER( 299): ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TOPOLOGY_ID

D/ACDB-LOADER( 299): ACDB -> send_audtable

D/ACDB-LOADER( 299): ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE

D/ACDB-LOADER( 299): ACDB -> AUDIO_SET_AUDPROC_CAL

D/ACDB-LOADER( 299): ACDB -> send_audvoltable

D/ACDB-LOADER( 299): ACDB -> ACDB_CMD_GET_AUDPROC_GAIN_DEP_STEP_TABLE

D/ACDB-LOADER( 299): ACDB -> AUDIO_SET_AUDPROC_VOL_CAL

D/ACDB-LOADER( 299): ACDB -> send_afe_cal

D/ACDB-LOADER( 299): ACDB -> ACDB_CMD_GET_AFE_COMMON_TABLE

D/ACDB-LOADER( 299): ACDB -> AUDIO_SET_AFE_CAL

D/audio_hw_primary( 299): select_devices: done

I/MultiDex( 999): VM with version 2.0.0 does not have multidex support

I/MultiDex( 999): install

I/MultiDex( 999): MultiDexExtractor.load(/system/priv-app/PrebuiltGmsCore.apk, false)

I/MultiDex( 999): loading existing secondary dex files

I/MultiDex( 999): load found 4 secondary dex files

I/MultiDex( 999): install done

V/JNIHelp ( 999): Registering com/google/android/gms/org/conscrypt/NativeCrypto's 255 native methods...

I/ProviderInstaller( 999): Installed default security provider GmsCore_OpenSSL

D/ChimeraCfgMgr( 999): Reading stored module config

I/QCOM PowerHAL( 299): Processing audio hint. Metadata: state=0

I/art ( 999): GcCauseBackground sticky partial concurrent mark sweep GC freed 10323(563KB) AllocSpace objects, 0(0B) LOS objects, 25% free, 6MB/8MB, paused 11.897ms total 30.144ms

D/NativeLibraryUtils( 999): Install completed successfully. count=0 extracted=0

I/DynamiteModule( 999): Considering local module com.google.android.gms.googlecertificates:1 and remote module com.google.android.gms.googlecertificates:1

I/DynamiteModule( 999): Selected remote version of com.google.android.gms.googlecertificates, version >= 1

D/ChimeraFileApk( 999): Primary ABI of requesting process is armeabi-v7a

D/ChimeraFileApk( 999): Classloading successful. Optimized code found.

D/GoogleCertificates( 999): com.google.android.gms.googlecertificates module is loaded

D/GoogleCertificatesImpl( 999): Fetched 318 Google certificates

D/AudioPolicyManager( 299): getOutput() device 2, stream 1, samplingRate 0, format 0, channelMask 3, flags 0

D/AudioPolicyManager( 299): getOutput() returns output 2

D/AudioPolicyManager( 299): getOutput() device 2, stream 1, samplingRate 0, format 0, channelMask 3, flags 0

D/AudioPolicyManager( 299): getOutput() returns output 2

D/AudioPolicyManager( 299): getOutput() device 2, stream 1, samplingRate 48000, format 1, channelMask 3, flags 4

D/AudioPolicyManager( 299): getOutput() returns output 2

D/AudioFlinger( 299): start(4097), calling pid 784 session 55

D/AudioFlinger( 299): ? => ACTIVE (4097) on thread 0xb8481f38

I/QCOM PowerHAL( 299): Processing audio hint. Metadata: state=1

D/AudioPolicyManagerBase( 299): startOutput() output 2, stream 1, session 55

W/InputMethodManagerService( 784): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@65cd9ba8 attribute=null, token = android.os.BinderProxy@664e2b90

I/QCOM PowerHAL( 299): Processing audio hint. Metadata: state=0

I/VisualizerView( 2576): session=0

V/PanelView( 2576): animationTick called with dtms=0; nothing to do (h=401.0 v=1639.2676)

W/CastMediaRouteProvider(13789): Not a Cast compatible category: MDX_MEDIA_ROUTE_CONTROL_CATEGORY

W/CastMediaRouteProvider(13789): Not a Cast compatible category: android.media.intent.category.LIVE_AUDIO

D/MdnsClient(13789): Multicast lock held. Releasing

D/MdnsClient(13789): #acquireLock. Multicast lock not held. Acquiring

D/SleepAsAndroid( 339): [11:19:22.290, Log-Flusher]: Rotating log files: logbuffer

D/audio_hw_primary( 299): out_standby: enter: stream (0xb84187a8) usecase(1: low-latency-playback)

D/hardware_info( 299): hw_info_append_hw_type : device_name = speaker-cdp

W/PlatformStatsUtil(13789): Could not retrieve Usage & Diagnostics setting. Giving up.

D/DropBoxEntryAddedChimeraService(13789): User is not opted-in to Usage & Diagnostics or Lockbox.

W/PlatformStatsUtil(13789): Could not retrieve Usage & Diagnostics setting. Giving up.

D/DropBoxEntryAddedChimeraService(13789): User is not opted-in to Usage & Diagnostics or Lockbox.

W/PlatformStatsUtil(13789): Could not retrieve Usage & Diagnostics setting. Giving up.

D/DropBoxEntryAddedChimeraService(13789): User is not opted-in to Usage & Diagnostics or Lockbox.

I/ActivityManager( 784): Process com.google.android.gms.persistent (pid 2754) has died.

W/ActivityManager( 784): Scheduling restart of crashed service com.google.android.gms/.clearcut.service.ClearcutLoggerService in 1000ms

W/ActivityManager( 784): Scheduling restart of crashed service com.google.android.gms/.deviceconnection.service.DeviceConnectionServiceBroker in 11000ms

W/ActivityManager( 784): Scheduling restart of crashed service com.google.android.gms/com.google.android.location.internal.server.GoogleLocationService in 21000ms

W/ActivityManager( 784): Scheduling restart of crashed service com.google.android.gms/com.google.android.location.internal.GoogleLocationManagerService in 31000ms

W/art ( 297): Could not get current activity

E/NewsWeather( 2312): onConnectionSuspended 1

I/ActivityManager( 784): Start proc com.google.android.gms.persistent for service com.google.android.gms/.clearcut.service.ClearcutLoggerService: pid=2991 uid=10007 gids={50007, 3007, 2001, 3003, 1007, 3006, 1028, 1015, 1023, 1006, 3002, 3001}

I/art ( 297): Process 2754 terminated by signal (7)

D/ActivityThread( 2991): handleBindApplication:com.google.android.gms.persistent

D/ActivityThread( 2991): setTargetHeapUtilization:0.75