Commit Graph

29589 Commits

Author SHA1 Message Date
Vijay Venkatraman b3ef9022e9 Moved all files from include/system to libsystem/include/system
Bug: 33241851
Test: No changes for modules not using VNDK. For compiling with VNDK,
add libsystem_headers as dependency for using these headers

Change-Id: I1a8a44073424cc0db625e31d44cb16b78c5a9ca1
Merged-In: I2acce0ab771e10ac83461c2f931e2c19e922089e
2017-04-06 10:28:50 -07:00
Liu Changcheng 3492221fcf check send_signal result before further dealing
If send_signal failed, debuggerd_trigger_dump should return
instead of further dealing

Change-Id: I0a1ac4255344d1da7a21917ad559b9de4d5a4fee
Signed-off-by: Liu Changcheng <changcheng.liu@intel.com>
Signed-off-by: Jerry Liu <primerlink@gmail.com>
2017-04-06 22:47:00 +08:00
Mark Salyzyn bc1d2aeff9 logd: test: logd.sepolicy* errors
If setcon fails, try alternate setcon, and then if it still
fails call getcon to confirm if it is an OK sepolicy context
anyways.

Test: gTest logd-unit-tests --gtest_filter=logd.sepolicy*
Change-Id: Iaf20b8a1a4a7312247288e1879884a54893c15ae
2017-04-06 07:40:10 -07:00
Dan Shi 5358155528 Merge "Add test config to bootstat_tests"
am: 3d5cd59d73

Change-Id: Ie095ec5e2301fb0fc2db1350b43056b06fd6b617
2017-04-06 03:10:24 +00:00
Treehugger Robot 3d5cd59d73 Merge "Add test config to bootstat_tests" 2017-04-06 03:01:29 +00:00
Tom Cherry c44f6a4073 ueventd: Write tests for the get_*_symlinks() functions
Bug: 33785894
Bug: 36250207
Test: Boot bullhead + new unit tests
Change-Id: Ia0f290542eb1cffce5ae876dfedb453dde960253
2017-04-05 18:21:39 -07:00
Mark Salyzyn 27c796b2f7 Merge "libcutils: fs_config: target_out_path assumed /system"
am: 66b8491719

Change-Id: I399f82026a4b4a77338dbdbbd2c923a9692f9b07
2017-04-06 00:14:29 +00:00
Treehugger Robot 66b8491719 Merge "libcutils: fs_config: target_out_path assumed /system" 2017-04-06 00:03:14 +00:00
Dan Willemsen 28dab34cbb Add LLNDK liblog stub library for the VNDK
This replaces the liblog_vndk_headers with a true stub library that
exports the vndk headers, and exports the vndk-specific set of symbols.

Test: generated NDK stub maps are the same before/after
Test: aosp_arm; m -j
Test: Enable BOARD_VNDK_VERSION on aosp_arm; m -j (with other changes)
Change-Id: I9037241963b3872a3bc7cf7ab36a70dd4ddcf9bc
2017-04-05 16:42:40 -07:00
Tom Cherry c996a8e73e Add android::base::ScopeGuard
Taken from bionic/libc/private/ScopeGuard.h.

Test: New unit tests
Change-Id: If83c1990efbf294aee0b5d40a7a9ac326e5e765e
2017-04-05 16:15:33 -07:00
Christopher Ferris 906709aa75 Merge "Convert opens to use unique_fd."
am: ff93b794b5

Change-Id: I53278a094a4d96f9bcb32faa311e560728f76e10
2017-04-05 22:50:03 +00:00
Mark Salyzyn 4f2753fd91 Merge "liblog: worry over resource leaks"
am: acc0e98b0f

Change-Id: Ibc6883cd11daa49501f91166830e8e27f66f21ef
2017-04-05 22:49:50 +00:00
Christopher Ferris ff93b794b5 Merge "Convert opens to use unique_fd." 2017-04-05 22:47:25 +00:00
Mark Salyzyn 7130fb345d libcutils: fs_config: target_out_path assumed /system
Strip off /system/ and add appropriate config directory.

Test: manual build successfully interprets all etc/fs_config_* files.
Bug: 36071012
Change-Id: I2563248e91cea10fef3cc2f9e954e4782fdfce4f
2017-04-05 22:32:22 +00:00
Mark Salyzyn acc0e98b0f Merge "liblog: worry over resource leaks" 2017-04-05 22:28:38 +00:00
Mark Salyzyn 191afba9bd liblog: worry over resource leaks
Add comments so that future selves can clearly see there are no file
descriptor resource leaks on normal return.

SideEffects: None
Test: Build
Change-Id: Ieec504fea00fb849cdb69c669655a918d1334e61
2017-04-05 13:02:08 -07:00
Christopher Ferris 48d08c2c9d Convert opens to use unique_fd.
Fixes a potential leak of fds in WriteStringToFile.

Test: I wrote a temporary test that failed the fchmod on host in
Test: WriteStringToFile. I verified this fails with the old code after running
Test: out of fds and passes with the new code.
Change-Id: I168160841e35dd480d59a69bb4aa8176899fbb32
2017-04-05 12:30:12 -07:00
Christopher Ferris dbd463fc0b Merge "Add Symbols parsing."
am: 568dc01fdf

Change-Id: I8bf2d09b6bd9b32f8e688d6bbb17b7552acca0de
2017-04-05 17:30:15 +00:00
Rubin Xu 3651e52903 Merge "Fix liblog#__security failure"
am: 7887dd8567

Change-Id: I40443a10f9e59bc8099e4204ffe3ca808c5a1c0b
2017-04-05 17:27:16 +00:00
Christopher Ferris 568dc01fdf Merge "Add Symbols parsing." 2017-04-05 17:26:32 +00:00
Rubin Xu 7887dd8567 Merge "Fix liblog#__security failure" 2017-04-05 17:22:43 +00:00
Dan Shi 0f0cccc102 Add test config to bootstat_tests
This change allows TradeFederation to run the test directly.
Refer to b/35882476 for design and discussion of this change.

Bug: 35882476
Test: local test
tradefed.sh run template/local --template:map test=bootstat_tests

Change-Id: I3bc2fa19faebe21f6faf8b81e206ea1581918344
2017-04-05 14:49:47 +00:00
Rubin Xu 235cf8d729 Fix liblog#__security failure
Update pid and gid value after calling setuid()

Bug: 36480230
Test: cts-tradefed run cts -m CtsLiblogTestCases -t liblog#__security_buffer
Change-Id: I707f7c724d64236ec17f2d978c85883a7b4f180f
Merges-In: I707f7c724d64236ec17f2d978c85883a7b4f180f
2017-04-05 11:27:48 +01:00
Dan Shi 0b842b37f6 Merge "Add test config to libcutils_test"
am: c1c0de3945

Change-Id: I6db1561c2153df96a7c4faa166963b0d1855e285
2017-04-05 06:42:33 +00:00
Treehugger Robot c1c0de3945 Merge "Add test config to libcutils_test" 2017-04-05 06:39:42 +00:00
Josh Gao e6ccb6c03e Merge changes Ib8369088,I743433bc
am: 8b951f5adc

Change-Id: I85db0865fab80bcf8c6e2cacf890c61c2dd2c458
2017-04-05 04:24:57 +00:00
Josh Gao 8b951f5adc Merge changes Ib8369088,I743433bc
* changes:
  debuggerd_test: remove useless pipe.
  debuggerd_client: fix infinite timeouts.
2017-04-05 04:20:14 +00:00
Steven Moreland 795eb840a7 Merge "init.rc: add class_start early_hal"
am: 7bbd2a5290

Change-Id: I4a87771a45921b9fc7124c9a0d25ebc8bb0c9088
2017-04-05 00:40:35 +00:00
Treehugger Robot 7bbd2a5290 Merge "init.rc: add class_start early_hal" 2017-04-05 00:35:00 +00:00
Dan Shi 31d4b50cc4 Merge "Add test config to libappfuse_test"
am: dccf5a1dc8

Change-Id: I5babe9e60419aaf52ef323a8640a6ab315e5a93c
2017-04-05 00:11:28 +00:00
Dan Shi dccf5a1dc8 Merge "Add test config to libappfuse_test" 2017-04-05 00:04:39 +00:00
Mark Salyzyn d5f7cc74a6 Merge "logcatd: introduce logcatd executable"
am: 47356e69fe

Change-Id: I0cc69ca055e82f3933d922baa3dfbe2efc68dded
2017-04-04 21:54:35 +00:00
Treehugger Robot 47356e69fe Merge "logcatd: introduce logcatd executable" 2017-04-04 21:48:23 +00:00
Christopher Ferris e7ba4cc222 Add Symbols parsing.
Bug: 23762183

Test: New unit tests pass.
Change-Id: Ib67fee879120b5e82889076a0f7221dc429ac140
2017-04-04 14:41:34 -07:00
Steven Moreland 5d56bad4bd init.rc: add class_start early_hal
This class is used to start hals which are required in order to mount
data (for instance keymaster).

Test: works to start early_hal in internal
Bug: 36278706
Change-Id: If06908135e59b187683d8cf4cc4a00b490559081
2017-04-04 21:22:47 +00:00
Josh Gao 951cf70071 debuggerd_test: remove useless pipe.
Bug: http://b/36897117
Test: none
Change-Id: Ib8369088153fe44de2af9037299bdfce7b709b98
2017-04-04 14:09:04 -07:00
Josh Gao 287d50dc59 debuggerd_client: fix infinite timeouts.
Bug: http://b/36897117
Test: debuggerd_test
Test: debuggerd -b `pidof zygote`
Change-Id: I743433bc420b1c433b82ef62795abb6ea9f5d840
2017-04-04 14:08:54 -07:00
Christopher Ferris 1ab138c64e Merge "Add DwarfOp support."
am: 3f220aaa63

Change-Id: I1bf8a417889a9ad31055c05e3149f985e1dbc591
2017-04-04 21:02:54 +00:00
Christopher Ferris 3f220aaa63 Merge "Add DwarfOp support." 2017-04-04 20:53:43 +00:00
Mark Salyzyn 1b559e2f8d Merge "logd: cap out-of-order entry search"
am: b15882faab

Change-Id: I260b98c2d3712bc4dc508d9283923e8a0495e59e
2017-04-04 20:12:00 +00:00
Yabin Cui 0c1bad300c Merge "adb: don't reset usb when connecting it."
am: 4b8087aeb2

Change-Id: Idbd9241dec2cf35568fd110dc1fa6a56615de941
2017-04-04 20:11:45 +00:00
Mark Salyzyn f8e1b8005b Merge "libcutils: create private/fs_config.h"
am: 832f6c704a

Change-Id: Ifa6f5bd32182be272b5302c855a962611e253c8c
2017-04-04 20:11:32 +00:00
Treehugger Robot b15882faab Merge "logd: cap out-of-order entry search" 2017-04-04 19:41:52 +00:00
Christopher Ferris 55d22ef67c Add DwarfOp support.
Bug: 23762183

Test: New unit tests pass.
Change-Id: I9581701ee2721283a1114adab4e1bcff881980cc
2017-04-04 12:35:50 -07:00
Treehugger Robot 4b8087aeb2 Merge "adb: don't reset usb when connecting it." 2017-04-04 19:29:09 +00:00
Mark Salyzyn 832f6c704a Merge "libcutils: create private/fs_config.h" 2017-04-04 19:15:09 +00:00
Mark Salyzyn a9403f0db8 libcutils: create private/fs_config.h
private/fs_config.h is required in order to build an independent
test that requires internal binary knowledge of the
etc/fs_config_(files|dirs) files.

Test: compile
Bug: 36071012
Change-Id: I268bcfdbb6d45b7bf6040cbf307a4e34812f5fef
2017-04-04 19:14:32 +00:00
Mark Salyzyn 0f92fdc5d6 logd: cap out-of-order entry search
Reduce the period we are willing to look back at for out-of-order
entries.  Cap the number of iterations we are willing to look back
for out-of-order entries to 300.

Test: gTest liblog-unit-tests, logd-unit-tests and logcat-unit-tests
Bug: 36875387
Bug: 36874561
Bug: 36861142
Change-Id: Icee289dfc0a37ccab9912dc8ab40a10ef3967b7a
2017-04-04 11:03:26 -07:00
Christopher Ferris 69b4dfe13e Merge "Add overflow checks in Memory objects."
am: 856bccbdc3

Change-Id: Id9e9c65c724d1ce75cc3cefed06d14f5785d2259
2017-04-04 17:37:15 +00:00
Christopher Ferris 856bccbdc3 Merge "Add overflow checks in Memory objects." 2017-04-04 17:29:49 +00:00