I'm reading about build prop lines
# Attempt to keep ADB root
ro.sys.atvc_allow_netmon_usb=0
ro.sys.atvc_allow_netmon_ih=0
ro.sys.atvc_allow_res_core=0
ro.sys.atvc_allow_res_panic=0
ro.sys.atvc_allow_all_adb=1
ro.sys.atvc_allow_all_core=0
ro.sys.atvc_allow_efem=0
ro.sys.atvc_allow_bp_log=0
ro.sys.atvc_allow_ap_mot_log=0
ro.sys.atvc_allow_gki_log=0
Also this
adb and adbd control (Located in init.rc.) # adbd is controlled by the persist.service.adb.enable system property service adbd /sbin/adbd disabled
# adbd on at boot in emulator on property:ro.kernel.qemu=1 start adbd
on property

ersist.service.adb.enable=1 start adbd
on property

ersist.service.adb.enable=0 stop adbd
And this
Howto: Build a Kernel Port - CyanogenMod Wiki