We are a device builder. On our devices we see a large number of logs being expired in logcat which makes it difficult to debug applications running on our devices.
10-21 10:07:38.731 8908 8930 I SetupWizard: after updateTime, success=false
10-21 10:07:41.734 8908 8930 I SetupWizard: before updateTime
10-21 10:07:42.341 8908 8930 I SetupWizard: after updateTime, success=false
10-21 10:07:45.343 8908 8930 I SetupWizard: before updateTime
10-21 10:07:45.924 8908 8930 I SetupWizard: after updateTime, success=false
10-21 10:07:48.927 8908 8930 I SetupWizard: before updateTime
10-21 10:07:48.929 8891 9862 I chatty : uid=1000(system) Binder:8891_9 expire 63 lines
10-21 10:07:48.932 8891 8942 I chatty : uid=1000(system) pool-2-thread-1 expire 24 lines
10-21 10:07:49.479 8908 8930 I SetupWizard: after updateTime, success=false
10-21 10:07:52.482 8908 8930 I SetupWizard: before updateTime
10-21 10:07:53.079 8908 8930 I SetupWizard: after updateTime, success=false
10-21 10:07:56.082 8908 8930 I SetupWizard: before updateTime
10-21 10:07:56.665 8908 8930 I SetupWizard: after updateTime, success=false
10-21 10:07:59.667 8908 8930 I SetupWizard: before updateTime
10-21 10:08:00.260 8908 8930 I SetupWizard: after updateTime, success=false
10-21 10:08:00.573 1341 1487 I sysui_multi_action: [757,1093,758,4,793,21985,1094,9437184,1095,4]
10-21 10:08:03.263 8908 8930 I SetupWizard: before updateTime
10-21 10:08:03.264 8891 9862 I chatty : uid=1000(system) Binder:8891_9 expire 48 lines
10-21 10:08:03.814 8908 8930 I SetupWizard: after updateTime, success=false
10-21 10:08:06.817 8908 8930 I SetupWizard: before updateTime
10-21 10:08:06.821 8891 8942 I chatty : uid=1000(system) pool-2-thread-1 expire 15 lines
10-21 10:08:06.844 1214 1365 I chatty : uid=1000(system) Binder:1214_4 expire 4 lines
10-21 10:08:07.409 8908 8930 I SetupWizard: after updateTime, success=false
10-21 10:08:10.411 8908 8930 I SetupWizard: before updateTime
10-21 10:08:11.006 8908 8930 I SetupWizard: after updateTime, success=false
10-21 10:08:14.009 8908 8930 I SetupWizard: before updateTime
10-21 10:08:14.011 8891 9862 I chatty : uid=1000(system) Binder:8891_9 expire 50 lines
How can we prevent these expirations? We are free to modify the Android platform in any way necessary.
Inspecting the logd source code has not led to any obvious solutions. And I do not see how or why we would be hitting any kind of limit. As you can tell from the above the number of logs being emitted is only about 150 over the course of 36 seconds.