[Google Pixel 4a ROMs, Kernels, Recoveries, & Other] Splendente:
Ah ok yes.

If you have a little time and since your custom ROM is based on AOSP 12.1, could you please try to build AOSP 12.1 (june update) just to check if you receive the same error as me? It would be very kind of you.

Here is the exact error I'm getting when running "m target-file-packages":

[ 45% 56288/124488] build out/target/product/sunfish/obj/FAKE/sepolicy_neverallows_intermediates/sepolicy_neverallows
FAILED: out/target/product/sunfish/obj/FAKE/sepolicy_neverallows_intermediates/sepolicy_neverallows
/bin/bash -c "(ASAN_OPTIONS=detect_leaks=0 out/host/linux-x86/bin/checkpolicy -M -c 30 -o out/target/product/sunfish/obj/FAKE/sepolicy_neverallows_intermediates/sepolicy_neverallows.tmp out/target/product/sunfish/obj/FAKE/sep
olicy_neverallows_intermediates/policy.conf ) && (out/host/linux-x86/bin/sepolicy-analyze out/target/product/sunfish/obj/FAKE/sepolicy_neverallows_intermediates/sepolicy_neverallows.tmp neverallow -w -f out/target/product/sunfish/obj/FAK
E/sepolicy_neverallows_intermediates/policy_2.conf || ( echo \"\" 1>&2; echo \"sepolicy-analyze failed. This is most likely due to the use\" 1>&2; echo \"of an expanded attribute in a neverallow assertion. Pl
ease fix\" 1>&2; echo \"the policy.\" 1>&2; exit 1 ) ) && (touch out/target/product/sunfish/obj/FAKE/sepolicy_neverallows_intermediates/sepolicy_neverallows.tmp ) && (mv out/target/product/sunfish/obj/FAKE/sepolicy_neverallo
ws_intermediates/sepolicy_neverallows.tmp out/target/product/sunfish/obj/FAKE/sepolicy_neverallows_intermediates/sepolicy_neverallows )"
hardware/google/pixel-sepolicy/googlebattery/turbo_adapter.te:3:ERROR 'unknown type turbo_adapter' at token ';' on line 69540:
allow turbo_adapter hal_googlebattery_hwservice:hwservice_manager find;
# To find and bind Google Battery HAL
checkpolicy: error(s) encountered while parsing configuration
[ 45% 56289/124488] build out/target/product/sunfish/obj/ETC/sepolicy.recovery_intermediates/sepolicy
FAILED: out/target/product/sunfish/obj/ETC/sepolicy.recovery_intermediates/sepolicy
/bin/bash -c "(ASAN_OPTIONS=detect_leaks=0 out/host/linux-x86/bin/checkpolicy -M -c 30 -o out/target/product/sunfish/obj/ETC/sepolicy.recovery_intermediates/sepolicy.tmp out/target/product/sunfish/obj/ETC/sepolicy.recovery_in
termediates/sepolicy.recovery.conf ) && (out/host/linux-x86/bin/sepolicy-analyze out/target/product/sunfish/obj/ETC/sepolicy.recovery_intermediates/sepolicy.tmp permissive > out/target/product/sunfish/obj/ETC/sepolicy.recovery_intermedia
tes/sepolicy.permissivedomains ) && (if [ \"user\" = \"user\" -a -s out/target/product/sunfish/obj/ETC/sepolicy.recovery_intermediates/sepolicy.permissivedomains ]; then echo \"==========\" 1>&2; echo \"ERROR: per
missive domains not allowed in user builds\" 1>&2; echo \"List of invalid domains:\" 1>&2; cat out/target/product/sunfish/obj/ETC/sepolicy.recovery_intermediates/sepolicy.permissivedomains 1>&2; exit 1;
fi ) && (mv out/target/product/sunfish/obj/ETC/sepolicy.recovery_intermediates/sepolicy.tmp out/target/product/sunfish/obj/ETC/sepolicy.recovery_intermediates/sepolicy )"
hardware/google/pixel-sepolicy/googlebattery/turbo_adapter.te:3:ERROR 'unknown type turbo_adapter' at token ';' on line 71018:
# To find and bind Google Battery HAL
allow turbo_adapter hal_googlebattery_hwservice:hwservice_manager find;
checkpolicy: error(s) encountered while parsing configuration
16:50:25 ninja failed with: exit status 1

I just removed the whole vendor/google_devices folder and build it again with the android-prepare-vendor (grapheneOS fork) against the factory and OTA images from june update.

Kind regards,