Commit graph

30652 commits

Author SHA1 Message Date
Keun-young Park
59450de73c Merge "add ro.boottime.init.mount_all.* for measuring mount time" am: 0c93ab67c6 am: e6a86f0bbb
am: 2a47dbd150

Change-Id: I7172d631ddb78634bc988d719c390ccf105b204c
2017-03-06 19:56:28 +00:00
Keun-young Park
2a47dbd150 Merge "add ro.boottime.init.mount_all.* for measuring mount time" am: 0c93ab67c6
am: e6a86f0bbb

Change-Id: I8fde62ad6737a4c5957278f6a0cc1660cdb88db0
2017-03-06 19:39:46 +00:00
Keun-young Park
e6a86f0bbb Merge "add ro.boottime.init.mount_all.* for measuring mount time"
am: 0c93ab67c6

Change-Id: Ib00eb7a66d317885f791cf80969ae75931309232
2017-03-06 19:36:49 +00:00
Keun-young Park
0c93ab67c6 Merge "add ro.boottime.init.mount_all.* for measuring mount time" 2017-03-06 19:25:50 +00:00
Alex Klyubin
194bc63db4 Merge "Log stderr of secilc" am: 8b4e7fe486 am: 590cf28434
am: c27f611ea6

Change-Id: I70fd5c8e3ecdb45e60c35d3637fc1c032d7d15e8
2017-03-06 19:17:17 +00:00
Bowgo Tsai
8789cd5292 Merge "fs_mgr: allow disable dm-verity when the device is unlocked without metadata" am: 17c84b2cca am: 63b22a3eb1
am: 944c9f667c

Change-Id: I905f5d7be07fa77f8846edec56eef9a1fb298296
2017-03-06 19:13:18 +00:00
Alex Klyubin
c27f611ea6 Merge "Log stderr of secilc" am: 8b4e7fe486
am: 590cf28434

Change-Id: Ieefd0cd88aebbbd9fdc9372d86119867b2a5593e
2017-03-06 19:13:16 +00:00
Bowgo Tsai
944c9f667c Merge "fs_mgr: allow disable dm-verity when the device is unlocked without metadata" am: 17c84b2cca
am: 63b22a3eb1

Change-Id: I15110e1403bbd3b99f9f2ad72d1e092b83beeb0b
2017-03-06 19:09:47 +00:00
Alex Klyubin
590cf28434 Merge "Log stderr of secilc"
am: 8b4e7fe486

Change-Id: Ifb78f10609d36e4f20a45745f77e075d439ed861
2017-03-06 19:09:46 +00:00
Bowgo Tsai
63b22a3eb1 Merge "fs_mgr: allow disable dm-verity when the device is unlocked without metadata"
am: 17c84b2cca

Change-Id: I4e0e5ed112cb8d8abd0ee666e1c4d903713c9bbd
2017-03-06 19:06:48 +00:00
Treehugger Robot
8b4e7fe486 Merge "Log stderr of secilc" 2017-03-06 19:06:13 +00:00
Treehugger Robot
17c84b2cca Merge "fs_mgr: allow disable dm-verity when the device is unlocked without metadata" 2017-03-06 18:57:02 +00:00
Mark Salyzyn
07177c5635 Merge "liblogcat: introduce getopt_long_r" am: 58381648b1 am: 68741efbe3
am: 700ba9591c

Change-Id: Ic369e7901ff5be09526f575afe7f2d42e2ceff00
2017-03-06 18:39:51 +00:00
Mark Salyzyn
700ba9591c Merge "liblogcat: introduce getopt_long_r" am: 58381648b1
am: 68741efbe3

Change-Id: I12097e6e01528c7ba9b6f95355fd7ff648accfe8
2017-03-06 18:32:49 +00:00
Mark Salyzyn
68741efbe3 Merge "liblogcat: introduce getopt_long_r"
am: 58381648b1

Change-Id: I3a3994f8f5d5f52b47239bd9aebb849a14eb3c8c
2017-03-06 18:26:20 +00:00
Treehugger Robot
58381648b1 Merge "liblogcat: introduce getopt_long_r" 2017-03-06 18:18:48 +00:00
Mark Salyzyn
bfeda9a6b4 Merge "liblog: logprint, error return and truncated data" am: 07169227e1 am: f7f0b53aec
am: 9f051eec77

Change-Id: I18734f92e7a981b43d8fc250f4fa0a7b17f21a58
2017-03-06 16:42:37 +00:00
Mark Salyzyn
e9ade17418 liblogcat: introduce getopt_long_r
Resolve one of the threading issues by creating a private C++ified
copy of getopt_long_r that started out its life as the bionic
getopt_long, but is reentrant.  Adds a new state context for the
stderr stream called optstderr.  Utilize this new function in logcat.
Control opterr and optstderr to match liblogcat expectations.  Correct
and fortify const.

Alternative would be to lock around _all_ getopt callers.  This has
the advantage of requiring _no_ locks that could get in the way of
using liblogcat in a signal handler.  The log reader interface does
run the risk of incurring locks and heap allocations though, so there
is more work to be done for that final goal.

Test: gTest logcat-unit-tests
Bug: 35326290
Change-Id: Ibb1b374c55d357d5d7fa5ad00bfaf07ae0bc4ba5
2017-03-06 08:40:16 -08:00
Mark Salyzyn
9f051eec77 Merge "liblog: logprint, error return and truncated data" am: 07169227e1
am: f7f0b53aec

Change-Id: I3cf6ba292a61cb68b9fa822120217ad99141bc82
2017-03-06 16:39:05 +00:00
Mark Salyzyn
f7f0b53aec Merge "liblog: logprint, error return and truncated data"
am: 07169227e1

Change-Id: I2adb74fe54dfb6a4a6cc4b3f1a2898d7e0650560
2017-03-06 16:36:38 +00:00
Mark Salyzyn
07169227e1 Merge "liblog: logprint, error return and truncated data" 2017-03-06 16:31:35 +00:00
Bowgo Tsai
7ad3159db9 fs_mgr: allow disable dm-verity when the device is unlocked without metadata
To start Treble VTS test, a single AOSP system.img will be flashed onto
the device. The size of AOSP system.img might be different than the
system partition size on device, making locating verity metadata fail
(at the last fixed size of the partition).

This change allows disabling dm-verity on system partition when the
device is unlocked (orange device state) with invalid metadata.

BUG: 35603549

Test: Boot bullhead with a different-sized system.img, checks verity is
      not enabled via:

          "adb shell getprop | grep partition.system.verified"

Change-Id: Id89d023e82c78ff1902ab7a528431cf7f65e49ad
2017-03-06 16:04:03 +08:00
Alex Klyubin
1185050767 Log stderr of secilc
This makes init log stderr of secilc invoked to compile SELinux
policy. Having an explanation for why secilc failed is very useful for
debugging boot issues.

Test: Device with PRODUCT_FULL_TREBLE boots up just fine
Test: Modified init.cpp to reference non-existent .cil file on a device
      with PRODUCT_FULL_TREBLE and confirmed that dmesg now contains the
      error message from secilc saying that the file was not found.
Bug: 31363362

Change-Id: I6a3b3576daf0d6fd09e2c79bc43ae63850f44a00
2017-03-05 14:29:16 -08:00
Ralph Nathan
c812689e6d Merge "Convert libbinderwrapper_test_support to be a static library" am: f5dea8b393 am: 062a372ca7
am: d5f9ba7d0c

Change-Id: I2531ab8830d406f544b29ae7c9be8844af2178e0
2017-03-04 07:14:19 +00:00
Ralph Nathan
d5f9ba7d0c Merge "Convert libbinderwrapper_test_support to be a static library" am: f5dea8b393
am: 062a372ca7

Change-Id: I3aabdf2d60774be20a675020c4b652a61a4a5deb
2017-03-04 07:11:18 +00:00
Ralph Nathan
062a372ca7 Merge "Convert libbinderwrapper_test_support to be a static library"
am: f5dea8b393

Change-Id: I4288e975812fa753393faf8e82831eeab10957fd
2017-03-04 07:08:48 +00:00
Treehugger Robot
f5dea8b393 Merge "Convert libbinderwrapper_test_support to be a static library" 2017-03-04 07:03:34 +00:00
Keun-young Park
69fae7b3dc add ro.boottime.init.mount_all.* for measuring mount time
- three properties: .early, .default, .late
- for tracking critical early boot times

bug: 35949600
Test: manual, getprop after boot

Change-Id: I851891518428e6e21cb43a2a6f982ab7db281d4c
2017-03-03 18:57:09 -08:00
Ralph Nathan
823aeffbcf Convert libbinderwrapper_test_support to be a static library
Some unittests require libbinderwrapper_test_support.so and fail
because it isn't on userdebug images.

Bug: 30631078, 35804180
Test: `make dist`

(cherry picked from commit 6515f36e43082ea105115de7e34d9cd09c77220a)

Change-Id: I4d8878de8963d0cbd29d6aca4b233ba674121688
2017-03-03 17:14:04 -08:00
TreeHugger Robot
5612ba6769 Merge "clean-up libutils includes" 2017-03-04 00:52:44 +00:00
Elliott Hughes
c3beacef9b Merge "Small debuggerd improvements." am: 4463c820a6 am: 24cb6dd765
am: 9208ed7d51

Change-Id: If41cc84258feeab769802b620a6f2a3fe6a1e445
2017-03-04 00:40:06 +00:00
Elliott Hughes
9208ed7d51 Merge "Small debuggerd improvements." am: 4463c820a6
am: 24cb6dd765

Change-Id: Ib778422f09d9d7fbfbc1069769097c7abf514adb
2017-03-04 00:37:02 +00:00
Josh Gao
3314797ad0 Merge "adb: turn on libusb by default." am: 817b2f3b2c am: ef501512fa
am: c92f1c2ba7

Change-Id: I941351d24ce7d61253ef2c8424b134a35af9fc2d
2017-03-04 00:36:51 +00:00
Elliott Hughes
24cb6dd765 Merge "Small debuggerd improvements."
am: 4463c820a6

Change-Id: I893c52600464c2541c2be8701d831a4d11e12836
2017-03-04 00:33:24 +00:00
Josh Gao
c92f1c2ba7 Merge "adb: turn on libusb by default." am: 817b2f3b2c
am: ef501512fa

Change-Id: If47ca0f1e6d09ff3dc9481f9cd68e6ff315f7781
2017-03-04 00:33:21 +00:00
Josh Gao
ef501512fa Merge "adb: turn on libusb by default."
am: 817b2f3b2c

Change-Id: Iaeefdcc45a5b96243b0b47822361d71c6e154b6e
2017-03-04 00:31:11 +00:00
Elliott Hughes
4463c820a6 Merge "Small debuggerd improvements." 2017-03-04 00:20:14 +00:00
Josh Gao
817b2f3b2c Merge "adb: turn on libusb by default." 2017-03-04 00:11:10 +00:00
Mathias Agopian
22dbf3947f clean-up libutils includes
moved Foo.h as first include of Foo.cpp, and
removed redundant includes.

Made NativeHandle non virtual.


Test: run & compile
Bug: n/a

Change-Id: I37fa746cd42c9ba23aba181f84cb6c619386406a
2017-03-03 14:47:47 -08:00
TreeHugger Robot
4b0af67141 Merge "Add queries for surface color space support" 2017-03-03 22:12:52 +00:00
Alex Klyubin
c8a9695709 Merge "Track the move of split SELinux policy CIL files" am: 8df4dded13 am: c46245a541
am: 712ba302d0

Change-Id: Ibed81fffcb027c8519ee14ff0460b74db388d02a
2017-03-03 21:56:25 +00:00
Alex Klyubin
712ba302d0 Merge "Track the move of split SELinux policy CIL files" am: 8df4dded13
am: c46245a541

Change-Id: Ib3feef2a0c7db446208be74620116562ba1f8121
2017-03-03 21:53:22 +00:00
Alex Klyubin
c46245a541 Merge "Track the move of split SELinux policy CIL files"
am: 8df4dded13

Change-Id: I4c6f911ab9aa6062370e90d15f82a470cdcf8147
2017-03-03 21:50:26 +00:00
Alex Klyubin
8df4dded13 Merge "Track the move of split SELinux policy CIL files" 2017-03-03 21:43:24 +00:00
Mathias Agopian
c13927463d Merge "add libnativewindow to the linker whitelist" 2017-03-03 20:53:19 +00:00
TreeHugger Robot
6048d9db5f Merge "storaged: track fsync calls" 2017-03-03 20:12:21 +00:00
Mark Salyzyn
b1d150bc42 liblog: logprint, error return and truncated data
android_log_processBinaryLogBuffer and android_log_processLogBuffer
error return should have message and messageLen fields set to zero,
or to a valid-but-truncated buffer so that we can discern the
difference.  This will resolve an issue with reporting content from
an uninitialized field in liblogcat should caller add --debug flag.

To enhance the debugging capability, truncated string events because
of the logger limits are provided rather than dropping the field, but
still with an error return.

Some minor coding style issues resolved. Add required, or remove
extraneous spaces.  Use C-style comments only.

Test: gtest liblog-unit-tests
Bug: 27405083
Bug: 35326290
Change-Id: I4a7ddd7278fb1c582f921e1ba10e0765fadb791b
2017-03-03 11:10:11 -08:00
Alex Klyubin
c2a4c9ab9a Track the move of split SELinux policy CIL files
The three CIL files comprising split sepolicy are being moved from the
root directory to system and vendor directories based on whether the
file is for platform/system policy or non-platform/vendor policy.

Test: Device boots, no additional SELinux denials. This test was run
      for a device which has split policy and for a device which has
      monolithic policy.
Bug: 31363362
Change-Id: Ica49f0beae56be0f1cea7117e48bf2f6af8b848b
2017-03-03 10:35:10 -08:00
Courtney Goeltzenleuchter
fbef1c3c79 Add queries for surface color space support
Add two queries to query if the current surface can support
wide-color (Display-P3) or HDR.
Test: TBD CTS test

Change-Id: I2c68b0e1b1e0c2a0257e0c93f60cb8d84de20b4a
2017-03-03 08:04:43 -07:00
Courtney Goeltzenleuchter
523b1549bb Merge "Add dataspace to match upstream EGL extension" 2017-03-03 14:44:08 +00:00