Commit Graph

5479 Commits

Author SHA1 Message Date
Ken Sumrall bf021b4cd7 fs_mgr: Capture the output of e2fsck and add to the kernel log
Currently, the output of e2fsck is not saved, and we have no insight
into how many errors e2fsck is finding and fixing.  Using the new
abbreviated logging feature in liblogwrap, up to the first 100 lines,
and last 4K bytes of the output of e2fsck is captured by fs_mgr, and
added to the kernel log.

Usually, the filesystem will be clean, and this will only add a few
lines to the kernel log on boot, but when things go wrong, it should
save enough to indicate what the problem is, without potentially
filling the kernel log with only e2fsck output if the filesystem is
really corrupted.

Change-Id: I9c264798e6fe721c8f818b5ce15d0975027ddbdd
2013-04-14 17:11:00 -07:00
Ken Sumrall 96e11b5bc4 logwrapper: Add ability to log to kernel log
Also add ability to do abbreviated logging where only the first
4K bytes and last 4K bytes of output are added to the desginated log.

Also update standalog logwrapper command to support the new options.

Change-Id: Ia49cbe58479b9f9ed077498d6852e20b21287bad
2013-04-14 17:10:55 -07:00
Dianne Hackborn 9bd89925ef am c08b50df: am 24bc41b7: Add new resources trace.
* commit 'c08b50dfc68504b692c13194e86d33328d373019':
  Add new resources trace.
2013-04-12 17:03:06 -07:00
Dianne Hackborn c08b50dfc6 am 24bc41b7: Add new resources trace.
* commit '24bc41b78ca004ac7a6873054ff919da1ba9a6f8':
  Add new resources trace.
2013-04-12 16:59:37 -07:00
Dianne Hackborn 24bc41b78c Add new resources trace.
Change-Id: I63398f282fe7bf04f1c4cefa8f602100f403fa7c
2013-04-12 14:51:43 -07:00
Ken Sumrall 7425fd1b23 klog: Have klog_write() call klog_init() if needed
Also change klog_init() to do nothing if already initialized.

Change-Id: Ia2dfe914c9d9fd119fb8939508d57b15c9884663
2013-04-11 20:03:47 -07:00
Ying Wang a14d6fda71 am 821620f5: am c796ed97: We need libcutils to include liblog
* commit '821620f593bef6c9765fe6ee2973b0b8df0f2d40':
  We need libcutils to include liblog
2013-04-11 15:59:22 -07:00
Ying Wang 821620f593 am c796ed97: We need libcutils to include liblog
* commit 'c796ed97466510dd5239008554decbe72825e19c':
  We need libcutils to include liblog
2013-04-11 15:57:35 -07:00
Doug Zongker bc7494fb7e Merge "mincrypt: merge the two RSA verifiers" 2013-04-11 22:02:36 +00:00
Doug Zongker fead1c0acd Merge "mincrypt: support SHA-256 hash algorithm" 2013-04-11 22:02:28 +00:00
Doug Zongker 8fdbf97652 mincrypt: merge the two RSA verifiers
The e=3 and e=65537 implementations are nearly identical, refactor
them down into one.

Change-Id: I537a368a6cc195f373b9354d7472957fd683beea
2013-04-11 12:55:43 -07:00
Ying Wang c796ed9746 We need libcutils to include liblog
For some prebuilts were built against libcutils with liblog in it.
Unfortunately that means in the future if someone checks in prebuilts
that are built against libcutils and they don't explicitly link against
liblog, they will again prevent us from removing liblog from libcutils.

Bug: 8587800
Bug: 8580410
Change-Id: I2a5ed6233df7e7d542d1e4167bec405750c0e671
2013-04-10 17:33:48 -07:00
Doug Zongker 515e1639ef mincrypt: support SHA-256 hash algorithm
- adds a library to compute the SHA-256 hash

- updates the RSA verifier to take an argument specifying either SHA-1
  or SHA-256

- updates DumpPublicKey to with new "key" version numbers for
  specifying SHA-256

- adds new argument to adb auth code to maintain existing behavior

Change-Id: I5b1406cf57c2b8993f6032eda3e29139f7740839
2013-04-10 14:33:31 -07:00
The Android Open Source Project bf6c100a8c am cdbddac7: Reconcile with jb-mr2-release - do not merge
* commit 'cdbddac7b62c78a998ffce85f6a0e9b2209421f2':
2013-04-10 10:08:31 -07:00
The Android Open Source Project cdbddac7b6 Reconcile with jb-mr2-release - do not merge
Change-Id: I4e13e11a8c42a8b316f60e9d37170e4787643099
2013-04-10 10:06:09 -07:00
The Android Automerger 2c61db947a merge in jb-mr2-release history after reset to jb-mr2-dev 2013-04-10 05:56:59 -07:00
Ying Wang 39f6dd65f9 am 129b6d90: am 083b5ccb: Add liblog
* commit '129b6d907b3c32a0f0a2e4fc585502484d47a1e4':
  Add liblog
2013-04-09 23:25:24 -07:00
Ying Wang 129b6d907b am 083b5ccb: Add liblog
* commit '083b5ccba345ed2b4950454f16bd89c5d86b6b27':
  Add liblog
2013-04-09 22:29:03 -07:00
Ying Wang 083b5ccba3 Add liblog
Bug: 8580410
Change-Id: Iab3a9b4307f207c14a04a922cc7350c54e60e9ad
2013-04-09 22:03:45 -07:00
Alex Ray e13f15ab55 graphics: add Android flexible YCbCr format
Change-Id: I3f6676873febc793f7a4a5e06892cd9fadb35665
2013-04-09 15:09:35 -07:00
The Android Open Source Project 5cad711976 am 2e1be175: Reconcile with jb-mr2-release - do not merge
* commit '2e1be1756081ef7300c42f2e7906c316539d7930':
2013-04-08 13:40:28 -07:00
The Android Open Source Project 2e1be17560 Reconcile with jb-mr2-release - do not merge
Change-Id: I4d242b2cbadf2c9bcdeeff721a83528cd02b3c0e
2013-04-08 13:36:44 -07:00
The Android Automerger 1520fb4fa2 merge in jb-mr2-release history after reset to jb-mr2-dev 2013-04-08 05:57:16 -07:00
Colin Cross 7066da4ea9 am dd0a6cdf: am 578b7473: Merge "libsparse: Fix null pointer issue"
* commit 'dd0a6cdf1f88fcbe16070f678911702c81c4fd4a':
  libsparse: Fix null pointer issue
2013-04-06 12:56:31 -07:00
Colin Cross 58b0642abb am d3859e43: am 6e0b9ecb: Merge "toolbox/dmesg: do not hardcode KLOG_BUF_LEN"
* commit 'd3859e433d5a4e0da3f24851c5f5f6c9c8b97849':
  toolbox/dmesg: do not hardcode KLOG_BUF_LEN
2013-04-06 12:56:31 -07:00
Colin Cross dd0a6cdf1f am 578b7473: Merge "libsparse: Fix null pointer issue"
* commit '578b74734c1cfc773f3213a23a7195aa4b5b97aa':
  libsparse: Fix null pointer issue
2013-04-06 12:51:36 -07:00
Colin Cross d3859e433d am 6e0b9ecb: Merge "toolbox/dmesg: do not hardcode KLOG_BUF_LEN"
* commit '6e0b9ecb503b5611d815214e0a134ea0b1395089':
  toolbox/dmesg: do not hardcode KLOG_BUF_LEN
2013-04-06 12:51:35 -07:00
Colin Cross 578b74734c Merge "libsparse: Fix null pointer issue" 2013-04-06 19:03:02 +00:00
Colin Cross 6e0b9ecb50 Merge "toolbox/dmesg: do not hardcode KLOG_BUF_LEN" 2013-04-06 19:02:01 +00:00
Colin Cross 3be5c95d5f am a5ca229a: am 1615c09a: Merge "init: Fix potential null pointer issue"
* commit 'a5ca229a4571f6df42c96e760257b7ca95c7fdeb':
  init: Fix potential null pointer issue
2013-04-05 19:58:39 -07:00
Colin Cross a5ca229a45 am 1615c09a: Merge "init: Fix potential null pointer issue"
* commit '1615c09ac1065104f56ddc444f5467aff76c0daa':
  init: Fix potential null pointer issue
2013-04-05 19:56:27 -07:00
Colin Cross 1615c09ac1 Merge "init: Fix potential null pointer issue" 2013-04-06 01:53:24 +00:00
Christopher Tate 30874aff27 am 2c170667: am 7716aef1: Uploaded native crash dumps do not include memory contents
* commit '2c1706675dfcab3205f4e065b63a5cef8acc3668':
  Uploaded native crash dumps do not include memory contents
2013-04-05 16:39:02 -07:00
Christopher Tate 2c1706675d am 7716aef1: Uploaded native crash dumps do not include memory contents
* commit '7716aef138e8029357a7b3dc6a73b41f4de4b0ad':
  Uploaded native crash dumps do not include memory contents
2013-04-05 16:35:47 -07:00
Christopher Tate 7716aef138 Uploaded native crash dumps do not include memory contents
Also fixed the LOG() macro to actually write to the log again, tracking
the change in _LOG() argument semantics.

Bug 8322568

Change-Id: I79330c85c26d3ffb734315b6d0f2c0bb80bd234a
2013-04-05 16:30:15 -07:00
Elliott Hughes c44e1f84c2 am c3d750b7: am e5f8a692: Modify debuggerd to cope with the abort message.
* commit 'c3d750b74b7bd2760d6359e0e10e1320276b5ca6':
  Modify debuggerd to cope with the abort message.
2013-04-05 16:07:14 -07:00
Elliott Hughes c3d750b74b am e5f8a692: Modify debuggerd to cope with the abort message.
* commit 'e5f8a692e44be89dc4c062517eadfb88184c4770':
  Modify debuggerd to cope with the abort message.
2013-04-05 16:04:12 -07:00
Elliott Hughes e5f8a692e4 Modify debuggerd to cope with the abort message.
(cherry picked from commit 707b8bbe18)

Bug: 8531731
Change-Id: I2785a07ef83e085f338d3094f9972de23117807c
2013-04-05 15:59:17 -07:00
Elliott Hughes 879d21ebc3 am 8a4ae0a8: resolved conflicts for merge of f79c0518 to jb-mr2-dev-plus-aosp
* commit '8a4ae0a873862ea0a4764cd3492467843485f1e5':
  Modify debuggerd to cope with the abort message.
2013-04-05 14:36:51 -07:00
Elliott Hughes 8a4ae0a873 resolved conflicts for merge of f79c0518 to jb-mr2-dev-plus-aosp
Change-Id: I106a2aa7ec393a68e51132bf277b22bece155a8e
2013-04-05 13:46:55 -07:00
Jeff Sharkey 09e534931a am c307aa5f: am b4d52a43: Only handle keycodes when adb is enabled.
* commit 'c307aa5f038cea2a0fb5bb535f5930758bdfbb81':
  Only handle keycodes when adb is enabled.
2013-04-05 13:46:43 -07:00
Jeff Sharkey c307aa5f03 am b4d52a43: Only handle keycodes when adb is enabled.
* commit 'b4d52a437e97489710182ebc6a8a3e00d6fbd6f0':
  Only handle keycodes when adb is enabled.
2013-04-05 13:43:34 -07:00
Elliott Hughes f79c05186f Merge "Modify debuggerd to cope with the abort message." 2013-04-05 18:27:38 +00:00
Keun-young Park d8ded8e941 am ca02a136: am ad999a09: (-s ours) Merge "rootdir: goldfish: mount debugfs on boot time"
* commit 'ca02a136902ba44c64e90c87dd3be82a0ca7877f':
  rootdir: goldfish: mount debugfs on boot time
2013-04-05 10:13:32 -07:00
Keun-young Park ca02a13690 am ad999a09: (-s ours) Merge "rootdir: goldfish: mount debugfs on boot time"
* commit 'ad999a09ab973c5ed5c54a78cdaa4dbc06eb485e':
  rootdir: goldfish: mount debugfs on boot time
2013-04-05 10:09:24 -07:00
Keun-young Park ad999a09ab Merge "rootdir: goldfish: mount debugfs on boot time" 2013-04-05 16:19:20 +00:00
Geremy Condra e5920ffdca am a7096004: am 911ba269: Merge "Add -i option to toolbox cmd ls"
* commit 'a7096004f220dd7578d7b2e26a3513fa5efc0fc1':
  Add -i option to toolbox cmd ls
2013-04-04 23:46:55 -07:00
Geremy Condra a7096004f2 am 911ba269: Merge "Add -i option to toolbox cmd ls"
* commit '911ba269e369035f9a4a250fa22233b37d724356':
  Add -i option to toolbox cmd ls
2013-04-04 23:42:16 -07:00
Geremy Condra 911ba269e3 Merge "Add -i option to toolbox cmd ls" 2013-04-05 00:08:19 +00:00
Elliott Hughes 707b8bbe18 Modify debuggerd to cope with the abort message.
Bug: 8531731
Change-Id: I416ec1da38a8a1b0d0a582ccd7c8aaa681ed4a29
2013-04-04 13:52:01 -07:00