Expose USB configuration descriptor (#4) in UI#1414
Open
slinkypew wants to merge 3 commits into
Open
Conversation
Author
IDisposable
approved these changes
Apr 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Addresses #418
Summary
Adds support for configuring USB descriptor #4 (configuration string) via the UI. The previously hardcoded value is now used as a default but can be overridden. This brings it in line with other configurable USB identifiers and improves compatibility across a wider range of host systems.
Checklist
Note
Medium Risk
Touches USB gadget descriptor values that affect how hosts enumerate the device; misconfiguration could cause compatibility issues, though the change is additive and keeps the previous value as the default.
Overview
Adds support for editing the USB gadget configuration string (descriptor #4) end-to-end.
Backend
usbgadget.Configand defaults now include aConfigurationfield and propagate it into the gadget’sbase_infoconfigfsconfigurationattribute, while the UI USB identifiers form/store and preset profiles gain a new required configuration input plus localized label/placeholder strings across languages.Reviewed by Cursor Bugbot for commit c8b9ed0. Bugbot is set up for automated code reviews on this repo. Configure here.