usb: Add interface specifiers to USB/USB gadget services

This ensures the service can be started as soon as
requested instead of waiting for it to spin on its
own when the "hal" class is started.

This may cause issues specially in the gadget HAL if
the Android framework isn't able to get hold of the
HAL early in boot ( since it may have not started )
and would fail the early configuration.
Thus on the first configuration the HAL would have
stale/improper data and would trigger a USB pull
killing the USB connection, and ADB with it.

Change-Id: I5de309240a7d2f665688b91eb11b36aaea98927e
Signed-off-by: Luca Stefani <luca.stefani.ge1@gmail.com>
diff --git a/hal/android.hardware.usb.gadget@1.2-service-qti.rc b/hal/android.hardware.usb.gadget@1.2-service-qti.rc
index ab7df95..cf13dc4 100644
--- a/hal/android.hardware.usb.gadget@1.2-service-qti.rc
+++ b/hal/android.hardware.usb.gadget@1.2-service-qti.rc
@@ -2,6 +2,9 @@
 # SPDX-License-Identifier: BSD-3-Clause-Clear
 #
 service vendor.usbgadget-hal-1-2 /vendor/bin/hw/android.hardware.usb.gadget@1.2-service-qti
+    interface android.hardware.usb.gadget@1.0::IUsbGadget default
+    interface android.hardware.usb.gadget@1.1::IUsbGadget default
+    interface android.hardware.usb.gadget@1.2::IUsbGadget default
     class hal
     user root
     group root system mtp
diff --git a/hal/android.hardware.usb@1.3-service-qti.rc b/hal/android.hardware.usb@1.3-service-qti.rc
index 4e4b939..56492bc 100644
--- a/hal/android.hardware.usb@1.3-service-qti.rc
+++ b/hal/android.hardware.usb@1.3-service-qti.rc
@@ -26,6 +26,10 @@
 # IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 service vendor.usb-hal-1-3 /vendor/bin/hw/android.hardware.usb@1.3-service-qti
+    interface android.hardware.usb@1.0::IUsb default
+    interface android.hardware.usb@1.1::IUsb default
+    interface android.hardware.usb@1.2::IUsb default
+    interface android.hardware.usb@1.3::IUsb default
     class hal
     user root
     group root system mtp