Commit graph

41587 commits

Author SHA1 Message Date
Jiyong Park
058aa0c3e1 Shared libs are supported in recovery mode am: 011ee12b1d
am: 4ebda908de

Change-Id: I538e886d5a7b946ca2fea6dfad156bbbc8e485c2
2018-06-13 17:07:07 -07:00
TreeHugger Robot
985b8a171c Merge "bootstat: clear persist.sys.boot.reason once read" into pi-dev-plus-aosp 2018-06-14 00:02:37 +00:00
Sandeep Patil
63df7c5ad8 Merge changes from topic "libdm" am: b066bbebd1
am: ee888fe1d3

Change-Id: I8024aebc73db5597cc18ad1e052d9ee4c996f106
2018-06-13 16:52:47 -07:00
Jiyong Park
4ebda908de Shared libs are supported in recovery mode
am: 011ee12b1d

Change-Id: I867dbafecf11215b82d952c532774cdf12c6e782
2018-06-13 16:43:09 -07:00
Sandeep Patil
ee888fe1d3 Merge changes from topic "libdm"
am: b066bbebd1

Change-Id: I2e7c1c71c9c7e25797a79702ceeafe756f457d26
2018-06-13 16:41:51 -07:00
Elliott Hughes
8d2ad48154 Merge "libsparse: add OWNERS." am: 06651fbe02
am: e7deab1253

Change-Id: I79be3809cee5637d0b12596d3b820aeb020da963
2018-06-13 16:34:25 -07:00
Jesse Hall
129e15b592 Merge "sync: remove legacy sync info API" am: 43c4bbd965
am: ba60bbb45d

Change-Id: I6b5636c025c17ac6f3eb52b3cfbe3f83efc818f9
2018-06-13 16:33:44 -07:00
Treehugger Robot
b066bbebd1 Merge changes from topic "libdm"
* changes:
  fs_mgr: libdm: Add support to list existing device mapper devices
  fs_mgr: libdm: add support to create and delete device mapper devices.
  fs_mgr: device mapper: Add libdm and 'dmctl' tool to use it.
2018-06-13 22:45:30 +00:00
Elliott Hughes
e7deab1253 Merge "libsparse: add OWNERS."
am: 06651fbe02

Change-Id: I2423d8efe49301fbc389f4f9ecb1715f778e2758
2018-06-13 15:39:28 -07:00
Jesse Hall
ba60bbb45d Merge "sync: remove legacy sync info API"
am: 43c4bbd965

Change-Id: If3587cfb71a8c98b741f726668536614d2d07c96
2018-06-13 15:38:54 -07:00
Treehugger Robot
06651fbe02 Merge "libsparse: add OWNERS." 2018-06-13 21:48:29 +00:00
Treehugger Robot
43c4bbd965 Merge "sync: remove legacy sync info API" 2018-06-13 21:34:54 +00:00
Jerry Zhang
8e9529a298 Merge changes I8e44ba77,Ib8b933fe am: 8e41582c8d
am: e077b45898

Change-Id: Ie9b95f0c16ca3e285ca3cd68aee9653b4c0ba019
2018-06-13 13:55:22 -07:00
Wei Wang
2e57587163 Merge "init: Add warning in init first stage mount" am: 4aa8421203
am: 849ea35725

Change-Id: I8b4ee4de37e4e8ce346979aef79161af253d5efa
2018-06-13 13:54:42 -07:00
Jerry Zhang
e077b45898 Merge changes I8e44ba77,Ib8b933fe
am: 8e41582c8d

Change-Id: I1a122365e2d007689dd70fbd021acac66e171ff7
2018-06-13 13:52:32 -07:00
Wei Wang
849ea35725 Merge "init: Add warning in init first stage mount"
am: 4aa8421203

Change-Id: I5f8d12857a40ae68fecb86f5f3c069182e0261ef
2018-06-13 13:51:33 -07:00
Sandeep Patil
f603cfdd70 fs_mgr: libdm: Add support to list existing device mapper devices
Test: dmctl create system; dmctl list devices; dmctl delete system;
      dmctl list devices
Bug: 110035986

Change-Id: I4ae5d40041458421068976fa2a99c662c542a9a1
Signed-off-by: Sandeep Patil <sspatil@google.com>
2018-06-13 13:50:21 -07:00
Treehugger Robot
8e41582c8d Merge changes I8e44ba77,Ib8b933fe
* changes:
  libsparse: Add .clang-format and reformat to google3 style
  libsparse: Change source files to cpp
2018-06-13 20:47:14 +00:00
Treehugger Robot
4aa8421203 Merge "init: Add warning in init first stage mount" 2018-06-13 20:39:32 +00:00
Sandeep Patil
45d94ab683 fs_mgr: libdm: add support to create and delete device mapper devices.
Test: dmctl create system; dmctl delete system
Test: verify that ueventd creates /dev/block/dm-X and verify the dm
device name from /sys/block/dm-X/dm/name
Bug: 110035986

Change-Id: I2a08e2ea7007c0c13fe64d444f0d6618784edae7
Signed-off-by: Sandeep Patil <sspatil@google.com>
2018-06-13 13:35:48 -07:00
Sandeep Patil
59f04ee74c fs_mgr: device mapper: Add libdm and 'dmctl' tool to use it.
libdm is small static library that is intended to be the one source to
control device mapper. It is intended to have APIs to create, control
and destroy device mapper targets. Eventually, all fs_mgr implementation
that talks to device mapper will be moved to using libdm APIs.

Added 'dmctl', a command line tool that lists the registered device
mapper targets and their corresponding version. The tool will continue
to get new features to exemplify new APIs implemented in libdm.

The library is intentionally static and folds into libfs_mgr. All
clients must link to libfs_mgr as a result.

Test: dmctl list
Bug: 110035986

Change-Id: I71e7146073a74e7523524bf3b20d0be6d06f9fad
Signed-off-by: Sandeep Patil <sspatil@google.com>
2018-06-13 13:35:44 -07:00
Jerry Zhang
7b444f08c1 libsparse: Add .clang-format and reformat to google3 style
Bug: 78793464
Test: compiles
Change-Id: I8e44ba77195a12fc2bac7d4276bbc4aa95149b31
2018-06-13 20:32:24 +00:00
Elliott Hughes
b0de38a68a Merge "logd: make behavior more consistent across builds." am: b7761b2673
am: e2e423fd2c

Change-Id: I23288c4ccfa9756c0dec2d1b3410c8dcf73d265b
2018-06-13 12:54:34 -07:00
Jerry Zhang
faeb7fa46e Merge "libsparse: Add method to create sparse file from buffer" am: 0a257c7715
am: 095b7c805c

Change-Id: I3824353afebf446085723e2378e8590a417c231a
2018-06-13 12:53:52 -07:00
Elliott Hughes
e2e423fd2c Merge "logd: make behavior more consistent across builds."
am: b7761b2673

Change-Id: I51582e316f4d0ff611ca773eafef536cda1743a6
2018-06-13 12:51:17 -07:00
Jerry Zhang
095b7c805c Merge "libsparse: Add method to create sparse file from buffer"
am: 0a257c7715

Change-Id: I4f1cce78f1b6a110dcd2dafa823742ec28e821b0
2018-06-13 12:50:43 -07:00
Elliott Hughes
b7761b2673 Merge "logd: make behavior more consistent across builds." 2018-06-13 19:45:56 +00:00
Elliott Hughes
91e66ab14a libsparse: add OWNERS.
Bug: N/A
Test: N/A
Change-Id: Ie26da2ff47de4cef20050b996a04d53c2b5c358f
2018-06-13 12:43:08 -07:00
Treehugger Robot
0a257c7715 Merge "libsparse: Add method to create sparse file from buffer" 2018-06-13 19:42:41 +00:00
Jesse Hall
82d377b585 sync: remove legacy sync info API
The legacy fence/pt info API has been deprecated for a while. This
change removes it from headers, so remaining users will have to switch
to the modern API when they're re-compiled. The functions are still
provided by libsync.so and tests remain, so existing binaries should
continue to work. Eventually these will be removed too, though, once
it's reasonable to expect those binaries to have been recompiled.

This reverts commit eed25df46a, which
reverted the previous attempt in commit
798ba95bda now that more users of the
legacy API have been converted.

Bug: 35326015
Test: make checkbuild
Test: adb shell dumpsys SurfaceFlinger --latency
2018-06-13 11:52:10 -07:00
Jerry Zhang
5a75507795 libsparse: Change source files to cpp
Bug: 78793464
Test: compiles
Change-Id: Ib8b933fe3ccb8dfa49a77f7955891678bf0df086
2018-06-13 11:17:22 -07:00
Wei Wang
fdafb3d0ec init: Add warning in init first stage mount
init need find required devices and it some times takes a long time due
to rogue drivers. Add a warning if the timing is longer than 50ms.

Bug: 80494921
Test: Reboot
Change-Id: I8f937d7ca7127dc89ed76bb6e5f1781459d5c94a
2018-06-13 11:02:13 -07:00
Elliott Hughes
cef62b4014 logd: make behavior more consistent across builds.
Bug: 110127913
Test: boots
Change-Id: I0c1efacfb5ac0407e896ddde0bcc63927edc0525
2018-06-13 10:34:43 -07:00
Luis Hector Chavez
a1d1eeae9f Merge "logd: Stop calling prctl(PR_SET_KEEPCAPS, 1)" am: 7222199281
am: 16d0c4617a

Change-Id: I36a843b82c87b52a2ff85e47c10a075bcd41a1a2
2018-06-13 09:55:12 -07:00
Luis Hector Chavez
16d0c4617a Merge "logd: Stop calling prctl(PR_SET_KEEPCAPS, 1)"
am: 7222199281

Change-Id: I6c2565f9d1efd11d378bd7e1b865aa0a7e46b9de
2018-06-13 09:51:07 -07:00
Treehugger Robot
7222199281 Merge "logd: Stop calling prctl(PR_SET_KEEPCAPS, 1)" 2018-06-13 16:41:15 +00:00
Luis Hector Chavez
499f3a2aed logd: Stop calling prctl(PR_SET_KEEPCAPS, 1)
This change removes the call to prctl(PR_SET_KEEPCAPS, 1), because now
that logd is being run with ambient capabilities, init will set the
KEEP_CAPS / KEEP_CAPS_LOCKED securebits.

Bug: 110127913
Test: liblog-unit-tests, logd-unit-tests, logcat-unit-tests
      (on an aosp_sailfish-userdebug)

Change-Id: I72b6a49c5cd1552085f9ad44cb19a7333a13eeea
2018-06-13 07:36:23 -07:00
Christopher Ferris
f20086b239 Merge "Fix handling of load bias values." am: 9c1d75983a
am: 8ad4f27932

Change-Id: I479a6a56c7e2953fb3fec3c61a7a868d013da62a
2018-06-12 18:04:54 -07:00
Christopher Ferris
8ad4f27932 Merge "Fix handling of load bias values."
am: 9c1d75983a

Change-Id: I6cde23f871fa5e36b0b9333f5fba8bd86dc56f48
2018-06-12 18:00:25 -07:00
Christopher Ferris
9c1d75983a Merge "Fix handling of load bias values." 2018-06-13 00:43:13 +00:00
Elliott Hughes
1da703dfd1 Merge "libcutils: add OWNERS." am: cd7244100b
am: fdd7062e09

Change-Id: Iee30f115f5d8a6d6e3be04cb499f7e5ac55a1962
2018-06-12 16:08:40 -07:00
Tom Cherry
b8c35ed741 Merge "ueventd: fix extraneous 'Invalid section' error" am: 86e65e9cac
am: daa054fa11

Change-Id: If652db4bd67b5777dfc8b0d6bb41c365fdf7121d
2018-06-12 16:07:49 -07:00
Luis Hector Chavez
e8180eb35a Merge "bootstat: Remove the CAP_SYSLOG capability" am: cefd4e56ad
am: bfe1835d82

Change-Id: I9177be2fe0542dfb73bf0757dafd040448bd9624
2018-06-12 16:06:48 -07:00
Luis Hector Chavez
74f8c523db Merge "logd: Move the capabilities from file based to ambient" am: 28cd2a02b1
am: 3276b57542

Change-Id: I36608a37e511003f5a507968f02ef89e9a1a2045
2018-06-12 16:05:46 -07:00
Tom Cherry
556747a00f Merge "init: Actually check the return value for calls during first stage init" am: 413bf61e48
am: 6e31a2b9ae

Change-Id: I7c5ccbeaed04f563d01dfb6401cffdce727aef94
2018-06-12 16:04:10 -07:00
Elliott Hughes
fdd7062e09 Merge "libcutils: add OWNERS."
am: cd7244100b

Change-Id: I76a7d21a1387cc3cab77dfe95c42674dd1c0bac0
2018-06-12 15:50:18 -07:00
Treehugger Robot
cd7244100b Merge "libcutils: add OWNERS." 2018-06-12 22:46:28 +00:00
Tom Cherry
daa054fa11 Merge "ueventd: fix extraneous 'Invalid section' error"
am: 86e65e9cac

Change-Id: Ia317ea6029f9251639c5b8875eaa5536880ae5f2
2018-06-12 15:18:34 -07:00
Tom Cherry
86e65e9cac Merge "ueventd: fix extraneous 'Invalid section' error" 2018-06-12 22:05:48 +00:00
Luis Hector Chavez
bfe1835d82 Merge "bootstat: Remove the CAP_SYSLOG capability"
am: cefd4e56ad

Change-Id: I0a0627228434d0284b4f535942c97121d9773e14
2018-06-12 15:00:42 -07:00