19

Anbox doesn't come with Google Services as Google Services can't be installed on an unregistered device / firmware, but there are ways to achieve that in Custom ROMs or even emulators. If you want to use Android to its fullest then Google Play Services is a must.

What have I tried so far?

I've tried to install Google Play Services x86 apk, which successfully got installed and also appears in Settings -> Apps.

I've also tried to install Google Play Store which also got successfully installed and appears in the App Drawer of Anbox (also in GNOME), but it doesn't work as expected. For example, the YouTube app loads content but can't play videos and Google Play Store doesn't even load content, I think maybe because Google Play Services isn't installed as system app or maybe because there are some other Google apps that these things depend on which I'm missing.

karel
  • 552
  • 3
  • 11
  • 19
Sumeet Deshmukh
  • 393
  • 1
  • 3
  • 14
  • You could see if Anbox emulates Android's file system somewhere and from there you can see to installing Gapps similarly to how you would do it with custom roms – Hanro50 Jul 12 '17 at 18:49
  • See any Gapps installer script from open gapps used for custom rom and follow the process for anbox – Deepak Gangwar Jul 13 '17 at 23:23
  • This is the script that @Freedom_Ben's answer is basically telling you to run: https://github.com/geeks-r-us/anbox-playstore-installer

    There's a pending pull request for a non-snap Anbox too, if that's what you're after.

    – Oxwivi Oct 10 '18 at 12:31
  • Try that. It worked greately to me on my PC (Ubuntu) and my laptop (Ubuntu) https://www.linuxuprising.com/2018/07/anbox-how-to-install-google-play-store.html – Sérgio Cabral Apr 01 '19 at 02:02
  • Check out this blog post: http://geeks-r-us.de/2017/08/26/android-apps-auf-dem-linux-desktop/ It is in German but can be translated to English with high levels of success using the Google Translate plugin for Chrome. For a more detailed discussion, this thread on the projects Github page is helpful: https://github.com/anbox/anbox/issues/118 – Freedom_Ben Nov 22 '17 at 04:39

2 Answers2

1

Run these commands:

snap install --devmode --beta anbox
wget -O -  https://raw.githubusercontent.com/geeks-r-us/anbox-playstore-installer/master/install-playstore.sh | bash
Firelord
  • 25,084
  • 20
  • 124
  • 286
  • This answer still works, however I had to manually give permissions to the Google Play Store app to make it work. – Domagoj Oct 20 '21 at 12:35
0

I'm not really sure about Anbox, but I've made and modified several Android distros, that are unregistered, as you had said. What I had done on these devices was:

  1. Either go to Open GApps and then download the app. Then run it, choose the package and wait for it to download. Use a superuser, to grant GApps permission, and allow it to install all Google apps (as per your package selection).
  2. The second thing you can do is, use flashify, to flash a zip that you can download from Open GApps again.
Sayan N.
  • 1
  • 1