[General Omni Discussion] Baerlinaer:
Hi,

I try to port omnirom 6.0.1 sources to S4 mini (serranoltexx or GT-I9195) from cm13.0 configs. I read and followed this: Porting OmniROM from CM11 configs guide and solved a lot of errors by reading in the forums. But now I have this one, I don't know how to deal with:

Install: /home/my/android/omni/out/host/linux-x86/bin/checkpolicy
/home/my/android/omni/out/host/linux-x86/bin/acp -fp /home/my/android/omni/out/host/linux-x86/obj/EXECUTABLES/checkpolicy_intermediates/checkpolicy /home/my/android/omni/out/host/linux-x86/bin/checkpolicy
/home/my/android/omni/out/host/linux-x86/bin/checkpolicy -M -c 30 -o /home/my/android/omni/out/target/product/serranoltexx/obj/ETC/sepolicy_intermediates/sepolicy /home/my/android/omni/out/target/product/serranoltexx/obj/ETC/sepolicy_intermediates/policy.conf
/home/my/android/omni/out/host/linux-x86/bin/checkpolicy: loading policy configuration from /home/my/android/omni/out/target/product/serranoltexx/obj/ETC/sepolicy_intermediates/policy.conf
device/samsung/msm8930-common/sepolicy/common/mm-qcamerad.te:60:WARNING 'unrecognized character' at token '�' on line 19218:
；
#line 60
device/samsung/msm8930-common/sepolicy/common/mm-qcamerad.te:60:WARNING 'unrecognized character' at token '�' on line 19218:
；
#line 60
device/samsung/msm8930-common/sepolicy/common/mm-qcamerad.te:60:WARNING 'unrecognized character' at token '�' on line 19218:
；
#line 60
device/samsung/msm8930-common/sepolicy/device/system_server.te:9:WARNING 'unrecognized character' at token '�' on line 25894:
allow system_server persist_file:dir { getattr read*write };
allow system_server recovery_cache_file:file { relabelfrom { create rename setattr unlink { { getattr open read ioctl lock } { open append write } } } };
device/samsung/msm8930-common/sepolicy/device/system_server.te:9:WARNING 'unrecognized character' at token '�' on line 25894:
allow system_server persist_file:dir { getattr read*write };
allow system_server recovery_cache_file:file { relabelfrom { create rename setattr unlink { { getattr open read ioctl lock } { open append write } } } };
device/samsung/msm8930-common/sepolicy/device/untrusted_app.te:15:WARNING 'unrecognized character' at token '�' on line 25988:
allow untrusted_app block_device:dir { read open*};
allow untrusted_app device:dir { read open };
device/samsung/msm8930-common/sepolicy/device/untrusted_app.te:15:WARNING 'unrecognized character' at token '�' on line 25988:
allow untrusted_app block_device:dir { read open*};
allow untrusted_app device:dir { read open };
device/samsung/msm8930-common/sepolicy/device/untrusted_app.te:16:WARNING 'unrecognized character' at token '�' on line 25989:
allow untrusted_app block_device:dir { read open*};
allow untrusted_app storage_stub_file:dir { getattr*};
device/samsung/msm8930-common/sepolicy/device/untrusted_app.te:16:WARNING 'unrecognized character' at token '�' on line 25989:
allow untrusted_app block_device:dir { read open*};
allow untrusted_app storage_stub_file:dir { getattr*};
device/samsung/msm8930-common/sepolicy/common/mm-qcamerad.te:60:WARNING 'unrecognized character' at token '�' on line 19218:
；
#line 60
device/samsung/msm8930-common/sepolicy/common/mm-qcamerad.te:60:WARNING 'unrecognized character' at token '�' on line 19218:
；
#line 60
device/samsung/msm8930-common/sepolicy/common/mm-qcamerad.te:60:WARNING 'unrecognized character' at token '�' on line 19218:
；
#line 60
device/samsung/msm8930-common/sepolicy/common/vold.te:6:ERROR 'unknown type proc_dirty_ratio' at token ';' on line 21877:
allow vold { fscklogs cache_file }:file { create rename setattr unlink { { getattr open read ioctl lock } { open append write } } };
allow vold { proc_sysrq proc_dirty_ratio }:file { { getattr open read ioctl lock } { open append write } };
checkpolicy: error(s) encountered while parsing configuration
external/sepolicy/Android.mk:69: recipe for target '/home/my/android/omni/out/target/product/serranoltexx/obj/ETC/sepolicy_intermediates/sepolicy' failed
make: *** [/home/my/android/omni/out/target/product/serranoltexx/obj/ETC/sepolicy_intermediates/sepolicy] Error 1

#### make failed to build some targets (35:30 (mm:ss)) ####

I found this piece of information:

here: [url]http://xdaforums.com/showpost.php?p=67661351&postcount=3924[/URL] but I don't know how to define the persist_file type. And I had this problem with another sepolicy "rule" and it was a missing package. So I'm not sure whether this is the solution...

Thank you in advance for your help.