**Setting Up Google Play on Raspberry Pi 4**
For those who want to explore Android on their Raspberry Pi 4, setting up Google Play is a crucial step. To start, we need to boot into recovery mode. This can be done by powering on the Raspberry Pi 4, pressing and holding the volume down button while booting, or using the command `sudo reboot -r` in the terminal.
Once in recovery mode, we are presented with a menu that allows us to modify our system. We click "Allow" to continue, then type in "su" (super user) and press Enter to confirm our decision. Next, we need to enter our PI for Recovery code, which is typically set to "recovery.sh". This will prompt us again to confirm our choice. It's essential to remember this decision, so we click "Allow" once more.
Now, we are back in the main menu and can choose to install the GAPs package that we downloaded earlier. We select the Pico version for ARMED Android and follow the installation process. Once installed, we need to wipe the dalvik cache to ensure a smooth experience.
**Wiping Dalvik Cache**
To wipe the dalvik cache, we click on "Wipe" from the main menu, then select "Dalvik" and swipe to allow. This will clear out any unnecessary data and prepare our system for further modifications.
Next, we return to the main menu and choose to reset our device to its factory settings. We select "Wipe" again, this time choosing to wipe boot, system, and data. We also back up advanced terminal options in case we need them later. Finally, we reboot the system from the terminal, setting it to boot into Android instead of recovery mode.
**Installing Google Play**
After rebooting, we enter the command `recovery.sh boot` to set our system to boot into Android. Then, we type "reboot" to confirm and exit the recovery menu. Our Raspberry Pi 4 boots up with a standard Android interface, but we can't access Google Play just yet.
To fix this, we need to install the device ID APK that we downloaded earlier. We head over to our file section, locate the device ID APK, and install it using the "Install" option from the menu.
**Registering Our Device with Google**
Once installed, we open up the device ID APK and click on "Google Service Framework". This will give us a code that we need to register our device with Google. We copy the code by pressing Ctrl+V in the terminal, then paste it into the device ID APK window.
We are presented with a warning message stating that our device is not Play Protect certified. To resolve this, we click on "Custom ROM Users" and follow the instructions provided. This will bring us to a new screen where we can paste the code and register our device as a custom ROM.
**Accessing Google Play**
After registering our device with Google, we reboot the system one last time and log back into Google Play using our Gmail account credentials. We sign in and access the Google Play Store to download and install applications.
In this article, we have demonstrated how to set up Google Play on a Raspberry Pi 4. With the GAPs package installed and our device registered with Google, we can now enjoy a wide range of Android apps on our tiny but mighty device.
"WEBVTTKind: captionsLanguage: enwhat's going on guys the CTA Prime back here again today I'm going to show you how to install Android 9 on your Raspberry Pi 4 well this is actually lineage OS 16.0 this is an unofficial build by constic Aang so don't expect updates from the lineage team and before we get started I do want to mention that this is not for everyday use this is pretty much strictly for testing but overall I've had a pretty decent experience with it it's using the Google Swift shader driver for the GPU so things aren't as smooth as they should be but if you want to fiddle around with it I'm going to show you how to install Android and Google Play because this does not come pre-installed with Google Play but we'll also get that up and running in this tutorial so I'm running this on a Raspberry Pi for 4 gigabyte model with an ice tower cooler and overclock to 2 gigahertz on the CPU and 700 megahertz on the GPU I'm not really sure how well the GPU overclocked is helping out because it's using that Swift shader driver and I really recommend overclocking at least the CPU on your Raspberry Pi if you want to run this image I have a full tutorial I'll link it in the description when overclocking your PI you really don't need the ice tower cooler one of these smaller dual fan coolers from Amazon will work just fine I've been running this on a 4 gigabyte model overclocked to 2 gigahertz for a couple weeks now with no issues these are around 12 bucks I'll link them in the description I do recommend at least the Raspberry Pi for 2 gigabyte model to run Android on but the 4 gigabytes gonna be your best bet so in order to get this up and running you're gonna need a micro SD card I do recommend a higher quality card like a SAN desk or even the silicon power cards they're pretty good and I'm pretty much switched over to the silicon power because of the price on Amazon I'm using a 32 gigabyte card and the one that's running right now and it works just fine you're also obviously gonna need a micro HDMI cable and your USB type-c to power the PI up in order to flash the Android image to your SD card you will need another PC I'm gonna be using Windows but this will also work with Linux or Mac and we're gonna be installing google play completely on the PI so we won't need to resort to our PC but I do want to give a big shout-out to a youtuber who goes by the name PC Mac for making this tutorial in the first place I tried myself to get google play up and running with the methods I know that I resorted to using his tutorial and it works amazingly I'll leave a link to his channel in the description so with all that out of the way let's go ahead and move over to my Windows PC so we can get this Android image flash to the SD so let's go ahead and get started first thing we're gonna do is flash the Android image to an SD card so we can run it on the Raspberry Pi and then we're gonna install Google Play completely on the PI itself while it's running this version of Android I have a micro SD card inserted into my PC this is just a cheaper 32 gigabyte card but even an 8 gig will work all links for everything mentioned in this video will be in the description first up we need to grab the Android image lineage OS 16.0 Android 9 remember this is an unofficial build we're gonna head over to constic ENCOM so we're gonna scroll down and we're going to download it it's gonna take us over to Android file host start the download so we're now downloading the image the next thing we need to do is get an app to allow us to flash this image to an SD card we're going to be using etcher for this works on Mac Windows or Linux from the drop down here Linux Mac windows I'm on Windows I'm going to grab the portable version once my image is finished downloading I'm going to place it on my desktop for easy access so I now have the lineage OS image downloaded I placed it on my desktop and I also have at your we're gonna start up at your from within at your we're gonna select image head to our desktop lineage 16 the number on the in here or the date might be a little different because it might be updated in the future we're just gonna select the image we downloaded select our target make sure you choose the correct device like I mentioned I got a little 32 gigabyte microSD card click continue and flash etcher is going to go ahead and take care of everything it's gonna flash that image to our SD card so we can run Android on our Raspberry Pi give this a little time to finish up so when actor is finished flashing the SD card he might get a few warnings like this just go ahead and close out of them we can now close at your now all we need to do is take the SD card from our PC place it in our pie plug everything in and boot it up we're gonna have lineage OS 16 installed on our PI but we do not have access to Google Play or GAAP so I'm gonna walk you through installing gaps all on the PI itself so here we are I've placed a SD card in the pie I also have a keyboard and mouse by the way touch functionality does work over USB with the Raspberry Pi 4 in this version of Android if you're using a monitor that supports touch so just go ahead and plug in power we'll get a little red LED and after a little bit it'll start flashing green when you see the rainbow splash screen and then the lineage OS intro screen you know you're good to go so now we're basically just gonna set it up like we would any other Android device we'll click Next here unfortunately it doesn't come pre-installed with gaps I do have that video coming up so you won't have to sign into any Play services the first time you boot this up but you will have to set the time and date and connect to Wi-Fi if you're not using Ethernet so we're all set up running on the Raspberry Pi 4 but you might notice we don't have Google Play installed I'm gonna walk you through it right now unfortunately I tried to do this over my Game Capture to make it a little cleaner but it just wouldn't come out right so I will have to film the screen while we do this so first things first you will need to be connected online in order to do this because there are two things we need to download from the built-in browser first one being gaps or G apps we're going to download the Pico version and this is going to include Google Play and all the services we need to get it up and running and we're going to install device ID apk now in order to get this up and running in Google Play you will have to register this under your email it's just kind of like a development registration and it's pretty easy to do all links for everything will be in the description we're going to open up the browser and we're going to head over to open gaps that way we can download the Pico version that includes Google Play we need to make sure we're downloading the correct version of gaps so we're going to choose armed Android 9 and Pico we'll just click this little download icon here you might have to allow the browser access to download files so we'll click download and if you want to check the status up in the top left hand corner you can kind of swipe down and just make sure it's downloading so while that finishes up I'm gonna go ahead and download device ID this is the device IV apk we can get it from APK mirror the version I'm going to be using is 1.3 - but 1.30 also works we need to find the download button download apk again you'll get the download prompt so click download and if you want to check the progress on this up in the top left hand corner you can swipe down so now we need to enable developer options so we can get root access and local terminal we're gonna head over to the settings menu scroll all the way down to the bottom to about tablet from here we're gonna click on build number four or five times it'll prompt you we now have developer options enabled backup go to system advanced and all the way down we'll see developer options from within this menu we need to find root access we're going to allow apps and adb make sure this is checked now we need to find local terminal and we'll turn this on we can now back out of the settings and I recommend moving the gapps package that we downloaded to the root of your storage so you can open up files go to your download section and we're going to take that gaps package and just drag it right to where it says raspberry pie this is just going to make it easier to find when we're in recovery so we're now all prepared to install Google Play but we do need to reboot the system one time to enable that local terminal so from your keyboard if you hold f5 it'll bring up the power menu and just click restart so now that we've restarted the system we're gonna go into our apps menu and launch terminal it's probably going to prompt you to allow access to some storage so we'll just click allow here and from our keyboard we're going to type in su for super user press Enter it's going to prompt you again I'm just going to remember this decision and click allow now we need to type in our PI for recovery dot SH and press Enter and finally reboot press ENTER and your system will automatically reboot into recovery so to some custom Android users this might look really familiar because this is twr P for the Raspberry Pi we're gonna swipe to allow modifications and from the main menu we're gonna go to install and find that gaps package that we downloaded this is the Pico version for armed Android nice swipe to install give it a little time to finish up its going to install gapps for us when this is finished installing we also need to wipe the Dell vut cache so we'll click wipe dalvik and we're going to swipe to allow now it's time to back up to the main menu we can use the bottom buttons here or just click on the T WRP icon from the main menu we're gonna go to wipe and we're gonna reset the device so wipe swipe to factory reset we're gonna click back from here we'll go to mount make sure boot system and data is checked we'll back up advanced terminal and now we need to reboot the system from terminal but we're going to set it to normaly boot into Android instead of recovery every time and to do that we're just going to type in our PI for recovery Sh boot press ENTER and all we need to do now is type in reboot and press Enter the system's going to reboot into Android for us and we'll have Google Play installed but we can't use it just yet that's why we downloaded the device ID apk we're going to get a code from that and we can tell Google that we want to use Google Play on this device kind of as a development platform so once we get an Android I'll show you what to do you so this time around when he booted up it might look a little different you'll just have to set it up like you would any other Android phone or tablet I'm just gonna go through the motions here I'm not gonna set up a protective pen or anything like that I just want to get into Android so we can get Google Play up and running all right so you see we have a Google Play right on the desktop here but if we try to access it it's just going to tell us that it's not play protected and we can't access Google Play so we're going to head over to our file section and we're going to find that device ID apk that we downloaded and go ahead and install it now so once this is installed we're gonna open it up and click on Google service framework this is going to give us a code we're gonna click copy you might notice we've had a warning hanging over our heads here we're gonna click on it it's going to tell us that our device is not play protect certified so we're going to go down to the bottom here where it says custom rom users and click on this link it's gonna open up the browser for us we're going to sign in with a gmail account once we're signed in it'll bring us to the overview screen and we're going to paste the code we copied from the device ID apk you can paste it by pressing ctrl V on your keyboard click register give it a few seconds it'll register this device as a custom ROM and allow you to use google play now it's time to reboot the system one last time and I do recommend waiting about five minutes before you start to access google play just to make sure everything went through on Google's end if you receive the warning again that your device is not Google certified just wait on it give it five to ten minutes and it will go through just gonna start up Google Play I'm gonna sign in with my gmail account just like I would with any new Android phone or tablet and once I'm signed in I can access Google Play from the Raspberry Pi for running lineage OS 16 so there we have it I really appreciate you guys watching I'm gonna go ahead and download a quick application will do I 264 just to show you everything's working here it's gonna go ahead and download and install from the Google Play Store and I can open it up so that's pretty much it for this video guys I really appreciate you watching and like I mention all links are in the description keep in mind this is still very early for Android on the Raspberry Pi but if you're interested in playing around with it you now have it installed on your PI 4 and you have access to Google Play if you have any questions or you want to see anything else running on the Raspberry Pi 4 just let me know in the comments below but like always thanks for watching youwhat's going on guys the CTA Prime back here again today I'm going to show you how to install Android 9 on your Raspberry Pi 4 well this is actually lineage OS 16.0 this is an unofficial build by constic Aang so don't expect updates from the lineage team and before we get started I do want to mention that this is not for everyday use this is pretty much strictly for testing but overall I've had a pretty decent experience with it it's using the Google Swift shader driver for the GPU so things aren't as smooth as they should be but if you want to fiddle around with it I'm going to show you how to install Android and Google Play because this does not come pre-installed with Google Play but we'll also get that up and running in this tutorial so I'm running this on a Raspberry Pi for 4 gigabyte model with an ice tower cooler and overclock to 2 gigahertz on the CPU and 700 megahertz on the GPU I'm not really sure how well the GPU overclocked is helping out because it's using that Swift shader driver and I really recommend overclocking at least the CPU on your Raspberry Pi if you want to run this image I have a full tutorial I'll link it in the description when overclocking your PI you really don't need the ice tower cooler one of these smaller dual fan coolers from Amazon will work just fine I've been running this on a 4 gigabyte model overclocked to 2 gigahertz for a couple weeks now with no issues these are around 12 bucks I'll link them in the description I do recommend at least the Raspberry Pi for 2 gigabyte model to run Android on but the 4 gigabytes gonna be your best bet so in order to get this up and running you're gonna need a micro SD card I do recommend a higher quality card like a SAN desk or even the silicon power cards they're pretty good and I'm pretty much switched over to the silicon power because of the price on Amazon I'm using a 32 gigabyte card and the one that's running right now and it works just fine you're also obviously gonna need a micro HDMI cable and your USB type-c to power the PI up in order to flash the Android image to your SD card you will need another PC I'm gonna be using Windows but this will also work with Linux or Mac and we're gonna be installing google play completely on the PI so we won't need to resort to our PC but I do want to give a big shout-out to a youtuber who goes by the name PC Mac for making this tutorial in the first place I tried myself to get google play up and running with the methods I know that I resorted to using his tutorial and it works amazingly I'll leave a link to his channel in the description so with all that out of the way let's go ahead and move over to my Windows PC so we can get this Android image flash to the SD so let's go ahead and get started first thing we're gonna do is flash the Android image to an SD card so we can run it on the Raspberry Pi and then we're gonna install Google Play completely on the PI itself while it's running this version of Android I have a micro SD card inserted into my PC this is just a cheaper 32 gigabyte card but even an 8 gig will work all links for everything mentioned in this video will be in the description first up we need to grab the Android image lineage OS 16.0 Android 9 remember this is an unofficial build we're gonna head over to constic ENCOM so we're gonna scroll down and we're going to download it it's gonna take us over to Android file host start the download so we're now downloading the image the next thing we need to do is get an app to allow us to flash this image to an SD card we're going to be using etcher for this works on Mac Windows or Linux from the drop down here Linux Mac windows I'm on Windows I'm going to grab the portable version once my image is finished downloading I'm going to place it on my desktop for easy access so I now have the lineage OS image downloaded I placed it on my desktop and I also have at your we're gonna start up at your from within at your we're gonna select image head to our desktop lineage 16 the number on the in here or the date might be a little different because it might be updated in the future we're just gonna select the image we downloaded select our target make sure you choose the correct device like I mentioned I got a little 32 gigabyte microSD card click continue and flash etcher is going to go ahead and take care of everything it's gonna flash that image to our SD card so we can run Android on our Raspberry Pi give this a little time to finish up so when actor is finished flashing the SD card he might get a few warnings like this just go ahead and close out of them we can now close at your now all we need to do is take the SD card from our PC place it in our pie plug everything in and boot it up we're gonna have lineage OS 16 installed on our PI but we do not have access to Google Play or GAAP so I'm gonna walk you through installing gaps all on the PI itself so here we are I've placed a SD card in the pie I also have a keyboard and mouse by the way touch functionality does work over USB with the Raspberry Pi 4 in this version of Android if you're using a monitor that supports touch so just go ahead and plug in power we'll get a little red LED and after a little bit it'll start flashing green when you see the rainbow splash screen and then the lineage OS intro screen you know you're good to go so now we're basically just gonna set it up like we would any other Android device we'll click Next here unfortunately it doesn't come pre-installed with gaps I do have that video coming up so you won't have to sign into any Play services the first time you boot this up but you will have to set the time and date and connect to Wi-Fi if you're not using Ethernet so we're all set up running on the Raspberry Pi 4 but you might notice we don't have Google Play installed I'm gonna walk you through it right now unfortunately I tried to do this over my Game Capture to make it a little cleaner but it just wouldn't come out right so I will have to film the screen while we do this so first things first you will need to be connected online in order to do this because there are two things we need to download from the built-in browser first one being gaps or G apps we're going to download the Pico version and this is going to include Google Play and all the services we need to get it up and running and we're going to install device ID apk now in order to get this up and running in Google Play you will have to register this under your email it's just kind of like a development registration and it's pretty easy to do all links for everything will be in the description we're going to open up the browser and we're going to head over to open gaps that way we can download the Pico version that includes Google Play we need to make sure we're downloading the correct version of gaps so we're going to choose armed Android 9 and Pico we'll just click this little download icon here you might have to allow the browser access to download files so we'll click download and if you want to check the status up in the top left hand corner you can kind of swipe down and just make sure it's downloading so while that finishes up I'm gonna go ahead and download device ID this is the device IV apk we can get it from APK mirror the version I'm going to be using is 1.3 - but 1.30 also works we need to find the download button download apk again you'll get the download prompt so click download and if you want to check the progress on this up in the top left hand corner you can swipe down so now we need to enable developer options so we can get root access and local terminal we're gonna head over to the settings menu scroll all the way down to the bottom to about tablet from here we're gonna click on build number four or five times it'll prompt you we now have developer options enabled backup go to system advanced and all the way down we'll see developer options from within this menu we need to find root access we're going to allow apps and adb make sure this is checked now we need to find local terminal and we'll turn this on we can now back out of the settings and I recommend moving the gapps package that we downloaded to the root of your storage so you can open up files go to your download section and we're going to take that gaps package and just drag it right to where it says raspberry pie this is just going to make it easier to find when we're in recovery so we're now all prepared to install Google Play but we do need to reboot the system one time to enable that local terminal so from your keyboard if you hold f5 it'll bring up the power menu and just click restart so now that we've restarted the system we're gonna go into our apps menu and launch terminal it's probably going to prompt you to allow access to some storage so we'll just click allow here and from our keyboard we're going to type in su for super user press Enter it's going to prompt you again I'm just going to remember this decision and click allow now we need to type in our PI for recovery dot SH and press Enter and finally reboot press ENTER and your system will automatically reboot into recovery so to some custom Android users this might look really familiar because this is twr P for the Raspberry Pi we're gonna swipe to allow modifications and from the main menu we're gonna go to install and find that gaps package that we downloaded this is the Pico version for armed Android nice swipe to install give it a little time to finish up its going to install gapps for us when this is finished installing we also need to wipe the Dell vut cache so we'll click wipe dalvik and we're going to swipe to allow now it's time to back up to the main menu we can use the bottom buttons here or just click on the T WRP icon from the main menu we're gonna go to wipe and we're gonna reset the device so wipe swipe to factory reset we're gonna click back from here we'll go to mount make sure boot system and data is checked we'll back up advanced terminal and now we need to reboot the system from terminal but we're going to set it to normaly boot into Android instead of recovery every time and to do that we're just going to type in our PI for recovery Sh boot press ENTER and all we need to do now is type in reboot and press Enter the system's going to reboot into Android for us and we'll have Google Play installed but we can't use it just yet that's why we downloaded the device ID apk we're going to get a code from that and we can tell Google that we want to use Google Play on this device kind of as a development platform so once we get an Android I'll show you what to do you so this time around when he booted up it might look a little different you'll just have to set it up like you would any other Android phone or tablet I'm just gonna go through the motions here I'm not gonna set up a protective pen or anything like that I just want to get into Android so we can get Google Play up and running all right so you see we have a Google Play right on the desktop here but if we try to access it it's just going to tell us that it's not play protected and we can't access Google Play so we're going to head over to our file section and we're going to find that device ID apk that we downloaded and go ahead and install it now so once this is installed we're gonna open it up and click on Google service framework this is going to give us a code we're gonna click copy you might notice we've had a warning hanging over our heads here we're gonna click on it it's going to tell us that our device is not play protect certified so we're going to go down to the bottom here where it says custom rom users and click on this link it's gonna open up the browser for us we're going to sign in with a gmail account once we're signed in it'll bring us to the overview screen and we're going to paste the code we copied from the device ID apk you can paste it by pressing ctrl V on your keyboard click register give it a few seconds it'll register this device as a custom ROM and allow you to use google play now it's time to reboot the system one last time and I do recommend waiting about five minutes before you start to access google play just to make sure everything went through on Google's end if you receive the warning again that your device is not Google certified just wait on it give it five to ten minutes and it will go through just gonna start up Google Play I'm gonna sign in with my gmail account just like I would with any new Android phone or tablet and once I'm signed in I can access Google Play from the Raspberry Pi for running lineage OS 16 so there we have it I really appreciate you guys watching I'm gonna go ahead and download a quick application will do I 264 just to show you everything's working here it's gonna go ahead and download and install from the Google Play Store and I can open it up so that's pretty much it for this video guys I really appreciate you watching and like I mention all links are in the description keep in mind this is still very early for Android on the Raspberry Pi but if you're interested in playing around with it you now have it installed on your PI 4 and you have access to Google Play if you have any questions or you want to see anything else running on the Raspberry Pi 4 just let me know in the comments below but like always thanks for watching you\n"