Skip to content

Instantly share code, notes, and snippets.

@hh
Created November 30, 2022 02:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hh/e57db02dbff7ed4a1e406d2cd2dac45d to your computer and use it in GitHub Desktop.
Save hh/e57db02dbff7ed4a1e406d2cd2dac45d to your computer and use it in GitHub Desktop.

iiOS

iiOS

Email github.com/iios tzllangzi@vip.qq.com

He’s not used the org in years. iios/phone would be fun

ii USB Gadget

graphene

infrastructure

https://grapheneos.org/articles/grapheneos-servers#table-of-contents

build

https://grapheneos.org/build

webinstall for android

graphene os webinstall code

https://github.com/GrapheneOS/grapheneos.org/blob/main/static/js/web-install.js

upstream android-webinstall

fastboot.jo

Web USB

Community Group

https://wicg.github.io/webusb/ Basically a google project: Reilly Grant, Ken Rockot, and Ovidio Ruiz-Henriquez

USB Specification Table 9-14. Device Capability Type Codes

USB 3.2 Revision 1.1.pdf - https://www.usb.org/document-library/usb-32-revision-11-june-2022

Capability CodeValueDescription
Wireless_USB01HDefines the set of Wireless USB-specific device level capabilities
USB 2.0 EXTENSION02HUSB 2.0 Extension Descriptor
SUPERSPEED_USB03HDefines the set of SuperSpeed USB specific device level capabilities
CONTAINER_ID04HDefines the instance unique ID used to identify the instance across all operating modes
PLATFORM05HDefines a device capability specific to a particular platform/operating system
POWER_DELIVERY_CAPABILITY06HDefines the various PD Capabilities of this device
BATTERY_INFO_CAPABILITY07HProvides information on each battery supported by the device
PD_CONSUMER_PORT_CAPABILITY08HThe consumer characteristics of a port on the device
PD_PROVIDER_PORT_CAPABILITY09HThe provider characteristics of a port on the device
SUPERSPEED_PLUS0AHDefines the set of SuperSpeed Plus USB specific device level capabilities
PRECISION_TIME_MEASUREMENT0BHPrecision Time Measurement (PTM) Capability Descriptor
Wireless_USB_Ext0CHDefines the set of Wireless USB 1.1-specific device level capabilities
BILLBOARD0DHBillboard capability
AUTHENTICATION0EHAuthentication Capability Descriptor
BILLBOARD_EX0FHBillboard Ex capability

https://chromestatus.com/feature/5651917954875392

https://web.dev/build-for-webusb/

internals

  • about://usb-internals/
    • chrome://usb-internals/ (chrome://settings/content/usbDevices) and the navigator.usb.getDevices() only returns allowed devices if they are currently connected.

      https://cloud.google.com/docs/chrome-enterprise/policies/?policy=WebUsbAllowDevicesForUrls chrome://prefs-internals and search for “usb_chooser_data”. chrome://settings/content/usbDevices on desktop. This will show permissions for devices that are not currently connected.a chrome://settings/content/usbDevices is available only on Chrome Desktop. On Android, you’ll have to navigate through Chrome menu.

protected classes

https://wicg.github.io/webusb/#has-a-protected-interface-class

Protected interface classes Code Description 0x01 Audio 0x03 HID (Human Interface Device) 0x08 Mass Storage 0x0B Smart Card 0x0E Video 0x10 Audio/Video Devices 0xE0 Wireless Controller

Supported Browsers

https://developer.mozilla.org/en-US/docs/Web/API/USB Basically just Chrome and derivatives

Platform Capability descriptory

file-system-access

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