How to Set Up a Private Package Repository for Sideloading Apps

Updated 2026-10-28

Setting up a private package repository for sideloading Android TV apps securely

Why install a private repository instead of sideloading from untrusted sources?

The Android TV ecosystem has no built-in app store alternative, so when you need an APK that isn’t on Google Play—custom utilities, legacy Netflix, or regional Netflix—that don’t recommend—you have to sideload it. A private package repository gives you a controlled, auditable way to do that. It keeps installations tidy, avoids the temptation to pull shady APKs from random chat threads, and lets you revoke access to a single distribution channel later.

Creating a private package repository

You’ll need a place to host the repository. The simplest option for Android TV is a self-hosted HTTP(S) server running on a machine that can reach your Chromecast-enabled TV over the local network. What you cannot do is run a custom repo inside a locked-down Smart TV partition; the repository and the device are separate boundaries.

Pick a hosting approach based on your trust level and network setup:

The repository itself is just a directory containing .deb packages or, more commonly for Android, signed .rpm/.tar.zst builds wrapped in a repo-manager style layout. In practice, most Android TV communities use a simple tarball of OBB-style resources plus a small config file pointing to the signed binary. Keep the feed format straightforward: one root URL, a list of repositories, and metadata including version and SHA-256 checksums.

Configuring CleanYourTV on your Android TV

CleanYourTV is a lightweight package manager for Android TV that supports both Google Play and private repositories. Adding a new source requires the right permissions and a few manual steps:

  1. Install and open CleanYourTV from the official Google Play Store.
  2. Navigate to Settings → Repositories → Add repository.
  3. Enter the base URL of your private repository (e.g., http://192.168.1.42:8080/repo).
  4. Accept the security prompt that allows the app to resolve local packages. This step is required because CleanYourTV needs permission to install apps outside the official store.

After saving, re-scan. You’ll see all packages listed from the private repo alongside the standard Play Store entries. Always verify the checksum or signature of each APK before installing—trusting a signed build doesn’t eliminate risk if the signer isn’t verified.

Security trade-offs you have to accept

A private repository removes the biggest risk surface: no Play Protect pre-verification. Because you’re bypassing Play Store checks, you must take on the verification burden yourself:

If the private repo is hosted on the same LAN as your TV, an attacker on your network could swap a package, so firewall rules restricting traffic to the repo’s IP are essential. Also remember that sideloading apps on Android TV means they appear in the system-wide app list, so uninstalling or disabling them matters for both cleanliness and security.

Best practices to keep your TV safe while sideloading

With a private repository and CleanYourTV properly configured, you get a usable app library on Android TV without exposing your set-top box to the wilder corners of the APK jungle. Treat each sideload as a small project, and your smart TV stays both fun and secure.

Related reading: more Android TV notes

Read next