sodcalculator

10 Tech How-To

Raspberry Pi as Android TV Box: Step-by-Step Setup

Guide 10-8950 · Updated · Step by step

Turning a Raspberry Pi into an Android TV box gives you a low-cost streaming device for Netflix, YouTube, Kodi, and other Android apps without buying a commercial set-top box. You’ll flash a custom Android TV image onto an SD card, configure it for your TV, and then connect peripherals. This guide covers the entire process, from gathering parts to troubleshooting common issues.

What You’ll Need

  • Raspberry Pi 4 (2GB RAM minimum, 4GB or 8GB recommended for smoother performance)
  • MicroSD card (16GB or larger, Class 10/A1 or faster)
  • Power supply (USB-C, 5V/3A for Pi 4)
  • Micro HDMI to HDMI cable or adapter
  • TV with HDMI input
  • USB keyboard and mouse (for initial setup)
  • Another computer (Windows, macOS, or Linux) to write the SD card
  • SD card reader (if your computer doesn’t have a built-in slot)
  • Internet connection (Ethernet recommended for first boot)
  • Optional: USB IR receiver or Bluetooth remote for TV control

Step-by-Step

  1. Download an Android TV image. Go to a trusted source like Konstakang’s Android TV builds or the official Android TV for Raspberry Pi project (if available). Choose the image that matches your Pi model (e.g., Pi 4). Download the .img or .img.gz file.
  2. Flash the image to the SD card. Use a tool like Balena Etcher, Raspberry Pi Imager, or Win32DiskImager. Insert the SD card into your computer, open the flashing tool, select the downloaded image, select the SD card, and start flashing. Wait for completion and safely eject.
  3. Insert the SD card into the Pi. Put the flashed SD card into the microSD slot on the underside of the Pi.
  4. Connect peripherals and power. Plug in the HDMI cable from the Pi to your TV, connect a USB keyboard and mouse, and then connect the power supply. The Pi will boot automatically.
  5. Complete initial Android TV setup. On your TV, you’ll see the Android TV welcome screen. Use the keyboard/mouse to select your language, connect to Wi-Fi (or use Ethernet), and sign in with your Google account. If you skip Google sign-in, you can still use the device but won’t have access to the Play Store.
  6. Install apps. Once on the home screen, open the Play Store, search for apps like Netflix, YouTube, Kodi, or any Android TV-compatible app, and install them. Some apps may require a mouse for navigation if they aren’t optimized for TV remotes.
  7. Set up a remote (optional). If you have a Bluetooth remote, go to Settings > Remotes & accessories > Add accessory and pair it. For an IR remote, you may need a USB IR receiver and configure it in the Android TV settings (if supported by the image).
  8. Adjust display settings. Go to Settings > Display & sound to set resolution (up to 4K on Pi 4), enable HDR if supported, and adjust overscan if the picture doesn’t fit your screen.
  9. Enable developer options (optional). For advanced tweaks, go to Settings > About, tap “Build number� 7 times to unlock developer options. You can then enable USB debugging, adjust animation scales, etc.
  10. Test streaming. Open a streaming app and play a video. If you experience stuttering, try lowering the resolution in the app or in Android TV settings.

Common Mistakes

  • Using a slow SD card. A Class 4 or 6 card will cause lag and app crashes. Always use at least Class 10 or A1.
  • Insufficient power supply. Using a phone charger or a 5V/2A supply can cause random reboots and USB device failures. Use the official Pi 4 power supply or a quality 5V/3A one.
  • Wrong image for your Pi model. Flashing a Pi 3 image onto a Pi 4 won’t boot. Always match the image to your exact Pi version.
  • Skipping Google sign-in. If you don’t sign in, you can’t install apps from the Play Store, and some system updates may fail. Sign in during initial setup.
  • Not updating the OS. After first boot, go to Settings > About > System update to install the latest patches. Older builds may have bugs.
  • Using a 32-bit image on a 64-bit Pi. Some images are 64-bit only. Check the image description to ensure compatibility.

Tips

  • Use Ethernet for streaming. Wi-Fi on the Pi 4 is decent, but a wired connection gives more stable bandwidth for 4K streams.
  • Enable hardware acceleration. In some apps, look for settings like “Hardware decodingâ€� or “Use HW decoderâ€� and turn them on for smoother playback.
  • Install a lightweight launcher. If the default launcher feels sluggish, try a third-party launcher like “TVLauncherâ€� from the Play Store.
  • Backup your SD card. After setup, create a backup image using Win32DiskImager or Etcher’s “Cloneâ€� feature. If the card corrupts, you can restore quickly.
  • Use a USB SSD instead of SD card. For faster boot and app loading, boot from a USB 3.0 SSD. You’ll need to update the Pi’s EEPROM to enable USB boot (if not already).
  • Keep the Pi cool. The Pi 4 can get hot during streaming. Use a heatsink and fan case to prevent thermal throttling.

Troubleshooting

  • No display on TV. Ensure the HDMI cable is fully inserted and the TV is on the correct input. Try a different HDMI port. If the Pi’s green LED blinks but no video, the image may be corrupt—reflash the SD card.
  • Pi boots but shows a rainbow screen. This means the Pi is underpowered. Replace the power supply with a 5V/3A one and try a different cable.
  • Apps crash or freeze. Clear the app’s cache (Settings > Apps > select app > Clear cache). If it persists, reinstall the app. Also check for system updates.
  • No sound. Go to Settings > Display & sound and ensure audio output is set to HDMI. Try changing the audio format to PCM if you get static.
  • Remote not working. For Bluetooth remotes, unpair and re-pair. For IR, ensure the receiver is plugged in and the remote uses the correct protocol (the image may support only certain IR remotes).
  • Can’t install Netflix. Netflix requires a certified device. Some Android TV builds for Pi are not certified, so Netflix may not appear in the Play Store. Workaround: sideload the Netflix APK from a trusted source, but it may not work reliably. Consider using Kodi with a Netflix addon instead.
  • Boot loop. This often happens after a bad update or corrupted file system. Reflash the SD card with the original image and avoid updating until you’ve backed up.

Frequently Asked Questions

  1. Can I use a Raspberry Pi 3 as an Android TV box? Yes, but performance will be poor. The Pi 3 has only 1GB RAM and slower CPU, so streaming 1080p may stutter. Android TV images exist for Pi 3, but they are not recommended for daily use.
  2. Will this play Netflix in HD or 4K? Due to DRM limitations, Netflix on Raspberry Pi Android TV builds typically only plays in SD (480p) or at best 720p. 4K Netflix is not supported because the Pi lacks Widevine L1 certification. YouTube can play 4K, but not Netflix or Disney+.
  3. Can I use a regular Android remote app on my phone? Yes, you can install the “Android TV Remote Control� app on your phone and pair it via Bluetooth or Wi-Fi, as long as both devices are on the same network.
  4. Is it legal to turn a Pi into an Android TV box? Yes, it’s legal to install Android TV on your own hardware. However, some apps may have licensing restrictions. Streaming copyrighted content without permission is illegal, but the device itself is fine.
  5. How do I update the Android TV OS? Go to Settings > About > System update and check for updates. If the build is old, you may need to download a new image and reflash the SD card, which will erase your data.
  6. Can I use a USB TV tuner for live TV? Some Android TV images include support for USB tuners, but it’s not guaranteed. Check the specific build’s documentation. You may need to install a third-party app like “Live Channelsâ€� and configure the tuner.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →