diff options
| -rw-r--r-- | core/java/com/android/server/BootReceiver.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/java/com/android/server/BootReceiver.java b/core/java/com/android/server/BootReceiver.java index 87fde4128ec5..cbca37d9b99e 100644 --- a/core/java/com/android/server/BootReceiver.java +++ b/core/java/com/android/server/BootReceiver.java @@ -254,13 +254,13 @@ public class BootReceiver extends BroadcastReceiver { // Start watching for new tombstone files; will record them as they occur. // This gets registered with the singleton file observer thread. - sTombstoneObserver = new FileObserver(TOMBSTONE_DIR.getPath(), FileObserver.CLOSE_WRITE) { + sTombstoneObserver = new FileObserver(TOMBSTONE_DIR.getPath(), FileObserver.CREATE) { @Override public void onEvent(int event, String path) { HashMap<String, Long> timestamps = readTimestamps(); try { File file = new File(TOMBSTONE_DIR, path); - if (file.isFile()) { + if (file.isFile() && file.getName().startsWith("tombstone_")) { addFileToDropBox(db, timestamps, headers, file.getPath(), LOG_SIZE, "SYSTEM_TOMBSTONE"); } |