Move adbd stopped trigger for configfs into core.

This trigger resets ffs.ready in situations where
adbd is stopped via commandline.

Test: stop adbd
Change-Id: Ib5028d55c4883a8291d6de2dbcb0641ff8eb7a48
This commit is contained in:
Jerry Zhang 2017-04-26 17:11:00 -07:00
parent a06ac26dd1
commit 75f8d89a8a

View file

@ -12,6 +12,9 @@ on property:sys.usb.config=none && property:sys.usb.configfs=1
rmdir /config/usb_gadget/g1/functions/rndis.gs4
setprop sys.usb.state ${sys.usb.config}
on property:init.svc.adbd=stopped
setprop sys.usb.ffs.ready 0
on property:sys.usb.config=adb && property:sys.usb.configfs=1
start adbd