Subsurface-mobile on Android: add USB intent filter

With this a few FTDI based dive computers should be visible from the app.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2017-05-29 20:37:18 -07:00
parent c8c56b3737
commit c05fe9fc9b
2 changed files with 20 additions and 0 deletions

View file

@ -70,6 +70,12 @@
<!-- <meta-data android:name="android.app.splash_screen_drawable" android:resource="@drawable/subsurface_mobile_splash" /> -->
<meta-data android:name="android.app.splash_screen_drawable" android:resource="@drawable/splash" />
<!-- Splash screen -->
<intent-filter>
<action android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED" />
</intent-filter>
<meta-data android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED"
android:resource="@xml/device_filter" />
<!-- support more aspect ratios -->
<meta-data android:name="android.max_aspect" android:value="3" />

View file

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- FTDI Chips -->
<!-- (Smart Interface), Heinrichs Weikamp -->
<usb-device vendor-id="1027" product-id="24577"/>
<usb-device vendor-id="1027" product-id="24592"/>
<usb-device vendor-id="1027" product-id="24593"/>
<!-- Oceanic Custom PID -->
<usb-device vendor-id="1027" product-id="62560"/>
<!-- Suunto Custom PID -->
<usb-device vendor-id="1027" product-id="63104"/>
<!-- Cressi (Leonardo) Custom PID -->
<usb-device vendor-id="1027" product-id="63104"/>
</resources>