Merge Android 24Q2 Release (ab/11526283) to aosp-main-future

Bug: 337098550
Merged-In: Ic3cbc8e238628955c1e9c44ee60cae4001667533
Change-Id: I04e8aabd8e4c1f6d856eeab541b6a730d3a71e26
This commit is contained in:
Xin Li 2024-05-24 08:33:13 -07:00
commit 81e2126bb3

View file

@ -22,33 +22,35 @@ fi
top=$1 top=$1
ver=$2 ver=$2
mkdir -p "$top/system/sepolicy/prebuilts/api/${ver}.0/" mkdir -p "$top/system/sepolicy/prebuilts/api/${ver}/"
cp -r "$top/system/sepolicy/public/" "$top/system/sepolicy/prebuilts/api/${ver}.0/" cp -r "$top/system/sepolicy/public/" "$top/system/sepolicy/prebuilts/api/${ver}/"
cp -r "$top/system/sepolicy/private/" "$top/system/sepolicy/prebuilts/api/${ver}.0/" cp -r "$top/system/sepolicy/private/" "$top/system/sepolicy/prebuilts/api/${ver}/"
cat > "$top/system/sepolicy/prebuilts/api/${ver}.0/Android.bp" <<EOF cat > "$top/system/sepolicy/prebuilts/api/${ver}/Android.bp" <<EOF
// Automatically generated file, do not edit! // Automatically generated file, do not edit!
se_policy_conf { se_policy_conf {
name: "${ver}.0_plat_pub_policy.conf", name: "${ver}_plat_pub_policy.conf",
srcs: [":se_build_files{.plat_public_${ver}.0}", ":se_build_files{.reqd_mask}"], defaults: ["se_policy_conf_flags_defaults"],
srcs: [":se_build_files{.plat_public_${ver}}", ":se_build_files{.reqd_mask}"],
installable: false, installable: false,
build_variant: "user", build_variant: "user",
} }
se_policy_cil { se_policy_cil {
name: "${ver}.0_plat_pub_policy.cil", name: "${ver}_plat_pub_policy.cil",
src: ":${ver}.0_plat_pub_policy.conf", src: ":${ver}_plat_pub_policy.conf",
filter_out: [":reqd_policy_mask.cil"], filter_out: [":reqd_policy_mask.cil"],
secilc_check: false, secilc_check: false,
installable: false, installable: false,
} }
se_policy_conf { se_policy_conf {
name: "${ver}.0_product_pub_policy.conf", name: "${ver}_product_pub_policy.conf",
defaults: ["se_policy_conf_flags_defaults"],
srcs: [ srcs: [
":se_build_files{.plat_public_${ver}.0}", ":se_build_files{.plat_public_${ver}}",
":se_build_files{.system_ext_public_${ver}.0}", ":se_build_files{.system_ext_public_${ver}}",
":se_build_files{.product_public_${ver}.0}", ":se_build_files{.product_public_${ver}}",
":se_build_files{.reqd_mask}", ":se_build_files{.reqd_mask}",
], ],
installable: false, installable: false,
@ -56,37 +58,38 @@ se_policy_conf {
} }
se_policy_cil { se_policy_cil {
name: "${ver}.0_product_pub_policy.cil", name: "${ver}_product_pub_policy.cil",
src: ":${ver}.0_product_pub_policy.conf", src: ":${ver}_product_pub_policy.conf",
filter_out: [":reqd_policy_mask.cil"], filter_out: [":reqd_policy_mask.cil"],
secilc_check: false, secilc_check: false,
installable: false, installable: false,
} }
se_policy_conf { se_policy_conf {
name: "${ver}.0_plat_policy.conf", name: "${ver}_plat_policy.conf",
defaults: ["se_policy_conf_flags_defaults"],
srcs: [ srcs: [
":se_build_files{.plat_public_${ver}.0}", ":se_build_files{.plat_public_${ver}}",
":se_build_files{.plat_private_${ver}.0}", ":se_build_files{.plat_private_${ver}}",
":se_build_files{.system_ext_public_${ver}.0}", ":se_build_files{.system_ext_public_${ver}}",
":se_build_files{.system_ext_private_${ver}.0}", ":se_build_files{.system_ext_private_${ver}}",
":se_build_files{.product_public_${ver}.0}", ":se_build_files{.product_public_${ver}}",
":se_build_files{.product_private_${ver}.0}", ":se_build_files{.product_private_${ver}}",
], ],
installable: false, installable: false,
build_variant: "user", build_variant: "user",
} }
se_policy_cil { se_policy_cil {
name: "${ver}.0_plat_policy.cil", name: "${ver}_plat_policy.cil",
src: ":${ver}.0_plat_policy.conf", src: ":${ver}_plat_policy.conf",
additional_cil_files: [":sepolicy_technical_debt{.plat_private_${ver}.0}"], additional_cil_files: [":sepolicy_technical_debt{.plat_private_${ver}}"],
installable: false, installable: false,
} }
se_policy_binary { se_policy_binary {
name: "${ver}.0_plat_policy", name: "${ver}_plat_policy",
srcs: [":${ver}.0_plat_policy.cil"], srcs: [":${ver}_plat_policy.cil"],
installable: false, installable: false,
dist: { dist: {
targets: ["base-sepolicy-files-for-mapping"], targets: ["base-sepolicy-files-for-mapping"],