[Galaxy Tab 3 8.0 Android Development] breversa:
GPS*not working after factory reset

Hi tohenk,

First of all, THANK you for your work ! :D

However, I noticed the following behaviour :

- If I flash yesterday's release (cm-12.1-20150727-UNOFFICIAL-lt01wifi.zip) over an existing CM11, GPS works fine.

- But if I do a factory reset after flashing, GPS no longer works properly. Here's what I got when running SatStat (logcat filtered on "gps") :

build.board: smdk4x12
build.bootloader: T310XXUAMK1
build.brand: samsung
build.cpu_abi: armeabi-v7a
build.cpu_abi2: armeabi
build.device: lt01wifi
build.display: cm_lt01wifi-userdebug 5.1.1 LMY48G b54a7058e6 test-keys
build.fingerprint: samsung/lt01wifiue/lt01wifi:4.2.2/JDQ39/T310UEUAMH2:user/release-keys
build.hardware: smdk4x12
build.host: Dev-PC
build.id: LMY48G
build.manufacturer: samsung
build.model: SM-T310
build.product: lt01wifiue
build.radio: unknown
build.serial: 3230551170e260bf
build.tags: test-keys
build.time: 1438010816000
build.type: userdebug
build.user: toha
version.codename: REL
version.incremental: b54a7058e6
version.release: 5.1.1
version.sdk_int: 22

07-28 18:46:15.540 D/gpsd (1811): WakeLock(Release,GPSD)
07-28 18:46:15.545 D/gpsd (1811): GpsHalOneInstance: open("/data/system/gps/.gpsd.lock", O_WRONLY|O_CREAT, 0660) returned -1, errno=13
07-28 18:46:15.545 E/gpsd (1811): Process is already running, the second instance will not be started!
07-28 18:46:20.000 D/gpsd (2144): WakeLock(Release,GPSD)
07-28 18:46:20.000 D/gpsd (2144): GpsHalOneInstance: open("/data/system/gps/.gpsd.lock", O_WRONLY|O_CREAT, 0660) returned -1, errno=13
07-28 18:46:20.000 E/gpsd (2144): Process is already running, the second instance will not be started!
07-28 18:46:25.065 D/gpsd (2185): WakeLock(Release,GPSD)
07-28 18:46:25.070 D/gpsd (2185): GpsHalOneInstance: open("/data/system/gps/.gpsd.lock", O_WRONLY|O_CREAT, 0660) returned -1, errno=13
07-28 18:46:25.070 E/gpsd (2185): Process is already running, the second instance will not be started!
07-28 18:46:27.750 W/PackageManager(2153): Package com.eclipsim.gpsstatus2 desires unavailable shared library com.sec.android.app.multiwindow; ignoring!
07-28 18:46:27.810 W/PackageManager(2153): Package com.eclipsim.gpsstatus2 desires unavailable shared library com.sec.android.app.multiwindow; ignoring!
07-28 18:46:29.400 D/gpsd (2220): WakeLock(Release,GPSD)
07-28 18:46:29.400 D/gpsd (2220): GpsHalOneInstance: open("/data/system/gps/.gpsd.lock", O_WRONLY|O_CREAT, 0660) returned -1, errno=13
07-28 18:46:29.400 E/gpsd (2220): Process is already running, the second instance will not be started!
07-28 18:46:30.380 D/BackupManagerService(2153): Now staging backup of com.eclipsim.gpsstatus2
07-28 18:46:31.840 E/libgps (2153): proxy__gps_get_extension: Unsupported GpsInterface extension: "gps_measurement"
07-28 18:46:31.840 E/libgps (2153): Interface "gps_measurement" is not supported
07-28 18:46:31.840 E/libgps (2153): proxy__gps_get_extension: Unsupported GpsInterface extension: "gps_navigation_message"
07-28 18:46:31.840 E/libgps (2153): Interface "gps_navigation_message" is not supported
07-28 18:46:31.840 E/libgps (2153): proxy__gps_get_extension: Unsupported GpsInterface extension: "gnss_configuration"
07-28 18:46:31.840 E/libgps (2153): Interface "gnss_configuration" is not supported
07-28 18:46:31.850 D/GpsLocationProvider(2153): Reset GPS properties, previous size = 0
07-28 18:46:31.850 D/GpsLocationProvider(2153): GpsParamsResource: SUPL_HOST=supl.google.com
07-28 18:46:31.850 D/GpsLocationProvider(2153): GpsParamsResource: SUPL_PORT=7275
07-28 18:46:31.850 D/GpsLocationProvider(2153): GpsParamsResource: NTP_SERVER=north-america.pool.ntp.org
07-28 18:46:31.850 D/GpsLocationProvider(2153): GpsParamsResource: SUPL_VER=0x20000
07-28 18:46:31.850 D/GpsLocationProvider(2153): GpsParamsResource: SUPL_MODE=1
07-28 18:46:31.850 D/GpsLocationProvider(2153): GPS properties reloaded, size = 8
07-28 18:46:31.855 D/libgps (2153): SendGpsExtensionMessage: Waiting for IPC connection...
07-28 18:46:32.855 D/libgps (2153): SendGpsExtensionMessage: Waiting for IPC connection - timeout
[B]07-28 18:46:32.855 E/libgps (2153): LIBGPS: Cannot communicate (write) with a GPSD
07-28 18:46:32.855 E/libgps (2153): IPC Communication Error, /tmp/13084602_200558/customers/samsung/T0EVOandroid/../../../proprietary/deliverables/android/gps_interface/../gps_interface/gpsi_client/GpsiClient.cpp:612 SendGpsExtensionMessage
[/B]07-28 18:46:32.855 D/libgps (2153): agps_set_server: Waiting for IPC connection...
07-28 18:46:33.685 I/ActivityManager(2153): Start proc 2635:com.vonglasow.michael.satstat/u0a58 for broadcast com.vonglasow.michael.satstat/.GpsEventReceiver
07-28 18:46:33.860 D/libgps (2153): agps_set_server: Waiting for IPC connection - timeout
[B]07-28 18:46:33.860 E/libgps (2153): LIBGPS: Cannot communicate (write) with a GPSD
07-28 18:46:33.860 E/libgps (2153): IPC Communication Error, /tmp/13084602_200558/customers/samsung/T0EVOandroid/../../../proprietary/deliverables/android/gps_interface/../gps_interface/gpsi_client/GpsiClient.cpp:1501 agps_set_server
[/B]07-28 18:46:33.860 E/GpsLocationProvider(2153): no GPS configuration interface in configuraiton_update
07-28 18:46:33.860 D/GpsLocationProvider(2153): final config = #Tue Jul 28 18:46:33 GMT+02:00 2015
07-28 18:46:33.860 D/GpsLocationProvider(2153): SUPL_VER=0x20000
07-28 18:46:33.860 D/GpsLocationProvider(2153): SUPL_HOST=supl.google.com
07-28 18:46:33.860 D/GpsLocationProvider(2153): XTRA_SERVER_3=http\://gllto.glpals.com/4day/glo/v2/latest/lto2.dat
07-28 18:46:33.860 D/GpsLocationProvider(2153): XTRA_SERVER_1=http\://gllto.glpals.com/4day/glo/v2/latest/lto2.dat
07-28 18:46:33.860 D/GpsLocationProvider(2153): SUPL_PORT=7276
07-28 18:46:33.860 D/GpsLocationProvider(2153): XTRA_SERVER_2=http\://gllto.glpals.com/4day/glo/v2/latest/lto2.dat
07-28 18:46:33.860 D/GpsLocationProvider(2153): NTP_SERVER=pool.ntp.org
07-28 18:46:33.860 D/GpsLocationProvider(2153): SUPL_MODE=1
07-28 18:46:33.960 D/libgps (2153): SendGpsExtensionMessage: Waiting for IPC connection...
07-28 18:46:34.370 I/ActivityManager(2153): Start proc 2714:com.eclipsim.gpsstatus2/u0a57 for broadcast com.eclipsim.gpsstatus2/com.eclipsim.gpstoolbox.monitor.GpsBroadcastReceiver
07-28 18:46:34.700 D/GpsNetInitiatedHandler(2153): location enabled :true
07-28 18:46:34.890 D/gpsd (2757): WakeLock(Release,GPSD)
07-28 18:46:34.895 D/gpsd (2757): GpsHalOneInstance: open("/data/system/gps/.gpsd.lock", O_WRONLY|O_CREAT, 0660) returned -1, errno=13
07-28 18:46:34.895 E/gpsd (2757): Process is already running, the second instance will not be started!
07-28 18:46:35.205 D/libgps (2153): SendGpsExtensionMessage: Waiting for IPC connection - timeout
07-28 18:46:35.205 E/libgps (2153): LIBGPS: Cannot communicate (write) with a GPSD
07-28 18:46:35.205 E/libgps (2153): IPC Communication Error, /tmp/13084602_200558/customers/samsung/T0EVOandroid/../../../proprietary/deliverables/android/gps_interface/../gps_interface/gpsi_client/GpsiClient.cpp:612 SendGpsExtensionMessage
07-28 18:46:35.205 D/libgps (2153): agps_set_server: Waiting for IPC connection...
07-28 18:46:35.805 I/dex2oat (2814): /system/bin/dex2oat --runtime-arg -classpath --runtime-arg --instruction-set=arm --instruction-set-features=default --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --dex-file=/data/data/com.eclipsim.gpsstatus2/.뻘爹칟 --oat-fd=28 --oat-location=/data/data/com.eclipsim.gpsstatus2/.㕃ꥳ浦 --runtime-arg -Xms64m --runtime-arg -Xmx512m
07-28 18:46:36.010 I/dex2oat (2850): /system/bin/dex2oat --runtime-arg -classpath --runtime-arg --instruction-set=arm --instruction-set-features=default --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --dex-file=/data/data/com.eclipsim.gpsstatus2/.뻘爹칟 --oat-fd=28 --oat-location=/data/data/com.eclipsim.gpsstatus2/.㕃ꥳ浦 --runtime-arg -Xms64m --runtime-arg -Xmx512m
07-28 18:46:36.085 D/GpsLocationProvider(2153): received SIM change, new known MCC/MNC: []
07-28 18:46:36.115 D/GpsLocationProvider(2153): received SIM change, new known MCC/MNC: []
07-28 18:46:36.760 D/libgps (2153): agps_set_server: Waiting for IPC connection - timeout
07-28 18:46:36.760 E/libgps (2153): LIBGPS: Cannot communicate (write) with a GPSD
07-28 18:46:36.760 E/libgps (2153): IPC Communication Error, /tmp/13084602_200558/customers/samsung/T0EVOandroid/../../../proprietary/deliverables/android/gps_interface/../gps_interface/gpsi_client/GpsiClient.cpp:1501 agps_set_server
07-28 18:46:37.525 D/GpsLocationProvider(2153): received SIM change, new known MCC/MNC: []
07-28 18:46:37.525 D/GpsLocationProvider(2153): received SIM change, new known MCC/MNC: []
07-28 18:46:37.525 D/GpsLocationProvider(2153): received SIM change, new known MCC/MNC: []
07-28 18:46:39.450 D/gpsd (2930): WakeLock(Release,GPSD)
07-28 18:46:39.450 D/gpsd (2930): GpsHalOneInstance: open("/data/system/gps/.gpsd.lock", O_WRONLY|O_CREAT, 0660) returned -1, errno=13
07-28 18:46:39.450 E/gpsd (2930): Process is already running, the second instance will not be started!
07-28 18:46:44.295 D/gpsd (3220): WakeLock(Release,GPSD)
07-28 18:46:44.300 D/gpsd (3220): GpsHalOneInstance: open("/data/system/gps/.gpsd.lock", O_WRONLY|O_CREAT, 0660) returned -1, errno=13
07-28 18:46:44.300 E/gpsd (3220): Process is already running, the second instance will not be started!
07-28 18:46:49.375 D/gpsd (3230): WakeLock(Release,GPSD)
07-28 18:46:49.380 D/gpsd (3230): GpsHalOneInstance: open("/data/system/gps/.gpsd.lock", O_WRONLY|O_CREAT, 0660) returned -1, errno=13
07-28 18:46:49.380 E/gpsd (3230): Process is already running, the second instance will not be started!
07-28 18:46:50.475 D/libgps (2153): SendGpsExtensionMessage: Waiting for IPC connection...
07-28 18:46:50.475 D/MainActivity(3239): Registered with provider: gps
07-28 18:46:51.490 D/libgps (2153): SendGpsExtensionMessage: Waiting for IPC connection - timeout
07-28 18:46:51.490 E/libgps (2153): LIBGPS: Cannot communicate (write) with a GPSD
07-28 18:46:51.490 E/libgps (2153): IPC Communication Error, /tmp/13084602_200558/customers/samsung/T0EVOandroid/../../../proprietary/deliverables/android/gps_interface/../gps_interface/gpsi_client/GpsiClient.cpp:612 SendGpsExtensionMessage
07-28 18:46:51.490 D/libgps (2153): gps_set_position_mode: Waiting for IPC connection...
07-28 18:46:52.505 D/libgps (2153): gps_set_position_mode: Waiting for IPC connection - timeout
07-28 18:46:52.505 E/libgps (2153): LIBGPS: Cannot communicate (write) with a GPSD
07-28 18:46:52.505 E/libgps (2153): IPC Communication Error, /tmp/13084602_200558/customers/samsung/T0EVOandroid/../../../proprietary/deliverables/android/gps_interface/../gps_interface/gpsi_client/GpsiClient.cpp:1337 gps_set_position_mode
07-28 18:46:52.505 E/GpsLocationProvider(2153): set_position_mode failed in startNavigating()
07-28 18:46:54.390 I/ActivityManager(2153): Killing 2714:com.eclipsim.gpsstatus2/u0a57 (adj 15): empty #17
07-28 18:46:54.565 D/gpsd (3268): WakeLock(Release,GPSD)
07-28 18:46:54.565 D/gpsd (3268): GpsHalOneInstance: open("/data/system/gps/.gpsd.lock", O_WRONLY|O_CREAT, 0660) returned -1, errno=13
07-28 18:46:54.565 E/gpsd (3268): Process is already running, the second instance will not be started!
07-28 18:46:59.850 D/gpsd (3308): WakeLock(Release,GPSD)
07-28 18:46:59.855 D/gpsd (3308): GpsHalOneInstance: open("/data/system/gps/.gpsd.lock", O_WRONLY|O_CREAT, 0660) returned -1, errno=13
07-28 18:46:59.855 E/gpsd (3308): Process is already running, the second instance will not be started!
07-28 18:47:04.470 D/gpsd (3353): WakeLock(Release,GPSD)
07-28 18:47:04.475 D/gpsd (3353): GpsHalOneInstance: open("/data/system/gps/.gpsd.lock", O_WRONLY|O_CREAT, 0660) returned -1, errno=13
07-28 18:47:04.475 E/gpsd (3353): Process is already running, the second instance will not be started!
07-28 18:47:09.585 D/gpsd (3394): WakeLock(Release,GPSD)
07-28 18:47:09.590 D/gpsd (3394): GpsHalOneInstance: open("/data/system/gps/.gpsd.lock", O_WRONLY|O_CREAT, 0660) returned -1, errno=13
07-28 18:47:09.590 E/gpsd (3394): Process is already running, the second instance will not be started!
07-28 18:47:14.725 D/gpsd (3402): WakeLock(Release,GPSD)
07-28 18:47:14.725 D/gpsd (3402): GpsHalOneInstance: open("/data/system/gps/.gpsd.lock", O_WRONLY|O_CREAT, 0660) returned -1, errno=13
07-28 18:47:14.725 E/gpsd (3402): Process is already running, the second instance will not be started!
07-28 18:47:19.825 D/gpsd (3409): WakeLock(Release,GPSD)
07-28 18:47:19.830 D/gpsd (3409): GpsHalOneInstance: open("/data/system/gps/.gpsd.lock", O_WRONLY|O_CREAT, 0660) returned -1, errno=13
07-28 18:47:19.830 E/gpsd (3409): Process is already running, the second instance will not be started!

I gave CM12 (gr8nole's latest version) and it gave the same result, so I believe it's more a CM11+ issue rather than a specific CM12.1 one.

Any suggestion ? The error in bold is what worries me the most…