2bcc045724
For devices launching with Android Q or later, vendor_property_contexts and odm_property_contexts should only contain vendor and odm properties. This checks property_contexts files in build time. To temporarily disable this check, users can set BUILD_BROKEN_VENDOR_PROPERTY_NAMESPACE := true in BoardConfig.mk. But VTS is still enforced, so users will have to fix the violations anyway. Bug: 175526482 Test: m vendor_property_contexts after making violations Change-Id: I99d6fff9033d78e1d276eed2682a2719dab84ae2
94 lines
1.9 KiB
Text
94 lines
1.9 KiB
Text
package {
|
|
// http://go/android-license-faq
|
|
// A large-scale-change added 'default_applicable_licenses' to import
|
|
// the below license kinds from "system_sepolicy_license":
|
|
// SPDX-license-identifier-Apache-2.0
|
|
default_applicable_licenses: ["system_sepolicy_license"],
|
|
}
|
|
|
|
cc_library_host_shared {
|
|
name: "libsepolwrap",
|
|
srcs: ["sepol_wrap.cpp"],
|
|
cflags: ["-Wall", "-Werror",],
|
|
export_include_dirs: ["include"],
|
|
|
|
// libsepolwrap gets loaded from the system python, which does not have the
|
|
// ASAN runtime. So turn off sanitization for ourself, and use static
|
|
// libraries, since the shared libraries will use ASAN.
|
|
static_libs: [
|
|
"libbase",
|
|
"libsepol",
|
|
],
|
|
sanitize: {
|
|
never: true,
|
|
},
|
|
}
|
|
|
|
python_defaults {
|
|
name: "py2_only",
|
|
version: {
|
|
py2: {
|
|
embedded_launcher: true,
|
|
enabled: true,
|
|
},
|
|
py3: {
|
|
enabled: false,
|
|
},
|
|
},
|
|
}
|
|
|
|
python_binary_host {
|
|
name: "treble_sepolicy_tests",
|
|
srcs: [
|
|
"fc_sort.py",
|
|
"mini_parser.py",
|
|
"policy.py",
|
|
"treble_sepolicy_tests.py",
|
|
],
|
|
required: ["libsepolwrap"],
|
|
defaults: ["py2_only"],
|
|
}
|
|
|
|
python_binary_host {
|
|
name: "sepolicy_tests",
|
|
srcs: [
|
|
"fc_sort.py",
|
|
"policy.py",
|
|
"sepolicy_tests.py",
|
|
],
|
|
required: ["libsepolwrap"],
|
|
defaults: ["py2_only"],
|
|
}
|
|
|
|
python_binary_host {
|
|
name: "searchpolicy",
|
|
srcs: [
|
|
"fc_sort.py",
|
|
"policy.py",
|
|
"searchpolicy.py",
|
|
],
|
|
required: ["libsepolwrap"],
|
|
defaults: ["py2_only"],
|
|
}
|
|
|
|
python_binary_host {
|
|
name: "combine_maps",
|
|
srcs: [
|
|
"combine_maps.py",
|
|
"mini_parser.py",
|
|
],
|
|
defaults: ["py2_only"],
|
|
}
|
|
|
|
python_binary_host {
|
|
name: "fc_sort",
|
|
srcs: [
|
|
"fc_sort.py",
|
|
],
|
|
defaults: ["py2_only"],
|
|
}
|
|
|
|
python_binary_host {
|
|
name: "check_prop_prefix",
|
|
srcs: ["check_prop_prefix.py"],
|
|
}
|