mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-12-06 01:21:18 +00:00
3.9 KiB
3.9 KiB
libSceSysUtil technical debt
Unknown function info
- sceSysUtilSendSystemNotificationWithParams (libSceSysUtil) - name and NID are present in the PS5 3.20 export inventory and the verified NID name database. The supplied PRX uses a variadic argument layout that needs further recovery. This export remains a no-argument declaration solely to resolve imports; callers must not rely on that declaration as an ABI prototype.
Functional
- notification variants (libSceSysUtil) - supplied
/system/common/lib/libSceSysUtil.sprxSHA-256:b0f5e18443cdcb3c35d3ddf688a813adbfd67af5c36ddce05c236e8de4e3e491; firmware version unknown. Disassembly confirms request kinds 1-10 and 12-17 and the generic kind 0 request. Tests verify structured requests reach the host kernel and receiveSCE_KERNEL_ERROR_ENOTSUP, while kind 0 is delivered by the host text handler. Structured delivery and console rendering remain unverified. String inputs use guest-safe copying and firmware limits; unreadable pointers returnSCE_KERNEL_ERROR_EFAULTwitherrnopreserved. - conditional debug notification requests (libSceSysUtil) -
sceSysUtilSendTrcCheckNotificationRequestandsceSysUtilSendNpDebugNotificationRequestuse registry key0x0d49671adfd5eb34;sceSysUtilSendWebDebugNotificationRequestuses0x1c0b63438bdc7b40. The PRX sends only when the key reads as1, otherwise returns0. It builds kinds0x65,0x66and0x67, passes flags to the kernel and copies at most 1023 message bytes. Tests cover disabled and enabled settings and unreadable enabled message pointers. The host kernel currently returnsSCE_KERNEL_ERROR_ENOTSUPfor these kinds. - sceSysUtilSendSystemNotificationParamInit (libSceSysUtil) - initializes a 0xa40-byte parameter structure, stores the supplied type, writes type-dependent sentinels for types 0 through 8 and sets tag
0xd59c4b6eat +0xa38. Other type values still receive the tag without special fields, and null is a no-op, matching the supplied PRX. Tests verify type 3's sentinels and tag, null handling and an out-of-range type. - sceSysUtilSendSystemNotification2 (libSceSysUtil) - validates the parameter initializer tag and dispatches types 0 through 13 to recovered request kinds and payload fields. Null, bad-tag and out-of-range parameters return
0x81670000; unreadable host memory returnsSCE_KERNEL_ERROR_EFAULT. Tests cover all type branches. The host kernel returnsSCE_KERNEL_ERROR_ENOTSUPfor structured kinds; type 4 sends kind 5, which the host renders as text. - sceSysUtilSendSystemNotificationWithText (libSceSysUtil) - follows @BunnyFl's firmware 13.42 run under an emulator with
sceKernelSendNotificationRequeststubbed, not on console. Builds a 0xc30-byte request with kind 5 in the first dword,typeat +0xc and the message at +0x2d, cut to 179 characters and empty for null, returning whatsceKernelSendNotificationRequest(0, request, 0xc30, 0)returns. Unit tests cover notification delivery across types (-1, 0, 1, 2, 7) and valid, empty, null, or unreadable message text. An unreadable message pointer returnsSCE_KERNEL_ERROR_EFAULT(0x8002000e) as a host-safety fallback; console invalid-pointer behaviour was not measured. Other request bytes were not reported and are zero. Lacking system UI, text goes to standard error; console display pertypeis unverified.