Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import kotlinx.coroutines.CancellationException
import kotlinx.coroutines.CompletableDeferred
import org.microg.gms.fido.core.*
import org.microg.gms.fido.core.transport.AuthenticatorResponseWithUser
import org.microg.gms.fido.core.transport.Ctap2StatusException
import org.microg.gms.fido.core.transport.Transport
import org.microg.gms.fido.core.transport.TransportHandler
import org.microg.gms.fido.core.transport.TransportHandlerCallback
Expand Down Expand Up @@ -155,7 +156,9 @@ class UsbTransportHandler(private val context: Context, callback: TransportHandl
throw e
} catch (e: WrongPinException) {
throw e
} catch (e: Exception) {
} catch (e: Ctap2StatusException) {
throw e
} catch (e: Exception) {
Log.w(TAG, e)
}
}
Expand All @@ -167,6 +170,12 @@ class UsbTransportHandler(private val context: Context, callback: TransportHandl
return handle(options, callerPackage, device, iface, pinRequested, pin)
} catch (e: CancellationException) {
throw e
} catch (e: MissingPinException) {
throw e
} catch (e: WrongPinException) {
throw e
} catch (e: Ctap2StatusException) {
throw e
} catch (e: Exception) {
Log.w(TAG, e)
}
Expand Down