- What you need
- Software
- Flash LineageOS onto SD card
- Set up LineageOS
- Flash GApps to LineageOS
- Setting up Android TV
- Getting started using Android TV
-
Raspberry Pi
- I'm using a Raspberry Pi 4 Model B with 2 GB RAM. You can use Raspberry Pi 4 Model B or Raspberry Pi 400. I recommend at least 4 GB RAM for better performance.
-
Micro SD Card (at least 16 GB)
-
Micro SD to USB adapter
-
Power Supply for Raspberry Pi (recommended to use official power supply)
-
Ethernet Cable or Wi-Fi
-
USB (at least 4 GB)
-
Mouse & Keyboard
-
Monitor
- If you don't have a monitor, you can use your TV.
-
micro-HDMI to HDMI cable
-
Raspberry Pi case with fan (optional)
-
Raspberry Pi Imager
- Go to this link.
- Scroll down to Install Raspberry Pi OS using Raspberry Pi Imager.
- Download and install using the appropriate file for your operating system.
-
LineageOS 18.1
- This is a custom build of LineageOS made by KonstaKang, optimised for larger screens and remotes.
- Go to this link.
- Scroll down and press the first download link, not the second.
-
GApps
- This is a way to get Google apps for the LineageOS build.
- Go to this link.
- Under Platform, choose ARM64.
- Under Android, choose 11.0.
- Under Variant, choose tvstock.
- Press the download button.
- After download is completed, move the file to your USB.
- Plug your SD card into your computer.
- Open Raspberry Pi Imager.
- Click Choose OS.
- Scroll down and choose the Use custom option.
- Select the LineageOS file and press Open.
- Click Choose Storage.
- Select your SD card.
- Click Write.
WARNING: All data previously on the SD card will be lost! . After it's done, insert SD card into Raspberry Pi. (The SD card automatically ejects after it's done)
- Connect your Raspberry Pi with your monitor, plug it in, and wait for it to boot.
- When it boots, you'll get a message saying Searching for accessories. Press F2 (or fn + F2) on your keyboard to get rid of it.
- Click the Start button.
- Click Accept.
- Keep all the settings as default. If connected by Ethernet, skip to step 15.
- Choose your Wi-Fi network and enter the password to connect to it.
You can use either the physical keyboard or the on-screen keyboard. The Next button won't work if you try to press it. Press Enter on your keyboard to go to the next step. - You can select or deselect the diagnostics option based on your preferences. Press Next.
- Click Start.
The next steps require a keyboard. The keyboard controls are:
- Arrow keys to navigate the interface
- Enter to click on something
- F1 to go to the home page
- F2 to go back
- F5 to turn off the screen
- F11 to decrease the volume
- F12 to increase the volume
- Insert the USB that has GApps into the Pi.
- Use the arrow keys to click the settings icon. (up, right, right, enter)
- Click System. (down until you neach System, enter)
- Click on Buttons. (down, enter)
- Press Enter to enable the Advanced reboot option.
- Press F2 and go down to the Reboot option and press Enter.
- Choose the Recovery option and press Enter.
- Wait for it to reboot.
The next few steps require a mouse. 9. Click Install. 10. Click Select Storage. 11. Click USB and then OK. 12. Click on the GApps file. 13. Leave everything as default and swipe the blue arrows. 14. Wait for it to complete. 15. Click Reboot and choose System.
-
You will get a prompt for setting up a remote. Press F2 to ignore it, or you can set up an IR remote if you have one.
-
Choose your language from the options.
-
You will get a prompt to quickly set up your TV with your Android phone. You can continue with this option, but I will skip it in this tutorial.
-
The Wi-Fi should be connected automatically so press Continue.
If you want to change the Wi-Fi, press Change network, otherwise press Continue. -
Press Sign in and sign in with your Google account using either the physical keyboard or the on-screen keyboard.
-
Accept Google's Terms of Service.
-
You can allow or deny access to location based on your preferences.
-
You can allow or deny diagnostics based on your preferences.
-
Press Continue.
-
Press Continue again.
-
You can allow or deny personal results with Google Assistant based on your preferences.
-
You can allow or deny emails about Google Assistant based on your preferences.
-
Press the arrow at the bottom of the screen to go through the features of Android TV.
Due to limitations in the Raspberry Pi, Chromecast Built-in unfortunately isn't available. -
You're done setting up Android TV!
- You can use your phone as a remote for Android TV using this guide.
- If you have a case with a fan for your Raspberry Pi, you can enable overclocking to get the most out of the Pi's CPU.
- Go to Settings.
- Click on System.
- Click on Raspberry Pi settings.
- Under the Overclock section, press Maximum CPU frequency and change it to whatever you see fit.