docs(libSceCamera): record the indexes sceCameraIsAttached answered on firmware 11.60 #24428

Merged
xXPBSXx merged 1 commit from upstream-pr/24428 into main 2026-11-21 03:11:53 +00:00
xXPBSXx commented 2026-11-20 16:22:23 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-11-20T16:22:23Z.


What

The entry for sceCameraIsAttached in docs/dev/debt/libSceCamera.md (line 26) says that no camera is ever attached: index 0 returns 0 and every other index returns SCE_CAMERA_ERROR_PARAM (0x802E0000), as shadPS4 does without a configured camera. A probe on a PS5 with firmware 11.60, from a payload process, opened libSceCamera.sprx twice (both attempts loaded; lines 3 and 4 of the raw output) and called sceCameraIsAttached without sceCameraOpen or sceCameraInit, once per index, in two runs: index 0 returned 0 (case b.1, line 8), index 1 returned 0 (case b.2, line 9), index 2 returned 0x802e0000 (case b.3, line 11) and index -1 returned 0x802e0000 (case b.4, line 13), the last two each after the console's own message sceCameraDeviceIsAttached invalid index:<n> (lines 10 and 12). So index 1 differs from the entry. The entry now says that, and that other indexes are unmeasured. Only this one entry changes, as a new fragment in docs/dev/debt/changes/; no code does, because the console result for index 1 without a camera setup does not say what a title with a configured camera would see.

AnyPS5 returns 0x802E0000 for every index other than 0 (core/libs/prx/libSceCamera/Export.cpp lines 25 to 27), so index 1 differs, read from the source and not run.

Tested

Measured on a PS5 with firmware 11.60 (kernel_get_fw_version 0x11600005, line 1 of each raw output), from a homebrew payload process, on 2026-11-20 at 12:33 UTC and at 13:03 UTC (the console's own clock in the PROBE lines reads 14:15:53Z and 14:45:50Z, 1 h 42 min ahead of the runner's clock, within a second). A title process may differ. Both runs have their END line (line 14). The control sceKernelGetCurrentCpu in libkernel.sprx resolved (line 5) and the negative control did not (line 6); all ten names looked up resolved (line 7, the flags 1111111111).

Call (no sceCameraOpen) PS5, payload process, firmware 11.60 AnyPS5 (source, not run) here
sceCameraIsAttached(0) 0 (line 8) 0 (Export.cpp lines 26, 27) entry states it is measured
sceCameraIsAttached(1) 0 (line 9) 0x802E0000 (line 26) difference recorded
sceCameraIsAttached(2) 0x802e0000, message invalid index:2 (lines 10, 11) 0x802E0000 entry states it
sceCameraIsAttached(-1) 0x802e0000, message invalid index:-1 (lines 12, 13) 0x802E0000 entry states it

The line numbers of Export.cpp are those of main at 7fa48cd1c6. The entry is 911 characters without the list marker, below the length limit. The fragment is one commit (head ed0bff7d7a02 on main at 0a025bd3c6) that adds only the fragment file; on the head merged into main at 7fa48cd1c6, I ran tools/check_conventions.py --base upstream/main (no finding, 0 errors) and debt_fold --check (exit code 0). This is a documentation change, so no test was added or run. Not tested: Linux, macOS, the CI runner, a title process, an opened or configured camera, other indexes, and firmware other than 11.60.

Overlap: counted on 2026-11-20 from the 2130 open pull requests (file lists from the GitHub API, the 12 with 100 or more files read in full through the files API; the patches of the 1256 pull requests that change a file under docs/dev/debt/ or a file of libSceRegMgr, libSceCamera or libSceLibreSsl were searched for the names of this entry, the fragment names and the sibling names, at 15:13 to 15:36 UTC) against main at 7fa48cd1c6. This pull request adds one file, docs/dev/debt/changes/docs-libscecamera-isattached-index.md, and no code; no open pull request has a file of that name. No open pull request changes the entry of this pull request in docs/dev/debt/libSceCamera.md, and no patch of the open pull requests changes a line that names sceCameraIsAttached. #19486 (feat(libSceNKWebKit): implement WKContextGetGeolocationManager and WKGeolocationManager functions) shows lines of the Camera sources in its patch, but its head is identical to main in Config.cpp, Attributes.cpp and libSceCamera.md, so it changes none of them; #22362 (feat(sysmodule): answer IsCameraPreloaded and forward UnloadModuleByNameInternal) is about another module. A merge of this head into main at 7fa48cd1c6 was checked with git merge-tree and is clean. This pull request does not depend on any of them (Depends on: none).

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
  • 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
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a (no graphics change)
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5416645679 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/24428). Originally posted by [xXPBSXx](https://github.com/xXPBSXx) on 2026-11-20T16:22:23Z. --- ### What The entry for `sceCameraIsAttached` in `docs/dev/debt/libSceCamera.md` (line 26) says that no camera is ever attached: index 0 returns 0 and every other index returns `SCE_CAMERA_ERROR_PARAM` (`0x802E0000`), as shadPS4 does without a configured camera. A probe on a PS5 with firmware 11.60, from a payload process, opened `libSceCamera.sprx` twice (both attempts loaded; lines 3 and 4 of the raw output) and called `sceCameraIsAttached` without `sceCameraOpen` or `sceCameraInit`, once per index, in two runs: index 0 returned 0 (case b.1, line 8), index 1 returned 0 (case b.2, line 9), index 2 returned `0x802e0000` (case b.3, line 11) and index -1 returned `0x802e0000` (case b.4, line 13), the last two each after the console's own message `sceCameraDeviceIsAttached invalid index:<n>` (lines 10 and 12). So index 1 differs from the entry. The entry now says that, and that other indexes are unmeasured. Only this one entry changes, as a new fragment in `docs/dev/debt/changes/`; no code does, because the console result for index 1 without a camera setup does not say what a title with a configured camera would see. AnyPS5 returns `0x802E0000` for every index other than 0 (`core/libs/prx/libSceCamera/Export.cpp` lines 25 to 27), so index 1 differs, read from the source and not run. ### Tested Measured on a PS5 with firmware 11.60 (`kernel_get_fw_version` 0x11600005, line 1 of each raw output), from a homebrew payload process, on 2026-11-20 at 12:33 UTC and at 13:03 UTC (the console's own clock in the `PROBE` lines reads 14:15:53Z and 14:45:50Z, 1 h 42 min ahead of the runner's clock, within a second). A title process may differ. Both runs have their `END` line (line 14). The control `sceKernelGetCurrentCpu` in `libkernel.sprx` resolved (line 5) and the negative control did not (line 6); all ten names looked up resolved (line 7, the flags `1111111111`). | Call (no `sceCameraOpen`) | PS5, payload process, firmware 11.60 | AnyPS5 (source, not run) | here | |---|---|---|---| | `sceCameraIsAttached(0)` | 0 (line 8) | 0 (Export.cpp lines 26, 27) | entry states it is measured | | `sceCameraIsAttached(1)` | 0 (line 9) | `0x802E0000` (line 26) | difference recorded | | `sceCameraIsAttached(2)` | `0x802e0000`, message `invalid index:2` (lines 10, 11) | `0x802E0000` | entry states it | | `sceCameraIsAttached(-1)` | `0x802e0000`, message `invalid index:-1` (lines 12, 13) | `0x802E0000` | entry states it | The line numbers of `Export.cpp` are those of `main` at 7fa48cd1c6. The entry is 911 characters without the list marker, below the length limit. The fragment is one commit (head `ed0bff7d7a02` on `main` at 0a025bd3c6a8) that adds only the fragment file; on the head merged into `main` at 7fa48cd1c6cd, I ran `tools/check_conventions.py --base upstream/main` (no finding, 0 errors) and `debt_fold --check` (exit code 0). This is a documentation change, so no test was added or run. Not tested: Linux, macOS, the CI runner, a title process, an opened or configured camera, other indexes, and firmware other than 11.60. Overlap: counted on 2026-11-20 from the 2130 open pull requests (file lists from the GitHub API, the 12 with 100 or more files read in full through the files API; the patches of the 1256 pull requests that change a file under `docs/dev/debt/` or a file of `libSceRegMgr`, `libSceCamera` or `libSceLibreSsl` were searched for the names of this entry, the fragment names and the sibling names, at 15:13 to 15:36 UTC) against `main` at 7fa48cd1c6cd. This pull request adds one file, `docs/dev/debt/changes/docs-libscecamera-isattached-index.md`, and no code; no open pull request has a file of that name. No open pull request changes the entry of this pull request in `docs/dev/debt/libSceCamera.md`, and no patch of the open pull requests changes a line that names `sceCameraIsAttached`. #19486 (`feat(libSceNKWebKit): implement WKContextGetGeolocationManager and WKGeolocationManager functions`) shows lines of the Camera sources in its patch, but its head is identical to `main` in `Config.cpp`, `Attributes.cpp` and `libSceCamera.md`, so it changes none of them; #22362 (`feat(sysmodule): answer IsCameraPreloaded and forward UnloadModuleByNameInternal`) is about another module. A merge of this head into `main` at 7fa48cd1c6cd was checked with `git merge-tree` and is clean. This pull request does not depend on any of them (Depends on: none). ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [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 - [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 - [x] Generic behaviour, not specific to one title - [x] Depends on: none <!-- #PR, or none --> - [x] Fixes: none <!-- issue it closes as Fixes #N, or none --> - [x] Unblocks: none <!-- title ID and Game bring-up discussion, e.g. PPSA01325 #3232, or none --> - [x] GPUs tested: n/a (no graphics change) <!-- for AGC, shader recompiler or VideoOut changes: vendor, model, driver and OS of each GPU the GPU tests ran on; otherwise n/a --> - [x] AI-assisted: yes <!-- yes / no -->
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!24428
No description provided.