android_system_core/rootdir
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
..
etc Move list of public libraries to a config file 2016-03-17 10:54:19 -07:00
Android.mk Add /postinstall partition when using the A/B updater. 2016-03-02 14:17:42 -08:00
asan.options Disable container overflow detect on target. 2015-10-23 14:57:47 -07:00
init-debug.rc init-debug.rc: mount debugfs 2016-03-07 16:56:06 +02:00
init.environ.rc.in am eaa97876: am 2e8d31f6: Merge "SANITIZE_TARGET: set global ASAN_OPTIONS" 2015-06-24 18:12:24 +00:00
init.rc Leftovers of the SELinux policy update mechanism 2016-03-11 17:47:30 +00:00
init.usb.configfs.rc init: usb: disable usb function switch until adbd is ready 2016-04-08 19:23:00 +08:00
init.usb.rc am 100de590: am 5e294902: Merge "init.usb.rc: fix USB typec property names" into mnc-dr-dev 2015-09-04 20:06:28 +00:00
init.zygote32.rc Actively mangage EAS schedtune nodes 2015-11-16 08:53:04 -08:00
init.zygote32_64.rc Sync internal<->AOSP user list. 2016-02-23 15:56:55 -08:00
init.zygote64.rc Actively mangage EAS schedtune nodes 2015-11-16 08:53:04 -08:00
init.zygote64_32.rc Sync internal<->AOSP user list. 2016-02-23 15:56:55 -08:00
ueventd.rc Merge "ueventd.rc: Document the different rule formats for /dev and /sys nodes" 2016-01-26 23:44:56 +00:00