Commit Graph

27148 Commits

Author SHA1 Message Date
James Hawkins 1715ee2854 Merge "libmetricslogger: Use libBionicGtestMain instead of a custom test runner."
am: 07e57b4b25

Change-Id: I381e97ba2555df545fb63e7fe062da6783ef8687
2017-02-14 02:12:31 +00:00
Treehugger Robot 07e57b4b25 Merge "libmetricslogger: Use libBionicGtestMain instead of a custom test runner." 2017-02-14 02:07:30 +00:00
Yabin Cui 8a5f594bc3 Merge "libbase: fix the way to find temp dir."
am: b13d4a31a3

Change-Id: I8e3690c1e4b9cb4ce67e1bba323b21c3f9f7bcd9
2017-02-14 00:35:44 +00:00
Yabin Cui b13d4a31a3 Merge "libbase: fix the way to find temp dir." 2017-02-14 00:29:40 +00:00
Yabin Cui 57e9cea099 libbase: fix the way to find temp dir.
Tests running in app context can't access /data/local/tmp,
so try current directory if /data/local/tmp is not accessible.

Bug: http://b/18790309
Test: run unit test in app context and shell context.
Change-Id: If66fe8f0ac3edb3a32a2a2a50a524364f818a58b
2017-02-13 15:50:56 -08:00
James Hawkins 7607adfd53 libmetricslogger: Use libBionicGtestMain instead of a custom test runner.
Also remove commented out code I accidentally left in.

Bug: 34456830
Test: libmetricslogger_test
Change-Id: If76d3013ec7eaa71cef67c6db04d810745e3833e
2017-02-13 13:41:44 -08:00
Yabin Cui 47ac9e420f Merge "libbacktraceoffline: make it thread-safe."
am: a3e4977325

Change-Id: I90fab011054ffd9e3aa934cac551f3e0f9144ed0
2017-02-13 21:34:18 +00:00
Treehugger Robot a3e4977325 Merge "libbacktraceoffline: make it thread-safe." 2017-02-13 21:28:15 +00:00
Dimitry Ivanov 70cfd3ae79 Merge "Add comment to android_link_namespaces method"
am: 7e7913cb67

Change-Id: Iaa7062ebf722dc614552849579bcc80cb059d276
2017-02-13 19:28:52 +00:00
Treehugger Robot 7e7913cb67 Merge "Add comment to android_link_namespaces method" 2017-02-13 19:23:49 +00:00
James Hawkins 348a393df4 Merge "libmetricslogger: Refactor Tron metrics histogram logging out of bootstat."
am: 64984aaa6e

Change-Id: I6628c5ea371c34dcc1b0e8ff0a74758479dd7c58
2017-02-13 18:42:30 +00:00
Yabin Cui c458193f7f Merge "libbacktraceoffline: choose correct debug section for a given address."
am: 5c3a707542

Change-Id: If3188979346e26522707ac6aefa91a30a0300f13
2017-02-13 18:42:18 +00:00
James Hawkins 64984aaa6e Merge "libmetricslogger: Refactor Tron metrics histogram logging out of bootstat." 2017-02-13 18:41:23 +00:00
Yabin Cui 26369a3a01 libbacktraceoffline: make it thread-safe.
Make libbacktraceoffline thread-safe by protecting the global variable with
a lock. So it can be used in a multi-thread environment, like by
simpleperf inplace sampling.

Bug: http://b/30974760
Test: no
Change-Id: I4699bf15dfa69ac75faeb4e79a73fb3af0f08dfc
2017-02-13 10:35:06 -08:00
Yabin Cui 5c3a707542 Merge "libbacktraceoffline: choose correct debug section for a given address." 2017-02-13 18:33:50 +00:00
Dimitry Ivanov 3f5b5dc546 Add comment to android_link_namespaces method
Test: n/a - comment only change
Bug: http://b/26833548
Change-Id: I40356eec37aeb864206982feb877c59c21c9a433
2017-02-13 08:52:35 -08:00
Dimitry Ivanov e6050e248a Merge "Replace public library list with shared lib sonames"
am: fd87c062ab

Change-Id: I6c3578920711e16f28a04305bc12c02db905bf3e
2017-02-11 19:30:02 +00:00
Dimitry Ivanov fd87c062ab Merge "Replace public library list with shared lib sonames" 2017-02-11 19:26:50 +00:00
Yabin Cui c4a480e423 libbacktraceoffline: choose correct debug section for a given address.
1. In /system/lib/libart.so, the ranges of functions covered by .eh_frame
and .ARM.exidx overlap with each other. Currently, we don't check .eh_frame
if the address is in the ranges of functions covered by .ARM.exidx. It leads
to a wrong unwinding result. So change the logic to first try .eh_frame and
.debug_frame, if it fails, then try .ARM.exidx.
2. Add test for Item 1.

Bug: http://b/35251937
Test: run backtrace_test.

Change-Id: Ic412705617c300bc69b4ece178cc2e1bb3eb765b
2017-02-10 17:51:16 -08:00
Todd Poynor 4dbefe4d4c Merge "init.rc: create /data/misc/reboot for storing reboot reason"
am: e499403bf4

Change-Id: Idf51132742d019c42f6ca6a5d45511c504d701c4
2017-02-10 21:36:23 +00:00
Wei Wang e6ceb5a5b9 Merge "bootstat.rc: record post_decrypt_time_elapsed only for FDE device"
am: 936738b8f7

Change-Id: If9b499c73fc2399ca3e106c9df7626f97b09e4e1
2017-02-10 21:36:10 +00:00
Treehugger Robot e499403bf4 Merge "init.rc: create /data/misc/reboot for storing reboot reason" 2017-02-10 21:33:36 +00:00
Treehugger Robot 936738b8f7 Merge "bootstat.rc: record post_decrypt_time_elapsed only for FDE device" 2017-02-10 21:32:30 +00:00
Todd Poynor 44ee2b0ef8 init.rc: create /data/misc/reboot for storing reboot reason
Create /data/misc/reboot if not already.

Bug: 30994946
Test: manual: reboot command; modified thermal-engine.conf
Change-Id: I66418beba539f76759b44742af7700f26a2c1f87
2017-02-10 19:26:13 +00:00
Neil Fuller 06979c821e Merge "Documentation improvements"
am: cee583bc53

Change-Id: I8d1d1195d629dc6432155454fb4fafaf90400248
2017-02-10 15:20:12 +00:00
Neil Fuller cee583bc53 Merge "Documentation improvements" 2017-02-10 15:16:43 +00:00
Neil Fuller cb9ea947f3 Merge "Rename "Bundle" to "Distro""
am: 0ef5727905

Change-Id: Ia09aa0366f6109eb885bb95e7e12b59376bf3d08
2017-02-10 14:59:23 +00:00
Neil Fuller 0ef5727905 Merge "Rename "Bundle" to "Distro"" 2017-02-10 14:55:44 +00:00
Neil Fuller 6074cb8805 Merge "Add bundle format minor version check logic"
am: 3cf4b8664a

Change-Id: I8d0267b2fab9d968f6a6403d629f786fd8fc15aa
2017-02-10 13:07:30 +00:00
Neil Fuller 3cf4b8664a Merge "Add bundle format minor version check logic" 2017-02-10 13:02:35 +00:00
bowgotsai 776caaf6ea Merge "fs_mgr: removing the dependency of requiring /vbmeta in fstab for AVB"
am: f803afaa65

Change-Id: I7a397030eb8a889c8d9f461d44c566def0479a01
2017-02-10 06:25:16 +00:00
Treehugger Robot f803afaa65 Merge "fs_mgr: removing the dependency of requiring /vbmeta in fstab for AVB" 2017-02-10 06:21:14 +00:00
George Burgess IV 9a7f57b909 Merge "cutils: Add clang FORTIFY support"
am: f2e615c7b8

Change-Id: Ic13ab7bc917e0bf0cc6549749d5f1f8a67f3c40e
2017-02-10 02:11:46 +00:00
George Burgess IV 7d1dc5083b Merge "Add permission bits to open() with O_CREAT."
am: c33ba01a71

Change-Id: Ib92ab3987de5a3bafdfef36592aeead9988a65d5
2017-02-10 02:11:38 +00:00
Treehugger Robot f2e615c7b8 Merge "cutils: Add clang FORTIFY support" 2017-02-10 02:07:28 +00:00
Treehugger Robot c33ba01a71 Merge "Add permission bits to open() with O_CREAT." 2017-02-10 02:07:28 +00:00
Jorge Lucangeli Obes 41aa8f07b2 Merge "Add a sample service for testing init."
am: d7b5c7b2da

Change-Id: Id4600c9dc36f6b22ca165622967bb68a2bc51425
2017-02-10 01:41:57 +00:00
Treehugger Robot d7b5c7b2da Merge "Add a sample service for testing init." 2017-02-10 01:40:12 +00:00
Evan Ralston 281fa200fb Merge "Check against LOG_ID_MAX instead of LOG_ID_KERNEL"
am: 9fcabf739b

Change-Id: I6a07a22d727e2e5a886bf6c717d787273feb3226
2017-02-10 01:19:55 +00:00
Treehugger Robot 9fcabf739b Merge "Check against LOG_ID_MAX instead of LOG_ID_KERNEL" 2017-02-10 01:14:23 +00:00
Michael Wright f5951632d0 Merge "Only allow system to write to existing input nodes."
am: bab6ec555c

Change-Id: Iff70503026c0e43d44e0f3d79edae22e9356aa5d
2017-02-10 00:19:59 +00:00
Treehugger Robot bab6ec555c Merge "Only allow system to write to existing input nodes." 2017-02-10 00:15:24 +00:00
Connor O'Brien 76bdadbf7d Merge "Fastboot: use flash erase & logical block size for building userdata"
am: 6e0dd6285e

Change-Id: I1b9fa4a0335f4a9f834607b92d7f74b9d7afed94
2017-02-10 00:08:22 +00:00
Connor O'Brien 6e0dd6285e Merge "Fastboot: use flash erase & logical block size for building userdata" 2017-02-10 00:01:41 +00:00
Jorge Lucangeli Obes 28e980b59c Add a sample service for testing init.
I find myself using something like this every time I add functionality
to init. I cannot possibly be the only one doing this. On the other
hand, if this hasn't been added for so long, maybe there's a reason
for that.

The advantage of using a test service versus modifying an existing
service is that the test service doesn't *require* any permissions or
privileges, so you can add and/or remove whatever you need to test
without breaking the service.

I found it useful to have the service check its own /proc/<pid>/status
from command-line arguments, so that's what the service does.

This CL also adds a .clang-format file for init.

Bug: None
Test: Service runs and exits successfully.

Change-Id: I3e7841a7283158e10c0bf55e0103c03902afb1f0
2017-02-09 18:23:09 -05:00
Michael Wright 344e929e6d Only allow system to write to existing input nodes.
This prevents the shell user from injecting input as if it were coming
from an existing input device, which in turn makes it easier for malware
/ abuse analysis to detect when someone is injecting input via the
command line vs a real user using a device.

(cherrypick of 95637eb2a332b9a09914b1bf32c10fccfba4a175.)

Bug: 30861057
Test: ran getevent, saw correct output, played with device
Change-Id: Ib53eea1b7767f25510b5d36fe6109101a9fad8e0
2017-02-09 14:45:25 -08:00
Sandeep Patil 48b32bf398 Merge "ueventd: source ueventd configs from vendor and odm"
am: d54d4c275e

Change-Id: I39565fa11c5a8ac9611c5970cc574a405657be77
2017-02-09 21:33:00 +00:00
Treehugger Robot d54d4c275e Merge "ueventd: source ueventd configs from vendor and odm" 2017-02-09 21:25:44 +00:00
George Burgess IV 67959bceb2
cutils: Add clang FORTIFY support
Bug: 32073964
Test: Builds on angler, bullhead, marlin, sailfish. Bionic CTS tests
pass on Angler and Bullhead.

Change-Id: I3d7f8ff73f92b1deb1e07f08282098e71e2d03a9
Signed-off-by: Alex Naidis <alex.naidis@linux.com>
2017-02-09 20:18:19 +01:00
bowgotsai 72ffff70fc fs_mgr: removing the dependency of requiring /vbmeta in fstab for AVB
Remove polling_vbmeta_blk_device() as it tries to get /vbmeta entry
from fstab. Also move the polling of a partition inside read_from_partition()
in fs_mgr_avb_ops.cpp as it's where the reads happen.

Bug: 31264231
Test: Device can boot with AVB

Change-Id: Id717e160b085eca42eb9bc5eb2fa7e658bea3ad6
2017-02-10 02:20:22 +08:00