Commit graph

40074 commits

Author SHA1 Message Date
Tom Cherry
dd48eb7efe Merge "Don't build host_init_verifier for darwin" am: 28d364792f am: 237f1bfb68
am: 30f64de771

Change-Id: I99fa596cd7988cd6885c333428f766f98ef8f913
2018-03-01 01:47:47 +00:00
Tom Cherry
30f64de771 Merge "Don't build host_init_verifier for darwin" am: 28d364792f
am: 237f1bfb68

Change-Id: I69af47b6bcfd48a23933adfd290c9a921eb88202
2018-03-01 01:43:43 +00:00
Tom Cherry
237f1bfb68 Merge "Don't build host_init_verifier for darwin"
am: 28d364792f

Change-Id: Iefe249657adcf9b1d1a871650b65525dac678510
2018-03-01 01:38:07 +00:00
Tom Cherry
28d364792f Merge "Don't build host_init_verifier for darwin" 2018-03-01 01:25:32 +00:00
Tom Cherry
96ff0fed82 Don't build host_init_verifier for darwin
And therefore fix the mac build break.

Test: none
Change-Id: Ice28780abc62fc3e46119497d23bcbc124354159
2018-02-28 17:21:14 -08:00
Tom Cherry
451f83d476 Merge "init: add host side parser for init" am: 49fd480ede am: 7b649a5b50
am: 3597339226

Change-Id: Iaa6dd9c658a21017b2e4b61f6aab4e2572137ce2
2018-03-01 00:25:54 +00:00
Tom Cherry
3597339226 Merge "init: add host side parser for init" am: 49fd480ede
am: 7b649a5b50

Change-Id: If4bf32e9cda90fb1e389ed3ce26313d7aa9775d4
2018-03-01 00:20:51 +00:00
Tom Cherry
7b649a5b50 Merge "init: add host side parser for init"
am: 49fd480ede

Change-Id: Idf901f1b3094f5ff3f3a3886f1dc72157282ee17
2018-03-01 00:16:28 +00:00
Tom Cherry
49fd480ede Merge "init: add host side parser for init" 2018-03-01 00:04:49 +00:00
Josh Gao
0e459e1d47 Merge "adb: add a way to make the server intentionally leak." am: 1ac7150590 am: 9ba182e3bb
am: 399c3591f2

Change-Id: Ifa340ad4f3ce53786391722a7d4f8b97816dfd20
2018-02-28 23:16:34 +00:00
Josh Gao
399c3591f2 Merge "adb: add a way to make the server intentionally leak." am: 1ac7150590
am: 9ba182e3bb

Change-Id: I2f27b341ebceccefbc055c8b98dd14526767baff
2018-02-28 23:12:25 +00:00
Josh Gao
9ba182e3bb Merge "adb: add a way to make the server intentionally leak."
am: 1ac7150590

Change-Id: I4765b5726985555c5c7b325da2b779c7f1687dc0
2018-02-28 23:07:50 +00:00
Treehugger Robot
1ac7150590 Merge "adb: add a way to make the server intentionally leak." 2018-02-28 22:56:30 +00:00
Josh Gao
e2176118f4 adb: add a way to make the server intentionally leak.
Add a way to test LeakSanitizer with the server by adding an
environment variable that intentionally leaks.

Test: ASAN_OPTIONS=detect_leaks=1:leak_check_at_exit=1 ADB_LEAK=1 adb server nodaemon
Change-Id: I7255d45335fa009dc9e5de99dff67af52bd70e06
2018-02-28 14:16:14 -08:00
Mark Salyzyn
61421baf96 lmkd: move sundry pieces to statslog.h
Pragma once is not part of the standard, and is actually a gnu
C++ addition. Android coding standard requires the #ifndef header
wrappers. Moved things that belong in statslog.h from the lmkd files.

SideEffects: None
Test: lmkd_unit_tests
Bug: 33808187
Bug: 72838192
Change-Id: I9686b1a0791ee2b723d05b91905eda0bb64a1156
2018-02-28 19:36:12 +00:00
Colin Cross
a112e1c402 Merge "Make memunreachable_binder_test suitable for VTS" am: c8a22bc1af am: ab9ca8beb5
am: ca18f082aa

Change-Id: Ie5d3533221128a0693b17e5345bbfd0f4fde96af
2018-02-28 19:32:35 +00:00
Colin Cross
ca18f082aa Merge "Make memunreachable_binder_test suitable for VTS" am: c8a22bc1af
am: ab9ca8beb5

Change-Id: I2c604c33974656144df772afdb7219ed39e1529a
2018-02-28 19:24:59 +00:00
Colin Cross
ab9ca8beb5 Merge "Make memunreachable_binder_test suitable for VTS"
am: c8a22bc1af

Change-Id: Ia56784ec3ec783a5d0ff610104a944a3ba18e461
2018-02-28 19:19:16 +00:00
Colin Cross
c8a22bc1af Merge "Make memunreachable_binder_test suitable for VTS" 2018-02-28 19:11:42 +00:00
Tom Cherry
de6bd50d42 init: add host side parser for init
Create a host side parser for init such that init rc files can be
verified for syntax correctness before being used on the device.

Bug: 36970783
Test: run the parser on init files on host

Change-Id: I7e8772e278ebaff727057308596ebacf28b6fdda
2018-02-28 10:45:45 -08:00
Luis Hector Chavez
b14ce54176 Merge "Change the remount command to be more container-friendly" am: d24c8484c8 am: 677288c80a
am: d12cf88945

Change-Id: Ie9986fe8723ed34ecc787deb72bd75c89f1e8554
2018-02-28 17:12:31 +00:00
Luis Hector Chavez
d12cf88945 Merge "Change the remount command to be more container-friendly" am: d24c8484c8
am: 677288c80a

Change-Id: I96fdf4c334626649ca0e7437a0d9296758a9b062
2018-02-28 17:06:23 +00:00
Luis Hector Chavez
677288c80a Merge "Change the remount command to be more container-friendly"
am: d24c8484c8

Change-Id: I878aa9f99481ba1cc2b358d163e6a396ef7c39a9
2018-02-28 17:00:15 +00:00
Treehugger Robot
d24c8484c8 Merge "Change the remount command to be more container-friendly" 2018-02-28 16:48:37 +00:00
Tom Cherry
38a82229ee Merge "libprocessgroup: remove legacy C string handling and build for host" am: 304dacae8a am: 1748e6f9a0
am: d712ff1241

Change-Id: I74cd5c2e6ffe81a9bb985cb5dbc0d743891e936b
2018-02-28 16:43:05 +00:00
Tom Cherry
d712ff1241 Merge "libprocessgroup: remove legacy C string handling and build for host" am: 304dacae8a
am: 1748e6f9a0

Change-Id: I5eb14b25bca784abcf0aa405ada55b79c554f8bd
2018-02-28 16:36:47 +00:00
Tom Cherry
1748e6f9a0 Merge "libprocessgroup: remove legacy C string handling and build for host"
am: 304dacae8a

Change-Id: Ib977b81965bbf6f9186606a267ef96f9e140e15c
2018-02-28 16:30:30 +00:00
Tom Cherry
304dacae8a Merge "libprocessgroup: remove legacy C string handling and build for host" 2018-02-28 16:22:09 +00:00
Dan Willemsen
b3253a35f1 Merge "Mark crash_dump.policy as not supported on mips" am: c0d4786989 am: 3cfc767032
am: a06e3b8a5c

Change-Id: If8d151bd8bae6adc875a13851d5a8aa559499ff9
2018-02-28 03:31:31 +00:00
Dan Willemsen
a06e3b8a5c Merge "Mark crash_dump.policy as not supported on mips" am: c0d4786989
am: 3cfc767032

Change-Id: I84a405ce5522ab54b390866deff73441ef29d006
2018-02-28 03:26:15 +00:00
Dan Willemsen
3cfc767032 Merge "Mark crash_dump.policy as not supported on mips"
am: c0d4786989

Change-Id: I93451539cbfc92e50cbef697983d5d38eb3923bf
2018-02-28 03:21:53 +00:00
Treehugger Robot
c0d4786989 Merge "Mark crash_dump.policy as not supported on mips" 2018-02-28 03:07:21 +00:00
Colin Cross
51e6c252c4 Make memunreachable_binder_test suitable for VTS
Link statically against libmemunreachable to avoid runtime
dependency on libmemunreachable.so.
Provide a better error when run as non-root.
Rename the test to MemunreachableBinderTest.
Add comments explaining the test sequence.

Bug: 28275695
Test: memunreachable_binder_test
Change-Id: Iddfba636205b7ca3ad31a6ba2c4e85abadd32d0d
2018-02-27 18:29:18 -08:00
Josh Gao
a085c9f826 Merge changes I0783be05,Id8178913 am: 09d5e258ef am: 2c1b3e9761
am: d8b711e16b

Change-Id: Ifa679ee1857fddf693f9e9b994bb4d9dff3f6c8a
2018-02-28 02:07:21 +00:00
Josh Gao
d8b711e16b Merge changes I0783be05,Id8178913 am: 09d5e258ef
am: 2c1b3e9761

Change-Id: I764488803977604f85000cbf12ecf25f2c60c695
2018-02-28 01:52:39 +00:00
Josh Gao
2c1b3e9761 Merge changes I0783be05,Id8178913
am: 09d5e258ef

Change-Id: I611aab78988a959d3660c09fd5854e4f657e40b4
2018-02-28 01:41:42 +00:00
Josh Gao
09d5e258ef Merge changes I0783be05,Id8178913
* changes:
  adb: allow reentrant calls to fdevent_run_on_main_thread.
  adb: stop using quick_exit.
2018-02-28 00:14:58 +00:00
Dan Willemsen
e2b6cd28f2 Mark crash_dump.policy as not supported on mips
The recent change to detect missing source files broke reading makefiles
for mips, since this didn't specify a source file.

Bug: 73904572
Test: lunch aosp_mips-eng; m nothing
Test: lunch aosp_arm-eng; m crash_dump.policy
Test: lunch aosp_arm64-eng; m crash_dump.policy
Test: lunch aosp_x86-eng; m crash_dump.policy
Test: lunch aosp_x86_64-eng; m crash_dump.policy
Change-Id: I28864b5af59267f1ab83084128f2c59b04039374
2018-02-27 15:35:11 -08:00
Josh Gao
e39ccd3cbd adb: allow reentrant calls to fdevent_run_on_main_thread.
Previously, reentrant calls to fdevent_run_on_main_thread would
deadlock.

Test: adb_test on host
Change-Id: I0783be0558dcaf61ddbe76d13ac6917fc2de0be0
2018-02-27 14:50:07 -08:00
Josh Gao
d51c6df1ef adb: stop using quick_exit.
We don't actually need to use quick_exit to avoid calling static
destructors, since we have -Wexit-time-destructors to guarantee we
don't actually have any, and this precludes the use of asan's exit time
leak checking, so switch back to atexit/exit.

Test: ASAN_OPTIONS=detect_leaks=1:leak_check_at_exit=1 adb server nodaemon with a manually inserted leak
Change-Id: Id8178913f64cb02c820c5073351369a9e4d8c74d
2018-02-27 14:50:07 -08:00
Luis Hector Chavez
0db4b7a95b Change the remount command to be more container-friendly
Passing in MS_REMOUNT | MS_BIND tells the kernel to only remove the
MS_RDONLY flag and keep all the other flags the same. This is also the
only kind of remount that is allowed in Linux containers (to be more
precise, within user namespaces).

This change also attempts to always run the remount command when dealing
with /, since containers will almost always run a loop device, and since
the number of the device changes, it is not convenient to put it in the
fstab. Plus, the container won't have permission to modify it, but might
be able to perform the remount.

Bug: 72178046
Test: `adb remount` works in both sailfish and Chrome OS
Change-Id: I9e8ec8afcd57f67875a312824667768b3aa89faa
2018-02-27 14:37:26 -08:00
Tom Cherry
574a081623 libprocessgroup: remove legacy C string handling and build for host
Bug: 36970783
Test: kill zygote and see that its children die correctly
Change-Id: I1b0e9a9cdb834a000fec82323d690e3bd288692d
2018-02-27 14:12:19 -08:00
Erik Kline
825f7dff47 Merge "EndsWith *suffix*" am: 73664df55e am: c4a42dd62d
am: eebc9c2446

Change-Id: I77321ded5927f149e3b1367425f5ed461d01bf99
2018-02-27 17:04:51 +00:00
Erik Kline
eebc9c2446 Merge "EndsWith *suffix*" am: 73664df55e
am: c4a42dd62d

Change-Id: Iad3f81efc988383ff99d9b1a08bfaa5d80693889
2018-02-27 16:53:48 +00:00
Erik Kline
c4a42dd62d Merge "EndsWith *suffix*"
am: 73664df55e

Change-Id: I7c2a04e4620ecbf1b1e539e5b6e31c1802833d51
2018-02-27 16:47:36 +00:00
Treehugger Robot
73664df55e Merge "EndsWith *suffix*" 2018-02-27 16:39:43 +00:00
Erik Kline
b154d18d11 EndsWith *suffix*
Possibly an old copy and paste error.

Test: built
Change-Id: Ie86203d65b4021ed4b787d2330729ab0b1d73e9d
2018-02-27 16:12:55 +09:00
Jaegeuk Kim
41a2266c1d Merge "fs_mgr: add sysfs_path=%s to indicate a location of sysfs entry" am: badaa56639 am: 81e692c04b
am: ba5e2b2fce

Change-Id: I110479e38bcd8ada204a0e9a16b28881414f8846
2018-02-27 06:38:45 +00:00
Jaegeuk Kim
ba5e2b2fce Merge "fs_mgr: add sysfs_path=%s to indicate a location of sysfs entry" am: badaa56639
am: 81e692c04b

Change-Id: I0e31e02f552cc518646e3a92bab6d1e824d3dce2
2018-02-27 06:33:47 +00:00
Jaegeuk Kim
81e692c04b Merge "fs_mgr: add sysfs_path=%s to indicate a location of sysfs entry"
am: badaa56639

Change-Id: Ia26e3e4672eb5a4c3c243c7a56f505fe61f8e9c1
2018-02-27 06:28:15 +00:00