Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 808a8d9c authored by Christopher Ferris's avatar Christopher Ferris
Browse files

Temporarily increase saved tombstone size. DO NOT MERGE

Bug: 20829534
Change-Id: I2af16d342196da1acda43b0f6d7341413ef51820
parent 613aef87
Loading
Loading
Loading
Loading
+4 −1
Original line number Original line Diff line number Diff line
@@ -44,8 +44,11 @@ public class BootReceiver extends BroadcastReceiver {


    // Maximum size of a logged event (files get truncated if they're longer).
    // 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.
    // Give userdebug builds a larger max to capture extra debug, esp. for last_kmsg.

    // For b/20829534, temporarily raise the size of the tombstone that
    // will be saved.
    private static final int LOG_SIZE =
    private static final int LOG_SIZE =
        SystemProperties.getInt("ro.debuggable", 0) == 1 ? 98304 : 65536;
        SystemProperties.getInt("ro.debuggable", 0) == 1 ? 262144 : 65536;


    private static final File TOMBSTONE_DIR = new File("/data/tombstones");
    private static final File TOMBSTONE_DIR = new File("/data/tombstones");