Commit Graph

33761 Commits

Author SHA1 Message Date
TreeHugger Robot a3598113ad Merge "Move restorecon() of /sys from init to ueventd." into oc-dev-plus-aosp 2017-06-19 19:36:56 +00:00
Tom Marshall ebd6a64694 Merge "init: Run restorecon_recursive asynchronously" am: ad4aa9e169
am: 0329b8d03e

Change-Id: I1cd56fc9521451742b04d7f56bc0b657a0672314
2017-06-19 18:06:14 +00:00
Tom Marshall 0329b8d03e Merge "init: Run restorecon_recursive asynchronously"
am: ad4aa9e169

Change-Id: I809f5d08fda61b25bbed2b01dac9ee7e4ab9bfc9
2017-06-19 18:00:17 +00:00
Tom Cherry c3e955123c Move restorecon() of /sys from init to ueventd.
ueventd already does restorecon() for /sys/{block,class,devices}, so
instead of duplicating this effort with init, move the restorecon()
that init does for all of /sys to ueventd.

Bug: 62420036
Change-Id: I6125f8ff5316a0cf45872d1100d089d71802958f
Test: Boot sailfish, bullhead
2017-06-19 10:59:06 -07:00
Treehugger Robot ad4aa9e169 Merge "init: Run restorecon_recursive asynchronously" 2017-06-19 17:52:02 +00:00
Neil Fuller 2bb1e712a8 Merge "Move system/core/tzdatacheck to system/timezone" am: acb6473793
am: e07e6fbf72

Change-Id: Ifc45d80e5c8cbfbd2f3eefcedd6c9236d0c843b6
2017-06-19 14:08:25 +00:00
Neil Fuller e07e6fbf72 Merge "Move system/core/tzdatacheck to system/timezone"
am: acb6473793

Change-Id: I14a77c9b6ac40b309194587f33c2f00497edb850
2017-06-19 14:02:53 +00:00
Neil Fuller acb6473793 Merge "Move system/core/tzdatacheck to system/timezone" 2017-06-19 13:54:38 +00:00
Jiyong Park 5b2433611b Merge "Mark libdemangle as vendor_available" am: dd622c5c34
am: 14f088cb67

Change-Id: I4a47d1a532394e32abdad234d696ac8c375eef90
2017-06-19 03:36:39 +00:00
Jiyong Park 14f088cb67 Merge "Mark libdemangle as vendor_available"
am: dd622c5c34

Change-Id: I460a3dc299d3311fa7582b41e839c487aac91eca
2017-06-19 03:31:08 +00:00
Treehugger Robot dd622c5c34 Merge "Mark libdemangle as vendor_available" 2017-06-19 03:24:09 +00:00
Jaesung Chung 205d51d333 Merge "debuggerd_test: find backtrace frame in all lines in CrasherTest" am: fae8ec2556
am: 82e543afad

Change-Id: Ib0a0ec0c94d8fff34d1390d44623697a51a0e317
2017-06-19 00:23:42 +00:00
Jaesung Chung fe361ae7b3 Merge "logd-unit-tests: make sure use unsigned types when reading le" am: 31f2c81755
am: b9a1ff14ae

Change-Id: I2a780305fca0143ec863d1736d6ff74ff222eef2
2017-06-19 00:23:19 +00:00
Jaesung Chung 82e543afad Merge "debuggerd_test: find backtrace frame in all lines in CrasherTest"
am: fae8ec2556

Change-Id: I3f1e8d8b9131fe15b2de397b46f07bdc91f2b739
2017-06-19 00:18:49 +00:00
Jaesung Chung b9a1ff14ae Merge "logd-unit-tests: make sure use unsigned types when reading le"
am: 31f2c81755

Change-Id: If4ad61346df17727e39bf0aa26c4dc96f8feeb24
2017-06-19 00:18:23 +00:00
Jaesung Chung fae8ec2556 Merge "debuggerd_test: find backtrace frame in all lines in CrasherTest" 2017-06-19 00:11:51 +00:00
Jaesung Chung 31f2c81755 Merge "logd-unit-tests: make sure use unsigned types when reading le" 2017-06-19 00:10:52 +00:00
Josh Gao 3df484eeab Merge "adb: increase the shell command length limit." am: 9d2e688b9a
am: 749d2a0ab5

Change-Id: Ib450863883d11cb256421e2c4f12c36d8af37570
2017-06-17 22:06:30 +00:00
Josh Gao 749d2a0ab5 Merge "adb: increase the shell command length limit."
am: 9d2e688b9a

Change-Id: Iefd9a87912141a24d0603fa4eb824b59195217c4
2017-06-17 22:02:29 +00:00
Treehugger Robot 9d2e688b9a Merge "adb: increase the shell command length limit." 2017-06-17 21:57:12 +00:00
Josh Gao a019f78141 adb: increase the shell command length limit.
Relax the shell command length limits when talking to an adbd with the
shell protocol.

shell is pretty much the only service that takes an arbitrarily long
string, so this is somewhat safe.

Bug: http://b/37716055
Test: `adb shell $(python -c 'print "echo " + "f" * (32*1024)') | wc` on L and master
Change-Id: I0737fd2244530ef8080f300cd3a3549a1ab93465
2017-06-16 18:01:11 -07:00
Tom Marshall 62696908ff init: Run restorecon_recursive asynchronously
restorecon_recursive may take a long time if there are a lot of files on
the volume.  This can trigger a watchdog timeout in any process that
tries to set a property while it is running.  Fix this by running
restorecon_recursive in its own process.

See https://jira.lineageos.org/browse/BUGBASH-555

Change-Id: I2ce26ff2b5bfc9a133ea42f4dbac50a3ac289c04
2017-06-16 18:00:08 -07:00
Erik Staats 647d0aa62b Merge "Add building and installing of grep for vendor." am: 23bcbf040d
am: bb0a970036

Change-Id: Iae67462c6d6d17aea701d875d0838fd29c78a7f5
2017-06-16 23:33:36 +00:00
Erik Staats bb0a970036 Merge "Add building and installing of grep for vendor."
am: 23bcbf040d

Change-Id: I2ed4502449f8c003a2caff37d642b5774f79f4cc
2017-06-16 23:31:06 +00:00
Treehugger Robot 23bcbf040d Merge "Add building and installing of grep for vendor." 2017-06-16 23:24:32 +00:00
Neil Fuller 46359d297a Merge "Track movement of some libcore/tzdata files" am: 6794bc7d37
am: e4950aba1a  -s ours

Change-Id: I6714ac946001813cc805491827c228697ced543a
2017-06-16 15:03:40 +00:00
Neil Fuller e4950aba1a Merge "Track movement of some libcore/tzdata files"
am: 6794bc7d37

Change-Id: Iaadcef18ac75de0f6d31485d7c9fdd555bc0e6b0
2017-06-16 14:51:38 +00:00
Neil Fuller c6835b49e7 Move system/core/tzdatacheck to system/timezone
Move system/core/tzdatacheck to system/timezone.

Test: make droid
Bug: 31008728
Change-Id: I193767715956cb6076b7ec4a5240d4883a171fbf
2017-06-16 15:39:03 +01:00
Neil Fuller 6794bc7d37 Merge "Track movement of some libcore/tzdata files" 2017-06-16 14:37:18 +00:00
Neil Fuller d38c848049 Track movement of some libcore/tzdata files
Some files in libcore/tzdata are moving to system/timezone
under the package com.android.timezone.distro.

Bug: 31008728
Test: run cts -m CtsHostTzDataTests
Merged-In: I2600dd4bee22a571b9eb7303733591b60d1a8b2a
Change-Id: I2600dd4bee22a571b9eb7303733591b60d1a8b2a
2017-06-16 11:55:41 +00:00
Neil Fuller 13bc37d9d5 Track movement of some libcore/tzdata files
Some files in libcore/tzdata are moving to system/timezone
under the package com.android.timezone.distro.

Bug: 31008728
Test: run cts -m CtsHostTzDataTests
Change-Id: I2600dd4bee22a571b9eb7303733591b60d1a8b2a
2017-06-16 12:38:06 +01:00
Jaesung Chung 58778e138e debuggerd_test: find backtrace frame in all lines in CrasherTest
Kernel can use vsyscall for system calls. The vsyscall implementation in
the kernel gives one more depth in the backtrace. It leads to failures
on CrasherTest. This CL makes tests find a system call frame not only in
the first line but also in all lines on the backtrace.

Bug: 62600694
Test: passes all CrasherTests.
Change-Id: Ice383bb94db097e7e9a9e4f74d8fa5ecc528122a
2017-06-16 19:16:50 +09:00
Jaesung Chung 23f1d09b74 logd-unit-tests: make sure use unsigned types when reading le
The get4LE method needs to use unsigned types since the sign char values
can lead to producing wrong values.

Bug: 62599757
Test: passes all test cases of logd-unit-tests.
Change-Id: Ifaf83533d847ea4fbe0cd46a978f4dabbfa7df8d
2017-06-16 17:45:37 +09:00
Colin Cross 16b3303b11 Merge "Add a helpful error message if GetUnreachableMemory fails" am: 72ca50359e
am: 947caff31b

Change-Id: Ib45a236a593f27a30a56dee192bcb945c9bbbbb7
2017-06-15 23:19:44 +00:00
Colin Cross 947caff31b Merge "Add a helpful error message if GetUnreachableMemory fails"
am: 72ca50359e

Change-Id: Icc656c40d90649e6060145ea7d3018b487369ecb
2017-06-15 23:16:14 +00:00
Colin Cross 72ca50359e Merge "Add a helpful error message if GetUnreachableMemory fails" 2017-06-15 23:10:16 +00:00
Erik Staats 0c3b1bd2a5 Add building and installing of grep for vendor.
Bug: 38240024
Test: Verified that grep is installed in /vendor/bin. See details in
testing done comment in https://android-review.googlesource.com/412061 .
Change-Id: I06007014779310bc24c65f7343111c5217ba6ff0
2017-06-15 15:04:41 -07:00
Elliott Hughes a431e2961a Merge "Add libziparchive-based unzip." am: 3e67944d2e
am: 3cd4306ea2

Change-Id: I091fe18bb661a190b06ac6e884f285ebc9063dd6
2017-06-15 21:47:38 +00:00
Elliott Hughes 3cd4306ea2 Merge "Add libziparchive-based unzip."
am: 3e67944d2e

Change-Id: Ie45008d880157f7552b47664efecf087b390741b
2017-06-15 21:42:50 +00:00
Elliott Hughes 3e67944d2e Merge "Add libziparchive-based unzip." 2017-06-15 21:30:56 +00:00
Chih-Hung Hsieh 952005b1df Merge "Revert workaround of clang-tidy segmentation fault." am: 243ab9cc7e
am: b547153143

Change-Id: I59dea6f8aa2a6558594280efe07314070643642a
2017-06-15 19:08:30 +00:00
Chih-Hung Hsieh b547153143 Merge "Revert workaround of clang-tidy segmentation fault."
am: 243ab9cc7e

Change-Id: I5019b04384e22b37e809e4c10215bac7f646070f
2017-06-15 19:04:25 +00:00
Treehugger Robot 243ab9cc7e Merge "Revert workaround of clang-tidy segmentation fault." 2017-06-15 18:57:51 +00:00
Colin Cross 72d3881412 Add a helpful error message if GetUnreachableMemory fails
The primary reason for GetUnreachableMemory failing is selinux
blocking system apps from ptracing themselves.  Add a helpful
error message suggesting setenforce 0.

Bug: 27945735
Test: dumpsys meminfo --unreachable com.android.systemui
Change-Id: Ibfa9507860be36dffd514f82027f7a2f8a72ac48
2017-06-15 10:57:37 -07:00
Tom Cherry 9f91d2692c Merge "init: move killing of process groups to libprocessgroup" am: fbbb3bd49a
am: 8040f8eb82

Change-Id: Ie63521a9114ca407c3c40aae3099cf3e94fdfac6
2017-06-15 17:27:55 +00:00
Tom Cherry 8040f8eb82 Merge "init: move killing of process groups to libprocessgroup"
am: fbbb3bd49a

Change-Id: I44ce77f50905b209d24dee592eef28325c2a409d
2017-06-15 17:23:48 +00:00
Tom Cherry fbbb3bd49a Merge "init: move killing of process groups to libprocessgroup" 2017-06-15 17:17:22 +00:00
Chih-Hung Hsieh 47bd75701b Revert workaround of clang-tidy segmentation fault.
Problem was fixed in new rebased clang-tidy.
Bug: 38002385
Test: build with WITH_TIDY=1
Change-Id: Ic22d016fb2d402c3eee16226be507f5d4cfa2818
2017-06-15 10:05:04 -07:00
Narayan Kamath 08ffb1b94a Merge "zip_archive: validate data descriptor contents." am: b001cc5b1c
am: ec95719844

Change-Id: Ie1d5c733c478100b4e7b09be4ef4f59f9bb6d688
2017-06-15 11:00:52 +00:00
Narayan Kamath ec95719844 Merge "zip_archive: validate data descriptor contents."
am: b001cc5b1c

Change-Id: I54d90a279bb908b9755a4f3100f474a80911a6ec
2017-06-15 10:57:23 +00:00