Setting up a local Android emulator - abeedal/Abeedal GitHub Wiki
Setting up a local Android emulator
Launch AVD and create a brand new emulator device
Once the device is setup with either Android 10 or 11 (Without starting the emulator proceed to next step)
The first command starts the emulator in a writable state AVDNAME Is the name of the emulator you use with _ to fill any spaces in the name
Example: Pixel 3 XL = Pixel_3_XL (Remove <> from the command)
~/Library/Android/sdk/emulator/emulator -writable-system -netdelay none -netspeed full -avd In a new terminal window enter the following commands in sequence
adb root adb shell avbctl disable-verification exit <- (leaves shell) adb reboot adb root adb remount adb -s emulator-5554 push /etc/hosts /system/etc/hosts The device will now be ready to use with the local wiremock instance.
IF YOU EXPERIENCE AN ISSUE WHERE YOUR EMULATOR CANT BOOT AND OR IS STUCK - REMAKE THE EMULATOR USING THE ABOVE STEPS - Should you still experience issue contact Connor Lovegrove or Mark Gamble for further enquires.