Commit graph

40524 commits

Author SHA1 Message Date
Jaekyun Seok
d23dd375ff [automerger skipped] Merge "Allow vendor-init-actionable for wlan.driver.status and init.svc.surfaceflinger" into pi-dev
am: a4217d03a7  -s ours

Change-Id: Id178a35bd91bbc6981e0b06de6fc0cb022d8681a
2018-04-05 15:46:22 -07:00
TreeHugger Robot
a4217d03a7 Merge "Allow vendor-init-actionable for wlan.driver.status and init.svc.surfaceflinger" into pi-dev 2018-04-05 22:34:43 +00:00
Josh Gao
dab5c00069 Merge "adbd: configure jemalloc to not immediately purge." am: fa1f191ad9
am: 6d200f0982

Change-Id: If954ee1107a9ecb1edd15ba36aeeada7fd6239a9
2018-04-05 15:32:35 -07:00
Josh Gao
6d200f0982 Merge "adbd: configure jemalloc to not immediately purge."
am: fa1f191ad9

Change-Id: I73bb95509c0ded7fb1e4c8755074ccfd1ddb88fe
2018-04-05 15:25:57 -07:00
Treehugger Robot
fa1f191ad9 Merge "adbd: configure jemalloc to not immediately purge." 2018-04-05 22:14:05 +00:00
Josh Gao
218f766e21 adbd: configure jemalloc to not immediately purge.
Profiling of adb_benchmark revealed that something like half of the CPU
time was being spent in malloc and free, which was odd because the
benchmark repeatedly mallocs and frees allocations of the same size. It
turns out that our default configuration of jemalloc will purge after
every free. Configure jemalloc to not do this, for gains of over 100%
on adb_benchmark, and up to 25% (on walleye USB3) in real-life.

Test: adb_benchmark
Change-Id: I602dd1645c3d21709c7f6a78903511ce4d576558
2018-04-05 15:13:30 -07:00
Jaekyun Seok
d082acf3d2 Merge "Allow vendor-init-actionable for wlan.driver.status and init.svc.surfaceflinger" am: 5e5509e8fc
am: fb031e37a0

Change-Id: I03d3018bd416cd3dbac237768b1f441223e39238
2018-04-05 14:43:04 -07:00
Jaekyun Seok
fb031e37a0 Merge "Allow vendor-init-actionable for wlan.driver.status and init.svc.surfaceflinger"
am: 5e5509e8fc

Change-Id: I8d74085efee03b2dfb94a9566496842a9e774ce4
2018-04-05 14:36:51 -07:00
Treehugger Robot
5e5509e8fc Merge "Allow vendor-init-actionable for wlan.driver.status and init.svc.surfaceflinger" 2018-04-05 21:25:02 +00:00
Tom Cherry
35e8215809 [automerger skipped] Merge "Remove vendor Wifi and BT entries from fs_config.cpp" into pi-dev
am: 587004c48b  -s ours

Change-Id: I40d8b3331dac4c92d5d943d39473d31e0dff41c0
2018-04-05 13:28:04 -07:00
TreeHugger Robot
587004c48b Merge "Remove vendor Wifi and BT entries from fs_config.cpp" into pi-dev 2018-04-05 20:15:49 +00:00
Yifan Hong
b36fb13bf3 Merge changes from topic "healthd_deprecate2" into pi-dev
am: 7498160272

Change-Id: I18b63bfae0890d4e2e7af9ad1a3377334c5139ff
2018-04-05 12:39:47 -07:00
Yifan Hong
7498160272 Merge changes from topic "healthd_deprecate2" into pi-dev
* changes:
  healthd: a.h.health@2.0-service.override removes healthd
  healthd: add healthd.rc
2018-04-05 19:30:35 +00:00
Christopher Ferris
01257c129c Merge "Add a MemoryOfflineBuffer object." into pi-dev
am: 6c985e2a08

Change-Id: Ifece1e0909e791f3c8d92edc5084050ac71dc72c
2018-04-05 11:42:38 -07:00
Joe Onorato
b3063a285c Merge "Make logd more aggressive when scanning for the position from which to resume logging." into pi-dev
am: 4ae7d5c34e

Change-Id: I3bcf64a8cb2726e660fc29efc12eb28de194e527
2018-04-05 11:40:05 -07:00
Christopher Ferris
6c985e2a08 Merge "Add a MemoryOfflineBuffer object." into pi-dev 2018-04-05 18:14:04 +00:00
TreeHugger Robot
4ae7d5c34e Merge "Make logd more aggressive when scanning for the position from which to resume logging." into pi-dev 2018-04-05 18:12:37 +00:00
Tom Cherry
6372af78f5 Merge "Remove vendor Wifi and BT entries from fs_config.cpp" am: 09daaa4991
am: a901c56d2b

Change-Id: Ib4160d75ed147685ccb57e11a274410018e1ad20
2018-04-05 11:02:41 -07:00
Tom Cherry
a901c56d2b Merge "Remove vendor Wifi and BT entries from fs_config.cpp"
am: 09daaa4991

Change-Id: I1cb1ad321ca55785cff45a4fb677b105b92bbf7f
2018-04-05 10:56:33 -07:00
Tom Cherry
07aa2a6131 Remove vendor Wifi and BT entries from fs_config.cpp
Their capability bits are now specified in their associated init .rc
file, which is the proper place for this to be done.

A notice is added to guide developers away from using android_files to
give services Linux capabilities and to guide them away from adding
vendor/ entries.

Bug: 74554159
Test: BT, Wifi, Tethering work on walleye
Merged-In: I13c425d022b4f5c217587cdf601884ef44650ac7
Change-Id: I13c425d022b4f5c217587cdf601884ef44650ac7
(cherry picked from commit b5e5c56401)
2018-04-05 10:40:49 -07:00
Tom Cherry
09daaa4991 Merge "Remove vendor Wifi and BT entries from fs_config.cpp" 2018-04-05 17:39:53 +00:00
Jaekyun Seok
66797804c6 Allow vendor-init-actionable for wlan.driver.status and init.svc.surfaceflinger
They are being used as action triggers in some devices including Pixels.
So vendor-init-actionable should be allowed for them.

Bug: 74266614
Test: building succeeded and tested on a Pixel with
PRODUCT_COMPATIBLE_PROPERTY=true

Change-Id: I713c5c1a50053f8d64e1cecd1f7ab5dc18201da1
Merged-In: I713c5c1a50053f8d64e1cecd1f7ab5dc18201da1
(cherry picked from commit 167ec7f1d2)
2018-04-05 23:08:39 +09:00
Jaekyun Seok
167ec7f1d2 Allow vendor-init-actionable for wlan.driver.status and init.svc.surfaceflinger
They are being used as action triggers in some devices including Pixels.
So vendor-init-actionable should be allowed for them.

Bug: 74266614
Test: building succeeded and tested on a Pixel with
PRODUCT_COMPATIBLE_PROPERTY=true

Change-Id: I713c5c1a50053f8d64e1cecd1f7ab5dc18201da1
2018-04-05 21:20:59 +09:00
Elliott Hughes
eb4b0de5be Merge "Remove emergency from the fastboot reboot completions." am: 243be559a1
am: 32a4750ba2

Change-Id: I480f6a089ffe5146f2747f5f8702085864c028a7
2018-04-04 19:51:09 -07:00
Elliott Hughes
32a4750ba2 Merge "Remove emergency from the fastboot reboot completions."
am: 243be559a1

Change-Id: I7d40da109e13f94cb67140c95eb0c5a3263c3b06
2018-04-04 19:45:28 -07:00
Elliott Hughes
51b3816901 Merge "Add newer partitions to the fastboot flash completions." am: 3810f0076b
am: e95da26f44

Change-Id: I1d9d92b6b112ebfc7fcd02d4a95baa787674cbf7
2018-04-04 19:40:04 -07:00
Treehugger Robot
243be559a1 Merge "Remove emergency from the fastboot reboot completions." 2018-04-05 02:36:19 +00:00
Elliott Hughes
e95da26f44 Merge "Add newer partitions to the fastboot flash completions."
am: 3810f0076b

Change-Id: Ia8f9159b506c7f4a20dbe0b387cb0deb65824c8a
2018-04-04 19:34:25 -07:00
Treehugger Robot
3810f0076b Merge "Add newer partitions to the fastboot flash completions." 2018-04-05 02:24:34 +00:00
Josh Gao
bc838a37b1 Merge "Revert "Revert "adb: add transport benchmark.""" am: 8daf742900
am: 454f13818d

Change-Id: Ic38675a38d107081ccbc73b0ebf19fa65b74b551
2018-04-04 19:02:51 -07:00
Josh Gao
454f13818d Merge "Revert "Revert "adb: add transport benchmark."""
am: 8daf742900

Change-Id: Iad7c5e6886ed48b96e59c05ee86d9a89174d9714
2018-04-04 18:57:45 -07:00
Treehugger Robot
8daf742900 Merge "Revert "Revert "adb: add transport benchmark.""" 2018-04-05 01:49:38 +00:00
Elliott Hughes
7e5b0edfb6 Merge "Consistently use - rather than _ in fastboot option tab completion." am: 52cd10fed6
am: f51faea1ca

Change-Id: I69f13f7bf6907e7edca7b0e8bcfdbf9e3ab86de6
2018-04-04 18:24:06 -07:00
Elliott Hughes
2836a4b4c1 Merge changes I50e27f46,I0b7cd983,I3639fdee am: eace8e2e53
am: d27a1e4208

Change-Id: Ic27190b4e8ce7afe07214df48588f8f3a9a2c65e
2018-04-04 18:23:23 -07:00
TreeHugger Robot
68b7c24221 Merge "resolve merge conflicts of fc9c87b2c4 to pi-dev-plus-aosp" into pi-dev-plus-aosp 2018-04-05 01:14:33 +00:00
Elliott Hughes
f51faea1ca Merge "Consistently use - rather than _ in fastboot option tab completion."
am: 52cd10fed6

Change-Id: I22381670a6133e347bb8278c6311cc08ded867f3
2018-04-04 17:52:04 -07:00
Elliott Hughes
d27a1e4208 Merge changes I50e27f46,I0b7cd983,I3639fdee
am: eace8e2e53

Change-Id: I3d1e1a1db9bee11b73347f5a84a01ea7eddd42e6
2018-04-04 17:50:31 -07:00
Jaegeuk Kim
700aa2f9b0 make_f2fs: specify sector size for target image size
am: 9a67c69e6c

Change-Id: I4e9f33855fbb88d56bb44911e87201d71d7604df
2018-04-04 16:43:12 -07:00
Treehugger Robot
52cd10fed6 Merge "Consistently use - rather than _ in fastboot option tab completion." 2018-04-04 23:11:47 +00:00
Elliott Hughes
eace8e2e53 Merge changes I50e27f46,I0b7cd983,I3639fdee
* changes:
  Remove lock_bootloader/unlock_bootloader.
  Remove `reboot emergency`.
  Clean up fastboot help:
2018-04-04 22:57:17 +00:00
Jaegeuk Kim
33e4c94a59 resolve merge conflicts of fc9c87b2c4 to pi-dev-plus-aosp
Test: I solemnly swear I tested this conflict resolution.
Change-Id: Ibc3bf7eed3aa7b9a09df69a2a8f02b839d4855ac
2018-04-04 15:28:34 -07:00
Joe Onorato
4bba698245 Make logd more aggressive when scanning for the position from which to resume logging.
Events in the LogBuffer are supposed to be sorted by timestamp, but for a variety
of reasons that doesn't always happen.  When a LogReader is reading from LogBuffer,
LogBuffer starts at the newest event, and scans backward through the list, looking
for the last event.  Previously it would accept a couple that were a little bit out
of order, but if it found one that was ancient, it would just bail. This change
removes that check for the ancient messages.  They are probably indicative of
something else upstream, but since there is no invariant of the list being sorted,
this change simplifies the search algorithm, and makes it look only at the previous
300 events.

Bug: 77222120
Test: while true ; do frameworks/base/cmds/statsd/run_tests.sh 2h ; done
Change-Id: I0824ee7590d34056ce27233a87cd7802c28f50e4
2018-04-04 14:46:45 -07:00
Yifan Hong
1cf853fb65 healthd: a.h.health@2.0-service.override removes healthd
Removes healthd from the build if -service.override
is provided. This encourages developers to deprecate healthd
for their devices when they can.

When -service.override is used, framework manifest needs
to remove the /backup instance as well; this can be done
by including manifest_healthd_exclude.xml in
DEVICE_FRAMEWORK_MANIFEST_FILE.

Test: build and boot on 2016/2017 Pixel devices
Test: build and boot on a new device
Test: lshal and vts_treble_vintf_test on all these
      devices
Bug: 77541952

Change-Id: I25744feaad3034441cd7a96a5343d4ce3eedc288
2018-04-04 14:43:58 -07:00
Jaegeuk Kim
fc9c87b2c4 Merge "make_f2fs: specify sector size for target image size and missing options"
am: e21b764eb6

Change-Id: If582b09ea80eb21c581a7a2b9099138b4c9dc157
2018-04-04 14:37:12 -07:00
Jaegeuk Kim
9a67c69e6c make_f2fs: specify sector size for target image size
The total sectors that we want to format is used in different meanings from
various users. This notifies its size based on 4096 bytes explicitly.

Bug: 76407663
Change-Id: I4e00f2e2289c1381f0238d2a4acb606a0ab551a9
Merged-In: I4e00f2e2289c1381f0238d2a4acb606a0ab551a9
Reported-by: katao@xiaomi.com
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
2018-04-04 14:26:45 -07:00
Josh Gao
9c59649e0b Revert "Revert "adb: add transport benchmark.""
This reverts commit 2ef56a1174.

host_supported is broken in cc_benchmark on Mac, but we probably don't
actually too much about the host benchmarks, so just delete the line.

Bug: http://b/77585931
Test: treehugger
Change-Id: I8898b4037a3faf8e8dee2a99498a6f84e642b92b
2018-04-04 14:26:39 -07:00
Treehugger Robot
e21b764eb6 Merge "make_f2fs: specify sector size for target image size and missing options" 2018-04-04 21:26:11 +00:00
Yifan Hong
fd1aa70a0f healthd: add healthd.rc
Split healthd section from init.rc into its own. This allows
healthd.rc to be excluded from the build when healthd is excluded.

Test: builds
Test: exclude healthd from build, healthd.rc is not installed
Bug: 77541952
Change-Id: I1c055f14c5862631f359fd0029289da8f43af063
2018-04-04 14:08:04 -07:00
Elliott Hughes
bd1e2dd67d Remove emergency from the fastboot reboot completions.
Bug: N/A
Test: N/A
Change-Id: Ia22f51061c845ea19a697e86ac109c02960251fa
2018-04-04 13:51:54 -07:00
Elliott Hughes
f0b9c7ccd2 Add newer partitions to the fastboot flash completions.
Bug: N/A
Test: `fastboot flash \t`
Change-Id: I1f33c90b8c26b18b9984102ac084b8865d72ff06
2018-04-04 13:51:24 -07:00