Skip to content

Instantly share code, notes, and snippets.

@0q2
Created July 1, 2022 21:43
Show Gist options
  • Save 0q2/43f190b76f4719064f87c3b9a807c654 to your computer and use it in GitHub Desktop.
Save 0q2/43f190b76f4719064f87c3b9a807c654 to your computer and use it in GitHub Desktop.
Bypass to get Play Services and ADB/Root working on an official Android Studio image. Found this trick on an obscure SO comment a long time ago and somehow it still works.
Easiest way: You should create a new emulator, and before opening it for the first time, follow these easy steps:
Locate the directory where the emulator has been created. For example, in Windows go to: C:\Users[user].android\avd[your virtual device folder]
Open file config.ini with a text editor like Notepad.
Locate PlayStore.enabled key and change its value to true:
PlayStore.enabled = true
Locate image.sysdir.1 entry and change: google_apis => google_apis_playstore. Example:
image.sysdir.1 = system-images\android-30\google_apis\x86\
to
image.sysdir.1 = system-images\android-30\google_apis_playstore\x86\
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment