Raspberry Pi 5 as an Android TV box at the TV – Android TV interface with app grid on a large screen

Install Android TV on Raspberry Pi – Complete Setup Guide

You can turn a Raspberry Pi 4 or 5 into an Android TV device, complete with the TV interface, remote control support and, if you want it, the Google Play Store. This guide takes you from downloading the image all the way to a working remote.

In short

Android TV runs on the Raspberry Pi 4 and 5 using KonstaKANG’s LineageOS port: download the image, flash it to an A2 SD card with Raspberry Pi Imager, boot – and optionally add the Google Play Store via MindTheGapps.

  • You need: Raspberry Pi 4 (min. 2 GB RAM, 4 GB recommended) or Pi 5, a microSD card (min. 32 GB, A2 recommended), an HDMI cable, and a USB keyboard & mouse for initial setup.
  • Result: a fully-featured Android TV with the Play Store, streaming apps, and a polished TV interface, controlled by your TV remote (HDMI-CEC), a Bluetooth remote, or the smartphone app.
  • Good to know first: Netflix only works to a limited extent, and Chromecast doesn’t work at all – the Raspberry Pi isn’t a certified Android TV device.

Quick Start: Android TV on the Raspberry Pi

Install Android TV (KonstaKANG’s LineageOS) on the Raspberry Pi.

  1. Download the image

    Get LineageOS ATV for your Pi model from konstakang.com (ZIP file, not the OTA package).

  2. Flash the image

    Write it to a fast A2 microSD with Raspberry Pi Imager (“Use custom”) – choose no customizations.

  3. Boot and set up

    Insert the SD card, connect HDMI to the TV, boot – the Android TV wizard guides you through language, Wi-Fi, and time.

  4. Optional: add the Play Store

    Flash the MindTheGapps ZIP from a USB drive via TWRP Recovery, then perform a factory reset.

  5. Choose a remote

    Your TV remote works instantly via HDMI-CEC – or pair a Bluetooth remote or use the Google TV app.

What is LineageOS Android TV for the Raspberry Pi?

The project comes from developer KonstaKANG, who regularly releases Android TV images for the Raspberry Pi. The Pi-specific parts come from his Raspberry Vanilla project; the builds are unofficial and licensed for non-commercial use only.

The system supports hardware-accelerated graphics (OpenGL ES, Vulkan), H.265 video decoding, Bluetooth, Wi-Fi, and much more. Google Apps (Play Store, YouTube, etc.) are not pre-installed but can be added afterward using the MindTheGapps package.

Feature Raspberry Pi 4 Raspberry Pi 5
Android Version Android 16 (LineageOS 23.2) Android 17 (LineageOS 24.0)
RAM (Minimum) 2 GB 2 GB
GPU VideoCore VI (V3D, OpenGL, Vulkan) VideoCore VII (V3D, OpenGL, Vulkan)
H.265 Hardware Decode ✓ ✓
HDMI-CEC ✓ ✓
Bluetooth 5.0 ✓ ✓
GPIO / I2C / SPI ✓ ✓
GApps (Play Store) via MindTheGapps via MindTheGapps

What You Need

You’ll need the following hardware for this project:

  • Raspberry Pi 4 (min. 2 GB RAM) – we recommend the 4 GB version: → Amazon*
  • Raspberry Pi 5 (4 GB) – faster and slightly more expensive: → Amazon*
  • MicroSD card (min. 32 GB, A2 recommended – the image is 15.5 GB) – e.g. SanDisk Extreme PRO 64 GB: → Amazon*
  • HDMI cable and a TV or monitor
  • USB keyboard & mouse for initial setup (optional afterward)
  • Optional: Bluetooth remote control for comfortable TV navigation: → Amazon*
  • Optional: Mini keyboard with touchpad as a universal remote: → Amazon*
Links marked with * are affiliate links, which makes them advertising. If you buy through one, I earn a commission at no extra cost to you. As an Amazon Associate I earn from qualifying purchases. Learn more

Software:

  • KonstaKANG’s LineageOS ATV image for your Pi model (links in Step 1)
  • Raspberry Pi Imager (for flashing the image)
  • Optional: the matching MindTheGapps package for the Google Play Store (see Step 1)

Step 1: Download the Image

Download the appropriate image from the KonstaKANG website. Choose the right page for your Pi model:

The download link is at the top of the page, right below the introduction: the file ending in -rpi5-atv.zip or -rpi4-atv.zip. Don’t confuse it with the file below it ending in -atv-ota.zip – that’s only the update package. Download the ZIP file and note where you saved it.

If you plan to use the Google Play Store, also download the GApps package now. Use the link KonstaKANG gives on the same page in the FAQ under “How to install Google apps?” – it always points to the package that matches the build. For the Pi 5 it’s MindTheGapps-17.0.0-arm64-ATV-full-<date>.zip, for the Pi 4 MindTheGapps-16.0.0-arm64-ATV-full-<date>.zip – the version number matches the build’s Android version. Each also comes in a -ATV-minimal- variant; if in doubt, go with full. Don’t unzip the file – you’ll need it in Step 4.

Watch out for the right variant: the file name must contain -ATV-. The package without it (e.g. MindTheGapps-17.0.0-arm64-<date>.zip) is meant for phones and tablets. Its Play Store doesn’t match the Android TV build and then reports errors such as “This version of the app isn’t compatible with your device”.

Step 2: Flash the Image to an SD Card

Launch the Raspberry Pi Imager, available for free from the Raspberry Pi website.

  1. Under “Device”, select your Raspberry Pi model
  2. Under “OS”, scroll to the bottom → “Use custom” → select the downloaded ZIP file (no need to unzip it)
  3. Under “Storage”, select your SD card
  4. If the Imager then offers customisation, click “Skip customisation” – Android TV has its own setup wizard
  5. Start flashing and wait until Imager says it’s finished

Alternatively, Balena Etcher works just as well: select the ZIP file directly, there’s no need to unzip it.

Step 3: Boot the Raspberry Pi and Set Up Android TV

Insert the SD card into your Raspberry Pi, connect it to your TV via HDMI, and plug in a USB keyboard and mouse. Then connect the power supply.

On the first boot, the Android TV setup wizard appears. You’ll be guided through:

  1. Select language → choose your preferred language
  2. Wi-Fi or Ethernet setup
  3. Date and time configuration
  4. Without GApps the wizard doesn’t ask for a Google account yet – sign-in follows after Step 4
  5. Complete setup and reach the Android TV home screen

The first boot takes longer than later ones. Wait while the boot animation is running.

Step 4: Install Google Play Store (GApps)

LineageOS doesn’t ship with Google services. You add the Play Store and the rest as a GApps package through the recovery system.

Prepare the reboot into recovery: KonstaKANG documents these menu paths for the current build:

  1. Enable Settings → System → Buttons → Advanced restart
  2. Then Settings → System → Power and Energy → Restart → Recovery boots into TWRP recovery

If you can’t find these menu items, there are two other ways: via ADB (see Step 7) with adb reboot recovery, or connect GPIO21 (pin 40) to GND (pin 39) while powering on and hold it until TWRP appears. Remove the connection afterwards – as long as GPIO21 is grounded, the Pi always boots into recovery. TWRP needs an HDMI display and a mouse.

Flash GApps via Recovery:

  1. Copy the GApps ZIP from Step 1 to a USB drive (formatted as FAT32)
  2. Plug the USB drive into the Raspberry Pi
  3. Boot into TWRP recovery as described above
  4. In TWRP: Install → Select Storage → USB drive, then select the GApps ZIP → Swipe to confirm Flash
  5. Right after that, still in the same TWRP session: Wipe → Factory Reset (important!)
  6. Only now Reboot System

Keep the order: the factory reset comes after the GApps flash, not before. Do not boot the system between the GApps flash and the factory reset – both happen in one TWRP session. The reset also wipes the initial setup from Step 3, so the setup wizard runs once more afterwards.

On the next boot, the Google setup wizard appears. Sign in with your Google account – you now have access to the Play Store and all Google services.

Note: Since the Raspberry Pi is not an officially certified Android TV device, Chromecast is not available. Copy-protected streams also need Widevine L3, which isn’t preinstalled: KonstaKANG offers a separate ZIP for it in the FAQ under “How to install Widevine L3?”, flashed via TWRP the same way. Grab it from the page for your build, as it’s tied to that Android version. Even so, the Play Store usually doesn’t offer Netflix on uncertified devices.

Step 5: Set Up a Remote Control

Android TV is built to be used with a remote. There are four ways to do that:

Option A: TV Remote via HDMI-CEC (easiest option)

HDMI-CEC is built directly into the kernel and works without any configuration. Connect your Raspberry Pi to the TV via HDMI, and your regular TV remote controls Android TV immediately – arrow keys, OK, Back, Home, and volume all work right away.

Requirement: Your TV must support HDMI-CEC (almost all modern TVs do). Some manufacturers use different names for this feature: Samsung calls it Anynet+, LG SimpLink, Sony Bravia Sync.

Option B: Pair a Bluetooth Remote

A Bluetooth remote with air mouse such as the BOXPUT BPR1S (→ Amazon*) is the most convenient option. Pairing works just like any Bluetooth device:

  1. Go to Settings → Remotes & Accessories → Pair accessory
  2. Put the remote into pairing mode (usually a long press on the Home button)
  3. Select the device from the list (the BPR1S shows up as “BOXPUT | BPR1S”) and confirm

Don’t count on the voice button: BOXPUT says voice input only works on Google-certified Android TV devices, and the Pi isn’t one, even with GApps. The buttons and air mouse work regardless.

Option C: Set Up an IR Remote

The Raspberry Pi has no built-in infrared receiver. For a classic IR remote you need an external IR receiver module on the GPIO pins, such as a TSOP4838. Then enable IR support in the system settings:

  1. Go to Settings → System → Raspberry Pi settings → Infrared remote
  2. Enable the option

For your remote’s key mapping, place a keymap as /boot/rc_keymap.txt on the boot partition – it is loaded automatically at boot. The format is that of ir-keytable; ready-made keymaps are in KonstaKANG’s keymap collection on GitHub. To find the codes of your own remote, run ir-keytable -p all -t in a root shell. You get a root shell via ADB (Step 7): go to Settings → System → About and click “Android TV OS build” several times until developer options are unlocked. Then turn on “Rooted debugging” under Settings → System → Developer options, and on your PC run adb root after adb connect, followed by adb shell.

Option D: Mini Keyboard with Touchpad

Very practical for initial setup and whenever you need to type: a wireless mini keyboard with touchpad (→ Amazon*). It connects via USB dongle and works immediately without any configuration.

Useful keyboard shortcuts for Android TV:

Key Function
F1 Home
F2 Back
F3 Multitasking / App switcher
F4 Menu
F5 Power button
F11 Volume down
F12 Volume up

Step 6: Use Your Smartphone as a Remote

With the Google TV app (Android & iOS), you can conveniently control the Raspberry Pi from your smartphone – provided GApps is installed and both devices are on the same Wi-Fi network.

Setup:

  1. Install the Google TV app from the Play Store or App Store (formerly “Android TV Remote Control”)
  2. Open the remote in the app and start the device scan
  3. Your Raspberry Pi will appear in the list – select it
  4. A code appears on the TV screen
  5. Enter the code in the app – done

You now have a fully functional Android TV remote on your smartphone with D-pad, Back, Home, volume controls, and a keyboard for text input. The app also works as a touchpad when you swipe your finger across the screen.

Tip: If the device doesn’t appear in the app, check that both devices are on the same Wi-Fi subnet. Some routers separate 2.4 GHz and 5 GHz networks – make sure both the smartphone and Raspberry Pi use the same network.

Step 7: ADB Access (Advanced)

With the Android Debug Bridge (ADB), you can install apps from APK files that aren’t in the Play Store, or configure the system from a terminal. ADB is part of the Android SDK Platform Tools: on Windows and macOS, download them from developer.android.com; on Linux and Raspberry Pi OS, install them with sudo apt install adb.

Enable ADB over Wi-Fi:

  1. Enable ADB under Settings → System → Raspberry Pi settings → ADB
  2. Note the Pi’s IP address from the network settings
  3. On your PC: adb connect <IP> (default port 5555)
  4. If a confirmation prompt appears on the TV, confirm it

Then install APKs:

adb install my-app.apk

Or open an ADB shell:

adb shell

Known Limitations and Troubleshooting

Issue Cause / Solution
Chromecast not working KonstaKANG lists Chromecast as unsupported on uncertified devices. No workaround is known.
Netflix missing from the Play Store or won’t play Netflix only offers its app to certified devices, and the Pi isn’t one. Widevine L3 isn’t preinstalled and has to be flashed as a KonstaKANG ZIP via TWRP. Even then, SD resolution is the most you get, with no guarantee it works.
Play Store shows “Device not certified” Register your Android Device ID with Google: google.com/android/uncertified → enter your Google Services Framework ID
No audio via HDMI (Pi 4) The Pi 4 outputs audio through the 3.5 mm jack by default. Switch it under Settings → System → Raspberry Pi settings → Audio device.
System freezes on boot SD card too slow. At least A2 rating recommended (e.g. SanDisk Extreme PRO).
Only a rainbow screen, no boot animation The build only supports HDMI displays that report their resolutions via EDID and starts at 1920×1080. Change the value in /boot/resolution.txt to a resolution your display supports, or delete the file to use the display’s preferred resolution.
Bluetooth device won’t pair Put the device into pairing mode first, then search for devices in Android TV.
OTA update fails Builds older than 20260128 can’t be updated over the air and need a clean install (see “Installing Updates”).
Play Store reports “This version of the app isn’t compatible with your device” Typical causes: the wrong GApps variant (the phone package without -ATV- in its name) or an update on top of a build older than 20260128. Fix: clean install with the -ATV- package in the order from Step 4 – flash GApps, factory reset, only then boot. The “uninstall updates” hint in the error message doesn’t help: the app isn’t outdated, it’s the wrong variant.
Smartphone app can’t find Raspberry Pi Both devices must be on the same Wi-Fi network. Check if your router separates 2.4 GHz and 5 GHz.
YouTube shows “video format not supported” The Raspberry Pi has no hardware decoder for the VP9 and AV1 codecs that YouTube delivers by default. Solution: install SmartTube instead of the official YouTube app – only the way the developer describes on GitHub, not from app stores or APK sites. In SmartTube, go to Settings → Player → Developer options, turn on “Codec selection: prefer avc over vp9” and cap the resolution at 1080p.

Installing Updates

Important: OTA updates only work from build 20260128 onwards. If you are coming from an older build, for example LineageOS 18.1 or 20, a clean install is mandatory: flash the image fresh and reinstall GApps as in Step 4, including the factory reset. This erases all data on the Pi. KonstaKANG doesn’t describe an upgrade path to a new major version either, such as LineageOS 23.2 to 24.0 on the Pi 5. Plan for a clean install there too, using the GApps package for the new Android version.

Updates within a release arrive through LineageOS’s built-in Updater app in the system settings.

Alternatively, download the update ZIP (…-atv-ota.zip) from the KonstaKANG website, copy it to a USB drive, and flash it via TWRP Recovery (Install → ZIP). No factory reset needed – the update only overwrites the system partition, your data and installed GApps stay intact. Widevine, Magisk, and any manual changes to the boot partition, including /boot/config.txt, are not kept. The update does carry over your Raspberry Pi settings, /boot/config_user.txt, /boot/resolution.txt and /boot/rc_keymap.txt, so put your own options in config_user.txt. Reflash Widevine and Magisk in the same TWRP session right after the update ZIP, before rebooting.

Android TV vs. Kodi vs. Jellyfin: Which Media Center Solution Suits You?

If you want to use your Raspberry Pi as a media center, you have plenty of options. Besides Android TV, both Kodi and Jellyfin are popular choices – but they differ significantly in approach and target audience.

  Android TV (LineageOS) Kodi Jellyfin
Type Full Android operating system Local media player Self-hosted media server
Installation Flash image (replaces Raspberry Pi OS) LibreELEC image or on top of Raspberry Pi OS Docker or apt on Raspberry Pi OS
App Ecosystem Full Google Play Store (with GApps) Kodi add-ons (own ecosystem) Jellyfin clients (web, app, Kodi plugin)
Streaming Apps Play Store apps; YouTube via SmartTube; Netflix & co. restricted (uncertified, Widevine L3 only) Limited (add-ons, partly unofficial) Own/local media library only
Local Media Playback Good (via VLC, Kodi app etc.) Excellent (core feature) Excellent (library management)
Multi-Room / Clients No (single device) No (single device) Yes – server + unlimited clients
Remote Control HDMI-CEC, Bluetooth, IR, smartphone app HDMI-CEC, Kodi remote app, keyboard Web browser, Jellyfin app, Kodi plugin
Raspberry Pi OS Completely replaces RPi OS LibreELEC replaces RPi OS, or runs as an app alongside it Runs on RPi OS in parallel
Technical Skill Required Medium (GApps setup slightly complex) Low (LibreELEC is very easy) Medium (understand server concept)
Ideal for Full Smart TV with streaming apps Playing local movie/series collections Own media library for multiple devices

In a Nutshell

Android TV is the right choice if you want a fully-featured Smart TV with the Play Store and streaming apps – with limits for DRM-heavy services like Netflix. You get the complete Android app ecosystem and a classic TV interface – but Raspberry Pi OS will be replaced.

Kodi (best used as a LibreELEC image) is ideal if you want to play your local movie and series collection with an elegant interface. The installation is simpler, but streaming services like Netflix require unofficial add-ons.

Jellyfin is the best choice if you want a central media server for multiple devices (TV, smartphone, tablet, laptop). The Raspberry Pi runs as a server in the background – on the TV, you only need a Jellyfin client app.

Which Raspberry Pi is best for Android TV?

The Raspberry Pi 5 is faster and gets the newer Android version with LineageOS 24.0. The Raspberry Pi 4 runs LineageOS 23.2 and is cheaper. Both need at least 2 GB of RAM, and 4 GB is recommended.

Can I use Netflix on Android TV for the Raspberry Pi?

Only partly. The Raspberry Pi is not a certified Android TV device, so the Play Store usually doesn’t offer the Netflix app. Widevine L3, the lowest DRM level, can be added via a ZIP from KonstaKANG. That limits you to SD resolution at best, and there is no guarantee Netflix works.

Can I use my smartphone as a remote for Android TV on the Raspberry Pi?

Yes. With the free Google TV app (Android & iOS), you can control the Raspberry Pi as an Android TV conveniently from your smartphone. Both devices must be on the same Wi-Fi network. The connection is established via a code shown on the TV.

Do I need a remote control for Android TV on the Raspberry Pi?

Not necessarily. A USB keyboard is helpful for initial setup. Afterward, you can use your regular TV remote via HDMI-CEC, pair a Bluetooth remote, use the Google TV app on your smartphone, or set up an infrared remote.

Which Android version does Android TV on the Raspberry Pi run?

The Raspberry Pi 5 runs LineageOS 24.0 with Android 17, the Raspberry Pi 4 LineageOS 23.2 with Android 16. Both are unofficial builds by developer KonstaKANG.

Why does YouTube show “video format not supported” on Android TV for the Raspberry Pi?

YouTube delivers videos in the VP9 or AV1 codec by default – and the Raspberry Pi has no hardware decoder for either. The alternative SmartTube app lets you make AVC (H.264) the preferred codec. That’s much easier for the Pi to handle, especially if you also cap the resolution at 1080p.

Similar Posts