Commit graph

15006 commits

Author SHA1 Message Date
Nick Kralevich
159e37e052 am 32512e71: tzdatacheck: don\'t hard code SELinux domain name
* commit '32512e716750b94c9e72c50a98a5db724857f1d5':
  tzdatacheck: don't hard code SELinux domain name
2015-06-03 21:07:14 +00:00
Nick Kralevich
e2722e9bfb am a20d6f4e: am 2ec88501: Merge "tzdatacheck: don\'t hard code SELinux domain name"
* commit 'a20d6f4e154939722263207ddf5954b3f58f666d':
  tzdatacheck: don't hard code SELinux domain name
2015-06-03 20:53:31 +00:00
Christopher Ferris
618981ad88 am 21bd040e: Change the 64 bit map address format.
* commit '21bd040effcfc48e8794558c91bbfdc159a98f00':
  Change the 64 bit map address format.
2015-06-03 20:41:26 +00:00
Nick Kralevich
a20d6f4e15 am 2ec88501: Merge "tzdatacheck: don\'t hard code SELinux domain name"
* commit '2ec8850167cd9c9c1939a810f4c9fd5acbef8191':
  tzdatacheck: don't hard code SELinux domain name
2015-06-03 20:40:56 +00:00
Nick Kralevich
32512e7167 tzdatacheck: don't hard code SELinux domain name
An automatic domain transition is already defined by SELinux
policy. Avoid having redundant information on the exec line.

This commit depends on commit 17fff893c0
which made the SELinux process label optional.

(cherrypicked from commit 221fca7ddd)

Change-Id: I89464f2bd218c7d6e8db08aa6bed2b62ec6dad2a
2015-06-03 13:36:24 -07:00
Nick Kralevich
2ec8850167 Merge "tzdatacheck: don't hard code SELinux domain name" 2015-06-03 20:30:23 +00:00
Nick Kralevich
221fca7ddd tzdatacheck: don't hard code SELinux domain name
An automatic domain transition is already defined by SELinux
policy. Avoid having redundant information on the exec line.

This commit depends on commit 17fff893c0
which made the SELinux process label optional.

Change-Id: I89464f2bd218c7d6e8db08aa6bed2b62ec6dad2a
2015-06-03 13:08:49 -07:00
Elliott Hughes
7f9a0962ef am 98ba6f11: am d3d32a1b: Merge "Fix file descriptor leak when opening invalid archives."
* commit '98ba6f1120c1bb4589cebaae20c3afe2ed3eefa2':
  Fix file descriptor leak when opening invalid archives.
2015-06-03 19:38:17 +00:00
Elliott Hughes
98ba6f1120 am d3d32a1b: Merge "Fix file descriptor leak when opening invalid archives."
* commit 'd3d32a1b13353002cd0ad121b4cb8d3b2a8cddca':
  Fix file descriptor leak when opening invalid archives.
2015-06-03 19:29:35 +00:00
Elliott Hughes
d3d32a1b13 Merge "Fix file descriptor leak when opening invalid archives." 2015-06-03 19:18:12 +00:00
Narayan Kamath
f6e9ffbc73 Fix file descriptor leak when opening invalid archives.
Also add -Wunreachable-code to the set of compiler flags, otherwise
noreturn becomes considerably less useful.

bug: https://code.google.com/p/android/issues/detail?id=171099
Change-Id: I9a95d45633c731c7046d4e4a39844d9cebfd1718
(cherrypick of 241bcf05e0e394bbf2681f359f52646dd6c707f6.)
2015-06-03 12:16:43 -07:00
Christopher Ferris
42472665e5 am 697541b4: am 493cdcbb: Merge "Change the 64 bit map address format."
* commit '697541b4e88a7c4afa9db5abdeb3533e53333e7e':
  Change the 64 bit map address format.
2015-06-03 19:14:58 +00:00
Badhri Jagan Sridharan
891084be38 am 3f669e07: am 59be5aed: Merge "libziparchive: fix fallocate failures"
* commit '3f669e078b03a5e9452e455c5496d050f10ae402':
  libziparchive: fix fallocate failures
2015-06-03 19:14:49 +00:00
Christopher Ferris
21bd040eff 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
(cherry picked from commit 862fe02919)

Change-Id: Ife5c48bddeb19006a98f9e87520474e97b97f6d9
2015-06-03 12:12:31 -07:00
Elliott Hughes
5b3ca7b12e resolved conflicts for merge of de28adf3 to mnc-dev-plus-aosp
Change-Id: I69f80ee5cba90b1516a35171a38d40cc79d07c19
2015-06-03 12:12:00 -07:00
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