…by physically removing a port (who would do that) or using the software?

  • Matt@lemmy.ml
    link
    fedilink
    arrow-up
    3
    ·
    1 day ago

    GrapheneOS allows you to disable it. I just charge mine wirelessly, though if the charger supports MagSafe, then you’ll need to buy a MagSafe case for your Pixel, since built-in magnets are waaay too weak.

    • JustEnoughDucks@slrpnk.net
      link
      fedilink
      arrow-up
      7
      ·
      2 days ago

      Sony, in their infinite wisdom, defaults full data without the ability to choose a default, you can only deny upon plugging it in and it will eventually revert back to full data anyway

    • Ferrous@lemmy.ml
      link
      fedilink
      English
      arrow-up
      3
      ·
      2 days ago

      This is the best strategy.

      However, if you ever knew youd NEED to use public charging, check out USB condom adapters. They open circuit the data pins.

  • BCsven@lemmy.ca
    link
    fedilink
    arrow-up
    6
    ·
    edit-2
    2 days ago

    The software locks out the auto discover and auto config of attached devices, unless they are in an allow list.

    Same like some android phone models where you can turn off USB port to protect your phone from being infiltrated.

    I did work at a place that filled the USB ports with HotGlue to stop workers loading movies on the computers on night shift

      • BCsven@lemmy.ca
        link
        fedilink
        arrow-up
        3
        ·
        1 day ago

        Yes because the keyboard and mouse were via the serial PS connectors, but the IT dudes could have just opened the case and unplugged the USB headers instead of permanently filling the slots with glue.

    • utopiah@lemmy.ml
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      5 hours ago

      Be mindful that such a program would have to be safer than the situation without. A program on a public repository that isn’t used by any distribution, isn’t audited, hasn’t a lot of comments (and thus eyes on its code) might be a disproportionate risk compared to the default settings of a popular open source distribution IMHO.

      • ell1e@leminal.space
        link
        fedilink
        English
        arrow-up
        1
        ·
        edit-2
        7 hours ago

        I think to be fully safe, you would have to get prompted for any type of USB device including a mouse and keyboard. At least I think that’s the idea of USBGuard.

      • hexagonwin@lemmy.today
        link
        fedilink
        arrow-up
        4
        ·
        1 day ago

        the usb device is auto detected and activated, it’s just asking you to mount if it happens to be a storage device