feat(libSceBluetoothHid): export missing firmware functions from database #6832

Merged
al3w0f205 merged 1 commit from upstream-pr/6832 into main 2026-10-20 01:45:08 +00:00
al3w0f205 commented 2026-10-16 13:45:05 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by al3w0f205 on 2026-10-16T13:45:05Z.


What

Adds missing firmware exports to libSceBluetoothHid from the firmware export database (aerolib.csv), matching existing library stub patterns:

  • sceBluetoothHidDebugGetVersion
  • sceBluetoothHidDisconnectDevice
  • sceBluetoothHidGetDeviceInfo
  • sceBluetoothHidGetFeatureReport
  • sceBluetoothHidGetReportDescriptor
  • sceBluetoothHidInterruptOutput
  • sceBluetoothHidParamInitialize
  • sceBluetoothHidSetFeatureReport
  • sceBluetoothHidThreadParamInitialize

Tested

  • Unit tests in core/libs/tests/GuestBluetoothHid.cpp verifying throwing behavior including sceBluetoothHidGetFeatureReport and sceBluetoothHidSetFeatureReport.
  • ctest -R guest_bluetooth_hid passes 100%.
  • tools/check_conventions.py --base origin/main passes cleanly.

Checklist

  • Depends on: None
  • Unblocks: None
  • GPUs tested: None (non-GPU)
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4889274572 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6832). Originally posted by [al3w0f205](https://github.com/al3w0f205) on 2026-10-16T13:45:05Z. --- ### What Adds missing firmware exports to `libSceBluetoothHid` from the firmware export database (`aerolib.csv`), matching existing library stub patterns: - `sceBluetoothHidDebugGetVersion` - `sceBluetoothHidDisconnectDevice` - `sceBluetoothHidGetDeviceInfo` - `sceBluetoothHidGetFeatureReport` - `sceBluetoothHidGetReportDescriptor` - `sceBluetoothHidInterruptOutput` - `sceBluetoothHidParamInitialize` - `sceBluetoothHidSetFeatureReport` - `sceBluetoothHidThreadParamInitialize` ### Tested - Unit tests in `core/libs/tests/GuestBluetoothHid.cpp` verifying throwing behavior including `sceBluetoothHidGetFeatureReport` and `sceBluetoothHidSetFeatureReport`. - `ctest -R guest_bluetooth_hid` passes 100%. - `tools/check_conventions.py --base origin/main` passes cleanly. ### Checklist - [x] Depends on: None - [x] Unblocks: None - [x] GPUs tested: None (non-GPU) - [x] AI-assisted: yes
github-actions[bot] commented 2026-10-16 13:45:53 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-16T13:45:53Z.


Progress report (b6583dd → 173c827)

📉 System libraries: 79.72% (-0.14%, +9 declared functions)

🆕 9 declared as stubs
Library Name
libSceBluetoothHid sceBluetoothHidDebugGetVersion
libSceBluetoothHid sceBluetoothHidDisconnectDevice
libSceBluetoothHid sceBluetoothHidGetDeviceInfo
libSceBluetoothHid sceBluetoothHidGetFeatureReport
libSceBluetoothHid sceBluetoothHidGetReportDescriptor
libSceBluetoothHid sceBluetoothHidInterruptOutput
libSceBluetoothHid sceBluetoothHidParamInitialize
libSceBluetoothHid sceBluetoothHidSetFeatureReport
libSceBluetoothHid sceBluetoothHidThreadParamInitialize
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6216870453 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6832#issuecomment-6216870453). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-16T13:45:53Z. --- <!-- progress-report --> ### Progress report (b6583dd → 173c827) 📉 **System libraries**: 79.72% (-0.14%, +9 declared functions) <details> <summary>🆕 9 declared as stubs</summary> | Library | Name | | - | - | | libSceBluetoothHid | `sceBluetoothHidDebugGetVersion` | | libSceBluetoothHid | `sceBluetoothHidDisconnectDevice` | | libSceBluetoothHid | `sceBluetoothHidGetDeviceInfo` | | libSceBluetoothHid | `sceBluetoothHidGetFeatureReport` | | libSceBluetoothHid | `sceBluetoothHidGetReportDescriptor` | | libSceBluetoothHid | `sceBluetoothHidInterruptOutput` | | libSceBluetoothHid | `sceBluetoothHidParamInitialize` | | libSceBluetoothHid | `sceBluetoothHidSetFeatureReport` | | libSceBluetoothHid | `sceBluetoothHidThreadParamInitialize` | </details>
github-actions[bot] commented 2026-10-16 14:39:40 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-16T14:39:40Z.


Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.

Pull request Shared files not compared
PR 6044 core/libs/tests/GuestBluetoothHid.cpp
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6217899514 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6832#issuecomment-6217899514). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-16T14:39:40Z. --- <!-- pr-overlap --> Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap. | Pull request | Shared files not compared | |---|---| | [PR 6044](https://www.github.com/boykopovar/AnyPS5/pull/6044) | `core/libs/tests/GuestBluetoothHid.cpp` |
adriadam10 commented 2026-10-19 10:11:15 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-19T10:11:15Z.

Review: CHANGES_REQUESTED


The code is fine (nine throwing stubs, same pattern as the existing exports), but the description doesn't match the diff:

  • The "Exported functions" list names sceBluetoothHidInit, RegisterCallback, UnregisterCallback, RegisterDevice, UnregisterDevice and GetInputReport, which already exist on main. The PR actually adds DebugGetVersion, DisconnectDevice, GetDeviceInfo, GetFeatureReport, GetReportDescriptor, InterruptOutput, ParamInitialize, SetFeatureReport and ThreadParamInitialize. Please fix the list.
  • The TechnicalDebt line is the last one in ### Unknown function info, and #7658 rewrites that same line and the same test file, so whichever merges second will conflict. Put the line a few lines away from the end of the section and rebase after #7658 if it lands first.
  • Optional: add GetFeatureReport/SetFeatureReport to the throw checks in the guest test; only 3 of the 9 are covered.
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5570014999 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6832#pullrequestreview-5570014999). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-19T10:11:15Z. **Review:** CHANGES_REQUESTED --- The code is fine (nine throwing stubs, same pattern as the existing exports), but the description doesn't match the diff: - The "Exported functions" list names `sceBluetoothHidInit`, `RegisterCallback`, `UnregisterCallback`, `RegisterDevice`, `UnregisterDevice` and `GetInputReport`, which already exist on `main`. The PR actually adds `DebugGetVersion`, `DisconnectDevice`, `GetDeviceInfo`, `GetFeatureReport`, `GetReportDescriptor`, `InterruptOutput`, `ParamInitialize`, `SetFeatureReport` and `ThreadParamInitialize`. Please fix the list. - The TechnicalDebt line is the last one in `### Unknown function info`, and #7658 rewrites that same line and the same test file, so whichever merges second will conflict. Put the line a few lines away from the end of the section and rebase after #7658 if it lands first. - Optional: add `GetFeatureReport`/`SetFeatureReport` to the throw checks in the guest test; only 3 of the 9 are covered.
al3w0f205 commented 2026-10-19 17:28:10 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by al3w0f205 on 2026-10-19T17:28:10Z.


Rebased onto current main, updated the PR description list to match the 9 exports in the diff, added throw assertions for sceBluetoothHidGetFeatureReport and sceBluetoothHidSetFeatureReport in GuestBluetoothHid.cpp, and verified guest_bluetooth_hid and conventions pass 100%.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6273162461 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6832#issuecomment-6273162461). Originally posted by [al3w0f205](https://github.com/al3w0f205) on 2026-10-19T17:28:10Z. --- Rebased onto current main, updated the PR description list to match the 9 exports in the diff, added throw assertions for `sceBluetoothHidGetFeatureReport` and `sceBluetoothHidSetFeatureReport` in `GuestBluetoothHid.cpp`, and verified `guest_bluetooth_hid` and conventions pass 100%.
adriadam10 commented 2026-10-20 01:50:28 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-20T01:50:28Z.


Thanks for the update: the description now matches the nine exports in the diff, and the feature report stubs are covered by the guest test. Checked the throwing-stub pattern against the existing exports and the TechnicalDebt entry; merged.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6281447334 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6832#issuecomment-6281447334). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-20T01:50:28Z. --- Thanks for the update: the description now matches the nine exports in the diff, and the feature report stubs are covered by the guest test. Checked the throwing-stub pattern against the existing exports and the TechnicalDebt entry; merged.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!6832
No description provided.