<feed xmlns='http://www.w3.org/2005/Atom'>
<title>subsurface.git/android-mobile, branch v4.9.8</title>
<subtitle>forked from https://github.com/subsurface/subsurface</subtitle>
<id>https://git.tsegers.com/subsurface.git/atom?h=v4.9.8</id>
<link rel='self' href='https://git.tsegers.com/subsurface.git/atom?h=v4.9.8'/>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/'/>
<updated>2020-08-18T20:22:11Z</updated>
<entry>
<title>Android: update target SDK version to 29</title>
<updated>2020-08-18T20:22:11Z</updated>
<author>
<name>Dirk Hohndel</name>
<email>dirk@hohndel.org</email>
</author>
<published>2020-08-17T19:12:09Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=cadfec26abcc3b5e4e906cb965e996ed20403493'/>
<id>urn:sha1:cadfec26abcc3b5e4e906cb965e996ed20403493</id>
<content type='text'>
This will be required for Android updates over the next few weeks.

Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
<entry>
<title>android/usb: simply restart the download after receiving permission</title>
<updated>2020-03-16T14:58:20Z</updated>
<author>
<name>Dirk Hohndel</name>
<email>dirk@hohndel.org</email>
</author>
<published>2020-03-15T19:27:10Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=0b72495413e8b060b58b96aa6d6a0ce96baa168c'/>
<id>urn:sha1:0b72495413e8b060b58b96aa6d6a0ce96baa168c</id>
<content type='text'>
If the user tries to download from a device that he hasn't given the app
permission to read from, Android will pop up a dialogue asking for that
permission. With this after giving the permission we continue (well,
technically, restart) the download which is likely the expected behavior.

Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
<entry>
<title>android/usb: show download page again after USB permission granted</title>
<updated>2020-03-16T14:58:20Z</updated>
<author>
<name>Dirk Hohndel</name>
<email>dirk@hohndel.org</email>
</author>
<published>2020-03-15T01:07:24Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=1495aa2dbf5366cc135c1ceb959c6a12abbb3e0b'/>
<id>urn:sha1:1495aa2dbf5366cc135c1ceb959c6a12abbb3e0b</id>
<content type='text'>
If the user hadn't granted USB permissions, yet, we asynchronously get informed
once they did that. This ensures that the user gets taken back to the download
page once they approve.

Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
<entry>
<title>android/usb: pass the usbDevice for intent handling</title>
<updated>2020-03-16T14:58:20Z</updated>
<author>
<name>Dirk Hohndel</name>
<email>dirk@hohndel.org</email>
</author>
<published>2020-03-15T00:57:36Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=b0eccec8ed330d000e88b01404a30cc610d93ee2'/>
<id>urn:sha1:b0eccec8ed330d000e88b01404a30cc610d93ee2</id>
<content type='text'>
Instead of creating a string with all the object information, simply pass
the actual object to the C++ code.

Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
<entry>
<title>usb-serial-for-android: React to usb "permit granted" intent (stub)</title>
<updated>2020-03-16T14:58:20Z</updated>
<author>
<name>Christof Arnosti</name>
<email>charno@charno.ch</email>
</author>
<published>2020-03-14T17:17:05Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=d953c645e96aea092952653adb92280fe4c225f8'/>
<id>urn:sha1:d953c645e96aea092952653adb92280fe4c225f8</id>
<content type='text'>
When a user is downloading from a DC for the first time (without using
the "usb device connected" popup), the user is requested to grant
permission to use the USB device.

This is done asynchronously, thus the download is aborted. To be more
user-friendly, we now react to the intent with the "usb granted" result.
The plan here is to start the download again.

Signed-off-by: Christof Arnosti &lt;charno@charno.ch&gt;
Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
<entry>
<title>usb-serial-for-android: Use wakelock</title>
<updated>2020-03-16T14:58:20Z</updated>
<author>
<name>Christof Arnosti</name>
<email>charno@charno.ch</email>
</author>
<published>2020-03-14T16:31:51Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=779b84bfa02b3e11f295263971a693bef19c3f9e'/>
<id>urn:sha1:779b84bfa02b3e11f295263971a693bef19c3f9e</id>
<content type='text'>
Android takes some pretty hard measures to save power, including
shutting down the CPU. Since this can interfer with the download from an
usb serial device, we now use a wakelock to keep the CPU running during
download.

Signed-off-by: Christof Arnosti &lt;charno@charno.ch&gt;
Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
<entry>
<title>android usb serial: Prepare device / driver select</title>
<updated>2020-03-16T14:58:20Z</updated>
<author>
<name>Christof Arnosti</name>
<email>charno@charno.ch</email>
</author>
<published>2020-03-11T10:33:52Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=a34a81d120fa2c66522bfcd450003e58dae62d3b'/>
<id>urn:sha1:a34a81d120fa2c66522bfcd450003e58dae62d3b</id>
<content type='text'>
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 &lt;charno@charno.ch&gt;
Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
<entry>
<title>Android: remove USB devices we don't support</title>
<updated>2020-03-10T20:27:43Z</updated>
<author>
<name>Dirk Hohndel</name>
<email>dirk@hohndel.org</email>
</author>
<published>2020-03-09T03:29:53Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=f4589583ef7dd259852069c0d5baad1bddee92a2'/>
<id>urn:sha1:f4589583ef7dd259852069c0d5baad1bddee92a2</id>
<content type='text'>
The HID devices and the Atomics Aquatics Cobalt cannot work on Android
right now. We should claim to support them.

Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
<entry>
<title>usb-serial-for-android: Implement timeout-handling</title>
<updated>2020-03-08T18:22:55Z</updated>
<author>
<name>Christof Arnosti</name>
<email>charno@charno.ch</email>
</author>
<published>2020-03-08T14:25:55Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=b15b9c6cd0e8d83ec12a868c10cf184217f51309'/>
<id>urn:sha1:b15b9c6cd0e8d83ec12a868c10cf184217f51309</id>
<content type='text'>
Since the Android USB stack and subsequently the usb-serial-for-android
driver have problems with read-timeouts, the read-timeout is now
implemented in AndroidSerial.java. Also, DC_STATUS_TIMEOUT is returned
if there are less bytes returned than expected.

Different chipsets seem to behave differently with
usb-serial-for-android. On CP210x the read blocks until there is some
data here, but on FTDI the chip seems to return whatever is currently in
the buffer (so 0 bytes if the buffer is empty). This different behaviour
should be mitigated by the changes by this commit.

Signed-off-by: Christof Arnosti &lt;charno@charno.ch&gt;
</content>
</entry>
<entry>
<title>usb-serial-for-android: add PID/VIDs</title>
<updated>2020-03-07T20:34:43Z</updated>
<author>
<name>Christof Arnosti</name>
<email>charno@charno.ch</email>
</author>
<published>2020-03-06T14:03:13Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=debc7ae1f28c52d7234a96a0fef2c60e3b93b4ef'/>
<id>urn:sha1:debc7ae1f28c52d7234a96a0fef2c60e3b93b4ef</id>
<content type='text'>
Signed-off-by: Christof Arnosti &lt;charno@charno.ch&gt;
Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
</feed>
