No description
Find a file
Winter Wang 46c313b694 init: usb: disable usb function switch until adbd is ready
In the case of adb enabled, When a usb function switch happens
e.g mtp,adb -> ptp,adb, framework will set sys.usb.config from
"mtp,adb" to "none" and stop adbd first.
At this time, the property "sys.usb.ffs.ready", which is set after
the ready of the perious start adbd, is still "1".
So , when framework goes on setting the sys.usb.config to "ptp,adb",
init.usb.configfs.rc will trigger actions to bind() f_fs without
waiting for adbd is actually ready.

This will produce some error messages:
------------
configfs-gadget ci_hdrc.0: failed to start g1: -19
init: write_file: Unable to write to '/config/usb_gadget/g1/UDC': No such device
------------
this error msg is caused by configFS start binding f_fs before adbd is ready.

Add setting the "sys.usb.ffs.ready" to "0" will help clear this error msg,
as the bind process in kernel gadget driver will wait for the set of
this property, which is the sign of adbd is ready.

Signed-off-by: Winter Wang <wente.wang@nxp.com>
2016-04-08 19:23:00 +08:00
adb Merge "Address const issues in preparation for libcxx rebase." 2016-03-30 17:40:15 +00:00
adf Adf: Remove unused variable 2015-07-27 22:08:16 -07:00
base Add operator int() to unique_fd. 2016-03-28 12:15:36 -07:00
bootstat bootstat: Two changes to aid in debugging TimeSinceFactoryReset. 2016-03-29 16:13:49 -07:00
cpio fs_config: replace getenv('OUT') by new fs_config parameter 2015-07-09 21:47:07 -07:00
crash_reporter crash_reporter: Mark the euid parameter as __unused. 2016-02-26 15:44:46 -08:00
debuggerd debuggerd: set the name of the signal sender. 2016-03-29 17:56:47 -07:00
fastboot fastboot: Minor fix to help text. 2016-03-24 19:51:05 -07:00
fingerprintd Fingerprint: Add HAL close() code 2015-07-10 16:26:32 -07:00
fs_mgr Cleanup uses of sprintf so we can deprecate it. 2016-03-07 18:40:40 -08:00
gatekeeperd Cleanup uses of sprintf so we can deprecate it. 2016-03-07 18:40:40 -08:00
healthd healthd: Check if battery device exists instead of charger drivers before 2016-03-08 22:28:25 +00:00
include Fix Condition::waitRelative. 2016-04-04 14:51:21 -07:00
init ueventd: convert to use pwd family of functions 2016-04-07 13:38:43 -07:00
libbacktrace libbacktrace_offline: support unwinding of shared libraries in apk file. 2016-03-26 16:06:23 -07:00
libbinderwrapper libbinderwrapper: Add BinderWrapper::GetOrCreateInstance() 2016-01-04 12:56:27 -08:00
libcutils Merge "system/core/lib[c]utils: Fix signedness comparison warnings." 2016-03-01 20:28:13 +00:00
libdiskconfig Move libdiskconfig headers into libdiskconfig. 2016-02-13 12:48:23 -08:00
libion Use unique_ptr to free objects when ASSERT* fail. 2016-03-04 11:30:50 -08:00
liblog liblog: suppress pmsg on user builds 2016-03-29 13:52:21 -07:00
libmemtrack Remove unnecessary #include from <memtrack/memtrack.h>. 2016-02-16 10:32:30 -08:00
libmemunreachable Add operator int() to unique_fd. 2016-03-28 12:15:36 -07:00
libmincrypt Remove libmincrypt/tools after move to bootable/recovery 2016-02-26 11:03:15 +01:00
libnativebridge Add Mips64 Runtime ISA type. 2016-02-08 14:02:47 -08:00
libnativeloader Move list of public libraries to a config file 2016-03-17 10:54:19 -07:00
libnetutils Set IFA_BROADCAST during IPv4 RTM_NEWADDRs 2016-03-30 20:06:36 +09:00
libpackagelistparser Remove two bogus libutils dependencies. 2016-02-17 11:54:47 -08:00
libpixelflinger libpixelflinger: Fix -Woverloaded-virtual warnings. 2016-02-25 10:59:30 -08:00
libprocessgroup system/core: Cleanup direct calls to opendir by containing in a 2016-02-18 14:52:46 -08:00
libsparse Fix static analyzer issues caught by clang 2016-02-01 11:19:26 -08:00
libsuspend Adds a parameter to the wakeup_callback to report sucessful wakeup or suspend aborts. 2015-06-25 13:15:22 -07:00
libsync Cleanup uses of sprintf so we can deprecate it. 2016-03-07 18:40:40 -08:00
libsysutils Clean up CLOEXEC in SocketListener. 2016-02-19 18:14:22 -08:00
libusbhost libusbhost: Fix problem reading USB string descriptors on some quirky devices 2015-06-18 13:38:31 -07:00
libutils Cleanup uses of sprintf so we can deprecate it. 2016-03-07 18:40:40 -08:00
libziparchive libziparchive: port unit tests to darwin and windows. 2016-02-08 16:52:55 -08:00
lmkd more O_CLOEXEC 2015-12-18 20:57:25 -08:00
logcat logcat: -f <non-existent-directory>/<filename> segfaults 2016-04-01 09:42:32 -07:00
logd logd: check return values 2016-03-02 07:54:45 -08:00
logwrapper Don't go busy loop when waiting child process. 2016-02-16 10:13:48 -08:00
metricsd metricsd: Fix upload service to compile with new libchrome version 2016-03-18 15:36:20 -07:00
mkbootimg mkbootimg: use int for os_version and os_patch_level 2016-03-29 16:06:37 -07:00
reboot reboot: Turn on -Werror 2014-05-21 12:58:38 -07:00
rootdir init: usb: disable usb function switch until adbd is ready 2016-04-08 19:23:00 +08:00
run-as Fix the run-as environment to better match su. 2015-11-03 14:31:46 -08:00
sdcard Merge commit '4352ee87fd74b931d4b58192fb8974e91aa899d0' into HEAD 2016-02-17 11:37:00 -08:00
toolbox Merge "Cleanup uses of sprintf so we can deprecate it." 2016-03-08 04:14:06 +00:00
trusty Merge "[core][trusty] Implement Trusty NVRAM HAL module." 2016-03-15 14:43:29 +00:00
tzdatacheck Track rename of base/ to android-base/. 2015-12-04 22:00:26 -08:00
.gitignore Ignore adb/*.pyc files 2015-08-11 12:59:58 -07:00
Android.mk Remove the simulator target from all makefiles. 2011-07-11 22:12:32 -07:00
CleanSpec.mk Add a CleanSpec for grep/toolbox. 2015-03-22 18:04:54 -07:00
MODULE_LICENSE_APACHE2 auto import from //depot/cupcake/@135843 2013-07-30 13:56:49 -07:00
NOTICE Fix omission in NOTICE file. 2013-07-30 13:56:55 -07:00