summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenneth Magic <kmagic@google.com>2018-08-08 12:31:32 -0700
committerKenneth Magic <kmagic@google.com>2018-08-08 14:30:07 -0700
commit9bd45e6a94c8d8b84d834ffd6029fef5ddec4f5a (patch)
treeeeb05fb97d78944730d2b1cb50fba7b17a540d58
parenta156b590429ad544a35c46993d24bb048b7299f7 (diff)
downloadandroid_device_generic_goldfish-9bd45e6a94c8d8b84d834ffd6029fef5ddec4f5a.tar.gz
android_device_generic_goldfish-9bd45e6a94c8d8b84d834ffd6029fef5ddec4f5a.tar.bz2
android_device_generic_goldfish-9bd45e6a94c8d8b84d834ffd6029fef5ddec4f5a.zip
Create a dummy USB gadget for sysfs tests.
VTS has test cases for the sysfs interface around USB gadgets. As the emulator does not function as a USB gadget, creating a dummy one is the simplest mechanism to enable the sysfs testing. Bug: 110558638 Test: run vts -m VtsKernelApiSysfsTest Change-Id: I87e0d0174bb49b0694ae2704134635d3c3c5ec6c`
-rw-r--r--init.ranchu.rc2
1 files changed, 2 insertions, 0 deletions
diff --git a/init.ranchu.rc b/init.ranchu.rc
index 12f5a68..bf77184 100644
--- a/init.ranchu.rc
+++ b/init.ranchu.rc
@@ -36,6 +36,8 @@ on boot
start goldfish-logcat
+ # Create a dummy USB gadget to allow sysfs testing
+ mkdir /config/usb_gadget/g1 0770 root root
service ranchu-setup /vendor/bin/init.ranchu-core.sh
class core