New Option for Playing Xbox Cloud Gaming on Google TV

Update Nov 11, 2022: I hadn't received the update from Android 11 to Android 12 when I first made this. Performance tanked significantly after the update. I produced a new apk last night with no improvement. Sorry. I tried. :/

The GitHub repo is public and any developer is welcome to clone/fork if they want to try it from another angle.

Update Nov 10, 2022: I thought I'd built this for Android 12, but it may in fact have been Android 11. My Chromecast's UI changed significantly. I'll be producing a new .apk tonight.

---

I've tried a few options for getting Xbox Cloud Gaming (xCloud) working on my Chromecast with Google TV (CCWGTV). Anyone who's been following this topic knows that results have varied.

Someone recently posted a solution leveraging the Progressive Web App (PWA). My solution attempts to simplify that one by providing a prebuilt .apk of the PWA. Enjoy!

My GitHub repo is here: https://github.com/djbreen7/xbox-cloud-gaming-android. The instructions below are copied from the README with some minor modifications, because I also don't like links on reddit that say "download this thing" without making it obvious where it is :).

Installation

You will need prior knowledge of sideloading apps on CCWGTV. There are several options. Google "Sideloading apps on Chromecast with Google TV" and read some of the articles in the results.

Pre-requisites

  • Connect bluetooth mouse to your CCWGTV
  • Enable Developer Options
  • You may also need to enable "unknown sources" depending on the sideloading method you choose

Steps

  1. Download and install/sideload Google Chrome: Fast & Secure 107.0.5304.91 (arm-v7a) on your CCWGTV:APK Mirror: https://www.apkmirror.com/apk/google-inc/chrome/chrome-107-0-5304-91-release/google-chrome-fast-secure-107-0-5304-91-5-android-apk-download/download/?key=e27e2cd57d80b879bc4be28ee3c9785f129bfa05&forcebaseapk=trueNote: You may need to uninstall Chrome from your CCWGTV if it's already installed.
  2. Download the .zip file from the most recent release:https://github.com/djbreen7/xbox-cloud-gaming-android/releases
  3. Extract the .zip file
  4. Install/sideload the extracted .apk on your CCWGTV

First Run

  1. Use your favorite sideload launcher to run the app. It will be installed as "Cloud Gaming"a. Alternatively, you can launch the app without a sideload launcher by going to Settings > Apps > See all apps > Cloud Gaming > Open
  2. Log in as you normally would on xbox.com/playAt the time of writing, a mouse is required to select the login and password inputs

How it Works

xbox.com/play is a Progressive Web App (PWA). There's a tool that GoogleChromeLabs built called bubblewrap that will take a PWA and generate an .apk from it.

The output .apk works, but fails to verify asset links. This isn't a big deal. It just means that the app isn't listed in the /.wellknown/assetlinks.json. The downside is that the app will run with an address bar in the top at this point (don't worry, keep reading).

Fortunately, the address bar has a menu to the right with the "Add to Home Screen" button (it's just Chrome) which installs another instance of the PWA that passes the asset links verification and runs like a normal app without the address bar.

Finally, I produced the .apk in the repo by using an apk extractor on the verified instance and uploaded it to my GitHub repo.