You need to check system logs and see why Traccar Client app process is killed.
Will report back with the logs in about 2 hours =) thanks.
Here are the system logs. It seems that there is an abnormaly high amount of log lines just before the clients stops reporting. This time somehow from the beginning somethin was interfering every now and then with the client. Might be something I tried to prevent the phone from going to sleep, need to check. However, the client still stopped reporting after just above one hour.
Xiaomi A1, Revenge OS, Android 9, System log:
System Log
Abnormaly high systemlog output (lines per minute) before client stopps reporting:
Traccar Server Report during the same time:
Valid Time Latitude Longitude Altitude Speed Address Attributes
TRUE 2019-11-27 19:38:24 47.x 8.x 482 m 0.0 kn 47.x°, 8.x° batteryLevel=73.0 distance=0.28 totalDistance=18885.98 motion=false
TRUE 2019-11-27 19:43:31 47.x 8.x 482 m 0.0 kn 47.x°, 8.x° batteryLevel=73.0 distance=0.06 totalDistance=18886.04 motion=false
TRUE 2019-11-27 19:53:29 47.x 8.x 481 m 0.0 kn 47.x°, 8.x° batteryLevel=73.0 distance=2.7 totalDistance=18888.74 motion=false
TRUE 2019-11-27 19:58:30 47.x 8.x 476 m 0.0 kn 47.x°, 8.x° batteryLevel=73.0 distance=0.73 totalDistance=18889.47 motion=false
TRUE 2019-11-27 20:08:29 47.x 8.x 485 m 0.0 kn 47.x°, 8.x° batteryLevel=73.0 distance=8.47 totalDistance=18897.94 motion=false
TRUE 2019-11-27 20:13:30 47.x 8.x 485 m 0.0 kn 47.x°, 8.x° batteryLevel=73.0 distance=3.3 totalDistance=18901.24 motion=false
TRUE 2019-11-27 20:23:30 47.x 8.x 481 m 0.0 kn 47.x°, 8.x° batteryLevel=73.0 distance=1.07 totalDistance=18902.31 motion=false
TRUE 2019-11-27 20:33:28 47.x 8.x 482 m 0.0 kn 47.x°, 8.x° batteryLevel=73.0 distance=0.66 totalDistance=18902.97 motion=false
TRUE 2019-11-27 20:38:29 47.x 8.x 482 m 0.0 kn 47.x°, 8.x° batteryLevel=73.0 distance=1.34 totalDistance=18904.31 motion=false
TRUE 2019-11-27 20:48:29 47.x 8.x 483 m 0.0 kn 47.x°, 8.x° batteryLevel=73.0 distance=0.89 totalDistance=18905.2 motion=false
TRUE 2019-11-27 21:14:09 47.x 8.x 470 m 0.4 kn 47.x°, 8.x° batteryLevel=73.0 distance=14.23 totalDistance=18919.43 motion=true
Thanks
Have you found anything about Traccar in the logs?
Yes, but is there anything special after the last call to the server at 20:48? Here are all the lines containing traccar from the system log:
11-27 19:36:19.589 I/notification_visibility( 1361): [0|org.traccar.client|1|null|10109,1,42777604,42777604,0,2]
11-27 19:36:20.652 I/sysui_multi_action( 1361): [757,128,758,2,793,42778668,794,1064,795,42778668,796,1,798,2,806,org.traccar.client,857,default,858,2,947,0,1395,4,1500,42778567]
11-27 19:36:20.652 I/notification_visibility( 1361): [0|org.traccar.client|1|null|10109,0,42778668,42778668,0,2]
11-27 19:37:30.180 I/am_create_activity( 1361): [0,218757745,57,org.traccar.client/.Launcher,android.intent.action.MAIN,NULL,NULL,270532608]
11-27 19:37:30.206 I/am_restart_activity( 1361): [0,218757745,57,org.traccar.client/.Launcher]
11-27 19:37:30.208 I/am_set_resumed_activity( 1361): [0,org.traccar.client/.Launcher,minimalResumeActivityLocked]
11-27 19:37:30.254 I/am_on_create_called( 3698): [0,org.traccar.client.Launcher,performCreate]
11-27 19:37:30.290 I/am_on_start_called( 3698): [0,org.traccar.client.Launcher,handleStartActivity]
11-27 19:37:30.291 I/am_on_resume_called( 3698): [0,org.traccar.client.Launcher,RESUME_ACTIVITY]
11-27 19:37:30.401 I/sysui_multi_action( 1361): [319,84,321,78,322,225,325,44210,757,761,758,8,759,1,806,org.traccar.client,871,org.traccar.client.Launcher,904,com.android.launcher3,905,0,1320,8,1321,4]
11-27 19:37:30.402 I/am_activity_launch_time( 1361): [0,218757745,org.traccar.client/.Launcher,225]
11-27 19:37:32.035 I/sysui_multi_action( 1361): [757,128,758,5,759,8,793,42850051,794,72447,795,42850051,796,1,806,org.traccar.client,857,default,858,2,947,0,1395,4,1500,42849950]
11-27 19:37:32.035 I/notification_canceled( 1361): [0|org.traccar.client|1|null|10109,8,42850051,42850051,72447,-1,-1,NULL]
11-27 19:37:33.035 I/am_create_activity( 1361): [0,152143185,57,org.traccar.client/.StatusActivity,NULL,NULL,NULL,0]
11-27 19:37:33.038 I/am_pause_activity( 1361): [0,218757745,org.traccar.client/.Launcher,userLeaving=true]
11-27 19:37:33.042 I/am_on_paused_called( 3698): [0,org.traccar.client.Launcher,performPause]
11-27 19:37:33.044 I/am_restart_activity( 1361): [0,152143185,57,org.traccar.client/.StatusActivity]
11-27 19:37:33.046 I/am_set_resumed_activity( 1361): [0,org.traccar.client/.StatusActivity,minimalResumeActivityLocked]
11-27 19:37:33.069 I/am_on_create_called( 3698): [0,org.traccar.client.StatusActivity,performCreate]
11-27 19:37:33.071 I/am_on_start_called( 3698): [0,org.traccar.client.StatusActivity,handleStartActivity]
11-27 19:37:33.072 I/am_on_resume_called( 3698): [0,org.traccar.client.StatusActivity,RESUME_ACTIVITY]
11-27 19:37:33.520 I/am_stop_activity( 1361): [0,218757745,org.traccar.client/.Launcher]
11-27 19:37:33.542 I/am_on_stop_called( 3698): [0,org.traccar.client.Launcher,STOP_ACTIVITY_ITEM]
11-27 19:37:34.606 I/am_finish_activity( 1361): [0,152143185,57,org.traccar.client/.StatusActivity,app-request]
11-27 19:37:34.607 I/am_pause_activity( 1361): [0,152143185,org.traccar.client/.StatusActivity,userLeaving=false]
11-27 19:37:34.611 I/am_on_paused_called( 3698): [0,org.traccar.client.StatusActivity,performPause]
11-27 19:37:34.613 I/am_set_resumed_activity( 1361): [0,org.traccar.client/.Launcher,resumeTopActivityInnerLocked]
11-27 19:37:34.614 I/am_resume_activity( 1361): [0,218757745,57,org.traccar.client/.Launcher]
11-27 19:37:34.618 I/am_on_restart_called( 3698): [0,org.traccar.client.Launcher,performRestartActivity]
11-27 19:37:34.619 I/am_on_start_called( 3698): [0,org.traccar.client.Launcher,handleStartActivity]
11-27 19:37:34.620 I/am_on_resume_called( 3698): [0,org.traccar.client.Launcher,RESUME_ACTIVITY]
11-27 19:37:35.057 I/am_destroy_activity( 1361): [0,152143185,57,org.traccar.client/.StatusActivity,finish-imm:activityIdleInternalLocked]
11-27 19:37:35.078 I/am_on_stop_called( 3698): [0,org.traccar.client.StatusActivity,LIFECYCLER_STOP_ACTIVITY]
11-27 19:37:35.079 I/am_on_destroy_called( 3698): [0,org.traccar.client.StatusActivity,performDestroy]
11-27 19:37:35.631 I/am_finish_activity( 1361): [0,218757745,57,org.traccar.client/.Launcher,app-request]
11-27 19:37:35.633 I/am_pause_activity( 1361): [0,218757745,org.traccar.client/.Launcher,userLeaving=false]
11-27 19:37:35.637 I/am_on_paused_called( 3698): [0,org.traccar.client.Launcher,performPause]
11-27 19:37:36.204 I/am_destroy_activity( 1361): [0,218757745,57,org.traccar.client/.Launcher,finish-imm:activityIdleInternalLocked]
11-27 19:37:36.221 I/am_on_stop_called( 3698): [0,org.traccar.client.Launcher,LIFECYCLER_STOP_ACTIVITY]
11-27 19:37:36.227 I/am_on_destroy_called( 3698): [0,org.traccar.client.Launcher,performDestroy]
11-27 19:37:39.885 I/am_kill ( 1361): [0,3698,org.traccar.client,900,remove task]
11-27 19:37:39.958 I/am_proc_died( 1361): [0,3698,org.traccar.client,900,17]
11-27 19:38:15.039 I/am_create_activity( 1361): [0,171674391,59,org.traccar.client/.Launcher,android.intent.action.MAIN,NULL,NULL,270532608]
11-27 19:38:15.076 I/am_proc_start( 1361): [0,19784,10109,org.traccar.client,activity,org.traccar.client/.Launcher]
11-27 19:38:15.102 I/am_proc_bound( 1361): [0,19784,org.traccar.client]
11-27 19:38:15.108 I/am_restart_activity( 1361): [0,171674391,59,org.traccar.client/.Launcher]
11-27 19:38:15.110 I/am_set_resumed_activity( 1361): [0,org.traccar.client/.Launcher,minimalResumeActivityLocked]
11-27 19:38:15.175 I/am_on_create_called(19784): [0,org.traccar.client.Launcher,performCreate]
11-27 19:38:15.254 I/am_on_start_called(19784): [0,org.traccar.client.Launcher,handleStartActivity]
11-27 19:38:15.255 I/am_on_resume_called(19784): [0,org.traccar.client.Launcher,RESUME_ACTIVITY]
11-27 19:38:15.421 I/sysui_multi_action( 1361): [319,90,321,57,322,375,325,44255,757,761,758,7,759,1,806,org.traccar.client,871,org.traccar.client.Launcher,904,com.android.launcher3,905,0,945,78,1320,8,1321,4]
11-27 19:38:15.423 I/am_activity_launch_time( 1361): [0,171674391,org.traccar.client/.Launcher,375]
11-27 19:38:16.132 I/notification_enqueue( 1361): [10109,19784,org.traccar.client,1,NULL,0,Notification(channel=default pri=-1 contentView=null vibrate=null sound=null tick defaults=0x0 flags=0x40 color=0xff2e7d32 category=service vis=PRIVATE),0]
11-27 19:38:16.233 I/sysui_multi_action( 1361): [757,1501,758,1,793,102,794,0,795,102,796,1,806,org.traccar.client,857,default,858,2,947,0,1500,0]
11-27 19:38:17.451 I/am_finish_activity( 1361): [0,171674391,59,org.traccar.client/.Launcher,app-request]
11-27 19:38:17.453 I/am_pause_activity( 1361): [0,171674391,org.traccar.client/.Launcher,userLeaving=false]
11-27 19:38:17.456 I/am_on_paused_called(19784): [0,org.traccar.client.Launcher,performPause]
11-27 19:38:17.603 I/am_destroy_activity( 1361): [0,171674391,59,org.traccar.client/.Launcher,finish-imm:activityIdleInternalLocked]
11-27 19:38:17.625 I/am_on_stop_called(19784): [0,org.traccar.client.Launcher,LIFECYCLER_STOP_ACTIVITY]
11-27 19:38:17.631 I/am_on_destroy_called(19784): [0,org.traccar.client.Launcher,performDestroy]
11-27 19:38:24.564 I/sysui_multi_action( 1361): [757,128,758,1,793,8433,794,0,795,8433,796,1,798,1,806,org.traccar.client,857,default,858,2,947,0,1395,2,1500,8331]
11-27 19:38:24.565 I/notification_visibility( 1361): [0|org.traccar.client|1|null|10109,1,8433,8433,0,1]
11-27 19:38:26.857 I/sysui_multi_action( 1361): [757,128,758,2,793,10726,794,2293,795,10726,796,1,798,1,806,org.traccar.client,857,default,858,2,947,0,1395,2,1500,10624]
11-27 19:38:26.857 I/notification_visibility( 1361): [0|org.traccar.client|1|null|10109,0,10726,10726,0,1]
11-27 19:38:27.510 I/sysui_multi_action( 1361): [757,128,758,1,793,11379,794,0,795,11379,796,1,798,1,806,org.traccar.client,857,default,858,2,947,0,1395,2,1500,11277]
11-27 19:38:27.510 I/notification_visibility( 1361): [0|org.traccar.client|1|null|10109,1,11379,11379,0,1]
11-27 19:38:30.936 I/sysui_multi_action( 1361): [757,128,758,2,793,14805,794,3426,795,14805,796,1,798,1,806,org.traccar.client,857,default,858,2,947,0,1395,2,1500,14703]
11-27 19:38:30.936 I/notification_visibility( 1361): [0|org.traccar.client|1|null|10109,0,14805,14805,0,1]
11-27 19:38:42.439 I/am_pss ( 1361): [19784,10109,org.traccar.client,22681600,17293312,0,140546048,0,3,55]
11-27 19:39:26.639 I/am_pss ( 1361): [19784,10109,org.traccar.client,22708224,17326080,0,140558336,0,3,56]
11-27 19:40:45.108 I/sysui_multi_action( 1361): [757,128,758,1,793,148977,794,0,795,148977,796,1,798,1,806,org.traccar.client,857,default,858,2,947,0,1395,2,1500,148875]
11-27 19:40:45.108 I/notification_visibility( 1361): [0|org.traccar.client|1|null|10109,1,148977,148977,0,1]
11-27 19:40:45.621 I/sysui_multi_action( 1361): [757,128,758,2,793,149490,794,513,795,149490,796,1,798,1,806,org.traccar.client,857,default,858,2,947,0,1395,2,1500,149388]
11-27 19:40:45.621 I/notification_visibility( 1361): [0|org.traccar.client|1|null|10109,0,149490,149490,0,1]
11-27 19:42:26.934 I/sysui_multi_action( 1361): [757,128,758,1,793,250803,794,0,795,250803,796,1,798,1,806,org.traccar.client,857,default,858,2,947,0,1395,2,1500,250701]
11-27 19:42:26.934 I/notification_visibility( 1361): [0|org.traccar.client|1|null|10109,1,250803,250803,0,1]
11-27 19:42:27.457 I/sysui_multi_action( 1361): [757,128,758,2,793,251326,794,523,795,251326,796,1,798,1,806,org.traccar.client,857,default,858,2,947,0,1395,2,1500,251224]
11-27 19:42:27.457 I/notification_visibility( 1361): [0|org.traccar.client|1|null|10109,0,251326,251326,0,1]
11-27 19:42:42.063 I/sysui_multi_action( 1361): [757,128,758,1,793,265932,794,0,795,265932,796,1,798,2,806,org.traccar.client,857,default,858,2,947,0,1395,3,1500,265830]
11-27 19:42:42.064 I/notification_visibility( 1361): [0|org.traccar.client|1|null|10109,1,265932,265932,0,2]
11-27 19:42:45.645 I/notification_expansion( 1361): [0|org.traccar.client|1|null|10109,0,1,269514,269514,3582]
11-27 19:42:48.001 I/sysui_multi_action( 1361): [757,128,758,2,793,271870,794,5938,795,271870,796,1,798,0,806,org.traccar.client,857,default,858,2,947,0,1395,1,1500,271768]
11-27 19:42:48.001 I/notification_visibility( 1361): [0|org.traccar.client|1|null|10109,0,271870,271870,0,0]
11-27 19:42:52.580 I/am_create_activity( 1361): [0,86163771,59,org.traccar.client/.MainActivity,android.intent.action.MAIN,NULL,NULL,271581184]
11-27 19:42:52.601 I/am_restart_activity( 1361): [0,86163771,59,org.traccar.client/.MainActivity]
11-27 19:42:52.603 I/am_set_resumed_activity( 1361): [0,org.traccar.client/.MainActivity,minimalResumeActivityLocked]
11-27 19:42:52.623 I/am_on_create_called(19784): [0,org.traccar.client.MainActivity,performCreate]
11-27 19:42:52.664 I/am_on_start_called(19784): [0,org.traccar.client.MainActivity,handleStartActivity]
11-27 19:42:52.666 I/am_on_resume_called(19784): [0,org.traccar.client.MainActivity,RESUME_ACTIVITY]
11-27 19:42:52.766 I/sysui_multi_action( 1361): [319,76,321,70,322,188,325,44531,757,761,758,8,759,1,806,org.traccar.client,871,org.traccar.client.MainActivity,904,com.android.launcher3,905,0,1320,8,1321,4]
11-27 19:42:52.767 I/am_activity_launch_time( 1361): [0,86163771,org.traccar.client/.MainActivity,188]
11-27 19:42:53.315 I/sysui_multi_action( 1361): [757,128,758,5,759,8,793,277184,794,11252,795,277184,796,1,806,org.traccar.client,857,default,858,2,947,0,1395,1,1500,277082]
11-27 19:42:53.315 I/notification_canceled( 1361): [0|org.traccar.client|1|null|10109,8,277184,277184,11252,-1,-1,NULL]
11-27 19:42:53.950 I/am_create_activity( 1361): [0,223157247,59,org.traccar.client/.StatusActivity,NULL,NULL,NULL,0]
11-27 19:42:53.953 I/am_pause_activity( 1361): [0,86163771,org.traccar.client/.MainActivity,userLeaving=true]
11-27 19:42:53.957 I/am_on_paused_called(19784): [0,org.traccar.client.MainActivity,performPause]
11-27 19:42:53.960 I/am_restart_activity( 1361): [0,223157247,59,org.traccar.client/.StatusActivity]
11-27 19:42:53.961 I/am_set_resumed_activity( 1361): [0,org.traccar.client/.StatusActivity,minimalResumeActivityLocked]
11-27 19:42:53.985 I/am_on_create_called(19784): [0,org.traccar.client.StatusActivity,performCreate]
11-27 19:42:53.987 I/am_on_start_called(19784): [0,org.traccar.client.StatusActivity,handleStartActivity]
11-27 19:42:53.988 I/am_on_resume_called(19784): [0,org.traccar.client.StatusActivity,RESUME_ACTIVITY]
11-27 19:42:54.436 I/am_stop_activity( 1361): [0,86163771,org.traccar.client/.MainActivity]
11-27 19:42:54.456 I/am_on_stop_called(19784): [0,org.traccar.client.MainActivity,STOP_ACTIVITY_ITEM]
11-27 19:42:55.221 I/am_finish_activity( 1361): [0,223157247,59,org.traccar.client/.StatusActivity,app-request]
11-27 19:42:55.222 I/am_pause_activity( 1361): [0,223157247,org.traccar.client/.StatusActivity,userLeaving=false]
11-27 19:42:55.226 I/am_on_paused_called(19784): [0,org.traccar.client.StatusActivity,performPause]
11-27 19:42:55.227 I/am_set_resumed_activity( 1361): [0,org.traccar.client/.MainActivity,resumeTopActivityInnerLocked]
11-27 19:42:55.228 I/am_resume_activity( 1361): [0,86163771,59,org.traccar.client/.MainActivity]
11-27 19:42:55.232 I/am_on_restart_called(19784): [0,org.traccar.client.MainActivity,performRestartActivity]
11-27 19:42:55.233 I/am_on_start_called(19784): [0,org.traccar.client.MainActivity,handleStartActivity]
11-27 19:42:55.251 I/am_on_resume_called(19784): [0,org.traccar.client.MainActivity,RESUME_ACTIVITY]
11-27 19:42:55.368 I/am_finish_activity( 1361): [0,86163771,59,org.traccar.client/.MainActivity,app-request]
11-27 19:42:55.371 I/am_pause_activity( 1361): [0,86163771,org.traccar.client/.MainActivity,userLeaving=false]
11-27 19:42:55.375 I/am_on_paused_called(19784): [0,org.traccar.client.MainActivity,performPause]
11-27 19:42:55.906 I/am_destroy_activity( 1361): [0,86163771,59,org.traccar.client/.MainActivity,finish-imm:activityIdleInternalLocked]
11-27 19:42:55.906 I/am_destroy_activity( 1361): [0,223157247,59,org.traccar.client/.StatusActivity,finish-imm:activityIdleInternalLocked]
11-27 19:42:55.932 I/am_on_stop_called(19784): [0,org.traccar.client.MainActivity,LIFECYCLER_STOP_ACTIVITY]
11-27 19:42:55.937 I/am_on_destroy_called(19784): [0,org.traccar.client.MainActivity,performDestroy]
11-27 19:42:55.942 I/am_on_stop_called(19784): [0,org.traccar.client.StatusActivity,LIFECYCLER_STOP_ACTIVITY]
11-27 19:42:55.943 I/am_on_destroy_called(19784): [0,org.traccar.client.StatusActivity,performDestroy]
11-27 19:43:16.051 I/am_pss ( 1361): [19784,10109,org.traccar.client,24209408,19423232,0,141553664,0,17,35]
11-27 19:43:22.281 I/am_create_activity( 1361): [0,220524223,61,org.traccar.client/.Launcher,android.intent.action.MAIN,NULL,NULL,270532608]
11-27 19:43:22.308 I/am_restart_activity( 1361): [0,220524223,61,org.traccar.client/.Launcher]
11-27 19:43:22.309 I/am_set_resumed_activity( 1361): [0,org.traccar.client/.Launcher,minimalResumeActivityLocked]
11-27 19:43:22.328 I/am_on_create_called(19784): [0,org.traccar.client.Launcher,performCreate]
11-27 19:43:22.370 I/am_on_start_called(19784): [0,org.traccar.client.Launcher,handleStartActivity]
11-27 19:43:22.371 I/am_on_resume_called(19784): [0,org.traccar.client.Launcher,RESUME_ACTIVITY]
11-27 19:43:22.473 I/sysui_multi_action( 1361): [319,72,321,61,322,195,325,44561,757,761,758,8,759,1,806,org.traccar.client,871,org.traccar.client.Launcher,904,com.android.launcher3,905,0,1320,8,1321,4]
11-27 19:43:22.479 I/am_activity_launch_time( 1361): [0,220524223,org.traccar.client/.Launcher,195]
11-27 19:43:24.044 I/notification_enqueue( 1361): [10109,19784,org.traccar.client,1,NULL,0,Notification(channel=default pri=-1 contentView=null vibrate=null sound=null tick defaults=0x0 flags=0x40 color=0xff2e7d32 category=service vis=PRIVATE),0]
11-27 19:43:24.145 I/sysui_multi_action( 1361): [757,1501,758,1,793,101,794,0,795,101,796,1,806,org.traccar.client,857,default,858,2,947,0,1500,0]
11-27 19:43:24.193 I/notification_expansion( 1361): [0|org.traccar.client|1|null|10109,0,1,149,149,0]
11-27 19:43:25.770 I/am_finish_activity( 1361): [0,220524223,61,org.traccar.client/.Launcher,app-request]
11-27 19:43:25.773 I/am_pause_activity( 1361): [0,220524223,org.traccar.client/.Launcher,userLeaving=false]
11-27 19:43:25.782 I/am_on_paused_called(19784): [0,org.traccar.client.Launcher,performPause]
11-27 19:43:26.305 I/am_destroy_activity( 1361): [0,220524223,61,org.traccar.client/.Launcher,finish-imm:activityIdleInternalLocked]
11-27 19:43:26.330 I/am_on_stop_called(19784): [0,org.traccar.client.Launcher,LIFECYCLER_STOP_ACTIVITY]
11-27 19:43:26.336 I/am_on_destroy_called(19784): [0,org.traccar.client.Launcher,performDestroy]
11-27 19:43:30.551 I/notification_expansion( 1361): [0|org.traccar.client|1|null|10109,0,0,6507,6507,0]
11-27 19:58:28.245 I/am_pss ( 1361): [19784,10109,org.traccar.client,26007552,21139456,0,142770176,0,3,33]
11-27 20:13:30.720 I/am_pss ( 1361): [19784,10109,org.traccar.client,26688512,21356544,0,143183872,0,3,50]
11-27 20:36:06.536 I/am_pss ( 1361): [19784,10109,org.traccar.client,26482688,21147648,0,142974976,0,3,53]
11-27 21:09:55.816 I/am_pss ( 1361): [19784,10109,org.traccar.client,26768384,21413888,0,143372288,0,3,55]
11-27 21:14:01.119 I/sysui_multi_action( 1361): [757,128,758,1,793,5437075,794,0,795,5437075,796,1,798,0,806,org.traccar.client,857,default,858,2,947,0,1395,1,1500,5436974]
11-27 21:14:01.120 I/notification_visibility( 1361): [0|org.traccar.client|1|null|10109,1,5437075,5437075,0,0]
11-27 21:14:01.633 I/sysui_multi_action( 1361): [757,128,758,2,793,5437589,794,514,795,5437589,796,1,798,0,806,org.traccar.client,857,default,858,2,947,0,1395,1,1500,5437488]
11-27 21:14:01.633 I/notification_visibility( 1361): [0|org.traccar.client|1|null|10109,0,5437589,5437589,0,0]
11-27 21:14:04.319 I/notification_expansion( 1361): [0|org.traccar.client|1|null|10109,0,1,5440275,5440275,3200]
11-27 21:14:04.320 I/notification_expansion( 1361): [0|org.traccar.client|1|null|10109,0,0,5440276,5440276,3201]
11-27 21:14:04.899 I/am_pss ( 1361): [19784,10109,org.traccar.client,26661888,21442560,0,143400960,1,3,32]
11-27 21:14:06.439 I/am_create_activity( 1361): [0,126155278,62,org.traccar.client/.Launcher,android.intent.action.MAIN,NULL,NULL,270532608]
11-27 21:14:06.464 I/am_restart_activity( 1361): [0,126155278,62,org.traccar.client/.Launcher]
11-27 21:14:06.465 I/am_set_resumed_activity( 1361): [0,org.traccar.client/.Launcher,minimalResumeActivityLocked]
11-27 21:14:06.481 I/am_on_create_called(19784): [0,org.traccar.client.Launcher,performCreate]
11-27 21:14:06.516 I/am_on_start_called(19784): [0,org.traccar.client.Launcher,handleStartActivity]
11-27 21:14:06.517 I/am_on_resume_called(19784): [0,org.traccar.client.Launcher,RESUME_ACTIVITY]
11-27 21:14:06.610 I/sysui_multi_action( 1361): [319,60,321,55,322,181,325,50005,757,761,758,8,759,1,806,org.traccar.client,871,org.traccar.client.Launcher,904,com.android.launcher3,905,0,1320,8,1321,4]
11-27 21:14:06.611 I/am_activity_launch_time( 1361): [0,126155278,org.traccar.client/.Launcher,181]
11-27 21:14:08.956 I/am_pause_activity( 1361): [0,126155278,org.traccar.client/.Launcher,userLeaving=true]
11-27 21:14:08.958 I/am_on_paused_called(19784): [0,org.traccar.client.Launcher,performPause]
11-27 21:14:08.987 I/am_stop_activity( 1361): [0,126155278,org.traccar.client/.Launcher]
11-27 21:14:08.999 I/am_on_stop_called(19784): [0,org.traccar.client.Launcher,STOP_ACTIVITY_ITEM]
What happened here:
11-27 19:43:25.782 I/am_on_paused_called(19784): [0,org.traccar.client.Launcher,performPause]
11-27 19:43:26.305 I/am_destroy_activity( 1361): [0,220524223,61,org.traccar.client/.Launcher,finish-imm:activityIdleInternalLocked]
11-27 19:43:26.330 I/am_on_stop_called(19784): [0,org.traccar.client.Launcher,LIFECYCLER_STOP_ACTIVITY]
11-27 19:43:26.336 I/am_on_destroy_called(19784): [0,org.traccar.client.Launcher,performDestroy]
Good question, the destroy commands appear at 19:37 for the first time. However the client still reports later on.
The phone was installed with a clean Revenge OS Rom with only magisk for root, traccar client and syslog installed. Nothing else was running and the phone was not touched or moved during the two hours. I just flashed Lineage OS and will do the same tomorrow and report back. Curious to see if I get the same messages after the same amount of time passed when the phone is left untouched.
11-27 19:37:35.057 I/am_destroy_activity( 1361): [0,152143185,57,org.traccar.client/.StatusActivity,finish-imm:activityIdleInternalLocked]
11-27 19:37:35.079 I/am_on_destroy_called( 3698): [0,org.traccar.client.StatusActivity,performDestroy]
11-27 19:37:36.204 I/am_destroy_activity( 1361): [0,218757745,57,org.traccar.client/.Launcher,finish-imm:activityIdleInternalLocked]
11-27 19:37:36.227 I/am_on_destroy_called( 3698): [0,org.traccar.client.Launcher,performDestroy]
11-27 19:38:17.603 I/am_destroy_activity( 1361): [0,171674391,59,org.traccar.client/.Launcher,finish-imm:activityIdleInternalLocked]
11-27 19:38:17.631 I/am_on_destroy_called(19784): [0,org.traccar.client.Launcher,performDestroy]
11-27 19:42:55.906 I/am_destroy_activity( 1361): [0,86163771,59,org.traccar.client/.MainActivity,finish-imm:activityIdleInternalLocked]
11-27 19:42:55.906 I/am_destroy_activity( 1361): [0,223157247,59,org.traccar.client/.StatusActivity,finish-imm:activityIdleInternalLocked]
11-27 19:42:55.937 I/am_on_destroy_called(19784): [0,org.traccar.client.MainActivity,performDestroy]
11-27 19:42:55.943 I/am_on_destroy_called(19784): [0,org.traccar.client.StatusActivity,performDestroy]
11-27 19:43:26.305 I/am_destroy_activity( 1361): [0,220524223,61,org.traccar.client/.Launcher,finish-imm:activityIdleInternalLocked]
11-27 19:43:26.336 I/am_on_destroy_called(19784): [0,org.traccar.client.Launcher,performDestroy]
So today I flashed the Pixel experience OS 20190829-0942-Official (Android 9) to the Xiaomi A1, added magisk for root, traccar client and syslog. Nothing else was activated or installed. The traccar client was set to not optimize under battery management, no battery saver etc has been activated.
The client was started, the phone locked and not touched for 3 hours. Interesting is, that again the client stops after exactly 60 minutes. This time however, the process was not destroyed once. (Only at the beginning, but that was me starting the client again) I couldn't find anything suspicous. It seems the phone just goes to a deeper sleep where the WakeLock's don't seem to work anymore. When I unlocked the screen after 3 hours the client immediatly starts reporting again.
Below the reported coordinates on the server, the events containing traccar. I also uploaded the complete log again:
Server GPS updates:
Valid Time comment Latitude Longitude Altitude Speed Address Attributes
TRUE 2019-11-28 11:58:35 started client 47.X 8.X 0 m 0.0 kn 47.X°, 8.X° batteryLevel=85.0 distance=0.0 totalDistance=35413.22 motion=false
TRUE 2019-11-28 12:03:35 47.X 8.X 0 m 0.0 kn 47.X°, 8.X° batteryLevel=85.0 distance=0.0 totalDistance=35413.22 motion=false
TRUE 2019-11-28 12:08:35 47.X 8.X 0 m 0.0 kn 47.X°, 8.X° batteryLevel=85.0 distance=785.74 totalDistance=36198.96 motion=false
TRUE 2019-11-28 12:13:35 47.X 8.X 0 m 0.0 kn 47.X°, 8.X° batteryLevel=85.0 distance=785.74 totalDistance=36984.7 motion=false
TRUE 2019-11-28 12:18:37 47.X 8.X 0 m 0.0 kn 47.X°, 8.X° batteryLevel=85.0 distance=0.0 totalDistance=36984.7 motion=false
TRUE 2019-11-28 12:23:37 47.X 8.X 0 m 0.0 kn 47.X°, 8.X° batteryLevel=85.0 distance=0.0 totalDistance=36984.7 motion=false
TRUE 2019-11-28 12:28:37 47.X 8.X 0 m 0.0 kn 47.X°, 8.X° batteryLevel=85.0 distance=0.0 totalDistance=36984.7 motion=false
TRUE 2019-11-28 12:33:37 47.X 8.X 0 m 0.0 kn 47.X°, 8.X° batteryLevel=85.0 distance=0.0 totalDistance=36984.7 motion=false
TRUE 2019-11-28 12:38:37 47.X 8.X 0 m 0.0 kn 47.X°, 8.X° batteryLevel=85.0 distance=0.0 totalDistance=36984.7 motion=false
TRUE 2019-11-28 12:43:37 47.X 8.X 0 m 0.0 kn 47.X°, 8.X° batteryLevel=85.0 distance=0.0 totalDistance=36984.7 motion=false
TRUE 2019-11-28 12:48:37 last regular call by traccar client 47.X 8.X 0 m 0.0 kn 47.X°, 8.X° batteryLevel=85.0 distance=0.0 totalDistance=36984.7 motion=false
TRUE 2019-11-28 13:40:59 47.X 8.X 0 m 0.0 kn 47.X°, 8.X° batteryLevel=85.0 distance=0.0 totalDistance=36984.7 motion=false
TRUE 2019-11-28 14:55:55 unlocked screen 47.X 8.X 0 m 0.0 kn 47.X°, 8.X° batteryLevel=84.0 distance=0.0 totalDistance=36984.7 motion=false
TRUE 2019-11-28 15:01:13 47.X 8.X 0 m 0.0 kn 47.X°, 8.X° batteryLevel=84.0 distance=113.4 totalDistance=37098.1 motion=false
TRUE 2019-11-28 15:06:31 47.X 8.X 0 m 0.0 kn 47.X°, 8.X° batteryLevel=84.0 distance=0.0 totalDistance=37098.1 motion=false
TRUE 2019-11-28 15:11:31 47.X 8.X 0 m 0.0 kn 47.X°, 8.X° batteryLevel=84.0 distance=0.0 totalDistance=37098.1 motion=false
Events containing traccar during the 3 hours
11-28 11:43:01.209 I/sysui_multi_action( 1376): [757,128,758,1,793,3229969,794,0,795,3229969,796,1,798,0,806,org.traccar.client,857,default,858,2,947,0,1395,1,1500,3229868]
11-28 11:43:01.209 I/notification_visibility( 1376): [0|org.traccar.client|1|null|10086,1,3229969,3229969,0,0]
11-28 11:43:01.682 I/sysui_multi_action( 1376): [757,128,758,2,793,3230442,794,473,795,3230442,796,1,798,0,806,org.traccar.client,857,default,858,2,947,0,1395,1,1500,3230341]
11-28 11:43:01.682 I/notification_visibility( 1376): [0|org.traccar.client|1|null|10086,0,3230442,3230442,0,0]
11-28 11:43:02.832 I/am_set_resumed_activity( 1376): [0,org.traccar.client/.StatusActivity,resumeTopActivityInnerLocked]
11-28 11:43:02.837 I/am_resume_activity( 1376): [0,100945194,34,org.traccar.client/.StatusActivity]
11-28 11:43:02.847 I/am_on_restart_called( 7869): [0,org.traccar.client.StatusActivity,performRestartActivity]
11-28 11:43:02.848 I/am_on_start_called( 7869): [0,org.traccar.client.StatusActivity,handleStartActivity]
11-28 11:43:02.849 I/am_on_resume_called( 7869): [0,org.traccar.client.StatusActivity,RESUME_ACTIVITY]
11-28 11:43:02.877 I/notification_expansion( 1376): [0|org.traccar.client|1|null|10086,0,1,3231637,3231637,1668]
11-28 11:43:05.144 I/am_finish_activity( 1376): [0,100945194,34,org.traccar.client/.StatusActivity,app-request]
11-28 11:43:05.145 I/am_pause_activity( 1376): [0,100945194,org.traccar.client/.StatusActivity,userLeaving=false]
11-28 11:43:05.150 I/am_on_paused_called( 7869): [0,org.traccar.client.StatusActivity,performPause]
11-28 11:43:05.153 I/am_set_resumed_activity( 1376): [0,org.traccar.client/.Launcher,resumeTopActivityInnerLocked]
11-28 11:43:05.156 I/am_resume_activity( 1376): [0,49519981,34,org.traccar.client/.Launcher]
11-28 11:43:05.162 I/am_on_restart_called( 7869): [0,org.traccar.client.Launcher,performRestartActivity]
11-28 11:43:05.163 I/am_on_start_called( 7869): [0,org.traccar.client.Launcher,handleStartActivity]
11-28 11:43:05.163 I/am_on_resume_called( 7869): [0,org.traccar.client.Launcher,RESUME_ACTIVITY]
11-28 11:43:05.624 I/am_destroy_activity( 1376): [0,100945194,34,org.traccar.client/.StatusActivity,finish-imm:activityIdleInternalLocked]
11-28 11:43:05.646 I/am_on_stop_called( 7869): [0,org.traccar.client.StatusActivity,LIFECYCLER_STOP_ACTIVITY]
11-28 11:43:05.646 I/am_on_destroy_called( 7869): [0,org.traccar.client.StatusActivity,performDestroy]
11-28 11:43:06.206 I/am_finish_activity( 1376): [0,49519981,34,org.traccar.client/.Launcher,app-request]
11-28 11:43:06.208 I/am_pause_activity( 1376): [0,49519981,org.traccar.client/.Launcher,userLeaving=false]
11-28 11:43:06.214 I/am_on_paused_called( 7869): [0,org.traccar.client.Launcher,performPause]
11-28 11:43:06.766 I/am_destroy_activity( 1376): [0,49519981,34,org.traccar.client/.Launcher,finish-imm:activityIdleInternalLocked]
11-28 11:43:06.789 I/am_on_stop_called( 7869): [0,org.traccar.client.Launcher,LIFECYCLER_STOP_ACTIVITY]
11-28 11:43:06.794 I/am_on_destroy_called( 7869): [0,org.traccar.client.Launcher,performDestroy]
11-28 11:43:22.160 I/am_create_activity( 1376): [0,211352764,35,org.traccar.client/.Launcher,android.intent.action.MAIN,NULL,NULL,270532608]
11-28 11:43:22.179 I/am_restart_activity( 1376): [0,211352764,35,org.traccar.client/.Launcher]
11-28 11:43:22.179 I/am_set_resumed_activity( 1376): [0,org.traccar.client/.Launcher,minimalResumeActivityLocked]
11-28 11:43:22.187 I/am_on_create_called( 7869): [0,org.traccar.client.Launcher,performCreate]
11-28 11:43:22.220 I/am_on_start_called( 7869): [0,org.traccar.client.Launcher,handleStartActivity]
11-28 11:43:22.221 I/am_on_resume_called( 7869): [0,org.traccar.client.Launcher,RESUME_ACTIVITY]
11-28 11:43:22.323 I/sysui_multi_action( 1376): [319,53,321,50,322,167,325,11593,757,761,758,8,759,1,806,org.traccar.client,871,org.traccar.client.Launcher,904,com.google.android.apps.nexuslauncher,905,0,1320,8,1321,4]
11-28 11:43:22.326 I/am_activity_launch_time( 1376): [0,211352764,org.traccar.client/.Launcher,167]
11-28 11:43:24.023 I/am_pause_activity( 1376): [0,211352764,org.traccar.client/.Launcher,userLeaving=true]
11-28 11:43:24.032 I/am_on_paused_called( 7869): [0,org.traccar.client.Launcher,performPause]
11-28 11:43:24.046 I/am_stop_activity( 1376): [0,211352764,org.traccar.client/.Launcher]
11-28 11:43:24.069 I/am_on_stop_called( 7869): [0,org.traccar.client.Launcher,STOP_ACTIVITY_ITEM]
11-28 11:43:25.130 I/am_new_intent( 1376): [0,211352764,35,org.traccar.client/.Launcher,android.intent.action.MAIN,NULL,NULL,270532608]
11-28 11:43:25.146 I/am_set_resumed_activity( 1376): [0,org.traccar.client/.Launcher,resumeTopActivityInnerLocked]
11-28 11:43:25.153 I/am_resume_activity( 1376): [0,211352764,35,org.traccar.client/.Launcher]
11-28 11:43:25.158 I/am_on_restart_called( 7869): [0,org.traccar.client.Launcher,performRestartActivity]
11-28 11:43:25.168 I/am_on_start_called( 7869): [0,org.traccar.client.Launcher,handleStartActivity]
11-28 11:43:25.170 I/am_on_resume_called( 7869): [0,org.traccar.client.Launcher,RESUME_ACTIVITY]
11-28 11:43:25.205 I/sysui_multi_action( 1376): [319,32,321,27,322,63,325,11596,757,761,758,9,759,4,806,org.traccar.client,871,org.traccar.client.Launcher,904,com.google.android.apps.nexuslauncher,905,0,1320,8,1321,4]
11-28 11:43:26.307 I/sysui_multi_action( 1376): [757,128,758,5,759,8,793,3255067,794,25098,795,3255067,796,1,806,org.traccar.client,857,default,858,2,947,0,1395,1,1500,3254966]
11-28 11:43:26.307 I/notification_canceled( 1376): [0|org.traccar.client|1|null|10086,8,3255067,3255067,25098,-1,-1,NULL]
11-28 11:43:26.740 I/am_create_activity( 1376): [0,8315469,35,org.traccar.client/.StatusActivity,NULL,NULL,NULL,0]
11-28 11:43:26.742 I/am_pause_activity( 1376): [0,211352764,org.traccar.client/.Launcher,userLeaving=true]
11-28 11:43:26.747 I/am_on_paused_called( 7869): [0,org.traccar.client.Launcher,performPause]
11-28 11:43:26.749 I/am_restart_activity( 1376): [0,8315469,35,org.traccar.client/.StatusActivity]
11-28 11:43:26.750 I/am_set_resumed_activity( 1376): [0,org.traccar.client/.StatusActivity,minimalResumeActivityLocked]
11-28 11:43:26.776 I/am_on_create_called( 7869): [0,org.traccar.client.StatusActivity,performCreate]
11-28 11:43:26.778 I/am_on_start_called( 7869): [0,org.traccar.client.StatusActivity,handleStartActivity]
11-28 11:43:26.780 I/am_on_resume_called( 7869): [0,org.traccar.client.StatusActivity,RESUME_ACTIVITY]
11-28 11:43:27.262 I/am_stop_activity( 1376): [0,211352764,org.traccar.client/.Launcher]
11-28 11:43:27.285 I/am_on_stop_called( 7869): [0,org.traccar.client.Launcher,STOP_ACTIVITY_ITEM]
11-28 11:43:28.442 I/am_finish_activity( 1376): [0,8315469,35,org.traccar.client/.StatusActivity,app-request]
11-28 11:43:28.443 I/am_pause_activity( 1376): [0,8315469,org.traccar.client/.StatusActivity,userLeaving=false]
11-28 11:43:28.457 I/am_on_paused_called( 7869): [0,org.traccar.client.StatusActivity,performPause]
11-28 11:43:28.462 I/am_set_resumed_activity( 1376): [0,org.traccar.client/.Launcher,resumeTopActivityInnerLocked]
11-28 11:43:28.464 I/am_resume_activity( 1376): [0,211352764,35,org.traccar.client/.Launcher]
11-28 11:43:28.476 I/am_on_restart_called( 7869): [0,org.traccar.client.Launcher,performRestartActivity]
11-28 11:43:28.478 I/am_on_start_called( 7869): [0,org.traccar.client.Launcher,handleStartActivity]
11-28 11:43:28.479 I/am_on_resume_called( 7869): [0,org.traccar.client.Launcher,RESUME_ACTIVITY]
11-28 11:43:28.968 I/am_destroy_activity( 1376): [0,8315469,35,org.traccar.client/.StatusActivity,finish-imm:activityIdleInternalLocked]
11-28 11:43:28.988 I/am_on_stop_called( 7869): [0,org.traccar.client.StatusActivity,LIFECYCLER_STOP_ACTIVITY]
11-28 11:43:28.989 I/am_on_destroy_called( 7869): [0,org.traccar.client.StatusActivity,performDestroy]
11-28 11:43:29.791 I/am_finish_activity( 1376): [0,211352764,35,org.traccar.client/.Launcher,app-request]
11-28 11:43:29.794 I/am_pause_activity( 1376): [0,211352764,org.traccar.client/.Launcher,userLeaving=false]
11-28 11:43:29.801 I/am_on_paused_called( 7869): [0,org.traccar.client.Launcher,performPause]
11-28 11:43:30.319 I/am_destroy_activity( 1376): [0,211352764,35,org.traccar.client/.Launcher,finish-imm:activityIdleInternalLocked]
11-28 11:43:30.337 I/am_on_stop_called( 7869): [0,org.traccar.client.Launcher,LIFECYCLER_STOP_ACTIVITY]
11-28 11:43:30.341 I/am_on_destroy_called( 7869): [0,org.traccar.client.Launcher,performDestroy]
11-28 11:45:16.168 I/am_create_activity( 1376): [0,144880798,39,org.traccar.client/.Launcher,android.intent.action.MAIN,NULL,NULL,270532608]
11-28 11:45:16.187 I/am_restart_activity( 1376): [0,144880798,39,org.traccar.client/.Launcher]
11-28 11:45:16.188 I/am_set_resumed_activity( 1376): [0,org.traccar.client/.Launcher,minimalResumeActivityLocked]
11-28 11:45:16.201 I/am_on_create_called( 7869): [0,org.traccar.client.Launcher,performCreate]
11-28 11:45:16.240 I/am_on_start_called( 7869): [0,org.traccar.client.Launcher,handleStartActivity]
11-28 11:45:16.241 I/am_on_resume_called( 7869): [0,org.traccar.client.Launcher,RESUME_ACTIVITY]
11-28 11:45:16.378 I/sysui_multi_action( 1376): [319,60,321,56,322,209,325,11688,757,761,758,8,759,1,806,org.traccar.client,871,org.traccar.client.Launcher,904,com.google.android.apps.nexuslauncher,905,0,1320,8,1321,4]
11-28 11:45:16.379 I/am_activity_launch_time( 1376): [0,144880798,org.traccar.client/.Launcher,209]
11-28 11:45:17.076 I/am_pause_activity( 1376): [0,144880798,org.traccar.client/.Launcher,userLeaving=true]
11-28 11:45:17.078 I/am_on_paused_called( 7869): [0,org.traccar.client.Launcher,performPause]
11-28 11:45:17.098 I/am_stop_activity( 1376): [0,144880798,org.traccar.client/.Launcher]
11-28 11:45:17.112 I/am_on_stop_called( 7869): [0,org.traccar.client.Launcher,STOP_ACTIVITY_ITEM]
11-28 11:46:48.026 I/am_new_intent( 1376): [0,144880798,39,org.traccar.client/.Launcher,android.intent.action.MAIN,NULL,NULL,270532608]
11-28 11:46:48.044 I/am_set_resumed_activity( 1376): [0,org.traccar.client/.Launcher,resumeTopActivityInnerLocked]
11-28 11:46:48.052 I/am_resume_activity( 1376): [0,144880798,39,org.traccar.client/.Launcher]
11-28 11:46:48.057 I/am_on_restart_called( 7869): [0,org.traccar.client.Launcher,performRestartActivity]
11-28 11:46:48.064 I/am_on_start_called( 7869): [0,org.traccar.client.Launcher,handleStartActivity]
11-28 11:46:48.068 I/am_on_resume_called( 7869): [0,org.traccar.client.Launcher,RESUME_ACTIVITY]
11-28 11:46:48.115 I/sysui_multi_action( 1376): [319,42,321,36,322,75,325,11779,757,761,758,9,759,4,806,org.traccar.client,871,org.traccar.client.Launcher,904,com.google.android.apps.nexuslauncher,905,0,1320,8,1321,4]
11-28 11:46:50.645 I/am_pause_activity( 1376): [0,144880798,org.traccar.client/.Launcher,userLeaving=true]
11-28 11:46:50.648 I/am_on_paused_called( 7869): [0,org.traccar.client.Launcher,performPause]
11-28 11:46:50.677 I/am_stop_activity( 1376): [0,144880798,org.traccar.client/.Launcher]
11-28 11:46:50.698 I/am_on_stop_called( 7869): [0,org.traccar.client.Launcher,STOP_ACTIVITY_ITEM]
11-28 11:48:34.458 I/am_new_intent( 1376): [0,144880798,39,org.traccar.client/.Launcher,android.intent.action.MAIN,NULL,NULL,270532608]
11-28 11:48:34.476 I/am_set_resumed_activity( 1376): [0,org.traccar.client/.Launcher,resumeTopActivityInnerLocked]
11-28 11:48:34.485 I/am_resume_activity( 1376): [0,144880798,39,org.traccar.client/.Launcher]
11-28 11:48:34.489 I/am_on_restart_called( 7869): [0,org.traccar.client.Launcher,performRestartActivity]
11-28 11:48:34.504 I/am_on_start_called( 7869): [0,org.traccar.client.Launcher,handleStartActivity]
11-28 11:48:34.505 I/am_on_resume_called( 7869): [0,org.traccar.client.Launcher,RESUME_ACTIVITY]
11-28 11:48:34.534 I/sysui_multi_action( 1376): [319,46,321,38,322,75,325,11886,757,761,758,9,759,4,806,org.traccar.client,871,org.traccar.client.Launcher,904,com.google.android.apps.nexuslauncher,905,0,1320,8,1321,4]
11-28 11:48:35.642 I/notification_enqueue( 1376): [10086,7869,org.traccar.client,1,NULL,0,Notification(channel=default pri=-1 contentView=null vibrate=null sound=null tick defaults=0x0 flags=0x40 color=0xff2e7d32 category=service vis=PRIVATE),0]
11-28 11:48:35.743 I/sysui_multi_action( 1376): [757,1501,758,1,793,101,794,0,795,101,796,1,806,org.traccar.client,857,default,858,2,947,0,1500,0]
11-28 11:48:35.828 I/notification_expansion( 1376): [0|org.traccar.client|1|null|10086,0,1,186,186,0]
11-28 11:48:37.979 I/am_pause_activity( 1376): [0,144880798,org.traccar.client/.Launcher,userLeaving=false]
11-28 11:48:37.992 I/am_on_paused_called( 7869): [0,org.traccar.client.Launcher,performPause]
11-28 11:48:38.012 I/am_stop_activity( 1376): [0,144880798,org.traccar.client/.Launcher]
11-28 11:48:38.015 I/am_on_stop_called( 7869): [0,org.traccar.client.Launcher,sleeping]
11-28 11:48:38.315 I/notification_expansion( 1376): [0|org.traccar.client|1|null|10086,0,0,2673,2673,0]
11-28 12:01:07.897 I/am_pss ( 1376): [7869,10086,org.traccar.client,35480576,29753344,0,150798336,0,3,69]
11-28 13:01:12.758 I/am_pss ( 1376): [7869,10086,org.traccar.client,36790272,30552064,0,151597056,0,3,68]
11-28 14:01:17.521 I/am_pss ( 1376): [7869,10086,org.traccar.client,37250048,30994432,0,151998464,0,3,61]
11-28 14:55:55.861 I/sysui_multi_action( 1376): [757,128,758,1,793,11240219,794,0,795,11240219,796,1,798,0,806,org.traccar.client,857,default,858,2,947,0,1395,1,1500,11240118]
11-28 14:55:55.861 I/notification_visibility( 1376): [0|org.traccar.client|1|null|10086,1,11240219,11240219,0,0]
11-28 14:55:56.874 I/sysui_multi_action( 1376): [757,128,758,2,793,11241232,794,1013,795,11241232,796,1,798,0,806,org.traccar.client,857,default,858,2,947,0,1395,1,1500,11241131]
11-28 14:55:56.874 I/notification_visibility( 1376): [0|org.traccar.client|1|null|10086,0,11241232,11241232,0,0]
11-28 14:55:58.314 I/am_set_resumed_activity( 1376): [0,org.traccar.client/.Launcher,resumeTopActivityInnerLocked]
11-28 14:55:58.321 I/am_resume_activity( 1376): [0,144880798,39,org.traccar.client/.Launcher]
11-28 14:55:58.329 I/am_on_restart_called( 7869): [0,org.traccar.client.Launcher,performRestartActivity]
11-28 14:55:58.332 I/am_on_start_called( 7869): [0,org.traccar.client.Launcher,handleStartActivity]
11-28 14:55:58.333 I/am_on_resume_called( 7869): [0,org.traccar.client.Launcher,RESUME_ACTIVITY]
11-28 14:55:58.381 I/notification_expansion( 1376): [0|org.traccar.client|1|null|10086,0,1,11242739,11242739,2520]
11-28 14:56:01.185 I/am_pause_activity( 1376): [0,144880798,org.traccar.client/.Launcher,userLeaving=true]
11-28 14:56:01.186 I/am_on_paused_called( 7869): [0,org.traccar.client.Launcher,performPause]
11-28 14:56:01.216 I/am_stop_activity( 1376): [0,144880798,org.traccar.client/.Launcher]
11-28 14:56:01.223 I/am_on_stop_called( 7869): [0,org.traccar.client.Launcher,STOP_ACTIVITY_ITEM]
I don't think we can do anything about it. Seems like it's just how the firmware works.
But all the android firmwares work like this, there must be a workaround as there are apps that continue logging or google maps also works in the background. What about something like this:
Setup an alarm using the alarm manager
https://stackoverflow.com/questions/34246589/android-wakelock-for-gps-service
or
Trying a PARTIAL_WAKE_LOCK
https://stackoverflow.com/questions/43650201/how-to-make-an-android-app-run-in-background-when-the-screen-sleeps
You need to hold partial wake lock to run service even after device screen off.
If you hold a partial wake lock, the CPU will continue to run, regardless of any display timeouts or the state of the screen and even after the user presses the power button.
To acquire wake lock:
PowerManager mgr = (PowerManager)context.getSystemService(Context.POWER_SERVICE);
WakeLock wakeLock = mgr.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "MyWakeLock");
wakeLock.acquire();
To release it:
wakeLock.release();
We already have foreground service and partial wake lock.
Then most likely using the alarm manager with a WakefulBroadcastReceiver should do the trick.. Its described here: https://stackoverflow.com/questions/34246589/android-wakelock-for-gps-service
You are welcome to make a pull request.
Sadly I am not a good enough programmer, I wish I could fix it.
Hi guys
Any android device I'm testing stopps sending regular updates after about an hour. Doze / app optimization / hybernation etc have all been disabled on all the phones and on the app. However, the issue is persisiting. Accuracy set to high. With the pixel OS I can see it stops sending regular updates as soon as the lock screen clock disappears after an hour of not being used. If I enable always on while charging in developer options, the app works fine whilst being charged. However I have not found a solution that works if the phone isn't being charged.
The following Phones / Roms were tested
They all have the same problem. I am happy to debug in any way, root access is available on the Xiaomi, please let me know what is needed. It seems this problem has been around for a while browsing the forums.
Thanks!
Adrian
Here some examples from today on the traccar server:
Xiaomi A1, Revenge OS, Android 9:
Samsung Galaxy S5, stock firmware