We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2b4d651 + 0132a95 commit e5c484cCopy full SHA for e5c484c
services/java/com/android/server/BootReceiver.java
@@ -39,8 +39,10 @@
39
public class BootReceiver extends BroadcastReceiver {
40
private static final String TAG = "BootReceiver";
41
42
- // Maximum size of a logged event (files get truncated if they're longer)
43
- private static final int LOG_SIZE = 65536;
+ // Maximum size of a logged event (files get truncated if they're longer).
+ // Give userdebug builds a larger max to capture extra debug, esp. for last_kmsg.
44
+ private static final int LOG_SIZE =
45
+ SystemProperties.getInt("ro.debuggable", 0) == 1 ? 98304 : 65536;
46
47
private static final File TOMBSTONE_DIR = new File("/data/tombstones");
48
0 commit comments