Commit graph

43536 commits

Author SHA1 Message Date
Josh Gao
ebce8ca94e Merge changes Ic8d22016,I3e15296e,Ie275e22c
am: 321a60f156

Change-Id: If1c8f5dfebd3cf46178b87095df29c6b942f19ca
2018-10-18 19:43:23 -07:00
Howard Ro
b6f5ec7c29 Merge "Make native metrics logger write to statsd socket"
am: d301f1bce4

Change-Id: I5baf0308f47ec8f5ae516d1e2c11227c0aff9f42
2018-10-18 15:04:42 -07:00
Mark Salyzyn
6397fd0126 Merge "fs_mgr: fs_mgr_overlayfs_mount_scratch try alternate"
am: 224263da96

Change-Id: I107091442a256652a0ca46ff74cb027b83ef56bb
2018-10-18 15:03:52 -07:00
Tom Cherry
16c0a5581e Merge "Start logd and service managers during the 'init' trigger"
am: e72274ac2b

Change-Id: I738bff3b371783691eb3d703a3c2df5d122b0af9
2018-10-18 15:03:22 -07:00
Mark Salyzyn
daa664a6a4 Merge "fs_mgr: fs_mgr_rm_all error propagation inconsequential EPERM"
am: d2dfb33942

Change-Id: I2ed61fd58d52e0ce99c6fa7133bb9050d66332d4
2018-10-18 15:02:54 -07:00
Mark Salyzyn
455a0162f5 Merge "fs_mgr: string literal cleanup"
am: 0a6c743179

Change-Id: I377c87ff04c537a3aed1c414fd6ff76e492c5d39
2018-10-18 15:02:25 -07:00
Mark Salyzyn
6472e30a25 Merge "fastboot: use constants.h values"
am: b59b20caac

Change-Id: I47128ef5d0e5bd03996ef42da8935cf3b25f647a
2018-10-18 15:01:55 -07:00
Christopher Ferris
00a95a939e Merge "Fix which maps to search for globals."
am: 7cffd15110

Change-Id: I031a7da9ca00db4b1b99a177df4cc5bc97b6ca7d
2018-10-18 15:01:02 -07:00
Treehugger Robot
321a60f156 Merge changes Ic8d22016,I3e15296e,Ie275e22c
* changes:
  adb: improve benchmark script a bit.
  adb: extract helper for dumping a packet header.
  adbd: turn on -Wthread-safety.
2018-10-18 20:25:53 +00:00
Treehugger Robot
d301f1bce4 Merge "Make native metrics logger write to statsd socket" 2018-10-18 20:05:58 +00:00
Treehugger Robot
224263da96 Merge "fs_mgr: fs_mgr_overlayfs_mount_scratch try alternate" 2018-10-18 19:21:41 +00:00
Howard Ro
34bc567a93 Make native metrics logger write to statsd socket
Bug: 110537511
Test: compiles without failures and verified the correct metric
Change-Id: Ie8019a20a2112ed6cbbc0999d68592efb8f0f538
2018-10-18 10:39:40 -07:00
Tom Cherry
e72274ac2b Merge "Start logd and service managers during the 'init' trigger" 2018-10-18 17:09:12 +00:00
Treehugger Robot
d2dfb33942 Merge "fs_mgr: fs_mgr_rm_all error propagation inconsequential EPERM" 2018-10-18 14:28:46 +00:00
Treehugger Robot
0a6c743179 Merge "fs_mgr: string literal cleanup" 2018-10-18 14:28:43 +00:00
Treehugger Robot
b59b20caac Merge "fastboot: use constants.h values" 2018-10-18 14:27:33 +00:00
Mark Salyzyn
8e7e9cb395 fastboot: use constants.h values
Cleanup to utilize all the manifest values in constants.h.

If the cli command _and_ the protocol name match, use a common
source of convenient truth.  This should set a pattern for future
additional commands.  When the command and the protocol differ,
we want to introduce resistance as it results in confusion and
maintenance issues.

Test: compile
Change-Id: Idad413c63cbbfcb6e851856105a5d5a9ef53ef29
2018-10-18 14:26:27 +00:00
Christopher Ferris
7cffd15110 Merge "Fix which maps to search for globals." 2018-10-18 01:54:47 +00:00
Josh Gao
6887e95599 Merge "test_adb.py: silence ResourceWarning."
am: f2eaefe368

Change-Id: I4918eaf2285835afd3b3f5ac6592abb3f5e714a3
2018-10-17 14:26:08 -07:00
Christopher Ferris
56d0e07d70 Fix which maps to search for globals.
If multiple threads are unwinding at the same time, new maps that contain
the global variables for dex files and jit information are created. This
leads to threads creating more new maps that then get searched, then
more maps, then more searching until virtual address space exhaustion.

Fix this so that we only search maps that have a corresponding rw map that
could contain the global memory.

Small refactor to combine the code to search for global variables into
one class that both classes inherit from.

Modify unit tests for the new pattern checking.

Bug: 117761427

Test: Ran unit tests for libunwindstack/libbacktrace/simpleperf.
Test: Ran art 004-ThreadStress that used to fail.
Change-Id: I837ca6b9d0383100079de090bc7d019598e0cdfe
2018-10-17 14:23:10 -07:00
Tom Cherry
f18b748b91 Start logd and service managers during the 'init' trigger
Now that we mount partitions early, services can be started before the
'fs' trigger.  We therefore start the service managers as early as
possible to ensure their transports are online, without device
specific rc files needing to handle that.  We also start logd even
one step earlier to ensure that we capture all possible logd.

Bug: 89689596
Test: logging works for early services, include the servicemanagers
Change-Id: I75dbfcd26eb6fa77f002de10afd00f085c93aa07
2018-10-17 14:21:37 -07:00
Josh Gao
f2eaefe368 Merge "test_adb.py: silence ResourceWarning." 2018-10-17 21:10:45 +00:00
David Anderson
e6d28b43c8 Merge "liblp: Add partitions to the correct group when writing LpMetadata."
am: 4bc53d20af

Change-Id: I0f44870a19766df99aacf5900595f1e91b66d2bf
2018-10-16 19:02:46 -07:00
Treehugger Robot
4bc53d20af Merge "liblp: Add partitions to the correct group when writing LpMetadata." 2018-10-17 01:54:09 +00:00
Elliott Hughes
5f9b7b1fe0 Merge ""utils/Errors.h": include <stdint.h> for int32_t."
am: 86c56953b3

Change-Id: Ie8f65286e485a8f8cceb0dd9f79a6cfb1f163c2c
2018-10-16 18:07:02 -07:00
Elliott Hughes
86c56953b3 Merge ""utils/Errors.h": include <stdint.h> for int32_t." 2018-10-17 00:53:40 +00:00
Bowgo Tsai
653373c833 Merge "Adding /odm/usr -> /vendor/odm/usr symlink"
am: 03ea74aa91

Change-Id: I362472eda0545107aa805428f57b30c702a530b0
2018-10-16 17:44:51 -07:00
Treehugger Robot
03ea74aa91 Merge "Adding /odm/usr -> /vendor/odm/usr symlink" 2018-10-17 00:20:07 +00:00
David Anderson
68e36c9038 Merge "liblp: Remove last_logical_sector from LpMetadataGeometry."
am: 30793ac5fa

Change-Id: I481316546b670048c24a58fb0c668b8c67f9032a
2018-10-16 16:49:14 -07:00
Treehugger Robot
30793ac5fa Merge "liblp: Remove last_logical_sector from LpMetadataGeometry." 2018-10-16 23:41:42 +00:00
David Anderson
875434618f liblp: Add partitions to the correct group when writing LpMetadata.
The group_indices variable was intended to facilitate this, but I forgot
to actually use it.

Bug: 116817738
Test: lpmake, lpdump super_empty.img
Change-Id: Ia0da50b56b6c09e277324ec9d7aea6ce48fdc10a
2018-10-16 15:30:05 -07:00
Tom Cherry
a0ff184778 Merge "init: separate init packaging for mainline"
am: 89bf115a70

Change-Id: I63fc45defb846d320b18ee2e5eb928bc38f64097
2018-10-16 13:38:05 -07:00
Srinivas Paladugu
a213c8931c Merge "lmkd: increase the soft limit for keyboard"
am: 618be4c225

Change-Id: Ia475bcd0feaaeaf0ea9cb2a8af9bc12e020532fd
2018-10-16 13:31:00 -07:00
Tom Cherry
89bf115a70 Merge "init: separate init packaging for mainline" 2018-10-16 20:29:47 +00:00
Elliott Hughes
9fbebc5d55 "utils/Errors.h": include <stdint.h> for int32_t.
No need for a Unix/Windows difference here.

Bug: N/A
Test: builds
Change-Id: If7b27f939f9c13ef336d2015608f2a24db8cc96d
2018-10-16 13:17:15 -07:00
Treehugger Robot
618be4c225 Merge "lmkd: increase the soft limit for keyboard" 2018-10-16 20:12:27 +00:00
David Anderson
0c203aedd7 Merge "Rename vbmeta_mainline to vbmeta_system."
am: da915b4af3

Change-Id: I679c75534382705a734a5a8618b9ee4ebe90f220
2018-10-16 12:06:09 -07:00
Srinivas Paladugu
3eb20bc954 lmkd: increase the soft limit for keyboard
lmkd sets the soft limit parameters for Go devices.
The limit for apps in the perceptible group is set to 16M.
However this limit is not sufficient for the keyboard app to
prevent pages from being re-claimed quickly. The mem usage of
the keyboard app is around 55M most cases with some occasional
spikes to 70-80M. Increasing the limit to 64M improves the warm
startup latency for keyboard. It is still lower than the limits
set for foreground and visible apps.

Test: Go device (1G)
Bug: 117517805
Merged-In: Id50e49327cfd76126e41ef6503971845f29196af
Change-Id: Id50e49327cfd76126e41ef6503971845f29196af
2018-10-16 18:58:01 +00:00
Treehugger Robot
da915b4af3 Merge "Rename vbmeta_mainline to vbmeta_system." 2018-10-16 18:34:18 +00:00
Mark Salyzyn
6b313de3e3 fs_mgr: fs_mgr_overlayfs_mount_scratch try alternate
Harden fs_mgr_overlayfs_mount_scratch to try alternate filesystem
mount type just in case (f2fs <-> ext4).

Cleanup remove any unnecessary string literals.

Test: manual
Bug: 109821105
Change-Id: I36ea974ffeeae392553fff779939dc76a12ab96e
2018-10-16 11:14:24 -07:00
Mark Salyzyn
3a445df4fc fs_mgr: fs_mgr_rm_all error propagation inconsequential EPERM
If in fs_mgr_rm_all opendir on a subdirectory fails because of EPERM,
but a subsequent rmdir succeeds then there was no reason to report
the EPERM as an overall failure error code.

Test: manual
Bug: 117605276
Change-Id: I79fbf8567af1667094595e59ca2b536450f34b94
2018-10-16 11:14:15 -07:00
Mark Salyzyn
9b9bd39b7a fs_mgr: string literal cleanup
Cleanup remove any unnecessary string literals.

Test: compile
Bug: 109821105
Change-Id: Id22629201b8d874afb6b8f9157fa474fdfcf3f43
2018-10-16 11:14:06 -07:00
Josh Gao
42c86722fc test_adb.py: silence ResourceWarning.
Test: ./adb_test.py
Change-Id: If12558492e4edafd3568530a96eac2032526877d
2018-10-16 11:00:39 -07:00
Tom Cherry
f2e4c4d2a7 Merge "init: clarify some text/README about 'critical' services"
am: ce27a5bc0f

Change-Id: Ic6e336d622c20a711ce54720e7bcc2858226ed06
2018-10-16 09:52:03 -07:00
Tom Cherry
29e5348f18 init: separate init packaging for mainline
With system-as-root, both first and second stage init belong to
system, but without system-as-root, first stage belongs to vendor and
second stage belongs to system.  This change creates two phony
packages to achieve this correctly in the build system.

Bug: 117606184
Test: mainline builds work properly
Change-Id: I19263e76c217c2e70bc06c180be3a460e9144f18
2018-10-16 09:49:00 -07:00
Tom Cherry
ce27a5bc0f Merge "init: clarify some text/README about 'critical' services" 2018-10-16 16:38:42 +00:00
Bowgo Tsai
15f872aee4 Adding /odm/usr -> /vendor/odm/usr symlink
Bug: 112880217
Test: build and checks symlink is created
Change-Id: Ib9635fc1cd425664cfa8f79d8f034f3cb615cbbc
2018-10-16 18:24:08 +08:00
Yao Chen
3462059598 Merge "Reset statsd writer to init state after close"
am: 379bd47301

Change-Id: I4ea40602e3eb5a8f6b359073ec397fd8d6c58e70
2018-10-15 21:21:30 -07:00
Julien Desprez
dfd0db42f6 Merge "Add adb_integration_test_device to general-tests"
am: 42a2e9eb27

Change-Id: Ib81e9e180570232ec823589ec421f5d6e0ff6c13
2018-10-15 21:20:45 -07:00
Daniel Rosenberg
e0a5a58bed Merge "Call markBootAttempt when serice manager available"
am: 8e842dd365

Change-Id: I20a708d026bb140198ca43987143d6013c6224fc
2018-10-15 21:19:43 -07:00