This will allow us to change the host file in Android, which requires root (something the default images won’t allow). While the virtual device that was setup out-of-the-box is fine for most operations, we’ll want to setup an older version of the emulator. They include the version of the operating system you use when you boot up the device. You may already have a virtual device setup from the initial setup of Android Studio. These are devices that will be used in order to run an emulator.
You’ll see a popup window that will show you the list of virtual devices. Then press the “AVD Manager” in the sub-menu. Then, press “Configure” in the bottom right corner. Once you have Android Studio installed, we’ll need to setup an emulator.
Root android emulator mac android studio how to#
The only problem then, is how to get the host file to match your desktop environment. With the ability to use a remote Chrome debugger from your desktop to a mobile device, you can use an emulator and still have your full Chrome debugging capabilities. However, due to some cross-origin resource sharing (CORS) issues on my server, I had to serve my development environment from a changed hostfile that had a specific subdomain of my project. While working on a bug in one of my projects recently, I found an issue that I could only recreate on an Android device.