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;
注釋掉之后編譯通過