diff options
| author | 2018-07-19 15:52:33 -0700 | |
|---|---|---|
| committer | 2018-07-19 15:52:33 -0700 | |
| commit | 3034085dff47d126ffcb552e84024a9ed746070d (patch) | |
| tree | 99a73bb828b4d5214c0f45797765051fbdb21c01 | |
| parent | b32933c3cc99083562d51d5c6d932ff102252959 (diff) | |
| parent | 12cdea59d3ebb57129e8f2106eba432a7c2f6761 (diff) | |
Merge "Ensure dropbox could copy tombstone files to special folder."
am: 12cdea59d3
Change-Id: I8b7f1b2d07629af4cc0008679cd8daf7d1e0464f
| -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 95534e264b80..621d5a6e5c55 100644 --- a/core/java/com/android/server/BootReceiver.java +++ b/core/java/com/android/server/BootReceiver.java @@ -258,13 +258,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, TAG_TOMBSTONE); } |