Commit Graph

15244 Commits

Author SHA1 Message Date
Christopher Ferris 697541b4e8 am 493cdcbb: Merge "Change the 64 bit map address format."
* commit '493cdcbb77f2cea10122611104c6ecfbe1d158ce':
  Change the 64 bit map address format.
2015-06-03 19:01:39 +00:00
Christopher Ferris 493cdcbb77 Merge "Change the 64 bit map address format." 2015-06-03 18:53:42 +00:00
Badhri Jagan Sridharan 3f669e078b am 59be5aed: Merge "libziparchive: fix fallocate failures"
* commit '59be5aedbf392c27ef0756fae5298a5dbf324895':
  libziparchive: fix fallocate failures
2015-06-03 18:10:57 +00:00
Elliott Hughes de28adf394 am ac462d93: Merge "Don\'t say "update package missing" unless we mean it."
* commit 'ac462d93337e6ca5c29d3527abb95e363347cf78':
  Don't say "update package missing" unless we mean it.
2015-06-03 18:10:56 +00:00
Badhri Jagan Sridharan 59be5aedbf Merge "libziparchive: fix fallocate failures" 2015-06-03 18:04:53 +00:00
Elliott Hughes ac462d9333 Merge "Don't say "update package missing" unless we mean it." 2015-06-03 18:02:53 +00:00
Badhri Jagan Sridharan a68d0d1fe4 libziparchive: fix fallocate failures
The objective of fallocate call seems to be to
make sure that we have enough enough space left
in the disk to house the uncompressed file.
But, fallocate is only supported in the following
file systems:
btrfs, ext4, ocfs2, and xfs

Return error only when fallocate fails due to
lack of space. The immediate ftruncate call is
going to take of the majority of other errors.

Bug: 21561449
Change-Id: I7083f3c7e5d745bd6e8a190ac9020297d638d9d4
2015-06-03 11:02:26 -07:00
Elliott Hughes acdbe92c60 Don't say "update package missing" unless we mean it.
unzip_to_file reports failures itself these days, so there's it's unhelpful
of the caller to just guess what might have gone wrong.

Bug: http://b/21558406
Change-Id: I1e3d06c6cf902b8c6ef333dc60fd8f49680a493b
2015-06-03 11:01:41 -07:00
Christopher Ferris 862fe02919 Change the 64 bit map address format.
Previously, the map printing in tombstones for 64 bit devices uses
a variable length value. This means that the maps are not lined up.
The new format is to print the map as 00000000'00000000 in all ways.

Also fix a bug where the backtrace_map_t did not initialize all
parameters.

Add unit tests for all of the dump_all_maps function.

Bug: 20950813
Change-Id: I30901c8a0251b00d85c4c01476b033ef8db84e32
2015-06-03 10:24:21 -07:00
Elliott Hughes bd8771077c am ce053677: am f26eb51c: Merge "Add "fastboot --version"."
* commit 'ce05367734fabef8409e9d6c6c57f5ba522a96c5':
  Add "fastboot --version".
2015-06-03 02:57:28 +00:00
Elliott Hughes ce05367734 am f26eb51c: Merge "Add "fastboot --version"."
* commit 'f26eb51c2a85181d7093785760d2c90d6e9d4eeb':
  Add "fastboot --version".
2015-06-03 02:44:49 +00:00
Elliott Hughes f26eb51c2a Merge "Add "fastboot --version"." 2015-06-03 02:36:50 +00:00
Mark Salyzyn 07d4cbc1fb am 49ed105f: init.rc: logd: Add logpersistd (nee logcatd)
* commit '49ed105fd91677f7c87417890bf7441146953fff':
  init.rc: logd: Add logpersistd (nee logcatd)
2015-06-03 02:20:58 +00:00
Mark Salyzyn 7a6b05851e am cdb468ab: logcat: -f run in background
* commit 'cdb468abb38bb75aaad5d4c6699a824559cf272a':
  logcat: -f run in background
2015-06-03 02:20:57 +00:00
Rom Lemarchand 74a38f1adb am b6e1632f: am 8773d62c: Merge "mkbootimg: parse hexadecimal ints"
* commit 'b6e1632ff4179b79d7bd39fec81f6d7a3cb3f82d':
  mkbootimg: parse hexadecimal ints
2015-06-03 02:19:14 +00:00
Rom Lemarchand b6e1632ff4 am 8773d62c: Merge "mkbootimg: parse hexadecimal ints"
* commit '8773d62c74c2b571506b22dd97742808ea441cd7':
  mkbootimg: parse hexadecimal ints
2015-06-03 02:12:56 +00:00
Rom Lemarchand 8773d62c74 Merge "mkbootimg: parse hexadecimal ints" 2015-06-03 02:04:16 +00:00
Rom Lemarchand 45f2ce1cb8 mkbootimg: parse hexadecimal ints
Allow passing int arguments as hexadecimal values

Change-Id: If5a199007e9868f994dd740ccd15c455eb536327
2015-06-02 19:01:25 -07:00
Elliott Hughes 9d4a8a7763 am 8a5796b1: am 98a4dd48: Merge "\'usb\' doesn\'t need to be global in fastboot."
* commit '8a5796b1c54e1c3e42581ee6628fb55895998d90':
  'usb' doesn't need to be global in fastboot.
2015-06-03 01:31:47 +00:00
Elliott Hughes 8a5796b1c5 am 98a4dd48: Merge "\'usb\' doesn\'t need to be global in fastboot."
* commit '98a4dd48bd1e274555394133f03f44eb0390913f':
  'usb' doesn't need to be global in fastboot.
2015-06-03 01:23:42 +00:00
Elliott Hughes 98a4dd48bd Merge "'usb' doesn't need to be global in fastboot." 2015-06-03 01:14:32 +00:00
Rom Lemarchand 858bdb46a5 resolved conflicts for merge of 7982495f to mnc-dev-plus-aosp 2015-06-02 17:22:42 -07:00
Rom Lemarchand d80259ec9b am a97eed8b: am fe18b45a: Merge "mkbootimg: turn into a python script"
* commit 'a97eed8b2b563135a0dbc97eccb91cfef965011e':
  mkbootimg: turn into a python script
2015-06-02 23:36:12 +00:00
Rom Lemarchand 7982495f79 am f34015bf: Merge "mkbootimg: delete obsolete C source"
* commit 'f34015bf367ab8fe4c49c36411ac0a3d55038a02':
  mkbootimg: delete obsolete C source
2015-06-02 23:21:27 +00:00
Rom Lemarchand a97eed8b2b am fe18b45a: Merge "mkbootimg: turn into a python script"
* commit 'fe18b45adee4d69b1228d21a15da44d99debf349':
  mkbootimg: turn into a python script
2015-06-02 23:21:25 +00:00
Mark Salyzyn e7b5c10291 resolved conflicts for merge of 117c3220 to mnc-dev-plus-aosp
Change-Id: I6bb3c1e065b51b147fdbc2c3f2e02d8566a06c8f
2015-06-02 16:17:54 -07:00
Rom Lemarchand f34015bf36 Merge "mkbootimg: delete obsolete C source" 2015-06-02 23:13:13 +00:00
Rom Lemarchand fe18b45ade Merge "mkbootimg: turn into a python script" 2015-06-02 23:12:49 +00:00
Rom Lemarchand 2aa78ce625 mkbootimg: delete obsolete C source
Change-Id: Ic36cbf370b7d54c3dd425a25d938c661e8d3405a
2015-06-02 16:10:52 -07:00
Rom Lemarchand ad6ec0c7fe mkbootimg: turn into a python script
Turn mkbootimg into a python script instead of a C utility

Change-Id: I36d35dfacfbbef2cc16bd6695ab15ee716bb0cdb
2015-06-02 16:10:52 -07:00
Mark Salyzyn 6e9805972e am cdb73b03: init: change exec parsing to make SECLABEL optional
* commit 'cdb73b034d1a546afc34302896a3cdc72dbdc8e6':
  init: change exec parsing to make SECLABEL optional
2015-06-02 22:56:19 +00:00
Mark Salyzyn 560515540d am e0e56563: am 0bda352f: Merge changes from topic \'logcatd\'
* commit 'e0e565635a7c6c36a05282622c01203afbec5ca5':
  init.rc: logd: Add logpersistd (nee logcatd)
  init: change exec parsing to make SECLABEL optional
  logcat: -f run in background
  logcat: -f flag to continue
2015-06-02 22:41:29 +00:00
Mark Salyzyn e0e565635a am 0bda352f: Merge changes from topic \'logcatd\'
* commit '0bda352f7f2b4453aa7b65feb935938205f1285e':
  init.rc: logd: Add logpersistd (nee logcatd)
  init: change exec parsing to make SECLABEL optional
  logcat: -f run in background
  logcat: -f flag to continue
2015-06-02 22:28:43 +00:00
Mark Salyzyn 49ed105fd9 init.rc: logd: Add logpersistd (nee logcatd)
(cherry pick from commit 100658c303)

- logpersistd is defined as a thread or process in the context of the
  logd domain. Here we define logpersistd as logcat -f in logd domain
  and call it logcatd to represent its service mechanics.
- Use logcatd to manage content in /data/misc/logd/ directory.
- Only turn on for persist.logd.logpersistd = logcatd.
- Add logpersist.start, logpersist.stop and logpersist.cat debug
  class executables, thus only in the eng and userdebug builds.

ToDo: Wish to add Developer Options menu to turn this feature on or
off, complicated by the fact that user builds have no tools with
access rights to /data/misc/logd.

Bug: 19608716
Change-Id: I57ad757f121c473d04f9fabe9d4820a0eca06f31
2015-06-02 15:28:36 -07:00
Mark Salyzyn cdb468abb3 logcat: -f run in background
(cherry pick from commit 3ef730c57f)

- if saving to file, set SP_BACKGROUND policy
- if saving to file, set BATCH priority
- sort include files

Bug: 19608716
Change-Id: I00acb8b8db0d2ff9ff36c97f9e74604d31938376
2015-06-02 15:27:41 -07:00
Mark Salyzyn 117c322040 logcat: -f flag to continue
(cherry pick from commit f3555d9427)

On startup, check the current logging content, then grab logs from
that time forward rather than restarting from the beginning. Add
support for reading tail time down to the nano-second.

Bonus, permits us to create a logcatd logpersist daemon

Bug: 19608716
Change-Id: Iaab58de4c02b7f97c69de12cf954fedc2163059e
2015-06-02 15:26:53 -07:00
Mark Salyzyn cdb73b034d init: change exec parsing to make SECLABEL optional
(cherry pick from commit 17fff893c0)

Allow SECLABEL to be - to denote default

Change-Id: I58cdc6c805dc6e50dc42b7e13e72d0eaf4864f11
2015-06-02 15:26:02 -07:00
Mark Salyzyn 0bda352f7f Merge changes from topic 'logcatd'
* changes:
  init.rc: logd: Add logpersistd (nee logcatd)
  init: change exec parsing to make SECLABEL optional
  logcat: -f run in background
  logcat: -f flag to continue
2015-06-02 22:20:24 +00:00
Mark Salyzyn 100658c303 init.rc: logd: Add logpersistd (nee logcatd)
- logpersistd is defined as a thread or process in the context of the
  logd domain. Here we define logpersistd as logcat -f in logd domain
  and call it logcatd to represent its service mechanics.
- Use logcatd to manage content in /data/misc/logd/ directory.
- Only turn on for persist.logd.logpersistd = logcatd.
- Add logpersist.start, logpersist.stop and logpersist.cat debug
  class executables, thus only in the eng and userdebug builds.

ToDo: Wish to add Developer Options menu to turn this feature on or
off, complicated by the fact that user builds have no tools with
access rights to /data/misc/logd.

Bug: 19608716
Change-Id: I57ad757f121c473d04f9fabe9d4820a0eca06f31
2015-06-02 15:17:59 -07:00
Mark Salyzyn 17fff893c0 init: change exec parsing to make SECLABEL optional
Allow SECLABEL to be - to denote default

Change-Id: I58cdc6c805dc6e50dc42b7e13e72d0eaf4864f11
2015-06-02 15:17:52 -07:00
Mark Salyzyn 698054a81c am 473a50f1: rootdir: init.trace.rc too early
* commit '473a50f1687e8511ff9efcf370adfa68568669ab':
  rootdir: init.trace.rc too early
2015-06-02 22:02:19 +00:00
Mark Salyzyn 3ef730c57f logcat: -f run in background
- if saving to file, set SP_BACKGROUND policy
- if saving to file, set BATCH priority
- sort include files

Bug: 19608716
Change-Id: I00acb8b8db0d2ff9ff36c97f9e74604d31938376
2015-06-02 14:56:44 -07:00
Mark Salyzyn f3555d9427 logcat: -f flag to continue
On startup, check the current logging content, then grab logs from
that time forward rather than restarting from the beginning. Add
support for reading tail time down to the nano-second.

Bonus, permits us to create a logcatd logpersist daemon

Bug: 19608716
Change-Id: Iaab58de4c02b7f97c69de12cf954fedc2163059e
2015-06-02 14:56:44 -07:00
Mark Salyzyn 473a50f168 rootdir: init.trace.rc too early
(cherry pick from commit 89357d23a1)

debugfs is mounted on boot

Bug: 21566233
Change-Id: I2ba106fbb1e8164ff3d8b2d5b16a16d7926c2732
2015-06-02 14:40:10 -07:00
Mark Salyzyn c79daf5225 am 1300b16e: am 66e39275: Merge "rootdir: init.trace.rc too early"
* commit '1300b16e51045b0d1235cfaaa031228ded60924b':
  rootdir: init.trace.rc too early
2015-06-02 21:22:37 +00:00
Mark Salyzyn 1300b16e51 am 66e39275: Merge "rootdir: init.trace.rc too early"
* commit '66e39275be57352e357d8c5cdff73bc911758daa':
  rootdir: init.trace.rc too early
2015-06-02 21:09:13 +00:00
Spencer Low d0f66c3616 adb: win32: fix logging to adb.log
In the adb client, redirect stdin and stderr of the adb server to `nul',
so that when the adb server starts up, it avoids issues in the C Runtime
where it closes stderr, making it hard to properly reopen. There are
probably other ways to avoid this issue, but I think this is the
cleanest that will keep working over the years and will exercise the
most commonly used code-paths in the C Runtime.

Fix some adb_close() calls to be unix_close() (only really matters on
Windows).

Make stderr non-buffered on Windows, to match the (sensible) Linux
behavior.

Change-Id: I1b15c64240e50dbeb56788b0d0d901f4536ad788
Signed-off-by: Spencer Low <CompareAndSwap@gmail.com>
2015-06-02 21:04:56 +00:00
Mark Salyzyn 66e39275be Merge "rootdir: init.trace.rc too early" 2015-06-02 21:01:03 +00:00
Elliott Hughes 379646b2ca Add "fastboot --version".
So bug reporters can actually tell us what they're running.

Bug: http://b/21583225
Change-Id: If2a4ae97b4792aa321566603ce2c354a72d32307
2015-06-02 13:50:00 -07:00
Elliott Hughes c0ce65f961 'usb' doesn't need to be global in fastboot.
Change-Id: Id014399640865d889918661bae0161b3165eee48
2015-06-02 13:34:07 -07:00