6.4 KiB
6.4 KiB
libSceSystemService technical debt
Silent stubs
- libSceSystemService -
sceSystemServicePowerTick,sceSystemServiceReportAbnormalTermination,sceSystemServiceDisableMusicPlayer,sceSystemServiceReenableMusicPlayer,sceSystemServiceDisableMediaPlayandsceSystemServiceReenableMediaPlayreturn success and do nothing: the host has no auto power-off timer to reset, no system crash reporter to notify, no system music player to pause or resume and no system media playback to disable. PPSA01521 callssceSystemServiceDisableMediaPlayduring start-up, and its wrappers for both pass no arguments - sceSystemServiceLaunchWebBrowser (libSceSystemService) - AnyPS5 launches no web browser, so the call fails and nothing is shown. RommPS PPSA76677 then tells the player to scan its QR code instead
Unknown function info
- sceSystemServiceLaunchApp (libSceSystemService) - AnyPS5 runs one title and cannot start another, so every call throws without reading its arguments. The (title ID, null-terminated argv, launch parameters) signature follows SharpProspero, whose
AppLauncherProspero Explorer (PPSA99109) and Prospero Multi Tools (PPSA99110) import it through and which passes a 0x20-byte launch context or null; the console's argument checks and errors are unknown - sceSystemServiceLaunchWebBrowser (libSceSystemService) - the console's error for an unavailable web browser is unknown; it returns the kernel's
EOPNOTSUPP(0x8002002D) for any arguments. The (uri, param) signature follows RommPS, which passes a URL and a null param and only tests the result for zero; the param layout and the console's argument checks are unknown - sceSystemServiceParamGetString (libSceSystemService) - the system name (parameter 6) is the fixed
PS5, not the console's name; other parameters and buffers of 1 to 64 bytes throw - sceSystemServiceParamGetInt (libSceSystemService) - console language numbers 0 to 29 follow the PS4 SDK enum in OpenOrbis (21 Arabic). 30 (Ukrainian) is not in it and follows PPSA99505 (Jelly5) and PPSA99002 (ProsperoLight), whose numbers agree with the enum. Not confirmed on a console, and neither title starts on
mainyet. Parameter 400 returns the same number as parameter 1: PPSA01325 asks for 400 first, asks for 1 when that fails, and uses either answer as an index into the same 31 languages; in the PS5 10.01 and 12.60libSceSystemServicemodules parameter 400 reads the same registry value as parameter 1, without parameter 1's mapping of newer language numbers by SDK version, and returns 0x80a10003 when an imported check that is not identified returns 1; the 4.03 module has no parameter 400. Neither the mapping nor that error is modelled, and the parameter's name is not known. WithoutANYPS5_LANGUAGEthe language is English (United States); the date format, time format, time zone, summer time and enter button stay fixed
Functional
- sceSystemServiceLoadExec (libSceSystemService) - besides
"exit", it starts the title's own/app0/eboot.binor another executable under/app0that the relinker converted with--executable, which is looked up beside the running one (/app0/picker/picker.binaspicker.picker.binwith the running executable's extension). The main executable is the oneAPS5_EBOOTnames, which the first call sets to its own path. After the guest shutdown the new executable gets the argument list as its command line, after its own path (CreateProcessWon Windows,execvon Linux), and the old process ends without running host destructors and without waiting, so its direct memory is released before the new one allocates. VLC for PS5 (PPSA85300) relaunches itself with no arguments; RetroArch (PPSA99169) starts its frontend picker with{"", NULL}, and the picker startseboot.binwith{"--ps5-mode=retroarch", NULL}or/app0/es-de/es-de.bin(picker.cpp), so the list holds only arguments. What the console puts inargv[0]is not known; here it is the host path. On Windows the new process is a separate process, so a shell or script that started the title sees it end. Paths outside/app0, unconverted executables and macOS hosts throw - Running application ID (libSceSystemService) -
sceSystemServiceGetAppIdOfRunningBigAppreports 1 as the running title's app ID. The value is AnyPS5's own: the console's shell assigns app IDs and their values are not known here, so other calls that take an app ID must use the same one.sceSystemServiceKillAppwith that ID and the arguments -1, 0 and 0, which SwanStationPS5 passes to close itself and ps5-payload-dev's hbldr passes to close the running game, ends the title as its ownexit(0)would: the guest's shutdown andatexithandlers run and the process exits with status 0. On the console the call returns and the shell then ends the title, and whether those handlers run there is unknown; here there is no shell, so the call does not return. Another app ID or other arguments throw.