14 Commits

Author SHA1 Message Date
Dan Egnor
c95142d4a0 Move boot log file writing into a background thread to avoid ANR.
Bug: 2507228
Change-Id: I35695f89f1d62b907f04511e3e6b71722008949b
2010-03-11 13:16:04 -08:00
Joe Onorato
8a9b22056b Switch the services library to using the new Slog 2010-03-01 13:06:50 -08:00
Dan Egnor
289e58051d Truncate SYSTEM_TOMBSTONE events at the end (take the head),
but still truncate the other log files at the start (take the tail).
2010-02-11 10:40:49 -08:00
Dan Egnor
492c6ed5b6 Report tombstone (native crash) data to the dropbox.
Also uses a shared_prefs file to keep track of which files have been
logged, instead of polluting Settings.Secure with this data.
2010-01-27 14:52:57 -08:00
Dan Egnor
2242da5a4f Include more verbose device information with kernel dumps
(hardware, bootloader, etc.), and separate the device info
headers from the actual dump with a blank line.
2010-01-26 17:00:36 -08:00
Dan Egnor
42471dd555 Simplify & update ANR logging; report ANR data into the dropbox.
Eliminate the per-process 200ms timeout during ANR thread-dumping.
Dump all the threads at once, then wait for the file to stabilize.
Seems to work great and is much, much, much faster.

Don't dump stack traces to traces.txt on app crashes (it isn't very
useful and mostly just clutters up the file).

Tweak the formatting of the dropbox dumpsys a bit, for readability,
and avoid running out of memory when dumping large log files.

Report build & kernel version with kernel log dropbox entries.
2010-01-11 14:51:22 -08:00
Doug Zongker
1af33d0ddc add recovery system interface to API
Adds android.os.RecoverySystem (marked as pending) to replace the
(hidden) com.android.internal.os.RecoverySystem.  RecoverySystem
contains methods for:

  - verifying the signature of an update package
  - rebooting to install a package
  - rebooting to wipe user data

(The reboot functions require "android.permission.REBOOT" and
"android.permission.ACCESS_CACHE_FILESYSTEM".)  Providing these
simplifies implementation of OTA update for device builders.

Change-Id: I63ce743b156e7a1a0327fd395b0e4a82c0eda79a
2010-01-05 20:03:19 -08:00
Dan Egnor
eb7a7d57ca Change the DropBoxManager API slightly (this is public, but not yet released) --
take a File instead of a ParcelFileDescriptor (gets opened internally) --
that way the caller doesn't have to worry about closing their PFD and so on.
(Pretty much 100% of the time the caller will be uploading a file, anyway.)
2009-11-25 12:38:00 -08:00
Doug Zongker
4413e8bc4c close file descriptors passed to drop box
The ParcelFileDescriptors passed to DropBoxManager.addFile() are
supposed to be closed after the call.
2009-11-25 09:16:48 -08:00
Dan Egnor
c4cf6caa99 Copy SYSTEM_LAST_KMSG from /proc/last_kmsg instead of /data/dontpanic/last_kmsg.
(In preparation for not copying to /data/dontpanic/last_kmsg at all.)
2009-11-23 19:23:49 -08:00
Dan Egnor
3d40df335e Add boot events (SYSTEM_LAST_KMSG and friends) to the dropbox.
Optimize DropBoxManagerService.dump() a bit.
2009-11-17 18:00:48 -08:00
The Android Open Source Project
9066cfe988 auto import from //depot/cupcake/@135843 2009-03-03 19:31:44 -08:00
The Android Open Source Project
d83a98f4ce auto import from //depot/cupcake/@135843 2009-03-03 18:28:45 -08:00
The Android Open Source Project
54b6cfa9a9 Initial Contribution 2008-10-21 07:00:00 -07:00