Xbox Cloud Gaming app for PS5 Homebrew
C
README badges and installation; release README.txt; issue template; SECURITY.md
Rafael Abud Ferreira6d7b96c4bb07
diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.ymlnew file mode 100644index 0000000..eda260b--- /dev/null+++ b/.github/ISSUE_TEMPLATE/bug_report.yml@@ -0,0 +1,57 @@+name: Bug report+description: The app doesn't start, crashes, can't sign in, or a game doesn't stream properly.+labels: ["bug"]+body:+ - type: markdown+ attributes:+ value: |+ Thanks for testing! The log is the most useful thing you can send:+ it is at `/data/homebrew/PPSA99810/xcloud.log` on the PS5 (copy it over FTP).++ **Never attach `account.json`**: it gives access to your Microsoft account.+ For security problems, use the private report link in SECURITY.md instead.+ - type: textarea+ id: what+ attributes:+ label: What happened?+ description: What you did, what you expected, and what you saw (error text, black screen, crash, no sound...).+ validations:+ required: true+ - type: input+ id: release+ attributes:+ label: App release+ placeholder: v0.1.0+ validations:+ required: true+ - type: input+ id: firmware+ attributes:+ label: PS5 firmware+ placeholder: e.g. 4.03+ validations:+ required: true+ - type: input+ id: game+ attributes:+ label: Game(s) affected+ placeholder: e.g. Balatro+ - type: dropdown+ id: network+ attributes:+ label: Network+ options:+ - Wired+ - Wi-Fi 5 GHz+ - Wi-Fi 2.4 GHz+ - Other+ validations:+ required: true+ - type: textarea+ id: log+ attributes:+ label: xcloud.log+ description: Paste the full contents of /data/homebrew/PPSA99810/xcloud.log (or attach the file).+ render: text+ validations:+ required: truediff --git a/README.md b/README.mdindex db1601e..4155cfc 100644--- a/README.md+++ b/README.md@@ -1,4 +1,18 @@-# PSBox Cloud Gaming+<p align="center">+ <img src="ps5/sce_sys/icon0.png" alt="PSBox Cloud Gaming" width="160">+</p>++<h1 align="center">PSBox Cloud Gaming</h1>+<p align="center"><em>Xbox Cloud Gaming, running natively on PlayStation 5.</em></p>++<p align="center">+ <a href="https://github.com/RafaelNGP/xbox-cloud-gaming-ps5/releases/latest"><img alt="release" src="https://img.shields.io/github/v/release/RafaelNGP/xbox-cloud-gaming-ps5?color=brightgreen"></a>+ <a href="#installation"><img alt="platform: PS5 homebrew" src="https://img.shields.io/badge/platform-PS5%20homebrew-003791"></a>+ <a href="https://www.xbox.com/xbox-game-pass"><img alt="requires: Game Pass Ultimate" src="https://img.shields.io/badge/requires-Game%20Pass%20Ultimate-107c10"></a>+ <img alt="stream: 1080p60" src="https://img.shields.io/badge/stream-1080p60%20H.264-5c2d91">+ <a href="LICENSE"><img alt="license" src="https://img.shields.io/github/license/RafaelNGP/xbox-cloud-gaming-ps5"></a>+ <a href="https://github.com/RafaelNGP/xbox-cloud-gaming-ps5/issues/new?template=bug_report.yml"><img alt="issues: report a problem" src="https://img.shields.io/badge/issues-report%20a%20problem-ff0000"></a>+</p>A native Xbox Cloud Gaming (xCloud) client for jailbroken PS5 consoles. Sign inwith your Microsoft account, browse the cloud catalog in a UI modeled on@@ -17,6 +31,23 @@ Requires a homebrew-enabled PS5 that can run directory-style apps (forexample through ShadowMountPlus) and a subscription that includes cloudgaming.+## Installation++No building needed: download `PPSA99810.zip` from the+[latest release](https://github.com/RafaelNGP/xbox-cloud-gaming-ps5/releases/latest).++1. Extract the zip and copy the `PPSA99810` folder, as a whole, to+ `/data/homebrew/` on the PS5 (for example over FTP).+2. Wait for the loader (e.g. ShadowMountPlus) to add the **PSBox Cloud Gaming**+ icon to the Home screen, then launch it.+3. Sign in: open <https://www.microsoft.com/link> on your phone or computer+ (or scan the QR code) and enter the code shown on the TV.++To update, close the app and copy the new folder over the old one; your+sign-in is kept. The sign-in lives in `PPSA99810/account.json`: never share+that file. More details, controls and troubleshooting are in the+`README.txt` inside the folder.+## BuildingClone with the submodules (Mbed TLS, libdatachannel, FFmpeg):@@ -58,27 +89,6 @@ tools/ps5/link.sh build-ps5 # -> build-ps5/eboot.bintools/ps5/package.sh build-ps5 # -> build-ps5/pkg/PPSA99810/```-## Release--1. Build the PS5 app as above. `tools/ps5/package.sh` produces the complete- app folder `build-ps5/pkg/PPSA99810/` (eboot, `sce_sys`, `sce_module`,- assets and the license texts under `licenses/`). It contains no account- data.-2. Tag the release and attach a zip of that folder:-- ```bash- git tag v0.1.0 && git push origin v0.1.0- (cd build-ps5/pkg && zip -r ../PSBox-Cloud-Gaming-v0.1.0.zip PPSA99810)- ```--3. To install, copy the whole `PPSA99810` folder to `/data/homebrew/` on the- console (or use `PS5_HOST=<console-ip> tools/ps5/deploy.sh`, which uploads- it over FTP) and launch it from the home screen once the loader has- registered it.--The binary is GPL-licensed, so every release must point to the source it was-built from: the tagged commit of this repository with its submodules.-## LicenseGPL-3.0-or-later; see `LICENSE`. The PS5 binary statically links the PS5 appdiff --git a/SECURITY.md b/SECURITY.mdnew file mode 100644index 0000000..4b9e1a7--- /dev/null+++ b/SECURITY.md@@ -0,0 +1,30 @@+# Security policy++## Reporting a vulnerability++Please **don't open a public issue** for security problems. Report them+privately through GitHub instead:+<https://github.com/RafaelNGP/xbox-cloud-gaming-ps5/security/advisories/new>.++Include what you found, the release (`v0.1.0`, …) or commit, and how to+reproduce it. I'll reply as soon as I can and credit you in the fix unless you'd+rather stay anonymous.++## Your account++The app stores its Microsoft sign-in (a refresh token) in+`/data/homebrew/PPSA99810/account.json` on the console. Treat that file like a+password: never share it or attach it to an issue. If it may have leaked, sign+out of all sessions at <https://account.microsoft.com/security> and sign in on+the console again. The log (`xcloud.log`) contains no passwords or tokens.++## Scope++In scope: this repository's code (sign-in, streaming, UI, build and packaging+scripts) and the release zips published here.++Out of scope:++- Microsoft's services (Xbox Live, xCloud) and their APIs;+- the PS5 homebrew environment, the payload SDK and PS5_Vulkan tooling;+- third-party libraries (report those upstream; see `THIRD_PARTY_NOTICES.md`).diff --git a/ps5/release/README.txt b/ps5/release/README.txtnew file mode 100644index 0000000..68e3fc3--- /dev/null+++ b/ps5/release/README.txt@@ -0,0 +1,68 @@+PSBox Cloud Gaming - version @VERSION@+======================================++Native Xbox Cloud Gaming (xCloud) client for jailbroken PS5 consoles:+browse the cloud catalog and stream games at 1080p60 with sound, using+the DualSense as an Xbox controller.++You need a Microsoft account with a subscription that includes cloud+gaming (Game Pass Ultimate).++Unofficial project, not affiliated with, endorsed or sponsored by+Microsoft or Sony.+++Requirements on the PS5+-----------------------+- A homebrew environment that runs directory-style apps from+ /data/homebrew (e.g. kstuff with ShadowMountPlus).+- A way to copy files to the PS5 (e.g. an FTP server).+- Internet access; a wired connection or 5 GHz Wi-Fi works best.+++Installation+------------+1. Copy the @TITLE_ID@ folder (the one holding this file), as a whole, to+ /data/homebrew/ on the PS5.++2. Wait for the loader (e.g. ShadowMountPlus) to add the+ "PSBox Cloud Gaming" icon to the Home screen, then launch it.++Updating: close the app and copy the new @TITLE_ID@ folder over the old+one. Your sign-in is kept.+++First launch+------------+The app shows a code. On your phone or computer, open+https://www.microsoft.com/link (or scan the QR code on screen) and enter+that code. Your password is never typed on the console.++The sign-in is saved in /data/homebrew/@TITLE_ID@/account.json. That+file gives access to your Microsoft account: never share it, and never+attach it to a bug report. "Sign out" (OPTIONS on the home screen)+deletes it.+++Controls+--------+Menus: D-pad or left stick to move, Cross to select, Circle to go back,+ OPTIONS to sign out.+In game: the DualSense acts as an Xbox controller+ (Cross = A, Circle = B, Square = X, Triangle = Y,+ OPTIONS = Menu, TOUCHPAD = View).+ Hold OPTIONS + TOUCHPAD for one second to leave the game.+++Problems+--------+The app writes a log to /data/homebrew/@TITLE_ID@/xcloud.log (no+passwords or tokens in it). Attach it when you report a problem:+https://github.com/RafaelNGP/xbox-cloud-gaming-ps5/issues+++License+-------+GPL-3.0-or-later: see LICENSE. The licenses of the bundled components are+in licenses/ (see licenses/THIRD_PARTY_NOTICES.md). Source code:+https://github.com/RafaelNGP/xbox-cloud-gaming-ps5 (tag @VERSION@)diff --git a/tools/ps5/package.sh b/tools/ps5/package.shindex 2227122..f3b4daf 100755--- a/tools/ps5/package.sh+++ b/tools/ps5/package.sh@@ -25,9 +25,13 @@ cp "$root/ps5/sce_sys/icon0.png" "$app/sce_sys/icon0.png"cp "$vk/runtime/libc.prx" "$app/sce_module/libc.prx"cp -r "$root/assets/." "$app/assets/"-# License texts for everything in the package (see THIRD_PARTY_NOTICES.md).+# README.txt for users, LICENSE, and the license texts of everything in the+# package (see THIRD_PARTY_NOTICES.md). XC_VERSION names the release.+version=${XC_VERSION:-$(git -C "$root" describe --tags --always 2>/dev/null || echo dev)}+sed -e "s/@VERSION@/$version/g" -e "s/@TITLE_ID@/$title/g" "$root/ps5/release/README.txt" > "$app/README.txt"+cp "$root/LICENSE" "$app/LICENSE"mkdir -p "$app/licenses"-cp "$root/LICENSE" "$root/THIRD_PARTY_NOTICES.md" "$app/licenses/"+cp "$root/THIRD_PARTY_NOTICES.md" "$app/licenses/"cp "$root/assets/fonts/OFL.txt" "$app/licenses/Inter-OFL.txt"cp "$root/deps/mbedtls/LICENSE" "$app/licenses/mbedtls-LICENSE.txt"cp "$root/deps/libdatachannel/LICENSE" "$app/licenses/libdatachannel-MPL-2.0.txt"