fix(libs): return what the firmware returns from 24 utility calls it does not implement #8305
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/8305"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by hypermoist on 2026-10-20T09:37:24Z.
What
These 24 exports were
NotImplementedstubs. In the decrypted firmware modules (system/common/lib/*.sprx), each body is a single constant return (MoveTrackerRecordStopalso clears one byte of module state). None of them makes an IPC call or a syscall or reads its arguments, so the exports now return the same value.sceContentBinderInitialize,Terminate,Start,End,Reset,IsUpdated,SearchDifference,GetNumOfDifference0x809D000FsceCompanionUtilInitialize,Terminate,OptParamInitialize,GetRemoteOskEventsceCompanionUtilGetEvent0x80AD0008sceErrorDialogOpenDetail,OpenWithReport0x80ED0004(namedkErrUnexpectedFatalnext to the existing codes)sceImeDialogForTestFunction0x80BC00FF(namedErrorInternal)sceHttpCacheSystemTerm,SystemSendStatisticssceMoveTrackerGetVersionsceMoveTrackerRecordStopsceBluetoothHidDebugGetVersion0x1esceSystemGestureDebugGetVersion0x6a00sceMbusTermsceMbusAcquireControlList0x809B00FFThe stubs had no parameters and the firmware reads none, so only the bodies change.
Tested
Linux (CachyOS, GCC, Release): full build.
ctest -R "guest_|kernel|ampr|agc|audio": 1348/1348 pass, withagc_driver_stencil_ref_exportskipped as usual.check_conventionspasses, andpr_overlapfinds no overlap with open pull requests. No title was run.guest_bluetooth_hidasserted thatsceBluetoothHidDebugGetVersionthrows, so it failed on this branch. It now checks that the call returns0x1e; without that change the test aborts with "debug get version did not throw". No other test names any of the 24 calls.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code
https://claude.ai/code/session_01RbLgECLQ2bpDM7oe2urGZK
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-20T09:38:08Z.
Progress report (
b77bd58→ad12ca0)📈 System libraries: 50.2% (+0.27%, +24 implemented functions)
✅ 24 implemented
sceBluetoothHidDebugGetVersionsceCompanionUtilGetEventsceCompanionUtilGetRemoteOskEventsceCompanionUtilInitializesceCompanionUtilOptParamInitializesceCompanionUtilTerminatesceContentBinderEndsceContentBinderGetNumOfDifferencesceContentBinderInitializesceContentBinderIsUpdatedsceContentBinderResetsceContentBinderSearchDifferencesceContentBinderStartsceContentBinderTerminatesceErrorDialogOpenDetailsceErrorDialogOpenWithReportsceHttpCacheSystemSendStatisticssceHttpCacheSystemTermsceImeDialogForTestFunctionsceMbusAcquireControlListsceMbusTermsceMoveTrackerGetVersionsceMoveTrackerRecordStopsceSystemGestureDebugGetVersion⚪ 14 behaviourally empty (constant return or throw)
sceBluetoothHidDebugGetVersionsceCompanionUtilGetRemoteOskEventsceCompanionUtilInitializesceCompanionUtilOptParamInitializesceCompanionUtilTerminatesceErrorDialogOpenDetailsceErrorDialogOpenWithReportsceHttpCacheSystemSendStatisticssceHttpCacheSystemTermsceImeDialogForTestFunctionsceMbusTermsceMoveTrackerGetVersionsceMoveTrackerRecordStopsceSystemGestureDebugGetVersionImported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-21T07:01:59Z.
@hypermoist thanks. All 24 bodies match the table, but one existing test now fails:
core/libs/tests/GuestBluetoothHid.cpp(ctestguest_bluetooth_hid) still requiressceBluetoothHidDebugGetVersionto throw (lines 60-65, "debug get version did not throw"). With this branch it returns0x1e, so thatRequireaborts on every platform.Please replace that block with a check of the new result, for example:
No other test in
core/libsnames any of the 24 calls.Imported from boykopovar/AnyPS5. Originally posted by hypermoist on 2026-10-21T07:16:52Z.
@oneandonlydean thanks, you're right. I missed that test.
ad12ca0066replaces the throw check withRequire(sceBluetoothHidDebugGetVersion() == 0x1e, ...). I confirmedguest_bluetooth_hidaborted with "debug get version did not throw" on the previous head, and passes now. A grep of the test sources finds no other test naming any of the 24 calls. Full Linux run: 1348/1348 pass. I've also corrected the description, which wrongly said there were no tests.Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-21T07:24:49Z.
@hypermoist thanks, checked on
ad12ca0066: the only change is thesceBluetoothHidDebugGetVersion() == 0x1echeck replacing the throw check. Next is a full CI run on this head.Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-21T07:27:16Z.
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.
core/libs/tests/GuestBluetoothHid.cpp