Commit Graph

29882 Commits

Author SHA1 Message Date
Keun-young Park 1abccccb71 Merge "early start zygote_secondary as well" am: a0bf415cad
am: b7896f0a0d

Change-Id: Ibc070c240c73366e992fd289799b8f618f5e6bb7
2017-04-21 17:04:33 +00:00
Keun-young Park b7896f0a0d Merge "early start zygote_secondary as well"
am: a0bf415cad

Change-Id: I3b4840313e0b80aa134d2469f8c27b32dd5f1c93
2017-04-21 17:02:03 +00:00
Keun-young Park a0bf415cad Merge "early start zygote_secondary as well" 2017-04-21 16:49:11 +00:00
Sandeep Patil dba5e13593 Merge "fs_mgr: remove the repetitive and annoying bootconfig error print" am: 515e7a4fc4
am: d1078c42ce

Change-Id: I2b735716342c046cd160a4a16a16911dbe53574a
2017-04-21 16:42:30 +00:00
Sandeep Patil d1078c42ce Merge "fs_mgr: remove the repetitive and annoying bootconfig error print"
am: 515e7a4fc4

Change-Id: I8cdffd2ab6fc3cc5527d7f8f99f8303ad2c0db35
2017-04-21 16:37:29 +00:00
Treehugger Robot 515e7a4fc4 Merge "fs_mgr: remove the repetitive and annoying bootconfig error print" 2017-04-21 16:29:37 +00:00
Mark Salyzyn f4589bb613 Merge "liblog: test: liblog.__security miscalculation" am: 3ed85748e1
am: 725526774b

Change-Id: I9027d158e1af9cf270c3c297fcf5fa2dd11ea351
2017-04-21 15:27:26 +00:00
Mark Salyzyn 725526774b Merge "liblog: test: liblog.__security miscalculation"
am: 3ed85748e1

Change-Id: I7f590ae54efd191986b3232fb55d3faf36617007
2017-04-21 15:23:26 +00:00
Treehugger Robot 3ed85748e1 Merge "liblog: test: liblog.__security miscalculation" 2017-04-21 15:17:03 +00:00
Keun-young Park f8532445b4 early start zygote_secondary as well
- late start of zygote_secondary leads into occasional
  1 second wait for starting system service.
- Early start secondary zygote so that there is no additional
  wait.

bug: 37508384
Test: python packages/services/Car/tools/bootanalyze/bootanalyze.py -r -c packages/services/Car/tools/bootanalyze/config.yaml -n 100 -f -e 16 -w 30
Change-Id: I2e4eb0b59a9a8417b56a72fe2de6fa2a6e1ab0a2
2017-04-20 18:31:48 -07:00
Sandeep Patil 73fbf0ee16 fs_mgr: remove the repetitive and annoying bootconfig error print
The new changes to slotselect() call makes it try to find the
"slot" config before trying "slot_suffix" and that causes fs_mgr to
print the needless error and spam the kernel logs for no reason.
Remove the print.

Test: Builds for sailfish

Change-Id: I020575d70f4cd6e137e82c127b5d5234d709d0e3
Signed-off-by: Sandeep Patil <sspatil@google.com>
2017-04-20 14:41:23 -07:00
Colin Cross 5d29c3f3fd Merge changes Ia11dffde,I76f24890 am: bd53ea4063
am: 280e3beec3

Change-Id: I34433c86b27de92ad665ec4b4c92c2801f7f63a0
2017-04-20 21:25:19 +00:00
Colin Cross 280e3beec3 Merge changes Ia11dffde,I76f24890
am: bd53ea4063

Change-Id: I663c310dcc025a666b76e67e0f67d9680ef64ea9
2017-04-20 21:22:46 +00:00
Treehugger Robot bd53ea4063 Merge changes Ia11dffde,I76f24890
* changes:
  Convert libnetutils to Android.bp
  Don't export libutils_headers from libbase
2017-04-20 21:19:17 +00:00
Tom Cherry c7e559ca40 Merge "init: fix errno handling on KillProcessGroup" am: f890ca9a1f
am: db9f2cb46d

Change-Id: I9ba2f0e8475a625081a6ae8470772ee7e0e087dc
2017-04-20 20:58:12 +00:00
Tom Cherry db9f2cb46d Merge "init: fix errno handling on KillProcessGroup"
am: f890ca9a1f

Change-Id: I0bf7aee5a23a7ab51ca922e7f5b9b086936ca461
2017-04-20 20:55:12 +00:00
Tom Cherry f890ca9a1f Merge "init: fix errno handling on KillProcessGroup" 2017-04-20 20:48:49 +00:00
Mark Salyzyn b867beac56 liblog: test: liblog.__security miscalculation
The gTest should not be able to set ro.device_owner, either as a unit
test or a CTS test.  The CTS test should not be able to set
persist.logd.security, the gTest may as it is run on userdebug with
root, so check if we are root to discern expectations.

Test: gTest liblog-unit-tests --gtest_filter=liblog.__security
Test: cts-tradefed run cts-dev -a armeabi-v7a -m CtsLiblogTestCases -t liblog#__security
Bug: 36480230
Change-Id: I1da88aae34da4e2fca8dd88d740eeb879d9c65bb
2017-04-20 13:26:12 -07:00
Yabin Cui 66cfd45a34 Merge "adb: fix two device offline problems." am: 2e821078e4
am: ae6a3605d2

Change-Id: I9d08addcc464ca68989b4a0c654c681eb5cf6347
2017-04-20 19:51:42 +00:00
Yabin Cui ae6a3605d2 Merge "adb: fix two device offline problems."
am: 2e821078e4

Change-Id: Iffba674a90dae88610541fe93c8df751e9ad63d2
2017-04-20 19:49:08 +00:00
Treehugger Robot 2e821078e4 Merge "adb: fix two device offline problems." 2017-04-20 19:45:18 +00:00
Mark Salyzyn 529be90503 Merge changes I6555c135,If5723ff4 am: d9982803ed
am: b3259f39c2

Change-Id: I9823a3b1e791d07dadb3fafb6b6e0b5c8978034e
2017-04-20 17:54:29 +00:00
Mark Salyzyn b3259f39c2 Merge changes I6555c135,If5723ff4
am: d9982803ed

Change-Id: I35bc074d7945bb7a9c99c37262f572afa4d52a6f
2017-04-20 17:52:00 +00:00
Colin Cross cafe889aa8 Convert libnetutils to Android.bp
See build/soong/README.md for more information.

Test: m -j checkbuild
Change-Id: Ia11dffde6fc4d89be6ee651be06b48131c877dc0
2017-04-20 10:36:43 -07:00
Colin Cross 4eda982a77 Don't export libutils_headers from libbase
libutils headers are only used by the implementation of libbase,
and should not be exported to everything that uses libbase headers.

Test: m -j
Change-Id: I76f248908f649e3a3c91cd3e84d629a0049939ef
2017-04-20 10:36:32 -07:00
Treehugger Robot d9982803ed Merge changes I6555c135,If5723ff4
* changes:
  logcat: test: also check "failed to clear" in blocking_clear
  logd: reader/writer element locks
2017-04-20 17:33:50 +00:00
Dan Willemsen 720faf195c Merge "Convert libusbhost to Android.bp" am: a58c4b5bcd
am: dff208c80c

Change-Id: I4d874b95bc668e93a2a4bc2baee9d38b4b8d5e25
2017-04-20 17:22:27 +00:00
Dan Willemsen dff208c80c Merge "Convert libusbhost to Android.bp"
am: a58c4b5bcd

Change-Id: I71112a018a735a1ba20ca17e652f87fbdade2fed
2017-04-20 17:19:58 +00:00
Yabin Cui b5e11415d9 adb: fix two device offline problems.
When device goes offline, user usually has to manually replug the
usb device. This patch tries to solve two offline situations, all
because when adb on host is killed, the adbd on device is not notified.

1. When adb server is killed while pushing a large file to device,
the device is still reading the unfinished large message. So the
device thinks of the CNXN message as part of the previous unfinished
message, so it doesn't reply and the device is in offline state.

The solution is to add a write_msg_lock in atransport struct. And it
kicks the transport only after sending a whole message. By kicking
all transports before exit, we ensure that we don't write part of
a message to any device. So next time we start adb server, the device
should be waiting for a new message.

2. When adb server is killed while pulling a large file from device,
the device is still trying to send the unfinished large message. So
adb on host usually reads data with EOVERFLOW error. This is because
adb on host is reading less than one packet sent from device.

The solution is to use buffered read on host. The max packet size
of bulk transactions in USB 3.0 is 1024 bytes. By preparing an at least
1024 bytes buffer when reading, EOVERFLOW no longer occurs. And teach
adb host to ignore wrong messages.

To be safe, this patch doesn't change any logic on device.

Bug: http://b/32952319
Test: run python -m unittest -q test_device.DeviceOfflineTest
Test: on linux/mac/windows with bullhead, ryu.
Change-Id: Ib149d30028a62a6f03857b8a95ab5a1d6e9b9c4e
2017-04-20 10:14:59 -07:00
Treehugger Robot a58c4b5bcd Merge "Convert libusbhost to Android.bp" 2017-04-20 17:07:43 +00:00
Dan Willemsen a5c6017d8f Convert libusbhost to Android.bp
See build/soong/README.md for more information.

Test: mmma -j system/core/libusbhost
Change-Id: I57109380678bd452af545d4c5b1b9d2356b356b8
2017-04-20 08:37:12 -07:00
Mark Salyzyn 58871c8338 Merge "logd: statistics add logspan" am: e32517d773
am: 2ad8ed5138

Change-Id: Ibc51c6b36ce5ee1106673e23dbcb9943c40bce62
2017-04-20 15:28:18 +00:00
Mark Salyzyn 2ad8ed5138 Merge "logd: statistics add logspan"
am: e32517d773

Change-Id: I92ec192fdd5d2cf7469b3ac77fdb387e3e19e54a
2017-04-20 15:25:50 +00:00
Mark Salyzyn 0a1424e196 logcat: test: also check "failed to clear" in blocking_clear
Add more detail about logcat.blocking_clear test failure

Test: gTest logcat-unit-test --gtest_filter=logcat.blocking_clear
Bug: 37483775
Change-Id: I6555c13593781a1278d9106e66c2dec6009a2215
2017-04-20 08:24:38 -07:00
Mark Salyzyn 3c501b50b4 logd: reader/writer element locks
Switch to a reader writer lock for the Element List lock.  Also setup
for a reader writer lock for the Times list, but continue to use a
mutex where rdlock() and wrlock() are the same implementation for now.

This should improve general reader performance and prevent blocking of
other reader operations or exit by a single hung logd.reader.per
thread.  For example, a full length logcat of an empty buffer (eg:
crash log buffer) will hold a lock while the iterator scans the entire
list.

Test: gTest liblog-unit-tests, logd-unit-tests, logcat-unit-tests
Bug: 37378309
Bug: 37483775
Change-Id: If5723ff4a978e17d828a75321e8f0ba91d4a09e0
2017-04-20 08:24:38 -07:00
Mark Salyzyn e32517d773 Merge "logd: statistics add logspan" 2017-04-20 15:19:05 +00:00
Christopher Ferris c3671b91da Merge "Add function definitions for MapInfo." am: 4c1560ce5c
am: 0597e4a8af

Change-Id: Ic235e7b1b1d346759db0643aec60542e9ccb162e
2017-04-20 02:14:24 +00:00
Christopher Ferris 0597e4a8af Merge "Add function definitions for MapInfo."
am: 4c1560ce5c

Change-Id: Ifb6d06f5349c737c3bd826564d32ada0f7734887
2017-04-20 02:12:24 +00:00
Christopher Ferris 4c1560ce5c Merge "Add function definitions for MapInfo." 2017-04-20 02:08:33 +00:00
Steven Moreland 0f8be50eca Merge changes from topic 'system-vendor-internal-pick' am: 3dfaa44491
am: 004f8f9633

Change-Id: Ie692b035ea102dbeccb0e8472cd103a804920455
2017-04-20 02:00:26 +00:00
Steven Moreland 76c72a8ece libsync: vendor_available am: 9990de1f64
am: 74f60ea50a

Change-Id: I1f3ef86ab41c366b6d870e120b76708286fee6e1
2017-04-20 02:00:18 +00:00
Steven Moreland cfcf4277df Remove VNDK warning. am: 2bd4342234
am: af13aaf618

Change-Id: I4cf947cab70259f471ff62165ec4f89d48c7b120
2017-04-20 02:00:10 +00:00
Steven Moreland 3c5d712f8c libbase: make vendor_available am: d10a023208
am: 45102312a3

Change-Id: Id4b12d35d36d02784bbfa3c9a64428ece2b202b4
2017-04-20 02:00:02 +00:00
Steven Moreland 4162edafd4 libcutils: vendor_available am: 385fe692cc
am: d4010ad4b8

Change-Id: I2070d189052cf16e54e1aa2d9f08f90b0325e515
2017-04-20 01:59:55 +00:00
Steven Moreland 9897378d79 libbacktrace: make vendor_available am: bb11af88e2
am: 9529a0fe6f

Change-Id: I39dff8f409a23369c4e67443de74f9e520417601
2017-04-20 01:59:45 +00:00
Steven Moreland e18ea306b1 libbase: add libbase_headers am: 3c71bbdde3
am: 10a28989b8

Change-Id: I4da1fc892b2d470a28bea560dec1c552968035c9
2017-04-20 01:59:38 +00:00
Steven Moreland 004f8f9633 Merge changes from topic 'system-vendor-internal-pick'
am: 3dfaa44491

Change-Id: I9e782c46d9ddf43b61c8feb5e2c33f2a295e8358
2017-04-20 01:50:40 +00:00
Steven Moreland 74f60ea50a libsync: vendor_available
am: 9990de1f64

Change-Id: Ia345026f98a48b3975e9694681848b49f1880e2a
2017-04-20 01:50:24 +00:00
Steven Moreland af13aaf618 Remove VNDK warning.
am: 2bd4342234

Change-Id: If5f2e965e944180e77132a105227c4efb344087e
2017-04-20 01:50:05 +00:00
Steven Moreland 45102312a3 libbase: make vendor_available
am: d10a023208

Change-Id: I34554045272dcb8c74179010ee6cde4eb899eef3
2017-04-20 01:49:47 +00:00