feat(libSceHubAppUtil): reproduce the firmware not-available returns #19542
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/19542"
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 edubox on 2026-11-13T14:17:37Z.
What
The three exports of
libSceHubAppUtilnow do what the firmware module does instead of returning success. In the 13.40 module (libSceHubAppUtil.sprx) each body is 23 bytes long and identical apart from the string it prints:The
putsis the module's ownlibcimport (YQ0navp+YIc,puts), and none of the three bodies reads an argument, so the notice and the return value are the same for every input. This is generic behaviour read from the module, not a case matched from a title: the parameterless declarations stay import-resolution placeholders and the change makes no ABI claim.The notices, taken byte for byte from the module (they have no trailing newline;
putsadds it):sceHubAppUtilDeeplinkToLiveDetailView[PPRBUG-22821] sceHubAppUtilDeeplinkToLiveDetailView() is not available.sceHubAppUtilDeeplinkToPSSubscriptions[PPRBUG-22821] sceHubAppUtilDeeplinkToPSSubscriptions() is not available.sceHubAppUtilGetInstallationStatus[PPRBUG-22821] sceHubAppUtilGetInstallationStatus() is not available.libcis linked into every.prx, so the notice needs no build change.docs/dev/debt/libSceHubAppUtil.mdnow records where the behaviour comes from: disassembly of 13.40, not a console measurement, with the prototypes still unverified and0x818D0001undocumented. The functions are not listed under Silent stubs because they report what the firmware reports.mainhas since added its own implementations of the same three exports (dbce57421d, returning 0 and keeping installer/deeplink state that no code reads). They contradict the module, so this PR replaces them and updatesguest_hub_app_utilto the firmware returns instead of keeping a second test beside it.The test now also asserts the notices: each one is its own ctest entry (
guest_hub_app_util,guest_hub_app_util_ps_subscriptions,guest_hub_app_util_installation_status) that runs the binary for that export and matches the exact string withPASS_REGULAR_EXPRESSION. A missing or reworded notice fails the run, which is what the previous manual comparison could not do.Tested
Linux x86-64 (CachyOS), GCC 16.2.1, Release,
BUILD_TESTING=ON, rebased ontomaindfe428e798:ctest -R guest_hub_app_util: 3/3 pass, one per export.nmresolvesputs_nid_postfixfromlibc.check_conventions.py --base origin/mainpasses.Nothing was measured on a console, and no title in the dumps I have imports these exports.
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)Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-21T04:07:13Z.
Review: COMMENTED
Reviewed — comments
Changes are not required before merge; the implementation is consistent with the described disassembly, with one optional test improvement.
What I ran
Read the prepared diff and changed files at head
3dd37452d9dac34ca317bb7a98dd65c2b8849642, plus the libcputsimplementation, API declarations, and neighboring test/CMake setup throughrepo_read.py. No commands or tests were run; the test result in the PR description is author-reported.Results
Findings
Blocking
None.
Non-blocking
core/libs/tests/GuestHubAppUtilNotAvailable.cpp:21checks the three return values but does not assert the emitted notices. Since matching the firmware strings is part of this change, a captured-output assertion would make that behavior regression-tested. The reported manual comparison is not a test assertion.Not verified
No build, test, or console run was performed. The firmware disassembly and notice bytes were not independently checked. The test binary’s output assertions are not present in the changed test. All four changed files were read; none were excluded according to
manifest.json.To get this to a good state
Nothing is required. Optionally add an assertion for the three emitted notices to the test.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-25T16:14:46Z.
Review: APPROVED
Reviewed — looks good
Nothing blocks this change; the points below are optional.
What I ran
Reviewed head
3cf68123673f53f946ab595b573cdc84fb47dea7. I read the prepared description, commit list, manifest, diff, all four changed files, and theputs_nid_postfiximplementation. No test or build commands were run. The base was not merged for this review.Results
Findings
Blocking
None.
Non-blocking
core/libs/tests/GuestHubAppUtil.cpp:18-21). Consider rejectingargc > 2and unknown selectors explicitly; a typo in a CTest command could otherwise pass without exercising an export.Not verified
The author reports Linux x86-64 test and convention-check results; they were not run during this review. Console behavior and the claimed 13.40 module disassembly were not independently verified. Files read:
core/libs/CMakeLists.txt,core/libs/prx/libSceHubAppUtil/Export.cpp,core/libs/tests/GuestHubAppUtil.cpp, anddocs/dev/debt/libSceHubAppUtil.md. No changed files were excluded inmanifest.json.To get this to a good state
Nothing is required. Optionally make invalid test selectors fail, as noted above.