Aug 17, 2018 Here’s my build of LineageOS 14.1 for Raspberry Pi 3 Model B. It is unofficial and unsupported by the LineageOS team. It’s for advanced users only. Do not mirror my builds!
Android in its early days ran great on low spec phones and tablets. Raspberry Pi 3 devices today are much more powerful than these Android devices. So, you may be thinking of trying out Android on your Raspberry Pi 3 devices. Luckily, there are a few projects that ported Android on Raspberry Pi 3 devices. If you own Raspberry Pi 3 Model B or Raspberry Pi 3 Model B+, then you can try out RTAndroid and Lineage OS on it. RTAndroid project is dead. But you can still find RTAndroid images online and use it on your Raspberry Pi 3. Lineage OS project is currently active. Lineage OS for Android 7 Nougat and Android 8 Oreo is available for Raspberry Pi 3. You can also install Google Play and other apps from Google (also known as GApps) on Lineage OS. I recommend you try out Lineage OS as the project is currently active.In this article, I will show you how to install Android (Lineage OS) on Raspberry Pi 3 Model B. Let’s get started.
To follow this article, you need,
- A Raspberry Pi 3 Model B or Raspberry Pi 3 Model B+ single board computer.
- A microSD card of about 16GB or more for flashing Lineage OS image.
- Internet connectivity for downloading Lineage OS image.
- A micro USB power adapter (Standard Android charger) for powering up Raspberry Pi 3.
- A HDMI Cable and a Monitor.
- A computer for flashing the microSD card with Lineage OS image.
- A USB keyboard and a USB mouse.
Downloading Lineage OS:
To download Lineage OS for Raspberry Pi 3, go to the official website of Lineage OS at https://konstakang.com/devices/rpi3/ and click on one of the download links as marked in the screenshot below depending on the version of Android you want to install.
I am downloading Lineage OS 15.1 (Android 8.1.0). Once you click on one of the links, you should see the following page.
Now scroll down a little bit and click on the download link as marked in the screenshot below.
Now, you should be redirected to the following file hosting website. Click on the download link as marked in the screenshot below.
Now, click on one of the mirror as marked in the screenshot below.
Your download should start. It may take a while to complete.
Flashing Lineage OS to microSD Card:
You can flash Lineage OS to your microSD card very easily with Etcher. You can download Etcher for free from the official website of Etcher at https://www.balena.io/etcher
NOTE: It’s out of the scope of this article to show you how to install Etcher.
Once you download and install Etcher, insert your microSD card in your computer and open Etcher. Now, click on Select image as marked in the screenshot below.
A file picker should be opened. Now, select the Lineage OS image that you just downloaded for your Raspberry Pi 3 and click on Open as marked in the screenshot below.
Now, click on Select drive as marked in the screenshot below.
Now, select your microSD card from the list and click on Continue.
Finally, click on Flash!
As you can see, the microSD card is being flashed with Lineage OS image for Raspberry Pi 3.
Once the Lineage OS image is flashed on your microSD card, close Etcher and eject the microSD card from your computer.
Setting Up Raspberry Pi 3 and Booting into Lineage OS:
Before you power on your Raspberry Pi 3, make sure you
- Insert Lineage OS flashed microSD card into your Raspberry Pi 3.
- Connect the HDMI cable of your monitor to your Raspberry Pi 3.
- Connect USB mouse and keyboard on your Raspberry Pi 3.
- Connect the microUSB adapter on your Raspbery Pi 3.
Finally, power on your Raspberry Pi 3. Lineage OS should boot and you should see the following loading window.
After a while you should see the following window. As you’re running Lineage OS for the first time, you have to configure it. Just click on NEXT.
Now, select your language and click on NEXT.
Now, select your time zone, date and time and click on NEXT.
Now, configure Wi-Fi network and click on NEXT.
Now, select how you want the Location service of Android to work and click on NEXT.
Now, select the Lineage OS related features that you want to enable and click on NEXT.
Now, you can set up a PIN to protect your phone from other people. To do that, click on SET UP as marked in the screenshot below. If you don’t want to set up a PIN now, just click on SKIP.
Finally, click on START.
The home screen of Lineage OS should start.
As you can see, I am running Android 8.1.0 Oreo on Lineage OS 15.1.
My Thoughts on Android on Raspberry Pi 3:
Currently, you can only install Lineage OS on Raspberry Pi 3 if you want to run Android on Raspberry Pi 3. On Raspberry Pi 3, you can install Lineage OS 14.1 (Android 7.1.2) and Lineage OS 15.1 (Android 8.1.0) at the time of this writing. I showed you how to install Lineage OS 15.1 in this article. The procedures for Lineage OS 14.1 is similar. But if you ask me which one to use, I would say Lineage OS 14.1 as it performs better on Raspberry Pi 3 than Lineage OS 15.1. Lineage OS 15.1 lags a lot. I would not recommend it. It’s pretty unusable.
If you’re looking for commercial Android support on Raspberry Pi 3, then you can try emteria.OS. The Evaluation version of emteria.OS for Raspberry Pi 3 is free to download. The evaluation version does have limitations, but at least you will be able to figure out how good it performs before you buy it. To learn more about emteria.OS, visit the official website of emteria.OS.
So, that’s how you install Android on Raspberry Pi 3. Thanks for reading this article.
This article will explain how to install and configure Android 7.1.1 (with the Play Store) on your raspberry pi.
Above all, it is important to point out that this is only an experimental setup. No version of Android is officially compatible with the raspberry pi and therefore the version we will install is not optimized for our dear motherboard. It is therefore difficult today to use Android on a daily basis on its raspberry pi even if the installation we are going to present turns relatively well.
Prerequisites to install Android
After this short introduction, let’s take stock of everything we need to complete this installation.
- Of course, you need a raspberry pi 3
- A power supply
- A SD card at least 16GB and it is important that it has a good speed of reading / writing.
- You will also need a screen and an HDMI cable to display the beautiful Android interface. You can also use the official touch screen of the foundation that does not require the use of an HDMI cable
Then you will need to download the Android image and sh script that will install the Play Store.
ATTENTION, for the last part of the tutorial, you will have to use a machine with an unix OS (Linux or Mac OS) to be able to execute the sh script. If you do not have one, you can use a virtual machine. Here we indicate commands for a Debian like distro (such as Ubuntu, Linux Mint, Elementary Os, and a lot of others).
Installing Android on the SD card
Once downloaded, the installation of the Android image on the SD card is very simple, it’s the same manipulation as to create an SD card on raspbian. You can go back to the articles that we wrote about it for Windows or Linux. However in this tutorial, I will use a software released after the writing of these articles which is very easy to use and above all compatible for all OS, it is Etcher .
Just select the .img file from Android that you extracted from the zip archive downloaded in the introduction, Etcher automatically detects the SD card on which to install the operating system but it is possible to change it. Finally click on Flash to start the creation of the SD card. It can take long minutes.
When done, insert the SD card into your raspberry pi connected to a screen. Here you are now with a functional Android. However, as you can see, this one does not have a Play Store.
Installing the Play Store
To install the Play Store, you must first connect to the internet (wi-fi or Ethernet). For that, pull the options panel by clicking on top of screen and pull down, just like smarpthone.
Once done, we will need the IP address of the raspberry pi. To retrieve it, you have to go to the parameters, go down to the bottom of the various parameters and go to “About tablet” and then to “Status”. we can now see our IP address (198.168.xx).
Now that we have recovered this address, we will be able to return to our unix computer as indicated in the introduction while leaving the raspberry pi running Android. I remind those who are on Windows that they can use a virtual machine to perform these steps.
Open the downloaded gapps.sh file in the introduction. You will find the following lines
It is necessary to replace the IP address (ADB_ADDRESS) by that of your raspberry pi. In addition, if the other fields are empty, fill them in as above.
Download Rt Android For Raspberry Pi 4
After that, in a terminal, run the command
This command will allow you to connect to your raspberry pi under android from your PC. Then install “LZip”
After these orders, we will be able to connect to our raspberry pi.
And finally, run the script to install the Play Store. Go through the terminal in the folder where the gapps.sh script is located, make the executable and run it.
Be carefull, the script is so looooooooong… Once it’s finished, the raspberry pi will restart. You will find yourself with a nice Android with the Play Store. However, some applications will have problems downloading them. Also as said in the introduction, this is an experimental setup and the GPU is not very well supported. It is therefore likely that Android is experiencing slowdowns. If you want a card that can run Android well, we recommend using an Odroid . We did not test on it but the returns are good.