Commit Graph

49800 Commits

Author SHA1 Message Date
Nick Kralevich d25aebd7b7 Merge "libziparchive: add integer checks"
am: 80e72443d0

Change-Id: Iae932a5af77db7762eec4250f73ff72a433d642d
2019-03-27 06:11:56 -07:00
Treehugger Robot 80e72443d0 Merge "libziparchive: add integer checks" 2019-03-27 13:03:16 +00:00
Suren Baghdasaryan 8523bc2bbe Merge "lmkd: set PSI_POLL_PERIOD to 10ms" am: e346d03c2b am: bbe0e86c73
am: fc3ccad7de

Change-Id: I36b9a34f8996e9db69cb5697bf752f9b330c9554
2019-03-26 22:23:58 -07:00
Suren Baghdasaryan fc3ccad7de Merge "lmkd: set PSI_POLL_PERIOD to 10ms" am: e346d03c2b
am: bbe0e86c73

Change-Id: I5cc97b7f87cfb356127ab379695d77acd408c828
2019-03-26 22:19:29 -07:00
Suren Baghdasaryan bbe0e86c73 Merge "lmkd: set PSI_POLL_PERIOD to 10ms"
am: e346d03c2b

Change-Id: Ia148c74acf22e2f863eb4f5f411f3e5f0f4e5f55
2019-03-26 22:14:26 -07:00
Treehugger Robot e346d03c2b Merge "lmkd: set PSI_POLL_PERIOD to 10ms" 2019-03-27 05:03:16 +00:00
TreeHugger Robot 9dcec693e4 Merge "Logtags for com.android.server.policy" 2019-03-27 02:50:23 +00:00
Yao Chen cf776d9b83 Report last atom tag of the failed stats log.
Test: manually tested with statsd
Change-Id: I4de61a2eea393e8518cb76147598778293440a81
2019-03-26 19:47:16 -07:00
Suren Baghdasaryan 5db6a84831 lmkd: set PSI_POLL_PERIOD to 10ms
Occasionally we see cases when 40ms polling is still too conservative.
Change to 10ms polling period. Since the polling happens only after PSI
signal and continues for 1sec this should not affect system performance.

Test: lmkd_unit_test
Bug: 129358844

Change-Id: Ib759b865b2104be23741fc0eacaa541e22d50dde
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
2019-03-27 02:10:10 +00:00
Elliott Hughes be87d447b4 libprocessgroup: add -Wexit-time-destructors.
Exit time destructors already caused trouble (see
dba6d44376), and without this warning,
it's too easy to reintroduce issues.

Bug: 129023204
Test: builds
Change-Id: If5fb4d0c11c74ba4971bb218059c6d37edeaf4df
2019-03-26 18:50:22 -07:00
Greg Kaiser e0a1be42cb Merge changes Ia84ed9ec,I1c0fde72 am: 10533c57ed am: b6bc0075f4
am: d095e07371

Change-Id: I85cb7c71f37565e220a16ea6f21548887ef8e20c
2019-03-26 18:17:41 -07:00
Christopher Ferris 24e5f851da Merge "Add BuildId to frame information." am: 3da5fcbf70 am: 95b9ea1ddd
am: 36eb80073e

Change-Id: I9805df037b12432d1daa18c1accaa68669f635aa
2019-03-26 18:16:37 -07:00
Josh Gao 6107d0a26c Merge "liblog: don't return 0xFFFFFFFF as an invalid log id." am: 49a8eecc5f am: eaf3841404
am: 216aabeab7

Change-Id: I3bc37e2b1a799386f1792477075d5a9b8ebe98d8
2019-03-26 18:15:02 -07:00
Josh Gao 3d26a86676 Merge changes I80af5f4b,I2fd0034e am: 2decb2fc3a am: c9a893c1eb
am: 448aed3c73

Change-Id: I783537a4b2ec10659c563b4461186d2230895e35
2019-03-26 18:08:11 -07:00
Greg Kaiser d095e07371 Merge changes Ia84ed9ec,I1c0fde72 am: 10533c57ed
am: b6bc0075f4

Change-Id: I4371bb9df7da381a7b8630a3b1c6a6afefbc5e73
2019-03-26 17:53:30 -07:00
Christopher Ferris 36eb80073e Merge "Add BuildId to frame information." am: 3da5fcbf70
am: 95b9ea1ddd

Change-Id: I82c95aa7d16f4705e7119167f1c93de28fc22e41
2019-03-26 17:52:31 -07:00
Josh Gao 216aabeab7 Merge "liblog: don't return 0xFFFFFFFF as an invalid log id." am: 49a8eecc5f
am: eaf3841404

Change-Id: Ie22e4650b4385a01d55052d60a54e4b92ffe3a23
2019-03-26 17:51:38 -07:00
Josh Gao 448aed3c73 Merge changes I80af5f4b,I2fd0034e am: 2decb2fc3a
am: c9a893c1eb

Change-Id: I7226d6078ecbd07f4bfcd9471e2ef25b0c7913b1
2019-03-26 17:50:43 -07:00
Greg Kaiser b6bc0075f4 Merge changes Ia84ed9ec,I1c0fde72
am: 10533c57ed

Change-Id: I47635c21b9ab08a4463f43af7d02c333c42d0f14
2019-03-26 17:43:57 -07:00
Christopher Ferris 95b9ea1ddd Merge "Add BuildId to frame information."
am: 3da5fcbf70

Change-Id: I8168b1d2ae61280423ef6ec6ff598772aaafabd5
2019-03-26 17:41:43 -07:00
Josh Gao eaf3841404 Merge "liblog: don't return 0xFFFFFFFF as an invalid log id."
am: 49a8eecc5f

Change-Id: I587e791a1338ae4605757dc825c4dd53dd8572f1
2019-03-26 17:40:52 -07:00
Josh Gao c9a893c1eb Merge changes I80af5f4b,I2fd0034e
am: 2decb2fc3a

Change-Id: I192bf6f4f5798f7c84c2d91517e3800dc428c0a5
2019-03-26 17:40:05 -07:00
Treehugger Robot 10533c57ed Merge changes Ia84ed9ec,I1c0fde72
* changes:
  fastboot: Avoid extra std::string copies
  adb: Avoid extra std::string copies
2019-03-27 00:33:05 +00:00
Christopher Ferris 3da5fcbf70 Merge "Add BuildId to frame information." 2019-03-27 00:26:03 +00:00
Josh Gao 49a8eecc5f Merge "liblog: don't return 0xFFFFFFFF as an invalid log id." 2019-03-27 00:24:47 +00:00
Josh Gao 2decb2fc3a Merge changes I80af5f4b,I2fd0034e
* changes:
  adbd: listen to all functionfs events.
  adbd: increment writes_submitted_ before submitting writes.
2019-03-27 00:24:43 +00:00
Yifan Hong c45ba3e8bb Merge changes from topic "lpdumpd" am: f959fffc1c am: ee7da7c711
am: 53c3f30d90

Change-Id: I48c0b2b59c48bdaf3c4fed8a03525f1fd2a9cf98
2019-03-26 16:40:04 -07:00
Yifan Hong b3e0c1bdf8 liblp: Replace open with GetControlFileOrOpen am: 26328e80b1 am: 6c09f79eb1
am: f66d772e4f

Change-Id: I0d4bf6c75018d6d5aeaf36ce9b3b4cb75e3605d9
2019-03-26 16:38:57 -07:00
Yifan Hong 9718f571eb init: expand prop in 'file' am: 567f1874fd am: 9d227e921f
am: 396dd7d2e8

Change-Id: Ie9bbc3723da28c1f6ab682c2d86e208adbde027d
2019-03-26 16:38:11 -07:00
Yifan Hong 82faf0949f libcutils: android_get_control_file uses realpath. am: dd6eefca30 am: 877436dd25
am: 353d08605d

Change-Id: Ia22a3af3de76eace5f8cb6e58ebc2a8c9d59437f
2019-03-26 16:37:24 -07:00
Yifan Hong dc9c08b900 charger: android_get_control_file on last_kmsg
Call android_get_control_file on last_kmsg files if the file
descriptor is provided by init.

Also, uses base::Read(File|Fd)ToString functions to read the
files (because load_file doesn't support fd arguments).

Test: charger mode
Test: manual kernel panic, then start charger; seen last kmsg.

Bug: 129138950
Change-Id: Idd3376e349f29586a1e66faab2c0f1bf73e0eda5
2019-03-26 15:51:55 -07:00
Yifan Hong 53c3f30d90 Merge changes from topic "lpdumpd" am: f959fffc1c
am: ee7da7c711

Change-Id: Ia75e9367484478b5df5482ce949b9c6b7a89f9c7
2019-03-26 15:37:49 -07:00
Yifan Hong f66d772e4f liblp: Replace open with GetControlFileOrOpen am: 26328e80b1
am: 6c09f79eb1

Change-Id: Ic0898c029191d5b452d5e9660f4a8b703df08e9e
2019-03-26 15:36:58 -07:00
Yifan Hong 396dd7d2e8 init: expand prop in 'file' am: 567f1874fd
am: 9d227e921f

Change-Id: Id51b5f55a583d09ec644cf83ab1b121ce798062e
2019-03-26 15:36:18 -07:00
Yifan Hong 353d08605d libcutils: android_get_control_file uses realpath. am: dd6eefca30
am: 877436dd25

Change-Id: Id5bd92bd726015459840ac3a414c9efdb3c970c0
2019-03-26 15:35:40 -07:00
Yifan Hong ee7da7c711 Merge changes from topic "lpdumpd"
am: f959fffc1c

Change-Id: I024ccc86df450b21115b76b8062975f2ba18378e
2019-03-26 14:29:48 -07:00
Yifan Hong 6c09f79eb1 liblp: Replace open with GetControlFileOrOpen
am: 26328e80b1

Change-Id: I8e65cef4b99cedf924e1fc0c75a0edc6fe1cca03
2019-03-26 14:28:42 -07:00
Yifan Hong 9d227e921f init: expand prop in 'file'
am: 567f1874fd

Change-Id: I87a2cd6fd5c38b6c216687596d734040329c8e0e
2019-03-26 14:27:25 -07:00
Yifan Hong 877436dd25 libcutils: android_get_control_file uses realpath.
am: dd6eefca30

Change-Id: Ifad26db11e55d9b4d8cdca6b6c41c1d0b071eb96
2019-03-26 14:26:09 -07:00
Josh Gao 6933d54e09 adbd: listen to all functionfs events.
Monitor for FUNCTIONFS_UNBIND as well, so that in the case where we get
FUNCTIONFS_BIND, FUNCTIONFS_UNBIND, FUNCTIONFS_BIND, we don't trigger an
assertion failure from seeing two FUNCTIONFS_BINDs.

Bug: http://b/129134256
Test: manual
Change-Id: I80af5f4b833513e932262638b9f8d76bbcb35504
2019-03-26 13:38:41 -07:00
Yifan Hong f959fffc1c Merge changes from topic "lpdumpd"
* changes:
  libbase: realpath is wrapped with TEMP_FAILURE_RETRY
  liblp: Replace open with GetControlFileOrOpen
  init: expand prop in 'file'
  libcutils: android_get_control_file uses realpath.
2019-03-26 20:35:36 +00:00
Josh Gao 63b52ec13b adbd: increment writes_submitted_ before submitting writes.
If we fail to submit writes for some reason (e.g. the USB cable was
unplugged), another thread that's waiting on the write mutex can enter
SubmitWrites and attempt to resubmit the writes that we already failed
to submit, leading to a failed assertion of !IoBlock::pending.

Increment writes_submitted_ before actually calling io_submit, so we
skip over these writes and fall through to exit.

Bug: http://b/129134256
Test: manually unplugged a blueline
Change-Id: I2fd0034e45db22c8f637c81039ce686b7aa6a03b
2019-03-26 13:06:38 -07:00
Siarhei Vishniakou 6606d8df32 Logtags for com.android.server.policy
The definitions for event log tags are currently in system/core. Instead
of keeping them there, reserve a range for these event tags and move
them into com.android.server.policy.

Currently it is only used by PhoneWindowManager.

Bug: 128933363
Test: build only
Change-Id: Ida903499e9af8650299e3965787b4ac966b66915
2019-03-26 13:01:15 -07:00
Siarhei Vishniakou 6bd71b979c Logtags for com.android.server.policy
The definitions for event log tags are currently in system/core. Instead
of keeping them there, reserve a range for these event tags and move
them into com.android.server.policy.

Currently it is only used by PhoneWindowManager.

Bug: 128933363
Test: build only
Change-Id: Ida903499e9af8650299e3965787b4ac966b66915
Merged-In: Ida903499e9af8650299e3965787b4ac966b66915
2019-03-26 12:36:53 -07:00
Greg Kaiser b49d9e19dc fastboot: Avoid extra std::string copies
The function do_for_partitions() takes a const std::string
reference, so it's inefficient to pass a std::string::c_str().

Test: TreeHugger
Change-Id: Ia84ed9ec691ee2f524c61dd25a81b2995bb0bb33
2019-03-26 12:04:05 -07:00
Greg Kaiser e2125fdeb1 adb: Avoid extra std::string copies
When a function argument takes a std::string, it's inefficient to
pass std::string::c_str(), since that creates an additional copy.
So we change these calling sites.

Test: TreeHugger
Change-Id: I1c0fde7275eb3ebd3baf05ec62581b0243655608
2019-03-26 12:00:19 -07:00
Martin Stjernholm adf4503de1 Apply the standard system linker config to all of /data.
This is necessary to get the correct APEX namespace setup for apps that
executes binaries from there.

In older releases no linker config applied to binaries in /data, so the
fallback config in /system/bin/linker was used, which basically just looked
up libraries in /system/{lib,lib64}. With the introduction of APEXes that
location no longer contains the complete set of libraries, so this is
necessary to retain functional parity.

Strictly speaking this fallback rule should apply as last resort for a
binary in any location, but the linker does not accept "dir.system = /".

Test: Flash and boot
Test: The app regression in b/128569634
Bug: 128569634
Change-Id: Icfcd66f0a7d8d898618be1b6186bb1111d20d688
2019-03-26 18:10:51 +00:00
Martin Stjernholm 5c074e0ab9 Remove links to libart(d).so in the runtime.
They are not needed since the binaries and relevant exported libraries have
moved to the Runtime APEX.

Test: Flash and boot
Test: atest CtsJniTestCases CtsJdwpTestCases
Bug: 119867084
Change-Id: If416fbae7057aec02059bb31a4dcd8b63dcc0cad
2019-03-26 17:24:12 +00:00
Nick Kralevich a8fbf49748 Merge "Revert "libprocessgroup: make sure SetupCgroups is called once and only by init"" am: eac1220fba am: 138ab0ec52
am: f7c4bfd616

Change-Id: Iadb882806d934fc9c9bfc6fe69478edd805dddb0
2019-03-26 08:49:28 -07:00
Nick Kralevich f7c4bfd616 Merge "Revert "libprocessgroup: make sure SetupCgroups is called once and only by init"" am: eac1220fba
am: 138ab0ec52

Change-Id: I4064836753d4c7eb19762c0258d3701619246dc5
2019-03-26 08:44:57 -07:00