Skip to content

Settings in build.prop, local.prop, and default.prop for adb,adbd, debug, and usb

MoonShadow-NM edited this page Dec 18, 2011 · 2 revisions
ADB lines found in various X2 build.props

# 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 


Debug lines

debug.mot.extamlog=0
debug.mot.extwmlog=0
debug.performance.tuning=1
debug.sf.hw=1 
debug.performance.tuning=1


USB Lines

persist.mot.usb.mediasync=1
ro.blan.interface=usb0 
ro.default_usb_mode=5 
ro.default_usb_mode=2 
# USB modes allowed for UI and switching
ro.ngp_available=1
ro.modem_available=0 
ro.default_usb_mode=0


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:persist.service.adb.enable=1
        start adbd

    on property:persist.service.adb.enable=0
        stop adbd