Skip to content

[Proposal] Suggest --device=usb as an alternative to --device=all for 6 apps #1474

Open

Description

@rhgKc2yp

Background

Pop!_OS and Linux Mint are among the remaining relatively mainstream Linux distributions that still ship Flatpak versions too old to support --device=usb.

With Pop!_OS 26.04 and Linux Mint 27 expected to be released soon, both based on Ubuntu 26.04, this gap should soon be closed. Ubuntu 26.04 ships Flatpak 1.16.6, which supports --device=usb.

Proposal

I'd suggest updating the descriptions of the following 6 apps to let users know they can try revoking --device=all and granting --device=usb instead:

  • com.genymobile.scrcpy
  • com.google.AndroidPlatformTools
  • io.github.Universal_Debloater_Alliance.uad_ng
  • io.github.barry_ran.QtScrcpy
  • com.chipichapa.Dokument
  • com.calibre_ebook.calibre

For apps requiring GPU acceleration, users could additionally grant --device=dri. CLI-only tools like Android Platform Tools shouldn't need DRI access.

Some optional features or devices may still require additional permissions.

This is just a suggestion to document a safer alternative for users, rather than changing the default permissions without compatibility testing.

Another Suggested Timeline

Several distributions, including Zorin OS, elementary OS, and older supported LTS releases, may still ship Flatpak versions without --device=usb support.

I'd suggest reconsidering the default --device=all permission around six months after Pop!_OS 26.04 and Linux Mint 27 are released, while taking compatibility with these remaining distributions into account.

Thanks for considering!

Activity

  1. added
    proposal
    security
    on Nov 22, 2026
  2. jing2uo commented on Nov 22, 2026

    @jing2uo
    Collaborator

    Thanks — some numbers from our install stats to go with this. They cover 2026-10-18 → 2026-11-21 (the flatpak version has only been recorded since 10-18). "Old" means flatpak < 1.16, i.e. no --device=usb.

    How many FlatPark machines are on an old flatpak

    There is no client id, so machines are estimated from appstream refreshes: each machine's first pull of a given appstream commit counts once (the same way Flathub estimates users from runtime updates).

    View Old flatpak (< 1.16)
    Machines per appstream commit (124 commits with ≥ 500 machines) ~36% on average (range 22–49%)
    Machines that added the FlatPark remote in this period (first appstream pull ever) 16%
    App installs + updates (all apps) 14%

    Week by week it has stayed between 37% and 42%, with no clear trend yet.

    Versions (machines, summed over commits)

    flatpak share typical source
    1.18.x 51% Fedora, Arch/CachyOS, Bazzite/Bluefin, SteamOS, PPA users
    1.14.x 36% almost all 1.14.6 → Ubuntu 24.04 and its derivatives (Mint 22, Pop!_OS 24.04, Zorin 18, elementary 8)
    1.16.x 10% Debian 13, Ubuntu 25.x, …
    1.12.x 2% Ubuntu 22.04 base
    other < 1%

    flatpak only started sending Flatpak-Os-Info in 1.18, so the old clients can't be split by distro. The 1.14.6 bucket is practically all Ubuntu 24.04-based, which matches your read. Some of those distros already have newer clients reporting in, e.g. pop 24.04 and linuxmint 22.3 machines on flatpak 1.18.

    The six apps have too few pulls in this window to say much (124 installs/updates in total; uad_ng 11% old, scrcpy 29%, calibre 0%).

    So for now, switching the default to --device=usb would take USB away from roughly a third of machines, nearly all on Ubuntu 24.04-based systems. Adding the description hint now and looking at the default again once the 26.04-based releases have been out for a while seems right. We can re-run these numbers then.

  3. rhgKc2yp commented on Nov 22, 2026

    @rhgKc2yp
    ContributorAuthor

    Thanks @jing2uo , I'll add descriptions later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    proposalsecurity

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions