feat(libSceAppInstUtil): export missing firmware app installer interfaces #8107

Closed
adhimiw wants to merge 1 commit from upstream-pr/8107 into main
adhimiw commented 2026-10-19 21:55:03 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adhimiw on 2026-10-19T21:55:03Z.


What

Exports 85 firmware libSceAppInstUtil interfaces that were not declared, in core/libs/prx/libSceAppInstUtil/Export.cpp. Every one calls NotImplemented_nid_no_patch(__func__): no credible prototype exists for them, so they are declared without parameters only to resolve the known imports, they make no ABI claim, and no export behaviour is implemented.

The names and NIDs come from the console's libSceAppInstUtil export table in the PS5 3.20 export inventory; all 85 recompute to their NIDs with tools/nid_names.py, and every name is new to core/libs/prx. The library's existing debt entry already records this limitation for the twelve exports it declared the same way, and the new ones are listed there in the same terms.

The surface the 85 cover is the rest of the installer service: the install and uninstall calls and their cancellation and resume, the app slots and the primary slot, add-on content queries and status, disc compilation and data-disc copy, cloud games, share-play links, download registration, the size and progress queries, and the service's own json, BD-emulation and parental-control calls.

docs/dev/debt/libSceAppInstUtil.md records the limitation for each group of calls.

Tested

Linux (Omarchy, kernel 7.2.8), GCC 16.2.1, CMake 4.4.4: cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=ON configured and the full build compiled and linked; ctest -j4 ran 1647 tests, all passed. python3 tools/check_conventions.py --base upstream/main passes. python3 tools/pr_overlap.py --branch feat/libSceAppInstUtil-firmware-exports reports no overlap with open pull requests, checked after the branch was pushed. The patched libSceAppInstUtil.prx was read back after nid_patcher: its dynamic function exports are exactly the NIDs of the unpatched names, the 85 new ones among them, with nothing added or lost.

Not tested: a title, a console, the Windows build.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file (none added)
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source (none)
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4927945421 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8107). Originally posted by [adhimiw](https://github.com/adhimiw) on 2026-10-19T21:55:03Z. --- ### What Exports 85 firmware `libSceAppInstUtil` interfaces that were not declared, in `core/libs/prx/libSceAppInstUtil/Export.cpp`. Every one calls `NotImplemented_nid_no_patch(__func__)`: no credible prototype exists for them, so they are declared without parameters only to resolve the known imports, they make no ABI claim, and no export behaviour is implemented. The names and NIDs come from the console's `libSceAppInstUtil` export table in the [PS5 3.20 export inventory](https://github.com/DNNDHH/PS5-3.20_Libs/blob/b2a77c09cd71c01f34c790cfbe98c751a13262ad/libSceAppInstUtil.c); all 85 recompute to their NIDs with `tools/nid_names.py`, and every name is new to `core/libs/prx`. The library's existing debt entry already records this limitation for the twelve exports it declared the same way, and the new ones are listed there in the same terms. The surface the 85 cover is the rest of the installer service: the install and uninstall calls and their cancellation and resume, the app slots and the primary slot, add-on content queries and status, disc compilation and data-disc copy, cloud games, share-play links, download registration, the size and progress queries, and the service's own json, BD-emulation and parental-control calls. `docs/dev/debt/libSceAppInstUtil.md` records the limitation for each group of calls. ### Tested Linux (Omarchy, kernel 7.2.8), GCC 16.2.1, CMake 4.4.4: `cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=ON` configured and the full build compiled and linked; `ctest -j4` ran 1647 tests, all passed. `python3 tools/check_conventions.py --base upstream/main` passes. `python3 tools/pr_overlap.py --branch feat/libSceAppInstUtil-firmware-exports` reports no overlap with open pull requests, checked after the branch was pushed. The patched `libSceAppInstUtil.prx` was read back after `nid_patcher`: its dynamic function exports are exactly the NIDs of the unpatched names, the 85 new ones among them, with nothing added or lost. Not tested: a title, a console, the Windows build. ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file (none added) - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source (none) - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes
github-actions[bot] commented 2026-10-19 21:55:21 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-19T21:55:21Z.


Thank you for your contribution! Authors with no pull requests merged into main can have 1 open pull request at a time, authors with at least 1 merged can have 20, and from 20 merged there is no limit. This PR has been automatically closed and labeled "open PR limit" because that limit was reached. This is not a judgment of the quality of your changes: reopen it once one of your open pull requests is merged or closed.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6278250502 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8107#issuecomment-6278250502). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-19T21:55:21Z. --- Thank you for your contribution! Authors with no pull requests merged into `main` can have 1 open pull request at a time, authors with at least 1 merged can have 20, and from 20 merged there is no limit. This PR has been automatically closed and labeled "open PR limit" because that limit was reached. This is not a judgment of the quality of your changes: reopen it once one of your open pull requests is merged or closed.

Pull request closed

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!8107
No description provided.