common: modify usb configuration in FFBM
Change usb interface to "diag,adb" and remove usb serialnum to fix port change issue. Change-Id: I33b51df9405e4b8507c717915be9680daac67bf4
This commit is contained in:
parent
e688d07c2b
commit
4a4c7b033f
|
@ -1,5 +1,5 @@
|
|||
#!/system/bin/sh
|
||||
# Copyright (c) 2009-2013, The Linux Foundation. All rights reserved.
|
||||
# Copyright (c) 2009-2014, The Linux Foundation. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions are met:
|
||||
|
@ -233,6 +233,16 @@
|
|||
# Set this property so surfaceflinger is not started by system_init
|
||||
setprop system_init.startsurfaceflinger 0
|
||||
|
||||
# Configurate USB in FFBM mode, two big change for USB.
|
||||
# 1) Using diag,adb in FFBM mode, too many interface will cause
|
||||
# problem in factory for multi-line test
|
||||
# 2) Not config usb serialnum. Using the default value:"0123456789ABCDEF"
|
||||
# Keep the USB serialnum no change for devices. this fix the problem
|
||||
# of port change for various devices.
|
||||
chown -h root.system /sys/devices/platform/msm_hsusb/gadget/wakeup
|
||||
chmod -h 220 /sys/devices/platform/msm_hsusb/gadget/wakeup
|
||||
setprop persist.sys.usb.config diag,adb
|
||||
|
||||
# Start the following services needed for fftm
|
||||
start logd
|
||||
start config_bluetooth
|
||||
|
@ -243,7 +253,6 @@
|
|||
start qcom-c_main-sh
|
||||
start irsc_util
|
||||
start qcamerasvr
|
||||
start qcom-usb-sh
|
||||
start qcomsysd
|
||||
start ptt_ffbm
|
||||
start ftm_ffbm
|
||||
|
|
Loading…
Reference in New Issue