Commit Graph

41121 Commits

Author SHA1 Message Date
Josh Gao 743277e866 Merge "adb: fix double close in jdwp_service." am: da6ab73420
am: c4c55853f0

Change-Id: I08f773eede00bc05af80777c19570d5b005004d6
2018-05-14 19:09:19 -07:00
Josh Gao c4c55853f0 Merge "adb: fix double close in jdwp_service."
am: da6ab73420

Change-Id: Ifcf07cefa0279b8f4c8ac4d55db46b6701b86595
2018-05-14 19:05:11 -07:00
Treehugger Robot da6ab73420 Merge "adb: fix double close in jdwp_service." 2018-05-15 01:52:29 +00:00
Colin Cross 2993c701cc Merge "Make memunreachable_test more robust against false negative leaks" am: 32fcdf8de2
am: 35c36f32de

Change-Id: I788b7649b7255814ab720ca1fe645c37d431a0d1
2018-05-14 18:24:05 -07:00
Colin Cross 35c36f32de Merge "Make memunreachable_test more robust against false negative leaks"
am: 32fcdf8de2

Change-Id: I6363c1f2ed8243292afc567b86e77f50d769522d
2018-05-14 18:18:30 -07:00
Treehugger Robot 32fcdf8de2 Merge "Make memunreachable_test more robust against false negative leaks" 2018-05-15 01:03:01 +00:00
Josh Gao b7a9956cbc adb: fix double close in jdwp_service.
Bug: http://b/78793027
Test: treehugger
Change-Id: Ie66d12e70bdaf09148e3d672e3c7c3da9e8ab2fe
2018-05-14 17:13:47 -07:00
Colin Cross ca71f170b7 Make memunreachable_test more robust against false negative leaks
For some reason, the memunreachable tests are rock solid on the
devices covered by APCT, but catch a ton of false-negatives on
hikey960, which show up as failures that look like:
system/core/libmemunreachable/tests/MemUnreachable_test.cpp:200: Failure
Expected equality of these values:
  1U
    Which is: 1
  info.leaks.size()
    Which is: 0

These happen when a stray copy of a pointer is lying around that
points to the memory it is expected to leak.  The stray pointers
can be on the stack or in the jemalloc thread cache of freed
allocations, which is always considered active memory.

Add some extra cleanups to get rid of old pointers.
1.  Clear the tcache when destructing UnreachableMemoryInfo
2.  Clear the stack and tcache before and after each test
3.  Make MemunreachbleTest.twice match MemunreachableTest.stack

Also fix MemunreachableTest.notdumpable, which was only passing
when run as root, which was bypassing what the test was trying
to cover.  Make the test pass when run as non-root, and skip
when the test is running as root.

Bug: 79701104
Test: memunreachable_test
Test: memunreachable_test as root
Change-Id: Ia6c6df11e76405d08118afcc19c1fe80a6684c56
2018-05-14 15:24:28 -07:00
David Anderson 976d471843 Merge "adb: better error messages on deduplicated filesystems." am: 313aa7172f
am: e36d4d53d0

Change-Id: I4712542b78364a1ac50f8c3ed4aa2e6ca7dbe37d
2018-05-14 14:19:34 -07:00
Chih-hung Hsieh fc199fed91 Merge "Expect optional (offset ...) in frame dump." am: 4578d132c7
am: de8b9c5eeb

Change-Id: Ic426288ea73c3bfb3cbe3b97da5a7284f1048c37
2018-05-14 14:18:58 -07:00
David Anderson e36d4d53d0 Merge "adb: better error messages on deduplicated filesystems."
am: 313aa7172f

Change-Id: I0b783dd17db01849cadb929c0234f4bf0eecb61d
2018-05-14 14:14:37 -07:00
Chih-hung Hsieh de8b9c5eeb Merge "Expect optional (offset ...) in frame dump."
am: 4578d132c7

Change-Id: I0e49ba91d508f0b63ee2bb1019dba4461df25537
2018-05-14 14:13:23 -07:00
Treehugger Robot 313aa7172f Merge "adb: better error messages on deduplicated filesystems." 2018-05-14 21:10:34 +00:00
Chih-hung Hsieh 4578d132c7 Merge "Expect optional (offset ...) in frame dump." 2018-05-14 20:51:42 +00:00
Chih-Hung Hsieh 3249b3a8dd Expect optional (offset ...) in frame dump.
* New lld could create files that map to non-zero
  offset at run time.

Test: debuggerd_test
Bug: 79590156
Change-Id: I12db0ebef489ba8a1e648a29d214f8d3c3703996
2018-05-14 11:07:54 -07:00
Mark Salyzyn 9dd13fa4bb Merge "init: keychord inotify add IN_ONLYDIR" am: c8dd6b74e6
am: 421a05dda4

Change-Id: I9f77324e6ccdf3b67e6779c0a126a3aad9c18fa4
2018-05-14 09:24:52 -07:00
Mark Salyzyn 421a05dda4 Merge "init: keychord inotify add IN_ONLYDIR"
am: c8dd6b74e6

Change-Id: I876090858fd38c16456a93d5da196b8cf57975b1
2018-05-14 09:20:15 -07:00
Mark Salyzyn c8dd6b74e6 Merge "init: keychord inotify add IN_ONLYDIR" 2018-05-14 16:08:14 +00:00
Mark Salyzyn f187715954 init: keychord inotify add IN_ONLYDIR
some minor cleanup.

Test: manual, boot, check registered chord works
Bug: 64114943
Change-Id: If809075445cfd5b6de0d4debc42cdc9559ddc7c4
2018-05-14 07:18:51 -07:00
Suren Baghdasaryan 740d940074 lmkd: Enable more logs during a kill
am: da88b24c97

Change-Id: Ieb4ed09ac5224843ee8f7fb44494eb291054223d
2018-05-11 14:15:09 -07:00
Suren Baghdasaryan da88b24c97 lmkd: Enable more logs during a kill
Logs that provide information about memory conditions during a process
kill event contain useful information and do not affect device
performance because these events are rare. Enabling them even when
ro.config.debug flag is not set will help in understanding low memory
conditions.

Bug: 79572814

Change-Id: Iae6e9bb612b9a7904ca491de3f1ddc727f24c7e0
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
2018-05-11 21:03:14 +00:00
David Anderson a962ec0c73 adb: better error messages on deduplicated filesystems.
If BOARD_EXT4_SHARE_DUP_BLOCKS is true, "adb remount" will error saying
the filesystem is read-only. Instead, it will now list affected
partitions and explain why they can't be remounted.

Bug: 64109868
Test: adb remount with deduplicated system image
Change-Id: Ida737a6be8e9fe9ea26300897d82b1a149e72f6d
2018-05-11 13:20:31 -07:00
Sen Jiang 983e84e85d Merge "Match LZMA SDK 18.05 API." am: 3607fe672a
am: b4403da532

Change-Id: Iec42d40eebc4e00a58d29ddb3976ac0fe129be11
2018-05-11 12:11:58 -07:00
Sen Jiang b4403da532 Merge "Match LZMA SDK 18.05 API."
am: 3607fe672a

Change-Id: Ic9131a5bf07b30fc8f2986ecf3c7fa88823971f9
2018-05-11 12:07:48 -07:00
Sen Jiang 3607fe672a Merge "Match LZMA SDK 18.05 API." 2018-05-11 18:58:58 +00:00
Gwendal Grignou b7f78ee89c Merge "allow config/sdcardfs directory to be seen for ARC++" into pi-dev
am: 232ce729f5

Change-Id: Idcd13df25a17e91b4395d3672ce52f9e24f400af
2018-05-10 18:41:50 -07:00
Gwendal Grignou 232ce729f5 Merge "allow config/sdcardfs directory to be seen for ARC++" into pi-dev 2018-05-11 01:36:14 +00:00
Mark Salyzyn 77e59cab82 Merge "init: Add inotify for /dev/input/" am: 7ea8047185
am: 205cf8aefb

Change-Id: Ie108c87d87ee52e83ecaefa042ea9522b1460f35
2018-05-10 13:01:00 -07:00
Mark Salyzyn 205cf8aefb Merge "init: Add inotify for /dev/input/"
am: 7ea8047185

Change-Id: Ib1d5308f1964f8a7ea1bab260dae7e1e8dc11317
2018-05-10 12:55:56 -07:00
Mark Salyzyn 7ea8047185 Merge "init: Add inotify for /dev/input/" 2018-05-10 19:44:44 +00:00
Mark Salyzyn 44692de855 init: Add inotify for /dev/input/
Since event sources can come and go asynchronously because of delayed
driver instantiation due to initialization or firmware upload, USB
attched devices, kernel module loads, or test automation sources like
monkey, add in inotify on /dev/input/ to support these possibilities.

Test: manual, boot, check registered chord works
Bug: 64114943
Change-Id: Ie598bb6f5bf94b2034ab33cf3be7fa15d3467141
2018-05-10 08:45:24 -07:00
Logan Chien a6343ab784 [automerger skipped] Merge "libctuils: Exclude qtaguid.cpp from VNDK-SP variant" into pi-dev
am: cff5b8a7d0  -s ours

Change-Id: I856c20913cceae15a64967376f6d3ac8b00436dc
2018-05-09 23:31:45 -07:00
Logan Chien cff5b8a7d0 Merge "libctuils: Exclude qtaguid.cpp from VNDK-SP variant" into pi-dev 2018-05-10 06:05:25 +00:00
Tom Cherry ec737fbca3 Merge "Remove unused using statement / host stub" am: 86dade8f6f
am: 841e457494

Change-Id: I1eeefc18fe525dab1e74ba494b5c35650f1f72d7
2018-05-09 17:31:17 -07:00
Tom Cherry 841e457494 Merge "Remove unused using statement / host stub"
am: 86dade8f6f

Change-Id: I85a7c6dd4485fc0e6885e4c2b93f2908474cbda0
2018-05-09 17:23:38 -07:00
Treehugger Robot 86dade8f6f Merge "Remove unused using statement / host stub" 2018-05-10 00:07:50 +00:00
Tom Cherry 2fa178a01e Remove unused using statement / host stub
GetIntProperty() isn't used after
Ied46e9346b4ca7931aa4dcf1c9dbc11de0e12d93, so it can be removed.

Test: build
Change-Id: I5736f553db1a615d51b8fe3cbf9b4aee89451076
2018-05-09 15:25:39 -07:00
Josh Gao 6f29036721 Merge "adb: add authorizing, connecting states to transport." am: c97cea0d20
am: ec0dd9b71f

Change-Id: I838bac019ac460bbb8ede63ce84c39723638f1a5
2018-05-09 13:54:06 -07:00
Josh Gao ec0dd9b71f Merge "adb: add authorizing, connecting states to transport."
am: c97cea0d20

Change-Id: Ie42bbe9205660c59d144563bb7b71377df9fbed1
2018-05-09 13:48:59 -07:00
Josh Gao c97cea0d20 Merge "adb: add authorizing, connecting states to transport." 2018-05-09 20:43:31 +00:00
Steven Moreland 8af3dda509 Merge changes from topic "interface_builtins" am: 4880d44d2a
am: a2404d3029

Change-Id: I6550dc6ae6ec077b7879f1ba640c0f580fd65b63
2018-05-09 12:53:46 -07:00
Steven Moreland a2404d3029 Merge changes from topic "interface_builtins"
am: 4880d44d2a

Change-Id: I1968c2bbc2292e0d467246acc5aa17ca0c165b5f
2018-05-09 12:48:15 -07:00
Steven Moreland 4880d44d2a Merge changes from topic "interface_builtins"
* changes:
  init: ServiceList FindInterface
  builtins: interface_{start, stop, restart}
2018-05-09 19:34:22 +00:00
android-build-team Robot bf424dab31 Merge "Documented adb install --instant" into pi-dev
am: c8b1a2524e

Change-Id: I470e406adf09f32f9b2ea9babbdf61710adb373e
2018-05-09 12:15:38 -07:00
android-build-team Robot c8b1a2524e Merge "Documented adb install --instant" into pi-dev 2018-05-09 18:53:27 +00:00
android-build-team Robot c015800bd7 Merge "Move libstatssocket from frameworks/base to system/core/" into pi-dev
am: 289668011f

Change-Id: I80607452fe893cb2187af67a8e571628cb673a66
2018-05-09 11:42:09 -07:00
android-build-prod (mdb) 15d36ded11 Merge "Documented adb install --instant" am: 53248e47f4
am: 936a41acc8

Change-Id: I9769a391a7a2d4c5cd636db0529ca62d904e598c
2018-05-09 11:40:36 -07:00
android-build-prod (mdb) 936a41acc8 Merge "Documented adb install --instant"
am: 53248e47f4

Change-Id: I63f84176af98131059b569c69537a766949c591f
2018-05-09 11:35:36 -07:00
android-build-prod (mdb) 53248e47f4 Merge "Documented adb install --instant" 2018-05-09 18:23:11 +00:00
android-build-team Robot 289668011f Merge "Move libstatssocket from frameworks/base to system/core/" into pi-dev 2018-05-09 18:08:46 +00:00