And add some useful daemons stacks.
Change-Id: Ifd1fb6b57dea78997f93c6a3a7ecee0766ee85c4
Signed-off-by: Emmanuel Berthier <emmanuel.berthier@intel.com>
Tracked-On: https://jira01.devtools.intel.com/browse/GMINL-10293
Reviewed-on: https://android.intel.com:443/383101
Reviewed-on: https://android.intel.com/385134
Reviewed-by: Sjolander, Simon <simon.sjolander@intel.com>
Tested-by: Sjolander, Simon <simon.sjolander@intel.com>
Reviewed-by: Fagerstedt, Axel <axel.fagerstedt@intel.com>
Tested-by: Fagerstedt, Axel <axel.fagerstedt@intel.com>
public static final String[] NATIVE_STACKS_OF_INTEREST = new String[] {
"/system/bin/mediaserver",
"/system/bin/sdcard",
- "/system/bin/surfaceflinger"
+ "/system/bin/surfaceflinger",
+ "/system/bin/sensorhubd",
+ "/system/bin/servicemanager",
+ "/system/bin/drmserver",
+ "/system/bin/gpsd",
+ "/sbin/healthd"
};
static Watchdog sWatchdog;
static final String[] EMPTY_STRING_ARRAY = new String[0];
// How many bytes to write into the dropbox log before truncating
- static final int DROPBOX_MAX_SIZE = 256 * 1024;
+ // Give userdebug builds a larger max to capture extra debug, esp. for stack dump.
+ static final int DROPBOX_MAX_SIZE =
+ SystemProperties.getInt("ro.debuggable", 0) == 1 ? 4096 * 1024 : 256 * 1024;
// Access modes for handleIncomingUser.
static final int ALLOW_NON_FULL = 0;