Commit Graph

13286 Commits

Author SHA1 Message Date
Paul Lawrence 439cdfd0bf am af0baad7: Merge "adb shouldn\'t trace unless told to"
* commit 'af0baad7a6407cf098aa64272e1321f7a495874a':
  adb shouldn't trace unless told to
2015-06-06 00:23:06 +00:00
Paul Lawrence af0baad7a6 Merge "adb shouldn't trace unless told to" 2015-06-06 00:08:57 +00:00
Paul Lawrence 6f009d9496 adb shouldn't trace unless told to
Prevents clean unmount of /data in crypto bounce

Bug: 21516860
Change-Id: I1f761dfdf216dcb35b4609cd46cc4d0644cc4a81
2015-06-05 16:01:48 -07:00
Mark Salyzyn 57a3407d7e am 515d581d: Merge "logd: filters remove leading expire messages and rate"
* commit '515d581d2d99e484c5989f1ee06f42ba1cb6942d':
  logd: filters remove leading expire messages and rate
2015-06-05 17:27:09 +00:00
Mark Salyzyn 515d581d2d Merge "logd: filters remove leading expire messages and rate" 2015-06-05 17:18:26 +00:00
Mark Salyzyn 047cc0729f logd: filters remove leading expire messages and rate
- Cleanup resulting from experience and feedback
- When filtering inside logd, drop any leading expire messages, they
  are cluttering up leading edge of tombstones (which filter by pid)
- Increase and introduce EXPIRE_RATELIMIT from 1 to 10 seconds
- Increase EXPIRE_THRESHOLD from 4 to 10 count
- Improve the expire messages from:
   logd : uid=1000(system) too chatty comm=com.google.android.phone,
                                                   expire 2800 lines
  change tag to be more descriptive, and reduce accusatory tone to:
   chatty : uid=1000(system) com.google.android.phone expire 2800
                                                               lines
- if the UID name forms a prefix for comm name, then drop UID name

Change-Id: Ied7cc04c0ab3ae02167649a0b97378e44ef7b588
2015-06-05 08:05:05 -07:00
Elliott Hughes 473629d564 am f9ae390f: Merge "adb: win32: get test_adb.py running and passing 100%"
* commit 'f9ae390f63aa7bfc4e93ba1e18240aa1e05d122b':
  adb: win32: get test_adb.py running and passing 100%
2015-06-05 01:01:15 +00:00
Elliott Hughes f9ae390f63 Merge "adb: win32: get test_adb.py running and passing 100%" 2015-06-05 00:50:08 +00:00
Elliott Hughes 641fd2e443 am ebce1470: Merge "adb: fix adb_close() vs. unix_close() usage"
* commit 'ebce1470779ad424bc220ada590ee274dbdfaaa4':
  adb: fix adb_close() vs. unix_close() usage
2015-06-04 22:32:41 +00:00
Elliott Hughes 0895894c4b am e1a06a55: Merge "Fix whitespace in debug logging."
* commit 'e1a06a550275a1b0c385059c1f19061f4b0f8ffa':
  Fix whitespace in debug logging.
2015-06-04 22:32:40 +00:00
Elliott Hughes ebce147077 Merge "adb: fix adb_close() vs. unix_close() usage" 2015-06-04 22:28:50 +00:00
Elliott Hughes e1a06a5502 Merge "Fix whitespace in debug logging." 2015-06-04 22:23:45 +00:00
Elliott Hughes e49236b3da Fix whitespace in debug logging.
Change-Id: I949317deaf782fea18b5c38b22dfd41811608276
2015-06-04 15:21:59 -07:00
Mark Salyzyn 1a9f875d3c am 7ea9e8d2: Merge "logd: switch to unordered_map from BasicHashtable"
* commit '7ea9e8d2662b54bc16f0c7a615c5ee650bf42ffa':
  logd: switch to unordered_map from BasicHashtable
2015-06-04 18:10:37 +00:00
Mark Salyzyn 7ea9e8d266 Merge "logd: switch to unordered_map from BasicHashtable" 2015-06-04 18:01:01 +00:00
Rom Lemarchand f46dda9665 am 4d2c1ee1: Merge "mkbootimg: misc typo fixes"
* commit '4d2c1ee1411fecfedc47ff90c25b2729e7984195':
  mkbootimg: misc typo fixes
2015-06-04 17:09:15 +00:00
Rom Lemarchand 4d2c1ee141 Merge "mkbootimg: misc typo fixes" 2015-06-04 17:01:00 +00:00
Rom Lemarchand a8221d3427 mkbootimg: misc typo fixes
- Fix whitespace in parse_int
- Use two dashes for kernel_offset instead of four

Change-Id: I59667da457d0f0d78a946e543d1aa0aec5e682d5
2015-06-04 09:59:01 -07:00
Mark Salyzyn 3ae69bbe03 am 79ae578e: Merge "liblog: logcat: Add printable format modifier"
* commit '79ae578eddaf0af5ef84ac7d71b3330d1a8c41ae':
  liblog: logcat: Add printable format modifier
2015-06-04 15:44:52 +00:00
Mark Salyzyn 79ae578edd Merge "liblog: logcat: Add printable format modifier" 2015-06-04 15:34:48 +00:00
Mark Salyzyn b932b2f8ba liblog: logcat: Add printable format modifier
- added printable format modifier:
  logcat -v printable
- opencoded borrowed individual utf8 validity checking algorithm
  from utf8_length() in libutils/Unicode.cpp
- if considered basic one-character ASCII, use popular \x escape
  sequences for non-printable
- logprint convert to C comments to drop mixed-mode

Bug: 19000361
Change-Id: I122a5b8fb41216fc0bc816178c0b768f3df56586
2015-06-04 08:27:29 -07:00
Elliott Hughes f360bed851 am ecb6d564: Merge "Add a working Windows tmpfile(3) to fastboot."
* commit 'ecb6d5648dd898ce61749fc4d59f38c373359bc7':
  Add a working Windows tmpfile(3) to fastboot.
2015-06-03 23:30:54 +00:00
Elliott Hughes ecb6d5648d Merge "Add a working Windows tmpfile(3) to fastboot." 2015-06-03 23:21:02 +00:00
Elliott Hughes a26fbeeaa4 Add a working Windows tmpfile(3) to fastboot.
Windows' tmpfile(3) implementation requires administrator rights because
it creates temporary files in the root directory. Write an alternative
that uses the user's temporary directory instead.

Bug: http://b/21558406
Change-Id: Ic9aece5c69429797a332a97681a76b76ac3551bf
2015-06-03 15:27:52 -07: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 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
Mark Salyzyn 511338dd57 logd: switch to unordered_map from BasicHashtable
BasicHashtable is relatively untested, move over to
a C++ template library that has more bake time.

Bug: 20419786
Bug: 21590652
Bug: 20500228
Change-Id: I926aaecdc8345eca75c08fdd561b0473504c5d95
2015-06-03 13:03:07 -07: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 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 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
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 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 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
Rom Lemarchand f34015bf36 Merge "mkbootimg: delete obsolete C source" 2015-06-02 23:13:13 +00:00