Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
110 commits
Select commit Hold shift + click to select a range
36bf354
Use checked kernel synchronization for network clock availability
RobiiAragon Nov 2, 2026
b16c01c
The geometry hazard fixture releases its program and checks readback …
RobiiAragon Nov 2, 2026
4866c59
Add opt-in native LAN sockets and an LDN IP bridge
RobiiAragon Nov 1, 2026
a17f642
Run notification handoff regression with normal thread ownership
RobiiAragon Nov 1, 2026
86f108b
Declare local network privacy usage for iOS peers
RobiiAragon Nov 1, 2026
f127b25
Make local discovery route fixtures independent of queue coalescing
RobiiAragon Nov 1, 2026
d5bb6b3
The geometry hazard fixture releases its program and checks readback …
RobiiAragon Nov 2, 2026
68e649c
Socket receives prepare the remaining tracked destination before ever…
RobiiAragon Nov 2, 2026
c2b1792
Socket option results prepare their validated guest destination befor…
RobiiAragon Nov 2, 2026
e70f1c8
Implement bounded cancellable IPv4 resolver operations
RobiiAragon Nov 2, 2026
d20190d
Implement bounded cancellable IPv4 resolver operations
RobiiAragon Nov 2, 2026
418429e
Implement strict native Apple client TLS and scoped private PKI
RobiiAragon Nov 2, 2026
c8d26e6
Apply explicit online service policy and NSD to both resolver paths
RobiiAragon Nov 2, 2026
bcdc88f
Expose an explicit credential provider with native account and social…
RobiiAragon Nov 2, 2026
2f5cb73
Refresh optional BCAT calendars before the first guest read
RobiiAragon Nov 2, 2026
fa94ece
Use checked kernel synchronization for network clock availability
RobiiAragon Nov 2, 2026
8df143a
Keep synthetic service fixtures defined on allocation and file failures
RobiiAragon Nov 2, 2026
f67f405
Clarify historical connection evidence and preserve the executable bu…
RobiiAragon Nov 2, 2026
da1e698
Synthetic service fixtures link the tracked-write dispatcher delibera…
RobiiAragon Nov 2, 2026
00ce750
Merge current nxnative main and retain geometry fixture lifetime checks
RobiiAragon Nov 3, 2026
d04db60
Merge current nxnative while preserving local-network transports
RobiiAragon Nov 4, 2026
22f5c6f
Merge refreshed LAN and LDN dependency into cancellable resolver
RobiiAragon Nov 4, 2026
7831908
Merge current nxnative and retain geometry fixture cleanup
RobiiAragon Nov 4, 2026
0e97369
Merge commit '22f5c6f4c9459eb104deb72ae22465b327c01150' into codex/up…
RobiiAragon Nov 4, 2026
6410984
Merge commit '78319086bf7baf331c7bbbc73342a63250b01dee' into codex/up…
RobiiAragon Nov 4, 2026
1c13cb2
Merge commit '36bf354344bb8ed0f06afe78ebccd0b56be4712e' into codex/up…
RobiiAragon Nov 4, 2026
52aa059
Merge commit '75e5ddd8046dc70f740780a14d336dc2f2cf1d7b' into codex/up…
RobiiAragon Nov 4, 2026
bed8796
Refresh local-network contribution onto current nxnative
RobiiAragon Nov 4, 2026
5ee105f
Merge commit 'eae1d0a0290c5cff5f99ec5d177495baede8f031' into codex/up…
RobiiAragon Nov 4, 2026
8da036e
Refresh cancellable resolver on corrected LAN dependency
RobiiAragon Nov 4, 2026
e216f19
Refresh optional online backend from corrected LAN dependency
RobiiAragon Nov 4, 2026
5f9cf0f
Record refreshed cancellable resolver dependency
RobiiAragon Nov 4, 2026
2a32db0
Record refreshed standalone network-clock dependency
RobiiAragon Nov 4, 2026
acaa673
Clarify inherited Python type contracts for pinned CI
RobiiAragon Nov 4, 2026
63fffb9
Port the inherited RED_ONCE key-capacity correction
RobiiAragon Nov 4, 2026
2cf9c00
Merge commit '63fffb940cdb752c7895cd8e3d1548be15b8f85b' into codex/up…
RobiiAragon Nov 4, 2026
8f03fe1
Merge commit '2cf9c007684ef555c10471ba1fc3d3a3700e2022' into codex/up…
RobiiAragon Nov 4, 2026
4c7e43f
Merge current upstream main to resolve inherited typing conflicts
RobiiAragon Nov 4, 2026
b8e2595
Serve gRPC's name lookup and RecvMsg/SendMsg in a network mode
eyasbzour Nov 12, 2026
aa03bca
Set the game's own errno on a failed socket call; RecvMsg/SendMsg edg…
eyasbzour Nov 13, 2026
8aace78
Merge seedds/main into socket-grpc-resolver-msg
eyasbzour Nov 13, 2026
51c46ec
docs/agents/symptoms.md: regenerated for the stale-errno entry (dm/to…
eyasbzour Nov 13, 2026
f1afbb8
host(net): EventFd in a network mode is a slot of the transport's soc…
eyasbzour Nov 10, 2026
8a36c15
Merge remote-tracking branch 'seedds/main' into socket-grpc-resolver-msg
eyasbzour Nov 13, 2026
e3fa880
Merge remote-tracking branch 'seedds/main' into socket-grpc-resolver-msg
eyasbzour Nov 13, 2026
e6d91b7
The merged branch builds its checks: BCAT titles from the build, test…
eyasbzour Nov 13, 2026
ae3a5f0
iOS online: tell the game the adapter the internet route uses, not th…
eyasbzour Nov 13, 2026
7a22856
t_oe_handoff links again: stubs for what main's hle_oe.c now calls
eyasbzour Nov 13, 2026
64bd483
t_nextendo_account: the SDK builds the AsyncContext, as the merged hl…
eyasbzour Nov 13, 2026
23da95d
t_save_sync: the cloud's device is this machine's model, a virtual Ma…
eyasbzour Nov 13, 2026
9b0ae7b
Merge remote-tracking branch 'seedds/main' into socket-grpc-resolver-msg
eyasbzour Nov 13, 2026
67e62a1
Nextendo online: sign-in, signed game patches, service profile and la…
eyasbzour Nov 13, 2026
7f9e873
Nextendo mode: keep a closed UDP port briefly; ICMP reports on UDP re…
eyasbzour Nov 13, 2026
7ab7b40
services.md: the sign-in is MIT with a build-time client ID; Wonder o…
eyasbzour Nov 13, 2026
fc73a5a
Nextendo mode UDP: a bind to a parked port binds the game's new socke…
eyasbzour Nov 13, 2026
72fe137
Nextendo sign-in and account: review fixes
eyasbzour Nov 13, 2026
cd11b50
t_pollwait: a 60 s hang guard, and each PASS line unbuffered
eyasbzour Nov 14, 2026
c1f67b5
Nextendo profile: pin the NEX server's self-signed certificate
eyasbzour Nov 14, 2026
17ad015
Merge remote-tracking branch 'seedds/main' into socket-grpc-resolver-msg
eyasbzour Nov 14, 2026
931bc84
t_mii_sysdata: define the BCAT provider hle_fs.c weak-imports, as t_f…
eyasbzour Nov 14, 2026
de960fd
Merge remote-tracking branch 'seedds/main' into socket-grpc-resolver-msg
eyasbzour Nov 14, 2026
3798ea9
env_switches: DM_EXFAT_DIR, the exFAT folder test_shader_cache.py rea…
eyasbzour Nov 14, 2026
3c7b6af
Merge remote-tracking branch 'seedds/main' into socket-grpc-resolver-msg
eyasbzour Nov 14, 2026
c5188fc
nextendo: ask Nextendo why it refuses online play, and call the accou…
eyasbzour Nov 14, 2026
22bfea8
Merge remote-tracking branch 'seedds/main' into socket-grpc-resolver-msg
eyasbzour Nov 14, 2026
407d44c
nextendo: the account's play time, Mii and activity
eyasbzour Nov 14, 2026
7a51a14
symptoms.md: regenerated with dm/tools/docs_symptoms.py
eyasbzour Nov 14, 2026
eb3bdbf
Merge remote-tracking branch 'seedds/main' into socket-grpc-resolver-msg
eyasbzour Nov 14, 2026
6f7ff68
nextendo: judge and stamp token times by Nextendo's clock
eyasbzour Nov 14, 2026
3df926e
hle_thread: a host thread's native wait before the guest threads exis…
eyasbzour Nov 14, 2026
1dd8f85
Merge remote-tracking branch 'seedds/main' into socket-grpc-resolver-msg
eyasbzour Nov 14, 2026
89034fa
Merge remote-tracking branch 'seedds/main' into socket-grpc-resolver-msg
eyasbzour Nov 14, 2026
e1bb015
t_oe_handoff: stub dm_gfx_quit_begin, which hle_oe.c calls since seed…
eyasbzour Nov 14, 2026
c829a30
Merge seedds main: the offline local UDP socket service beside the ne…
eyasbzour Nov 14, 2026
6b1c401
Merge follow-up: the PR's offline ENETDOWN and endless idle wait, whi…
eyasbzour Nov 14, 2026
3537bfd
hle_net.c: sk_idle's EINVAL is a literal, as it comes before the serv…
eyasbzour Nov 14, 2026
8f4aebb
Merge seedds main: one object per host source, with the pinned libcry…
eyasbzour Nov 14, 2026
4fb1604
Nextendo presence: publish returns once queued; one HTTPS session for…
eyasbzour Nov 14, 2026
6d4b371
net: watch UDP sockets for a peer that goes quiet, and log each host …
eyasbzour Nov 14, 2026
4e7a2c8
Nextendo play time starts with the first credential too, and logs eve…
eyasbzour Nov 14, 2026
1d3da23
Nextendo account API: each route gets the token Nextendo takes there
eyasbzour Nov 14, 2026
93ab527
Nextendo account API: the tokens nextendo.network takes per route, as…
eyasbzour Nov 14, 2026
8cf0713
Nextendo patches: a patch in another format for another game no longe…
eyasbzour Nov 14, 2026
562541f
Nextendo: no play time is sent; Nextendo closed history writes to thi…
eyasbzour Nov 15, 2026
de88256
Nextendo: /api/profile needs the profil scope, which the sign-in does…
eyasbzour Nov 15, 2026
474e288
Merge remote-tracking branch 'seedds/main' into socket-grpc-resolver-msg
eyasbzour Nov 15, 2026
40b286e
Merge fix: takeover entries fill seedds's new alias field
eyasbzour Nov 15, 2026
a3a25c9
Merge remote-tracking branch 'seedds/main' into socket-grpc-resolver-msg
eyasbzour Nov 15, 2026
b6d5748
Merge fix: the prepo Send entry fills the alias field; DM_OBSOLETE ge…
eyasbzour Nov 15, 2026
0a12c85
Merge fix: CI no longer lists the removed t_rt_depth_ro; t_condvar pa…
eyasbzour Nov 15, 2026
6cd1634
Merge remote-tracking branch 'seedds/main' into socket-grpc-resolver-msg
eyasbzour Nov 15, 2026
a5a4c9c
nextendo: the sign-in asks for the profil scope, so /api/profile can …
eyasbzour Nov 15, 2026
47b5e33
Merge fix: t_dlss_scaler passes no bias mask, the argument seedds's 2…
eyasbzour Nov 15, 2026
830a660
Merge seedds main: multi-user local accounts, offline friends presenc…
eyasbzour Nov 19, 2026
ca05f6f
account: the Nextendo account is the active user's, the first user th…
eyasbzour Nov 19, 2026
18fc76d
clang-tidy: check the fixed endpoint URLs, copy a checked birthday, n…
eyasbzour Nov 19, 2026
c3f3039
Merge remote-tracking branch 'seedds/main' into socket-grpc-resolver-msg
eyasbzour Nov 19, 2026
a98c36e
tests: t_server_environment links t_net_off.c, the network transport …
eyasbzour Nov 20, 2026
dd92d4a
t_friends: the wait gate's entry stub links, and the Uid key check ca…
eyasbzour Nov 20, 2026
b6461b1
tests: t_bcat_fs links hle_account_users.c, which hle_fs.c asks wheth…
eyasbzour Nov 20, 2026
c0f8669
Merge seedds/main into socket-grpc-resolver-msg
eyasbzour Nov 21, 2026
12ccf49
Merge seedds/main into socket-grpc-resolver-msg
eyasbzour Nov 23, 2026
e07f78c
packing/nextendo: fetch the pinned CA through the raw API
sofianbll Nov 23, 2026
fbdf44d
packing/nextendo: use the shared ZBIC module loader
sofianbll Nov 23, 2026
206e093
nextendo/sign-in: bound request time and reply size
sofianbll Nov 23, 2026
8a73bad
host/ssl: identify scoped CA verification failures
sofianbll Nov 23, 2026
a51a270
Merge pull request #6 from sofianbll/patch2589/ca-source
eyasbzour Nov 24, 2026
3fe7d89
Merge pull request #7 from sofianbll/patch2589/zbic
eyasbzour Nov 24, 2026
994ec29
Merge pull request #8 from sofianbll/patch2589/signin-deadline
eyasbzour Nov 24, 2026
844cc04
Merge pull request #9 from sofianbll/patch2589/tls-trace
eyasbzour Nov 24, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
nextendo: the sign-in asks for the profil scope, so /api/profile can …
…hand over the account's Mii
  • Loading branch information
eyasbzour committed Nov 15, 2026
commit a5a4c9c1c69042c9405ff14eedc8ffdbc871f484
2 changes: 1 addition & 1 deletion dm/host/hle_nextendo_apple.m
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ uint32_t dm_nextendo_account_username(char out[33]) { @autoreleasepool {
} }
// Host-only API authorization. Never serialized into a game bundle or HLE output. Nextendo's routes differ in the token they take, as
// nextendo.network answered on 2026-11-15 (each route asked with both tokens): the sign-in's OAuth access token for me, friends and presence;
// the nx2 game token for online-status. /api/profile took neither: it needs the profil scope, which the sign-in does not ask for. A history write is
// the nx2 game token for online-status. /api/profile took neither: it needs the profil scope, which the sign-in asks for since 2026-11-15 (a sign-in from before then has to be redone). A history write is
// refused to both (only Nextendo's own emulator may write play time), so the host sends none. The access token goes first where it is taken, the nx2 token
// without one. hle_nextendo_login_apple.m has the strong dm_nextendo_login_access; a host without it has no access token
__attribute__((weak)) NSString *dm_nextendo_login_access(void) { return nil; }
Expand Down
2 changes: 1 addition & 1 deletion dm/host/nextendo_login_apple.inc
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include <unistd.h>

// Not every user of this file needs every definition, hence the unused attributes.
static NSString *const kNxScopes __attribute__((unused)) = @"identity friends game.matchmaking presence";
static NSString *const kNxScopes __attribute__((unused)) = @"identity friends game.matchmaking presence profil"; // profil: /api/profile, the account's Mii (hle_nextendo_social_apple.m)
static NSString *const kNxAuthorize __attribute__((unused)) = @"https://nextendo.network/oauth/authorize";
static NSString *const kNxTokenEndpoint __attribute__((unused)) = @"https://nextendo.network/api/oauth/token";
static NSString *const kNxGameTokenEndpoint __attribute__((unused)) = @"https://nextendo.network/api/nex-token";
Expand Down
4 changes: 2 additions & 2 deletions docs/reference/services.md
Original file line number Diff line number Diff line change
Expand Up @@ -1046,7 +1046,7 @@ Most service calls can be found before they crash, before the first boot or the
### Nextendo's account routes take different tokens

- **Symptom:** in Nextendo mode the log has `[RED] nextendo: /api/me answered HTTP 401` (and `/api/friends answered HTTP 401`) while the game's own online login works. Or, after the first fix below, `[RED] nextendo: /api/profile answered HTTP 401`, `/api/history answered HTTP 401` and `online status could not be asked: Session invalide ou expirée.`, and Nextendo's site keeps showing no play time.
- **Cause:** every account request went with one token. `/api/me` and `/api/friends` answered 401 to the nx2 game token, so all of them were moved to the sign-in's OAuth access token, and the routes added later were never checked against the server. Asked with both tokens on 2026-11-15, nextendo.network answered: `/api/me`, `/api/friends`, `/api/oauth/userinfo` and a `/api/history` read take the access token only; a `/api/history` write (PUT or POST) and `/api/online-status` take the nx2 game token only; `/api/profile` answered 401 to both: the wiki's scope table puts it under the `profil` scope, which this client may ask for (its authorize page accepts it) but the sign-in does not ask for. A renewal does not end the previous access token. So the play time was read and every write refused, and the online status was never asked. Later the same day Nextendo closed history writes to every third-party app: the nx2 token got 403 `Le jeton de jeu d'une application tierce n'ouvre pas cette route`, and its developer wiki says writing the history is not open to OAuth tokens.
- **Cause:** every account request went with one token. `/api/me` and `/api/friends` answered 401 to the nx2 game token, so all of them were moved to the sign-in's OAuth access token, and the routes added later were never checked against the server. Asked with both tokens on 2026-11-15, nextendo.network answered: `/api/me`, `/api/friends`, `/api/oauth/userinfo` and a `/api/history` read take the access token only; a `/api/history` write (PUT or POST) and `/api/online-status` take the nx2 game token only; `/api/profile` answered 401 to both: the wiki's scope table puts it under the `profil` scope, which this client may ask for (its authorize page accepts it). The sign-in asks for it since 2026-11-15; a sign-in made before then still lacks it. A renewal does not end the previous access token. So the play time was read and every write refused, and the online status was never asked. Later the same day Nextendo closed history writes to every third-party app: the nx2 token got 403 `Le jeton de jeu d'une application tierce n'ouvre pas cette route`, and its developer wiki says writing the history is not open to OAuth tokens.
- **Fix:** `hle_nextendo_apple.m` `dm_nextendo_api_bearer(resource)` picks the token per route: the nx2 game token for `online-status`, and for the rest the access token the sign-in's last refresh got (`dm_nextendo_login_access`, renewed after 50 minutes, kept in memory only), the game token only without one. `/api/profile` still answers 401, so the account's Mii is not read; it would need Nextendo to take an OAuth token there.
- **Check:** `make -C dm/host/tests GAME=<id> nextendo-account` (`bearer_tests`); on a device the online-status line is `Nextendo allows online play for this account`.
- **Found on:** Super Mario Bros. Wonder 1.2.1 and Mario Kart 8 Deluxe 4.0.1 on an iPhone, 2026-11-14; the per-route answers from nextendo.network itself on 2026-11-15, with the account's own sign-in and read-only requests plus an empty history write. On a device (Mario Kart 8 Deluxe, controls-14) the online status was allowed and the history write answered 403.
Expand All @@ -1065,7 +1065,7 @@ Most service calls can be found before they crash, before the first boot or the
- **Cause:** the host sent none of it. Nextendo keeps each game's total seconds per account (`/api/history`), but since 2026-11-15 only its own emulator may write them: a third-party app's tokens are refused (see "Nextendo's account routes take different tokens"). It also keeps the account's Mii as the base64 of a Switch StoreData (`/api/profile`) and a line of activity beside the game's name (presence `app_detail`). The presence went with `app_detail` empty.
- **Fix:** at the start of a Nextendo session (`dm_nextendo_session_start` in `hle_nextendo_social_apple.m`, from `loader.c` `nextendo_main` or, when the modules loaded before the launcher set `DM_NETWORK`, from the game's first Nextendo credential in `hle_nextendo_login_apple.m`) the host asks for the account's profile. It sends no play time: a one-minute play-time sender ran from 2026-11-14 until Nextendo closed history writes, and was removed. The account's Mii joins the console's Miis in the game's database (`hle_mii.c` `mii_account_add`) when its data CRC holds and no console Mii has its create ID. Nothing is uploaded: Nextendo's site has no Mii maker, and a profile write replaces the whole profile. `app_detail` is the game's own description: `UserPresence::SetDescription` writes it into the presence's application field, NUL-terminated key and value strings in turn, under `sys_description` (Mario Kart 8 Deluxe's `PresenceAccessor::SearchKey`, `sdk+0x11c950`).
- **Check:** `make -C dm/host/tests GAME=<id> nextendo-api` (profile read; history is refused before any request) and `nextendo-social` (the description from the field, a field that does not end its strings).
- **Found on:** Mario Kart 8 Deluxe 4.0.1 and Super Mario Bros. Wonder 1.2.1 on an iPhone, 2026-11-14. On a device both games showed one minute that did not grow: Mario Kart's run had loaded its modules before the launcher set `DM_NETWORK`, so no session started, and Wonder's history requests were refused (`/api/history answered HTTP 401`, see "Nextendo's account routes take different tokens"). With the game token the write answered 403 on 2026-11-15, and the sender was removed. The account's Mii is not read on a device: `/api/profile` needs the `profil` scope, which the sign-in does not ask for (see "Nextendo's account routes take different tokens").
- **Found on:** Mario Kart 8 Deluxe 4.0.1 and Super Mario Bros. Wonder 1.2.1 on an iPhone, 2026-11-14. On a device both games showed one minute that did not grow: Mario Kart's run had loaded its modules before the launcher set `DM_NETWORK`, so no session started, and Wonder's history requests were refused (`/api/history answered HTTP 401`, see "Nextendo's account routes take different tokens"). With the game token the write answered 403 on 2026-11-15, and the sender was removed. The account's Mii was not read on a device: `/api/profile` needs the `profil` scope, which the sign-in asks for only since 2026-11-15 and which no device run has used yet (see "Nextendo's account routes take different tokens").

### A Nextendo presence update holds the game's thread

Expand Down
Loading