No /data directory: homebrew titles that see uid 0 expect the jailbroken /data and stop without it (PS5CEMU-HAR, ProsperoEden) #4643

Closed
opened 2026-10-12 17:27:10 +00:00 by babyhuey · 1 comment
babyhuey commented 2026-10-12 17:27:10 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by babyhuey on 2026-10-12T17:27:10Z.


Homebrew titles see uid 0 under AnyPS5 (PS5SX2 logs already root (euid 0), ProsperoEden uid 0/0). On a console that means a HEN has jailbroken the app and /data is reachable. AnyPS5 creates /download0 at start-up (AppMetadata.cpp) but nothing creates /data, so a guest path under /data resolves to a missing data directory in the run folder. At least two catalog titles treat that as "no jailbreak" and stop before showing anything.

PS5CEMU-HAR (PPSA99360, 3.5.0). It relinks with --trap-sdk-syscall-stubs and needs open PRs for its imports (#3787, #4514, #4467, #4462, #4469). With those on main 2a5eca11 it loads every import, then:

[main] HEN: ok (already root); JIT available (the HEN's); /data unreachable, elevation helper: 9
[main] PS5CEMU-HAR cannot reach /data. Load a HEN with PPSA99360 in its app jailbreak list, or elfldr, then restart PS5CEMU-HAR.
[main] the launcher could not start or stopped drawing

After mkdir data in the run folder, the same build logs /data reachable and continues until the poll: descriptor 8 is not a socket throw that #3649 fixes. It also looks for its files under /data/homebrew/PPSA99360, where the console's homebrew installer puts them.

ProsperoEden (PPSA99008). On plain main 2a5eca11 (with --trap-sdk-syscall-stubs), it opens /data/.lapy_probe_16 (flags 0xA02) in a loop for about 2.5 s, then aborts:

[ProsperoEden diag] +1ms requesting filesystem access
[ProsperoEden diag] +2524ms filesystem access returned status=9, uid 0/0 gid 0/0

With a data directory, it gets access straight away and runs on to sceVideoOutOpen, which is as far as a headless run can go:

[ProsperoEden diag] +2ms filesystem access returned status=0, uid 0/0 gid 0/0

Ruffle (PPSA68091) also logs can't write /data/ruffle/ruffle.log on main, but it carries on without its log.

Windows 11 (WinLibs GCC 15.2) matches for ProsperoEden: status=9 after the probe loop on main, then status=0 with an empty data folder. There it then gets past video out and opens its launcher (egl 1.4 surface 1920x1080, gl 4.6 ... renderer="PS5 AGC"). Linux numbers above are Ubuntu 24.04, GCC 13.

Possible directions: create a data directory at start-up the way /download0 is created, or alias /data to a per-title host folder. If titles' own /data/homebrew/<title id> paths should see their files, that needs an alias to /app0 as well. I haven't looked at which fits the launcher better.

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5817810306 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/4643). Originally posted by [babyhuey](https://github.com/babyhuey) on 2026-10-12T17:27:10Z. --- Homebrew titles see uid 0 under AnyPS5 (PS5SX2 logs `already root (euid 0)`, ProsperoEden `uid 0/0`). On a console that means a HEN has jailbroken the app and `/data` is reachable. AnyPS5 creates `/download0` at start-up (`AppMetadata.cpp`) but nothing creates `/data`, so a guest path under `/data` resolves to a missing `data` directory in the run folder. At least two catalog titles treat that as "no jailbreak" and stop before showing anything. **PS5CEMU-HAR (PPSA99360, 3.5.0).** It relinks with `--trap-sdk-syscall-stubs` and needs open PRs for its imports (#3787, #4514, #4467, #4462, #4469). With those on `main` 2a5eca11 it loads every import, then: ``` [main] HEN: ok (already root); JIT available (the HEN's); /data unreachable, elevation helper: 9 [main] PS5CEMU-HAR cannot reach /data. Load a HEN with PPSA99360 in its app jailbreak list, or elfldr, then restart PS5CEMU-HAR. [main] the launcher could not start or stopped drawing ``` After `mkdir data` in the run folder, the same build logs `/data reachable` and continues until the `poll: descriptor 8 is not a socket` throw that #3649 fixes. It also looks for its files under `/data/homebrew/PPSA99360`, where the console's homebrew installer puts them. **ProsperoEden (PPSA99008).** On plain `main` 2a5eca11 (with `--trap-sdk-syscall-stubs`), it opens `/data/.lapy_probe_16` (flags 0xA02) in a loop for about 2.5 s, then aborts: ``` [ProsperoEden diag] +1ms requesting filesystem access [ProsperoEden diag] +2524ms filesystem access returned status=9, uid 0/0 gid 0/0 ``` With a `data` directory, it gets access straight away and runs on to `sceVideoOutOpen`, which is as far as a headless run can go: ``` [ProsperoEden diag] +2ms filesystem access returned status=0, uid 0/0 gid 0/0 ``` Ruffle (PPSA68091) also logs `can't write /data/ruffle/ruffle.log` on `main`, but it carries on without its log. Windows 11 (WinLibs GCC 15.2) matches for ProsperoEden: `status=9` after the probe loop on `main`, then `status=0` with an empty `data` folder. There it then gets past video out and opens its launcher (`egl 1.4 surface 1920x1080`, `gl 4.6 ... renderer="PS5 AGC"`). Linux numbers above are Ubuntu 24.04, GCC 13. Possible directions: create a `data` directory at start-up the way `/download0` is created, or alias `/data` to a per-title host folder. If titles' own `/data/homebrew/<title id>` paths should see their files, that needs an alias to `/app0` as well. I haven't looked at which fits the launcher better.
David-cmrg commented 2026-10-12 17:33:05 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by David-cmrg on 2026-10-12T17:33:05Z.


I'm working on the first direction: creating data beside download0 at start-up (AppMetadata.cpp), with a guest test, and checking it with ProsperoEden (PPSA99008) on Linux. A PR will follow.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6129331270 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/4643#issuecomment-6129331270). Originally posted by [David-cmrg](https://github.com/David-cmrg) on 2026-10-12T17:33:05Z. --- I'm working on the first direction: creating `data` beside `download0` at start-up (`AppMetadata.cpp`), with a guest test, and checking it with ProsperoEden (PPSA99008) on Linux. A PR will follow.
Sign in to join this conversation.
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#4643
No description provided.