1.
问题:
ninja: error: '/home/jessie/OMNI/out/target/product/m1/obj/SHARED_LIBRARIES/libcryptfs_hw_intermediates/export_includes', needed by '/home/jessie/OMNI/out/target/product/m1/obj/SHARED_LIBRARIES/libcryptfslollipop_intermediates/import_includes', missing and no known rule to make it
build/core/ninja.mk:157: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
解决:
百度没搜索到什么相关又有价值的,最后在github里找到了
删除BoardConfig.mk里的
TW_INCLUDE_CRYPTO := true
TARGET_HW_DISK_ENCRYPTION := true
然后编译时没有报错
2.
问题:
exit 1; fi ) && (mv /home/jessie/OMNI/out/target/product/m1/obj/ETC/sepolicy_intermediates/sepolicy.tmp /home/jessie/OMNI/out/target/product/m1/obj/ETC/sepolicy_intermediates/sepolicy )"
system/sepolicy/domain.te:450:ERROR 'unknown type camera' at token ';' on line 9252:
#camera_server neverallow needed for Android N
neverallow { domain -appdomain -camera -cameraserver} file_type:file execmod;
checkpolicy: error(s) encountered while parsing configuration
/home/jessie/OMNI/out/host/linux-x86/bin/checkpolicy: loading policy configuration from /home/jessie/OMNI7.1/out/target/product/m1/obj/ETC/sepolicy_intermediates/policy.conf
ninja: build stopped: subcommand failed.
build/core/ninja.mk:157: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
解决:
直接去github搜,发现有人提交过这个错误,但没提怎么解决
找到system/sepolicy/domain.te文件定位这个位置
对比lineage os源码发现omni多了两行
neverallow { domain -appdomain userdebug_or_eng(`-camera -cameraserver')} file_type:file execmod;
neverallow { domain -init } proc:{ file dir } mounton;
注释掉之后编译通过
手机扫一扫
移动阅读更方便
你可能感兴趣的文章