失败的Sepolicy检查-Android Pie构建-“ core_data_file_type”属性

时间:2019-05-15 10:49:24

标签: android android-proguard

我一直在尝试为小米mi Max 3(氮气)编译Resurrection Remix Pie,但遇到一个错误,发现自己无法解决。在先前解决了其他一些问题之后,我遇到了这个问题:

FAILED: /home/albertoduqe/rr/out/target/product/nitrogen/obj/ETC/sepolicy_tests_intermediates/sepolicy_tests 
/bin/bash -c "(/home/albertoduqe/rr/out/host/linux-x86/bin/sepolicy_tests -l /home/albertoduqe/rr/out/host/linux-x86/lib64/libsepolwrap.so                  -f /home/albertoduqe/rr/out/target/product/nitrogen/obj/ETC/plat_file_contexts_intermediates/plat_file_contexts  -f /home/albertoduqe/rr/out/target/product/nitrogen/obj/ETC/vendor_file_contexts_intermediates/vendor_file_contexts  -p /home/albertoduqe/rr/out/target/product/nitrogen/obj/ETC/sepolicy_intermediates/sepolicy ) && (touch /home/albertoduqe/rr/out/target/product/nitrogen/obj/ETC/sepolicy_tests_intermediates/sepolicy_tests )"
The following types on /data/ must be associated with the "core_data_file_type" attribute: fingerprint_data_file

然后我进入设备树,打开file.te(在本例中为sepolicy / vendor文件夹中),然后将指定的类型赋予给定的属性,使其看起来像这样:

type fingerprint_data_file, file_type, data_file_type, core_data_file_type;

然后重新构建。现在出现了有趣的部分:再次失败,并显示以下错误:

FAILED: /home/albertoduqe/rr/out/target/product/nitrogen/obj/ETC/treble_sepolicy_tests_26.0_intermediates/treble_sepolicy_tests_26.0 
/bin/bash -c "(/home/albertoduqe/rr/out/host/linux-x86/bin/treble_sepolicy_tests -l             /home/albertoduqe/rr/out/host/linux-x86/lib64/libsepolwrap.so  -f /home/albertoduqe/rr/out/target/product/nitrogen/obj/ETC/plat_file_contexts_intermediates/plat_file_contexts  -f /home/albertoduqe/rr/out/target/product/nitrogen/obj/ETC/vendor_file_contexts_intermediates/vendor_file_contexts     -b /home/albertoduqe/rr/out/target/product/nitrogen/obj/ETC/built_plat_sepolicy_intermediates/built_plat_sepolicy -m /home/albertoduqe/rr/out/target/product/nitrogen/obj/ETC/treble_sepolicy_tests_26.0_intermediates/26.0_mapping.combined.cil            -o /home/albertoduqe/rr/out/target/product/nitrogen/obj/ETC/treble_sepolicy_tests_26.0_intermediates/built_26.0_plat_sepolicy -p /home/albertoduqe/rr/out/target/product/nitrogen/obj/ETC/sepolicy_intermediates/sepolicy             --fake-treble ) && (touch /home/albertoduqe/rr/out/target/product/nitrogen/obj/ETC/treble_sepolicy_tests_26.0_intermediates/treble_sepolicy_tests_26.0 )"
The following types on /data/vendor/ /data/vendor_ce/ /data/vendor_de/ must not be associated with the "core_data_file_type" attribute: fingerprint_data_file

这一切又重新开始了。

我既不是开发人员也不是专家,尽管有一段时间我一直在为Android设备编译自定义rom。我从未遇到过这样的事情。

为什么指纹数据属性文件必须在/ data /中具有core_data_file_type,但在/ data / vendor / / data / vendor_ce / / data / vendor_de /中却没有?那到底是什么?

任何提示将不胜感激!

0 个答案:

没有答案