Commit Graph

39059 Commits

Author SHA1 Message Date
Dan Willemsen 2be702c71a Merge "Remove unused `tags` property from Android.bp files"
am: 0515943d7d

Change-Id: Iaf77bf7fde68cef40d913558b190aae63db66c44
2018-05-08 23:06:33 -07:00
Dan Willemsen 0515943d7d Merge "Remove unused `tags` property from Android.bp files" 2018-05-09 05:59:03 +00:00
Logan Chien 03633237ed Merge "libctuils: Exclude qtaguid.cpp from VNDK-SP variant"
am: bb783998ce

Change-Id: I145bca1cfabefdbcd7f5355fbcabd06b7a027938
2018-05-08 20:24:10 -07:00
Logan Chien bb783998ce Merge "libctuils: Exclude qtaguid.cpp from VNDK-SP variant" 2018-05-09 01:56:00 +00:00
Dan Willemsen 3e41f92cf5 Remove unused `tags` property from Android.bp files
The tags property is (and has always been) unused by Soong. The property has
been defined as a list of strings, and the `androidmk` converted any
LOCAL_MODULE_TAGS entries over to it, but we've never done anything with it.

In preparation for removing the definition from Soong, I'm removing it from all
Android.bp files in the tree.

Since this has never done anything, this is a no-op, but if you really did want
the Android.mk behavior, the proper way to define a module to be installed in
userdebug / eng builds is to use PRODUCT_PACKAGES_DEBUG or PRODUCT_PACKAGES_ENG
in the appropriate product makefile.

Change-Id: Id519b2c0ec352e45c470a1734dfc633bbe39937e
Exempt-From-Owner-Approval: global no-op build change
Test: remove `tags` from Soong, see errors go away.
2018-05-08 17:15:23 -07:00
android-build-prod (mdb) c104e3abaf Merge "Remove more bogus <stdbool.h> #includes from C++."
am: e7020dc8e4

Change-Id: I5d9302227fc3a83f5a11522971396a69cdbe14a2
2018-05-08 14:38:59 -07:00
android-build-prod (mdb) e7020dc8e4 Merge "Remove more bogus <stdbool.h> #includes from C++." 2018-05-08 21:33:10 +00:00
android-build-prod (mdb) f270f31d72 Merge "Make fastboot host builds match adb."
am: b004620f80

Change-Id: Ie2d3fabc665b8cbba78b2382a8a77f92932f5be7
2018-05-08 13:16:11 -07:00
android-build-prod (mdb) b004620f80 Merge "Make fastboot host builds match adb." 2018-05-08 20:06:18 +00:00
Elliott Hughes 23b98f492b Remove more bogus <stdbool.h> #includes from C++.
Bug: N/A
Test: builds
Change-Id: I794cd28667c6c65b38940d8f443315ad116b7ac3
2018-05-08 13:00:06 -07:00
Elliott Hughes 645b50e75d Make fastboot host builds match adb.
Bug: http://b/79131183
Test: builds
Change-Id: I572362e8d1c52ebbfb78f84fd2af5428711317d7
2018-05-08 11:30:07 -07:00
Logan Chien 25b742c627 libctuils: Exclude qtaguid.cpp from VNDK-SP variant
This commit excludes `qtaguid.cpp` from the VNDK-SP variant of
`libcutils.so` because the interface of `libnetd_client.so` may vary
between AOSP releases.

Besides, these functions don't work in vendor processes either because
VNDK-SP libraries are loaded in an isolated `vndk` linker namespace,
which cannot access `/system/lib[64]/libnetd_client.so` directly.  This
change makes it easier to spot the issue at build time and saves several
bytes.

Test: Build aosp_walleye-userdebug and
/system/lib[64]/vndk-sp-$VER/libctuils.so no longer exports qtaguid_*
functions.

Bug: 79329469
Change-Id: Idf6b60f6e58371ea320193641669d1e4412d62b8
2018-05-08 17:41:21 +08:00
Logan Chien 82103ab7d9 Merge "init: Use sepolicy version instead"
am: 751f2fa535

Change-Id: I378b8211c38510d8880abefc4a56857b4a562e10
2018-05-07 18:52:08 -07:00
Logan Chien 751f2fa535 Merge "init: Use sepolicy version instead" 2018-05-08 01:43:07 +00:00
android-build-prod (mdb) 752cd746fc Merge "fs_mgr: target-agnostic device-mapper helpers"
am: a6a266af00

Change-Id: Ia6143d184812c5cd5c08cc0a5e4836468200547b
2018-05-07 14:08:18 -07:00
android-build-prod (mdb) a6a266af00 Merge "fs_mgr: target-agnostic device-mapper helpers" 2018-05-07 20:59:40 +00:00
android-build-prod (mdb) 0bb59a9d57 Merge "bootstat: test reboot rescueparty"
am: 035a1c7a0b

Change-Id: Ie798b14c84da683d4abcd69548a32e8b08280df5
2018-05-07 13:53:35 -07:00
android-build-prod (mdb) 035a1c7a0b Merge "bootstat: test reboot rescueparty" 2018-05-07 18:45:10 +00:00
Mark Salyzyn cd7e122285 bootstat: test reboot rescueparty
This test fails on most devices, gives us a report of devices that
do not propagate the boot reason via the bootloader.  This should
become a bootloader required test.

Test: boot_reason_test.sh optional_rescueparty
Change-Id: Ibdc7b23b025e5d89d659ff08083b2e071343923c
2018-05-07 10:10:18 -07:00
android-build-prod (mdb) d8a0626047 Merge "Remove the 'optional' tag from demangle_fuzzer"
am: 48cf760bea

Change-Id: I397f29144f61a036f8aa926c2508f3f2bcbe447a
2018-05-04 16:51:57 -07:00
android-build-prod (mdb) 48cf760bea Merge "Remove the 'optional' tag from demangle_fuzzer" 2018-05-04 22:25:53 +00:00
Jeffrey Vander Stoep 5e5640f5ab Merge "Logd: include app package name in selinux metadata"
am: 24e87383f1

Change-Id: I0514b893d8575ea85f4a7cf6ea17d0f47bf87353
2018-05-04 14:16:42 -07:00
Jeffrey Vander Stoep 24e87383f1 Merge "Logd: include app package name in selinux metadata" 2018-05-04 21:09:19 +00:00
Zach Riggle d2a594c773 Remove the 'optional' tag from demangle_fuzzer
This causes it to not actually be added to the tests zip, and it
is never available on-device unless *manually* built and pushed.

Test: mmma system/core/demangle
Change-Id: I7fd7f52726b9b981573063c32f25ccab933486a0
2018-05-04 15:59:07 -05:00
Christopher Ferris 74759f8380 Merge "Remove unnecessary references to libunwind."
am: 00c81fefd3

Change-Id: I52d4e601904cb5a432191b9f566cdb33c08d509b
2018-05-04 13:48:00 -07:00
Christopher Ferris 00c81fefd3 Merge "Remove unnecessary references to libunwind." 2018-05-04 20:40:42 +00:00
Logan Chien 837b2a4c24 init: Use sepolicy version instead
This commit uses vendor sepolicy file version (defined in
`/vendor/etc/selinux/plat_sepolicy_vers.txt`) to determine whether the
source context should be set as `u:r:vendor_init:s0`.

Before this commit, the criterion was `ro.vndk.version` >= 28.  However,
the check in `property_service.cpp` will always be true because
`ro.vndk.version` hasn't been loaded from `/vendor/default.prop`.

Furthermore, under some circumstances, `ro.vndk.version` may be
different from `plat_sepolicy_vers.txt` (e.g. O-MR1 vendor does not
define `ro.vndk.version`).

Bug: 78605339  # high-level bug to combine O-MR1 and P GSI
Bug: 79135481  # the usage of `ro.vndk.version` in init
Test: vts-tradefed run vts -m VtsTrebleVintfTest  # tetheroffload
Change-Id: Ied46e9346b4ca7931aa4dcf1c9dbc11de0e12d93
2018-05-04 15:21:01 +08:00
Jeff Vander Stoep d885890e78 Logd: include app package name in selinux metadata
Note: denial metadata is currently only included on debug builds.

avc: denied { read } for comm="getprop" name="u:object_r:net_dns_prop:s0"
dev="tmpfs" ino=19605 scontext=u:r:untrusted_app:s0:c164,c256,c512,c768
tcontext=u:object_r:net_dns_prop:s0 tclass=file permissive=0 b/12345678
app=android.selinuxtargetsdkcurrent.cts

Bug: 9496886
Bug: 68016944
Test: cts-tradefed run cts -m CtsSelinuxTargetSdkCurrentTestCases
Change-Id: I1700722a45b75d22f17ba4edc7b95cbaf99fdda8
2018-05-03 22:40:18 -07:00
android-build-prod (mdb) 68725eee80 Merge "Fixing a bug introduced due to refactoring var names"
am: 8cf185e542

Change-Id: Ic554b87d819c3396530bad1dc5360b9067601319
2018-05-03 22:38:26 -07:00
android-build-prod (mdb) 8cf185e542 Merge "Fixing a bug introduced due to refactoring var names" 2018-05-04 05:30:34 +00:00
Josh Gao 820fec506c Merge "tombstoned: make missing O_TMPFILE workaround actually work around."
am: a3d95cf2f8

Change-Id: If0948c05b7a2f21146003f5158190581f2d5bd2e
2018-05-03 18:03:35 -07:00
Christopher Ferris 25e2bbf874 Remove unnecessary references to libunwind.
Bug: 79209464

Test: Builds.
Change-Id: I4193ac664e3b118270a17fcc0131fb6c6e384c41
2018-05-03 17:59:45 -07:00
Josh Gao a3d95cf2f8 Merge "tombstoned: make missing O_TMPFILE workaround actually work around." 2018-05-04 00:55:08 +00:00
android-build-prod (mdb) 8c61bb63c9 Merge changes I809d8c2e,I11265375
am: 1d87ffd3f6

Change-Id: I587abf6d4c7efe36c2d7f98f462935f0621a64da
2018-05-03 16:43:20 -07:00
android-build-prod (mdb) 2ad163b417 Merge "tombstoned: don't bail out if we fail to unlink a file that isn't there."
am: 57adfb84aa

Change-Id: I4e00d24ff10d00a12e58f82a1a4c961b3d13b817
2018-05-03 16:38:48 -07:00
David Anderson 0b8e22eb5f fs_mgr: target-agnostic device-mapper helpers
Remove "verity" from device-mapper helper functions so it's clear they can be
re-used for non-verity targets.

Bug: 78914864
Test: AVB device still boots

Change-Id: Id8474b2c6e23e828eff563263ebb409031cde17e
2018-05-03 16:35:09 -07:00
android-build-prod (mdb) 1d87ffd3f6 Merge changes I809d8c2e,I11265375
* changes:
  fs_mgr: clean up dm ioctl flags
  init: refactor first stage to not require fstab
2018-05-03 23:33:36 +00:00
android-build-prod (mdb) 57adfb84aa Merge "tombstoned: don't bail out if we fail to unlink a file that isn't there." 2018-05-03 23:28:48 +00:00
Christopher Ferris 08e5b5cba6 Merge "Remove unnecessary references to libunwind."
am: c5943fd3fa

Change-Id: I076c20a5bad525db62ef2e40cc84f72f3db29e20
2018-05-03 16:13:02 -07:00
Christopher Ferris c5943fd3fa Merge "Remove unnecessary references to libunwind." 2018-05-03 23:05:51 +00:00
Josh Gao f5974aedc4 tombstoned: make missing O_TMPFILE workaround actually work around.
We can't actually link an unlinked file back onto disk if it wasn't
opened with O_TMPFILE. Switch to using a temporary filename instead.

Bug: http://b/77729983
Test: agampe
Change-Id: I1970497114f0056065a1ba65f6358f08b51ec551
2018-05-03 16:05:32 -07:00
Max Bires b8716687f1 Fixing a bug introduced due to refactoring var names
SELinux messages weren't properly filtering into the events buffer
because message_len was being used to determine length of event data
instead of str_len

Bug: 65597269
Test: SELinux denials show up in the events buffer
Change-Id: I857e10211f71dd0db33a272241c7051c5d0c59ca
(cherry picked from commit 3a5acdaa8d)
2018-05-03 15:25:02 -07:00
android-build-prod (mdb) d44f72ddb5 Merge "bootstat: add reboot,rescueparty"
am: 708364e650

Change-Id: Ia8823cd9bda22a91d452fc3e78870cbd01a9bc40
2018-05-03 14:54:38 -07:00
android-build-prod (mdb) 708364e650 Merge "bootstat: add reboot,rescueparty" 2018-05-03 21:46:22 +00:00
Josh Gao 28f8cf0f97 tombstoned: don't bail out if we fail to unlink a file that isn't there.
Test: crasher with no tombstones
Change-Id: I20e0537a347dd1f83877150ab13f53441dd65d95
2018-05-03 14:31:08 -07:00
Christopher Ferris 8548d55b45 Remove unnecessary references to libunwind.
Bug: 79209464

Test: Builds.

Change-Id: I79f7b0123bc802e3e12d218e888c30dedf5204dc
2018-05-03 14:24:38 -07:00
android-build-prod (mdb) 2a38926b9d Merge "healthd: Add elsk as OWNERS"
am: abf6a2e1ad

Change-Id: I23881432915128c0399cf758168cdea1fabf6114
2018-05-03 14:02:11 -07:00
android-build-prod (mdb) abf6a2e1ad Merge "healthd: Add elsk as OWNERS" 2018-05-03 20:54:37 +00:00
Elliott Hughes 82a80c5220 Merge "Tell the build system about APCT's requirements."
am: c1d4026341

Change-Id: I98602949a6dc3d3596baa9b5382b6ff25aa9494f
2018-05-03 13:21:29 -07:00
Elliott Hughes c1d4026341 Merge "Tell the build system about APCT's requirements." 2018-05-03 20:14:32 +00:00