AnsweredAssumed Answered

About selinux's problem ,Invalid policyvers specified: 26,how to solve sepolicy error,when build the android source 4.4.2?

Question asked by 威 王 on Sep 17, 2014
Latest reply on Jul 2, 2015 by 威 王

./build/core/combo/include/arch/linux-x86/AndroidConfig.h:337:5: warning: "__GLIBC__" is not defined [-Wundef]
./build/core/combo/include/arch/linux-x86/AndroidConfig.h:337:23: warning: "__GLIBC__" is not defined [-Wundef]
host StaticLib: libsepol (out/host/linux-x86/obj/STATIC_LIBRARIES/libsepol_intermediates/libsepol.a)
Export includes file: external/checkpolicy/Android.mk -- out/host/linux-x86/obj/EXECUTABLES/checkpolicy_intermediates/export_includes
host Executable: checkpolicy (out/host/linux-x86/obj/EXECUTABLES/checkpolicy_intermediates/checkpolicy)
Install: out/host/linux-x86/bin/checkpolicy
Invalid policyvers specified: 26
usage:  out/host/linux-x86/bin/checkpolicy [-b] [-d] [-U handle_unknown (allow,deny,reject)] [-M][-c policyvers (15-29)] [-o output_file] [-t target_platform

(selinux,xen)][input_file]
make: *** [out/target/product/sabresd_6dq/obj/ETC/sepolicy_intermediates/sepolicy] Error 1

 

Can you help it out how to fix this issue?

Outcomes