subsurface/android-mobile
Christof Arnosti a34a81d120 android usb serial: Prepare device / driver select
This commit contains the serial_android_usb part of the changes proposed
in issue #2657.

What's implemented:
- A data structure that contains all the data that can be used to
  describe an usb device (including user-facing string).
- A function to get a list of all attached usb devices (optionally with
  selectable driver class).
- Changes in the serial_android_usb_open-function and in the Java part
  to use the information about the usb device and optionally selected
  driver when connecting.

This commit keeps compatibility with the current UI-Code in the case
that only one USB-Device is connected. If two devices are connected,
only the first one is tried.

There are still some small things to do:
- Change the user-facing string to something more descriptive.
- Parts which aren't uesd anymore when the UI-Part is implemented are
  simply marked as obsolete (to keep compatibility for now).

But generally it seems to work.

[Dirk Hohndel: some white space / coding style adjustments]

Signed-off-by: Christof Arnosti <charno@charno.ch>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2020-03-16 07:58:20 -07:00
..
res Android: remove USB devices we don't support 2020-03-10 13:27:43 -07:00
src/org/subsurfacedivelog/mobile android usb serial: Prepare device / driver select 2020-03-16 07:58:20 -07:00
AndroidManifest.xml Android: update the target SDK Version to 28 2019-09-21 15:13:10 -07:00
build.gradle usb-serial-for-android: add dependency 2020-03-07 12:34:43 -08:00
font.qrc Android: bundle default font for use in OnePlus devices 2019-09-21 15:13:10 -07:00