On phones the download offers the system's camera and photo picker
(mygo's imagepicker plugin, which needs no permission) in place of
opening an image file. The photo is read off the main thread and
removed once read, as it holds the activation code.
On a phone, an error of taking the code (no QR code, an empty
clipboard) shows in a toast: the form's end, where desktops show it, is
out of sight below the buttons.
Choosing a photo works on a Redmi 7A (Android 16). The camera does not
open there yet: imagepicker.Capture reports no camera app on Android 11
and later, as the plugin's resolveActivity cannot see the camera app
without a <queries> entry, an issue of mygo's.
The USB CCID backend now tells four failures apart by kind
(transport.ErrAccessDenied, ErrDeviceGone, ErrNoCard, ErrCardMute):
USB access the user denied, the reader unplugged before or during an
operation, no card in the reader, and a card that does not answer. The
interface explains them in words rather than showing usbfs's or
go-ccid's error, which the log keeps. libeuicc already passes the
transport's error on, which a test now holds it to.
On phones the download's hint offers to open a picture of the QR code
instead of dropping one, and the copy the system's picker gives the app
is removed once read, as it holds the activation code.
On phones the pages fit a narrow window:
- The card's tiles go two by two, labels go above their values, and the
buttons of EUICCInfo2 under its title.
- Notifications are a list of rows a tap checks, which a long press
offers to send or remove, rather than a table chosen with modifier
keys.
- Settings offer no choice of PC/SC or modem, name USB readers by their
product rather than their device path, and turn PPS on or off.
- Dialogs fit the window, the download one scrolling where it is taller,
and none brings the keyboard up as it opens.
- Deleting the eSIM in use says why it can't, as phones' menus show
neither tooltips nor which items are disabled.
- The log is exported through the system's picker (Dialog.SaveCopy).
- The floating button hides while a dialog is open.
The tabs' refresh buttons are set once the tabs exist: before, the bar
they go in was not there yet and they did not show.
Reader settings now follow the backend in use rather than PC/SC's alone.
Desktop windows draw the same: 256 frames compared pixel for pixel.
Tested on a Redmi 7A with the demo card, a download included.
Phones show the system's bar of tabs: eSIMs, notifications, card and
settings, a window each. The log and About are pushed over the settings
tab, which the system's back takes away. The tabs that show the card
refresh from a button in their bar and by pulling their content down;
the eSIMs tab adds one from a floating button, and the notifications
tab counts them on its badge. The pages are still the desktop's.
The app's dispatch now redraws every window, and only the window in
front shows toasts and dialogs, so that a tab behind takes none. The
demo uses the phone frame too, and the read-only reader test it
replaces is gone.
Desktop windows draw the same: 256 frames compared pixel for pixel. The
phone frame builds on desktops with -tags phone, for its tests at
360x720. Tested on a Redmi 7A with the demo card.
desktop.go holds the frame of desktop windows: the sidebar, the floating
header, the task pill and the shortcuts. gui.go keeps what an interface
for phones shares with it, with the page body, the dialogs, the notices,
the device's state and a task's text as functions of their own.
Desktop windows draw the same: 256 frames of 32 states, light and dark,
with and without vibrancy, at two sizes, are identical pixel for pixel.
internal/usbhost is a native module in Kotlin that lists the CCID
readers, asks for permission and hands over the connection's file
descriptor; go-ccid speaks to the reader on it through usbfs.
Android offers the ccid backend alone, and until it has an interface
of its own shows a screen that only reads the card, with the
identifiers obscured. Desktops keep their backends and interface.
Read on a Redmi 7A (Android 16) with an ACR38U-CCID: the results match
PC/SC's, and a PPS takes a refresh from 3.04 to 1.32 seconds. Writing
to a card is untested.