How to Install and Sideload Apps via Cast M LMT Scripts on Android TV

Updated 2026-10-30

Using Cast M L T scripts to launch sideloaded apps on Android TV

What Are Cast M LMT Scripts and Why They Matter

Android TV owners often need custom apps that do not exist on the Google Play Store, or they want to flash firmware builds that include sideloaded packages. The Cast M LMT (mobile-to-TV) script mechanism lets you send a small structured payload over the Chromecast-style cast channel to an Android TV box, which then unpacks and installs the requested APK without requiring UI interaction. This bypasses the Play Store’s review and approval process, something that matters for media, parental-control, or utility apps that have no public store listing.

The trick is that the script itself must come from a trusted source—usually a local HTTP endpoint or a Google Drive share that the device can fetch over the local network. When you cast the script, the TV receives it and executes the installation silently, preserving system integrity by running the script from a controlled, signed package. For users who flash custom ROMs or development builds on their Fire TV, Pixel TV, or Samsung TV’s Tizen/WebOS-like custom layer over Android TV, Cast M LMT is the standard path to getting sideloaded apps onto the home screen instantly.

Setting Up the Host and Connecting the TV

Before casting, ensure the TV has a working network stack with IP-based discovery enabled. On your phone or tablet, verify that the Chromecast/cast feature is active and that the TV appears as a device on the same Wi‑Fi LAN.

  1. On your PC, upload a signed Cast M LMT script file (typically a .json or .mlt bundle) to a publicly reachable HTTP server on the same subnet as the TV. The file should contain the app package (.apk or a compressed payload) and an installation manifest.
  2. Confirm that the TV responds to a cast request by opening Chrome on the browser and navigating to chrome://cast from the TV’s built-in cast menu; you should see your PC listed.
  3. From the phone, tap Projector > Connect to a TV, then select your device from the list. The connection handshake takes roughly 10–15 seconds.

Once the link is established, press the Home button on the remote and navigate to Cast M LMT in the quick launcher menu (if present), or trigger the script from the phone’s app drawer using the Cast M command in the TV’s settings pane. The exact wording varies by firmware version, but the typical invocation is cast-m lmt <payload-url>.

Step-by-Step: Launching a Sideloaded App with a Script

The script contains a manifest that lists the target application, its version, required permissions, and any pre-install flags. The TV runs the script in a sandboxed execution environment that logs errors to logcat, so the first thing to check after a failed attempt is the console output for LMT entries.

When you run cast-m lmt https://example.com/scripts/install-apk.json, the following sequence occurs:

A practical test procedure looks like this:

Common Pitfalls, Trade-Offs, and Best Practices

Sideloading via scripts is powerful, but it introduces risks that you should weigh carefully. The main trade-off is convenience versus exposure: the script method avoids the Play Store entirely, but it also means you trust the URL you pass to the TV. Always serve the script file from a secure HTTP site with TLS, and verify the SHA-256 checksum of the included APK after transfer.

Two recurring issues appear across many devices:

Best practices for a smooth workflow:

Verifying the Result and Uninstalling

After a successful run, pull up the TV’s Settings > Apps > Managed Apps screen and look for the new entry. Tap it and check that the “Version” line matches the version in the script’s manifest. If the install reported success but the app does not appear, try clearing the cache via Settings > System > Cache > Cleared, then reopen the Cast M LMT launcher and re-run the script URL once more.

To remove a sideloaded app, simply go to Settings > Apps > [app name] > Uninstall. The uninstaller cleans up the package data and associated sideload hooks. Because the script method leaves behind a small metadata folder in /data/lmt/, consider running a rm -rf /data/lmt/* (root access) or using the built-in cast-m lmt remove <script-id> command if the TV’s script runtime supports unregistering prior installations.

Following these steps gives you a repeatable, auditable way to push custom utilities and apps to Android TV devices without relying on the Google Play Store. With the right network setup and a tested script, Cast M LMT becomes a first-class deployment tool for anyone maintaining a home entertainment box.

Related reading: more Android TV notes

Read next