Set Product and Manufacturer for USB gadgets

The phone was reported as "Android" when used as MTP device.
This patch sets the values of iProduct and iManufacturer to
the values of the corresponding properties ro.product.manufacturer
and ro.product.name.

FPIIM-279

Change-Id: Ia0ea8946699d98e9ff2f99a50b41776541a69631
diff --git a/rootdir/etc/init.qcom.usb.rc b/rootdir/etc/init.qcom.usb.rc
index 3297600..7bc4023 100644
--- a/rootdir/etc/init.qcom.usb.rc
+++ b/rootdir/etc/init.qcom.usb.rc
@@ -40,6 +40,12 @@
     mkdir /dev/bus 0755 root root
     mkdir /dev/bus/usb 0755 root root
 
+# we have to wait for the properties to be loaded;
+# post-fs-data is the first instance we can be sure they are loaded
+on post-fs-data
+    write /sys/class/android_usb/android0/iProduct ${ro.product.name}
+    write /sys/class/android_usb/android0/iManufacturer ${ro.product.manufacturer}
+
 service qcom-usb-sh /system/bin/sh /init.qcom.usb.sh
     class main
     user root