How to install the official Android TV SDK on sideloaded devices

Updated 2026-10-31

How to install the official Android TV SDK on sideloaded devices for development

Why developers choose sideloading over the Play Store

Many Android TV creators build custom interfaces and games but do not want the Play Store limits that hit sideloaded builds. Sideloading lets you drop a signed APK onto an x86 or ARM device that runs ChromeOS-like TV UI without requiring Google Play access. The official Android TV SDK ships as a separate developer package, and the cleanest way to reach it is on devices that have already been rooted or running a custom ROM with ADB enabled.

Sideloading carries a real cost. You lose automatic updates from the store, and the TV platform may reject unsigned packages if the signature verification fails. The upside is full control: version upgrades, custom input handlers, and building against the exact API level the device will use at runtime.

Preparing the developer toolkit before touching the TV

The first thing to verify is whether the target device accepts sideloaded packages. On most modern Google TV boxes and Chromecast units, ADB debugging must be enabled in Settings > System > Developer options. If the device has no developer menu, you need a USB OTG cable or a specific hardware key combination to enable flashing mode.

Download the official Android TV SDK from the developer.android.com portal on a machine that can run the Windows or Linux build tools. The package bundles the SDK toolchain, example projects, and the reference builds for the N and J releases. Unpack it somewhere you keep your source tree—do not clutter the root of your home folder.

Install required host tools: the Android SDK command‑line platform tools (adb, fastboot), Java Development Kit 17 or newer, and the Android NDK matching the API level you intend to target. Verify everything with adb version and sdkmanager --version.

Loading the SDK and building the first project

On the host PC, navigate into the SDK directory and run ./build_sdk.sh or the equivalent shell script for your OS. This stage compiles the platform‑specific libraries and creates a local sdk folder. Once the build finishes, point ndk-build at a sample project such as packages/android_tvsamples/1.0.0 to confirm the toolchain is functional.

When the examples compile, run adb install MyTvApp.apk and select the TV to pair with your PC. The app must declare the correct android.tv namespace and a valid minSdkVersion for the target release. Test launching it via Settings > Apps > My TV by pointing the remote to the TV’s on‑screen pointer. If the app starts but crashes on launch, check logcat with adb logcat -s android.tv.* and compare the stack trace against the logs provided in the SDK samples section.

Writing, testing, and deploying your own TV build

With the app running, switch to your custom code. Implement the TV‑specific surface format (SurfaceFlinger for rendering, DPI 384 on 65 inch sets), handle the remote D-pad mapping, and add a proper launchConfiguration that points to the entry activity. Build with ndk assemble and push the new APK the same way.

If a build fails, common causes are mismatched ABIs (make sure your target is arm64-v8a on a 64‑bit TV), or missing permissions in the manifest. The SDK includes a reference AndroidManifest.xml for each sample; copy it and adapt the usesPackage entries to your own app name.

When the build succeeds and the package installs cleanly, run adb uninstall followed by adb install to cycle the binary fresh. That pattern catches regressions introduced by input handling changes faster than a hot restart.

Trade‑offs you should weigh before going live

For routine development, the sideload path remains the only practical way to work with the official Android TV SDK when you cannot or do not want to ship through the store. It also works on Chromecast with Google TV in cast‑only mode, given the right HDMI‑to‑PC adapter. For production builds intended to be distributed, packaging as an enterprise‑signed APK and using the device as a distribution channel is the safer alternative.

Quick checklist before you ship the TV build

Following these steps gives you a reliable installation pipeline from the official Android TV SDK to a functioning sideloaded app on any compatible TV. Once the workflow is set, adding new features or porting to a different API level becomes a matter of recompiling, reloading, and retesting on the same box.

Related reading: more Android TV notes

Read next