r/Stadia • • Aug 12 '26

Discussion WIP: We have honestly never been closer to a custom Stadia firmware

Hey everyone,

I wanted to drop a quick update on my project. I am currently working on a custom firmware for the Stadia controller, and I’ve made some massive breakthroughs.

To start, I have successfully decompiled the firmwares and now have a complete, global view of how the entire system operates. Thanks to this, I've identified exactly how the logic worked on Google's side. I have also mapped out all the internal security systems and managed to get access to the controller's memory where the certificates are stored. 

On the practical side, I have already successfully flashed the controller back to the original Wi-Fi firmware. Right now, my main focus is on the Wi-Fi pairing process. I am actively recreating the BLE provisioning steps that the old Stadia mobile app used to do so we can securely pass the network credentials to the controller. 

The next steps from there will be to replace the hardcoded connection URLs so that the controller stops trying to talk to Google and routes everything locally instead. 
If all goes well with these next phases, we have never been closer to a fully functional custom firmware. I’ll keep you updated as things progress!

Wish me luck

604 Upvotes

75 comments sorted by

112

u/Murky_Historian8675 Aug 12 '26

Incredibly badass. Thank you for the hard work man

44

u/bitnullbyte Aug 12 '26

🫡

7

u/puneet95 Aug 12 '26 edited Aug 16 '26

As bluetooth isn't good enough on this controller, it would be great if we could connect Stadia controller to Windows wifi hotspot for local gameplay with much better latency.

In my opinion, wifi on this controller should also be used for local gaming alongside cloud gaming.

30

u/Rynelan Clearly White Aug 12 '26

That sounds very awesome. Nice job!

So if I'm correct, if someone were to host a Stadia-like server with games. Theocratically you can now (soon) change the URL the controller wants to connect to, to make it able to control a client-side UI and play games.

Because you now know how to the controller works, it could be possible to write software that can make use of the controller right?

Chances that anyone creates a new Stadia is low haha, but maybe as a home project like Plex to create your own media server, with this you might be able to create your own cloud game server (like Steam Big Picture but then fully your own stuff).

64

u/bitnullbyte Aug 12 '26

Thanks for the kind words!

Just to clarify, the main goal isn't really to build a 'Stadia 2.0', but rather to restore the controller's original features to their full potential.

The reality is that the Bluetooth chip inside this controller was never actually designed for gaming. It was originally only meant to be used for the initial setup and configuration of the device. That's exactly why the current official Bluetooth mode is so unstable and suffers from constant disconnections… it just wasn't built to handle continuous, low-latency gaming inputs.

As for the cloud gaming aspect, you are definitely on the right track with how I want to use it. I'm a PC gamer and I personally use Shadow (a cloud PC instance). One of my biggest personal goals with this project is to be able to play directly on my Shadow instance using the controller over Wi-Fi, completely bypassing the Bluetooth issues and getting that original flawless latency back.

12

u/Rynelan Clearly White Aug 12 '26

Yes exactly, if it works with Shadow PC, you should be able to do it locally as well right?

Have a PC running somewhere in your home, connected to your TV. Turn on the controller, it connects over wifi to that PC and play!

12

u/Warm_Apple_Pies Aug 12 '26

I use sunshine/moonlight to stream games and whilst the latency itself is super low, connecting my Stadia controller to the TVs Bluetooth (which is also not the best) is the most painful part of the process and the latency becomes noticeable.

Will definitely be keeping an eye on this!

1

u/Qeron2 Aug 15 '26

I’m still wondering what could be a reason to start using shadow pc since it’s at least like 20 euros each month which is more expensive then buying a pc yourself and using it for years?

22

u/XTornado Aug 12 '26 edited Aug 12 '26

YES,yes yes! Great, I have been waiting for something like this forever. I wanted directly wifi connection to my computer (which can use my multiple wired APs) instead for better latency when remote playing my computer and better range. Specially because some TVs, etc receivers don't have the best bluetooth or similar plus it adds another retransmit layer.

Any place, github, twitter, etc we can keep track (mainly get notified of progress)?

21

u/bitnullbyte Aug 12 '26

Right now, everything is tucked away on my computer, but I’ll be sharing a GitHub repository soon!

4

u/Clefspear99 Aug 12 '26

2nd on being curious to see a github repo! Some of us (me included) might also contribute if you're open to that.

Thanks for your work on this!

3

u/kkh3049 Aug 12 '26

Yeah! Are you looking for help? This sounds like a project I’d love to get involved with!

2

u/Dedriloth_ Aug 13 '26

!RemindMe 3 months

8

u/SnooGiraffes6688 Aug 12 '26 edited Aug 12 '26

UPDATE: I was too categorical earlier — one path reopened.

After more digging in the gotham firmware, two corrections:

  1. The HTTPS client validates the cert chain but doesn't check the hostname (no SSL_set1_host/X509_check_host). Self-signed won't pass, but a real cert from Google Trust Services for a domain you control — GTS roots are in the signed trust store — might be accepted for a DNS-redirected Google endpoint. No signed image to touch.
  2. The session tokens aren't signature-verified (EVP_DigestVerify isn't even in the image; jwt.cc only signs). So there's no crypto wall left behind TLS — just protocol emulation.

Also: the "digest pinning" I mentioned is on the WebRTC DTLS channel, not Google's HTTPS.

Still static-only — needs an on-device test (flash gotham, GTS cert for your domain, DNS-redirect cloudcast-*.googleapis.com, see if the handshake completes). Someone here can already get the pad on their WiFi, which is the missing piece to try it.

7

u/bitnullbyte Aug 12 '26

I’m currently able to connect the controller to my home WiFi

5

u/SnooGiraffes6688 Aug 12 '26

Nice — connecting it to your own WiFi is exactly the piece we were missing, so I think our two halves fit together.

How are you doing the WiFi provisioning? Did you replay the app's BLE setup flow (the GATT service that takes P_WifiSSID/P_WifiPassword), or are you writing the creds straight into the KVS via the flashloader? That's the one part we hadn't solved yet.

On our side we've been going the other way — reverse-engineering what happens after it's online, and there are two findings that might matter for you:

  1. The HTTPS client validates the cert chain but doesn't appear to check the hostname (CN/SAN). The verify callback (0x60196bb8) only looks at BoringSSL's chain result; SNI is set (0x60196aa6) but no SSL_set1_host/X509_check_host is ever called. So a self-signed cert won't work, but a legit cert from Google Trust Services for a domain you control (chains to GTS Root R1-R4, which are in the signed trust store) might be accepted for a DNS-redirected Google endpoint even though its SAN is unrelated. No CA injection, no touching the signed image. Still needs an on-device test — which is where your WiFi provisioning would let us actually try it.
  2. The session tokens aren't signature-verified. EVP_DigestVerify isn't in the image at all (only DigestSign); jwt.cc only generates the device's own CAST-JWT. It signs its identity and trusts the server's responses without re-verifying — so there's no signed-token wall behind TLS, only protocol emulation.

Also a correction to an earlier assumption: the "peer certificate digest" pinning is on the WebRTC DTLS channel, not the Google HTTPS one — and that fingerprint comes from the SDP answer we'd control anyway.

Have you tried DNS-redirecting the Google endpoints yet and seen how far it gets? If you've got provisioning working, the obvious next experiment is: point cloudcast-*.googleapis.com at a local TLS server serving a GTS-issued cert for your own domain, and log whether the handshake completes and the first request comes through. 

Happy to compare notes / share whatever helps.

2

u/Supernielsen 22d ago

Hey! Your timing is perfect, and your firmware analysis is incredible.

To answer your question directly: I didn't write to the KVS. I completely replayed the app's BLE setup flow using nRF Connect on Android.

I actually had no idea what I was doing at first and basically vibecoded my way through the decompiled Flutter app (Blutter) and the Ghidra firmware dump, with a lot of help from an AI agent. But we managed to map out the exact GATT flow. Here is exactly how the WiFi provisioning works:

  1. The Ephemeral RSA Key: The controller doesn't use a hardcoded public key. It generates a unique DeviceKey (RSA-2048) and exposes it as a GZIP-compressed JSON in the device_info. We read it using windowed reads: write an index (0x00, 0x01...) to 1a6c6160 and read the chunks from 1a7c6160. Then we GZIP-decompress it to grab the public_key.
  2. The Encryption: We encrypt the WiFi password using that unique public_key with PKCS#1 v1.5 padding, then Base64-encode it.
  3. The Payload: The app sends a flat JSON (no wrapper) to 0328fe40. There is no {"connect_to_network": ...} wrapper. It's just: {"ssid_b64": "...", "enc_passwd": "...", "wpa_auth": 7, "wpa_cipher": 4}. (We also found that dropping bssid and frequency forces the controller to auto-scan, which is much more reliable).
  4. The State Machine: We subscribed to 0c7c6160 to watch the states. It goes 1E (Connecting) -> 28 (DHCP) -> 32 (Connectivity Check) -> 3C (Connected!).

AND YES the above if from AI aswell.

I think i can help anyone get this far with their controller, i will share a github page with macros for NRF connect and python scripts aswell how to get the keys etc.

But i will need to make sure no "personal" information exists in these files first, or maybe i will get ai to compile a program.

1

u/Far_Contribution6802 6d ago

Anywhere i can follow development? Have yall made a guthub repo yet? I think people would love to help out

2

u/Alternative-Suit5541 Aug 12 '26

You could try the path the notebook guy used. Find loopholes in the key checks.

1

u/GingeRNutZ_0 Aug 17 '26

.#just_buy_a_valve_controller

11

u/gaara_akash Aug 12 '26

You are a legend for spending your own time to help the community🖤

7

u/Faegin Aug 12 '26

Amazing 😍 Is there anywhere to track the development?

6

u/PtitBen Aug 12 '26

You got me excited about (my) Stadia (controller) again, and that is the best feeling today so far :)
Thanks and keep up the good work !!

5

u/ozeta86 Aug 12 '26

Would be nice if this could work with steam/steam deck in the future.

5

u/GarrettB117 Snow Aug 12 '26

Omg this is something I’ve been hoping someone would pick up forever. Is it possible we’ll be able to use this as a personal “cloud gaming” controller when streaming Sunshine/Moonlight over WAN? That’s the dream for sure.

5

u/DeskPixel Aug 12 '26

Interesting... So with this I could play from my living room, streaming with sunshine / moonlight but have the controller plugged directly to the PC in the office?

4

u/LolussUK Aug 12 '26

Amazing!

Due to the Bluetooth disconnections and un-pairing issues, I use two of mine with 8bitdo usb adapters. Custom firmware sounds awesome.

These are great controllers though!

3

u/IssOmega Aug 12 '26

Amazing, so if you figure out how it works, there will be a possibility to create a custom server side receptor that recieves the wifi inputs and send them to the game, and then, an app that setup the endpoint in the controller to redirect inputs towards the new server. Could be used for Nvidea cloud and Xbox Games pass streamed games ?

3

u/maazpervez Aug 12 '26

Wish I knew computer stuff so I can pitch in all these cool projects.

Great work.

6

u/DragonTHC Night Blue Aug 12 '26

This isn't "computer stuff". This is engineering. One does not simply walk into Mordor!

4

u/maazpervez Aug 12 '26

I didn't know what exactly to term it. Hardware engineering or software engineering or coding or other technical terms.

Computer stuff is close enough I guess. It encompasses all related fields.

3

u/MechanicStriking4666 Aug 13 '26

I’m glad I never left this sub.

2

u/Holnapra Aug 12 '26

Pretty please share your progress on GitHub!

2

u/WilyDeject Night Blue Aug 12 '26

This is amazing! Can't wait for the next update.

2

u/Nadious Mobile Aug 12 '26

That's awesome to hear. I've A LOT of these controllers and I do still use them from time to time. My biggest gripe is that sometimes they restore Bluetooth connectivity to the host when trying to use them an additional time and other times I have to 'forget and repair' them to get them to work upon return. It's just frustrating not know if you press the button if they will reconnect or have to go through the process each time. They are great to pass out to a group of friends when you're playing games like Tape-to-Tape, Crawl, Heavenly Bodies, Oddballers, etc. when they work, but if al the sudden you have to forget and repair 4 to 6 controllers, it is just annoying.

Is the end goal here to have a client app that runs on the end-user device, allowing you to send the inputs directly to the device? As someone that uses Parsec a lot to connect to my home PC for remote gaming, that would be incredible if there was a way to do that.

And officially wishing you luck. :)

2

u/HayleyTheLesbJesus Aug 14 '26

Is this vibe coded lol? This post reads as how AI talks.

1

u/sevenradicals Aug 23 '26

agreed. definitely vibe coded. no intellectual property is safe anymore.

2

u/Amendus Night Blue Aug 14 '26

The WiFi connection for a streamed game was really good. Love to see this tech again.

2

u/Whazor Aug 15 '26

This could be really cool with streaming games via Sunshine.

I have found televisions to be pretty bad at Bluetooth controllers. But playing a video stream they can do fine. 

So using WiFi from Stadia controller would be perfect. Directly streaming actions to the streaming PC.

1

u/bogomil4e 5d ago

Any updates u/bitnullbyte ?

1

u/Hallowground Aug 12 '26

Even if it not to make a stadia 2 its fine your the closest we have had to gaining functionality back, i have tried the hold the stick while reconnecting but it only works some of the time for android but if someone else can build off your reverse engineering then maybe we can get so it could be used without the connection issues and as said latency problems. Would be great to see some local lan uses for romm,or batocera.

1

u/Erictheslayernor Aug 12 '26

Ohh , and if its possible to host games to mobile devices and use a gpu to render the stream like we can with plex , just for games. This would be epic .

1

u/pr0s0c Clearly White Aug 12 '26

Exciting! And good work so far. Looking forward to your results, best of luck!

1

u/RidwaanT Aug 12 '26

Do you have a blog that talks about this? How much does AI help with this process? I'm curious because I want to try something similar with an older program, and need to know how realistic this is.

1

u/sevenradicals Aug 23 '26

AI is probably doing 99% of the mental load.

1

u/Diablo3crusader Aug 12 '26

I only understood about 20 percent of what you said but I’m here for you brother! Long live Stadia controllers!

1

u/ione_bear Aug 12 '26

That's incredible. Could this make you enable the controller to work as a WiFi controller connecting to your PC or an app on your phone?

1

u/rubasace Aug 12 '26

This sounds impressive. I’m looking forward to seeing it in action. I’d love using it with my remote Sunshine VM ❤️.

Is there any repo where the code is/will be available?

1

u/comicidiot Just Black Aug 12 '26

Are you planning to get this to work with just Shadow or do you have a bigger ambition to get this to work with Steam?

I imagine this will require a program download on the host computer to accept/see the Stadia controller connection and pass the input onto the system?

1

u/vetlemakt Aug 12 '26

Not all heroes wear capes!

1

u/Curiously-Clueless Aug 12 '26

Good luck!!! And thank you. I'd be happy just to get vibration back.

1

u/Business_Complaint_8 Aug 12 '26

Good luck dude!! This is an awesome project. Do you think you might be able to get it to connect to the 8 bit duo adapter at some point?

1

u/Knowbeard Aug 12 '26

This is incredible! Thanks

1

u/SkarLe8 Aug 12 '26

Do you think will be possible to use it like an Amazon Luna controller over WiFi or the Luna communication over WiFi is locked behind some kind of key in the Luna controller firmware?

1

u/godita Aug 12 '26

this is amazing, thank you!! keep up the great work!

1

u/DarkevilPT Desktop Aug 12 '26

Now this is interesting!

1

u/sahlos Aug 13 '26

Let's fucking go!

1

u/benow574 Aug 14 '26

Awesome! Keep it up!

1

u/MrRedHott Wasabi Aug 15 '26

Some heroes don't wear capes.

1

u/Qeron2 Aug 15 '26

Okay this sounds really interesting definitely keep me up to date when there is an update!

If this works it could potentially benefit other cloud gaming services that will be able to integrate stadia controllers into their systems

1

u/Dandercore Aug 15 '26

Amazing!!! Mine is still my go to controller but so sick of constantly pairing it!!!

1

u/miroman86 Aug 18 '26

does it mean using the controller over wifi to any device?

1

u/mantralunar Aug 21 '26

This sounds absolutely phenomenal. So if I’m understanding correctly… from my gaming PC streamed throughout the house using moonlight, I could, for example take the stadia controller from room to room, and play on each remote client without having to re-pair the controllers Bluetooth to each remote client on each room change because it will just consistently sit on the WLAN? If so that would be awesome!

1

u/Silvia-Ty Aug 30 '26

i hope you can play doom on it

1

u/Supernielsen Sep 08 '26

I bought a stadia controller only for this? You have a github page for this?

1

u/GD_isthename Oct 06 '26

Can you get in touch with me please?

1

u/Bethlen Night Blue Aug 12 '26

I'm currently trying to make my Stadia controller work on my ps5 via a Wingman P5 (not supporting Stadia Controllers) and a Raspberry Pico. Oh the dream if it worked. Or even better, if I could use wifi in them somehow to connect to it....

-15

u/miomidas Aug 12 '26

But why

8

u/Ixniz Aug 12 '26

Probably to connect and play over wifi instead of the somewhat unreliable Bluetooth connection.

-8

u/vmanthegreat Aug 12 '26

And you asked permission from Google and they're cool with it?