Commit Graph

27032 Commits

Author SHA1 Message Date
Mark Salyzyn 55a79c5b81 logcat: unit test produces log stutter am: a46326a51c
am: 9dd61ae4d7

Change-Id: If78f0d82a28de9b3bf66d5cf3a6df3e497bc7b16
2016-12-27 21:01:29 +00:00
Mark Salyzyn a229eab3ca liblog: test failures due to permission issues am: af3503cff4
am: 2720e854df

Change-Id: Ied5bd03cc299e7340165bb67d6773cdffa912287
2016-12-27 21:01:22 +00:00
Mark Salyzyn bf5f495d3e Merge changes I6145bae8,Ia9452b3e
am: f37948d659

Change-Id: I784a5c9ebada3f58ff73875ca5a971756dcbdf52
2016-12-27 20:54:30 +00:00
Mark Salyzyn 9dd61ae4d7 logcat: unit test produces log stutter
am: a46326a51c

Change-Id: I9cb8d659b92e580ddca45b9dac1c0f15092fde30
2016-12-27 20:54:28 +00:00
Mark Salyzyn 2720e854df liblog: test failures due to permission issues
am: af3503cff4

Change-Id: I2b9be834307b2bd342e397f4a7b69b53a4c7dc44
2016-12-27 20:54:22 +00:00
Treehugger Robot f37948d659 Merge changes I6145bae8,Ia9452b3e
* changes:
  logcat: unit test produces log stutter
  liblog: test failures due to permission issues
2016-12-27 20:45:31 +00:00
Mark Salyzyn a46326a51c logcat: unit test produces log stutter
logd now counts multiple identical messages, causing messages to be
held back.  Stop doing that in the tests.  When that filter appeared,
the logcat-unit-tests went from 23 seconds to a couple of minutes of
runtime breakign the automated testing.

Test: gTest logcat-unit-tests total time less than 1 minute.
Bug: 33845198
Bug: 33535908
Change-Id: I6145bae89b6d5e5024ef4f8fe66440c9ae53f7c6
2016-12-27 19:13:00 +00:00
Mark Salyzyn af3503cff4 liblog: test failures due to permission issues
Test: gTest liblog-unit-tests passes
Change-Id: Ia9452b3ee9e6068723e8bef48c4d88d3769951a8
2016-12-27 10:01:42 -08:00
Colin Cross 3506f9a88c Merge "Remove obsolete mentions of LLVM_HOST_BUILD_MK" am: 491c3871a0
am: 2c9681faf2

Change-Id: Id93abc42d9672fbf7c64f9ad1540f3c95f1df59d
2016-12-23 05:52:36 +00:00
Colin Cross 2c9681faf2 Merge "Remove obsolete mentions of LLVM_HOST_BUILD_MK"
am: 491c3871a0

Change-Id: I606d4f0a1ac2362d270acd79a55883492ccdc21c
2016-12-23 05:46:36 +00:00
Colin Cross 491c3871a0 Merge "Remove obsolete mentions of LLVM_HOST_BUILD_MK" 2016-12-23 05:41:20 +00:00
Myles Watson 7d55745708 Merge changes Idafeb835,Ie1a9bf85 am: 69eb60be5d
am: d5608eaad8

Change-Id: I5e6e2cb3255cf3c5dc6f1145ddeafd0e78de4160
2016-12-22 19:26:05 +00:00
Myles Watson f957e56909 libcutils: Use strnlen for default property values am: e67abec514
am: 6632536c0d

Change-Id: I1f0deb1837e96ec9d6bfc07a07b0c081c288ef9c
2016-12-22 19:25:59 +00:00
Myles Watson 57bbd25bd5 Use clang-format to fix up properties.c am: 22c0962ab9
am: 9fdf778dd0

Change-Id: I68493dd7d2cf6febdfcb883554047941114eb3aa
2016-12-22 19:25:50 +00:00
Myles Watson d5608eaad8 Merge changes Idafeb835,Ie1a9bf85
am: 69eb60be5d

Change-Id: I7bebd3709bae547e8b6be933e3f97803a25190f4
2016-12-22 19:12:58 +00:00
Myles Watson 6632536c0d libcutils: Use strnlen for default property values
am: e67abec514

Change-Id: I6ca6f239d62da491c8a9379a18fa89674c894fa1
2016-12-22 19:12:56 +00:00
Myles Watson 9fdf778dd0 Use clang-format to fix up properties.c
am: 22c0962ab9

Change-Id: Ic8eee14c2e415b6d39eb418fc2cfb96afe02f51f
2016-12-22 19:12:49 +00:00
Treehugger Robot 69eb60be5d Merge changes Idafeb835,Ie1a9bf85
* changes:
  libcutils: Use strnlen for default property values
  Use clang-format to fix up properties.c
2016-12-22 18:52:19 +00:00
Myles Watson e67abec514 libcutils: Use strnlen for default property values
Add unit tests to test the corner cases.

Test: unit tests pass before and after the change.
Change-Id: Idafeb8354cd6c7db2a68cd398dafe153453a3940
2016-12-22 09:21:06 -08:00
Myles Watson 22c0962ab9 Use clang-format to fix up properties.c
BasedOnStyle: Google
IndentWidth: 4
ColumnLimit: 100

Test: unit tests pass
Change-Id: Ie1a9bf85c001ef1a2dcdafdc5bf696b9267116f7
2016-12-22 09:20:57 -08:00
Paul Crowley 03d099c81a Merge "Ask the user before wiping if crypto policy fails." am: 1d5965e40f
am: da7fe657d3

Change-Id: I2279059f1c291cfab3b44bff6b1f05669bd3af99
2016-12-22 16:03:26 +00:00
Paul Crowley da7fe657d3 Merge "Ask the user before wiping if crypto policy fails."
am: 1d5965e40f

Change-Id: I93c46878aada1835a1159b54950ce9f8b3fdb777
2016-12-22 15:57:56 +00:00
Treehugger Robot 1d5965e40f Merge "Ask the user before wiping if crypto policy fails." 2016-12-22 15:52:44 +00:00
David Pursell c56d63e59d fastboot: update getvar documentation.
The protocol doc states that calling `fastboot getvar` for an unknown
variable should return an empty OKAY message, but in reality modern
devices return a FAIL response in this case (tested with marlin and
shamu).

Additionally, some A/B logic in fastboot expects a FAIL response for
unknown variables in order to function properly.

This CL changes the documentation to match reality.

Bug: http://b/33756193
Test: none
Change-Id: I41f7c80585be73e60ca0ac216787596c4d60a1d5
2016-12-21 15:59:50 -08:00
Mark Salyzyn da471bc6e2 Merge "liblog: add IF_ALOG_RATELIMIT" am: 3d6d5b101a
am: 342276b428

Change-Id: I153173081b7b723fa749d47bd265dbfed4ee7fa6
2016-12-21 22:04:28 +00:00
Jaekyun Seok 86e80b9be0 Use shared lib of libutils, libz and libbase.
libutils, libz and libbase are being used as shared lib by many other
modules.
So using their shared lib will reduce total image size.

Size diffs on angler build image are as follows.

libziparchive.so  : 103844 -> 41680 (-62164)
libnativeloader.so:  50824 -> 25104 (-25720)
total             : (-87884)

Test: building succeeded, and the image was tested on angler.
Bug: 33056637
Change-Id: I015afe5b8f4d87d495b706e2e78d60f44a910e87
2016-12-22 07:03:26 +09:00
Mark Salyzyn 342276b428 Merge "liblog: add IF_ALOG_RATELIMIT"
am: 3d6d5b101a

Change-Id: I762185e364279f2478b601b74379a8daaa4297e0
2016-12-21 22:00:20 +00:00
Treehugger Robot 3d6d5b101a Merge "liblog: add IF_ALOG_RATELIMIT" 2016-12-21 21:55:32 +00:00
Mark Salyzyn 842928b4bd Merge "logd: LogBufferElementKey use uint32_t for uid" am: 3fa88d8689
am: 41a117dbcb

Change-Id: I26948cf98f7bbd4383e79e09bdde65c612dabadf
2016-12-21 21:53:39 +00:00
Mark Salyzyn 41a117dbcb Merge "logd: LogBufferElementKey use uint32_t for uid"
am: 3fa88d8689

Change-Id: I658b42b503404b1c907c1901dc265accc9b01e61
2016-12-21 21:49:29 +00:00
Treehugger Robot 3fa88d8689 Merge "logd: LogBufferElementKey use uint32_t for uid" 2016-12-21 21:40:11 +00:00
Paul Crowley 0b8b2303ac Ask the user before wiping if crypto policy fails.
If crypto policy fails, instruct recovery to prompt the user before
wiping all data.

Test: adb shell rmdir /data/ota && adb shell mkdir -p /data/ota/forcefail && adb reboot
Bug: 28693324
Change-Id: I4d09b35a20c513a76c9ba56fe826114449a9ad68
2016-12-21 13:39:23 -08:00
Mark Salyzyn fc148f7f33 liblog: add IF_ALOG_RATELIMIT
IF_ALOG_RATELIMIT()
    ALOGE("Only one message globally using IF_ALOG_RATELIMIT()"
          " in the process may appear ever ten seconds,"
          " (%s)", strerror(errno));

static time_t last; /* initial state zero */
IF_ALOG_RATELIMIT_LOCAL(60, &last)
    ALOGE("Only one message locally may appear every minute,"
          " (%s)", strerror(errno));

These new calls are guaranteed not to affect the value of a
non-zero errno to simplify logging of errors.  However, the
ALOGE calls in the above examples may update the errno value
upon their return.

Test: gTest liblog-unit-tests --gtest_filter=liblog.__android_log_ratelimit
Bug: 33535908
Change-Id: Id8cc192fc7d14504ffd418933cf88ae945c089f2
2016-12-21 21:36:14 +00:00
Mark Salyzyn 684bdb576d logd: LogBufferElementKey use uint32_t for uid
Test: gTest liblog-unit-tests, logd-unit-tests & logcat-unit-test
Change-Id: Icae34b1fa0b3df0a45ad175ec81aaf232f322f38
2016-12-21 12:16:46 -08:00
Christian Poetzsch 3081c5ebfb libziparchive: use _FILE_OFFSET_BITS=64
On 32 bit system those calls may fail if one tries to unpack files which
are bigger than 2GB.

Use large file system support to fix this problem.

Test: unpack a file bigger than 2GB on 32 bit Android systems

Change-Id: Ibd9bd5fc4a2f8dc7df98bd595f4fd1638a4f0d4a
Signed-off-by: Christian Poetzsch <christian.potzsch@imgtec.com>
2016-12-21 12:05:10 +00:00
Dan Willemsen 0209a3cd07 Merge "Add system/core/Android.bp" am: 8a1c4b8530
am: 453faf66d8

Change-Id: I574e6ee52643004beb718543f291c5f85753026d
2016-12-20 20:42:05 +00:00
Mark Salyzyn 2263d78515 Merge "logd: trailing spaces in log statistics (part deux)" am: 2ead17196c
am: 741051d066

Change-Id: I65cbe04f77e2651c4d71782164d2b268727b702f
2016-12-20 20:41:45 +00:00
Mark Salyzyn 2888798e8d Merge "Revert "logd: trailing spaces in log statistics"" am: 1fa079b255
am: 827973369d

Change-Id: If9e9ae745c9df25cbd07766fd531628021ab672a
2016-12-20 20:41:32 +00:00
Dan Willemsen 453faf66d8 Merge "Add system/core/Android.bp"
am: 8a1c4b8530

Change-Id: I3152b6ff9ee59a0997753540891446c6053542a1
2016-12-20 20:33:23 +00:00
Treehugger Robot 8a1c4b8530 Merge "Add system/core/Android.bp" 2016-12-20 20:25:09 +00:00
Dan Willemsen d66e7bb7cf Add system/core/Android.bp
Test: Soong's build.ninja is identical before/after (except GlobRules)
Change-Id: I97c1e4cedad1dfc8622abb6cfed6257971199a96
2016-12-20 10:58:18 -08:00
Mark Salyzyn 741051d066 Merge "logd: trailing spaces in log statistics (part deux)"
am: 2ead17196c

Change-Id: If4ed858ba2885c532e3ffd424dada114fcd9d510
2016-12-20 18:52:39 +00:00
Mark Salyzyn 827973369d Merge "Revert "logd: trailing spaces in log statistics""
am: 1fa079b255

Change-Id: I19eb25472a59f2b82e711552aae7fa74085d93ba
2016-12-20 18:52:24 +00:00
Treehugger Robot 2ead17196c Merge "logd: trailing spaces in log statistics (part deux)" 2016-12-20 18:16:15 +00:00
Treehugger Robot 1fa079b255 Merge "Revert "logd: trailing spaces in log statistics"" 2016-12-20 18:16:00 +00:00
forfun 4d592aba52 Merge "modify a minor error in mount_with_alternatives Test: when called with end_idx = null" am: 3080ce2fe4
am: d3435f5d31

Change-Id: If9cd28111e7c8dc2635b27d7bd28fe608eeb78fa
2016-12-20 02:17:06 +00:00
forfun d3435f5d31 Merge "modify a minor error in mount_with_alternatives Test: when called with end_idx = null"
am: 3080ce2fe4

Change-Id: I3b7b2167a9d3cd492bb9970e9330ca965d0fb843
2016-12-20 02:13:07 +00:00
Treehugger Robot 3080ce2fe4 Merge "modify a minor error in mount_with_alternatives Test: when called with end_idx = null" 2016-12-20 02:08:36 +00:00
Mark Salyzyn 6b0b5dad26 Merge "logd: sum liblog tag messages" am: 27425fd80d
am: 0f3c31086d

Change-Id: Ib1ccd333aea17bc4120976bc32d9d108d0fb651e
2016-12-19 23:54:08 +00:00
Mark Salyzyn 70489ff0b6 Merge "logd: correct duplicate message state machine" am: 9fa0215e15
am: ebfba62dcb

Change-Id: I1c0a344e926bbd92308131c7ba6c1c47364cfee9
2016-12-19 23:53:56 +00:00