37

I'm currently running the latest version of Android Studio, v3.2.1. The virtual devices available only go up to the Pixel 2 (and the XL version). These do not suffice since I mainly need to test on the new Google Pixel 3 XL, due to its notch.

enter image description here

Is it possible to get the new Pixel 3 (and XL version) loaded into Android Studio's emulators for testing?

6
  • 3
    just add custom emulator with pixel 3 screen size and density, RAM amount, etc. Nov 5, 2018 at 5:53
  • 2
    @VladyslavMatviienko will that simulate the notch? Cuz that's the #1 reason I can think how a Pixel 3XL emulator would be useful. Nov 5, 2018 at 21:10
  • @VladyslavMatviienko - That will not simulate the notch on the Pixel 3 XL though.
    – Fizzix
    Nov 6, 2018 at 7:47
  • Notch? You mean the skin of pixel 3? Nov 6, 2018 at 11:38
  • @VladyslavMatviienko - Note the notch at the top of the device in this image - boygeniusreport.files.wordpress.com/2018/08/…
    – Fizzix
    Nov 6, 2018 at 11:42

3 Answers 3

39

To add a notch in the emulator, choose any device with Android Pie system image (9.0). Build it, then go to Settings > System > expand 'Advanced' > Developer options > 'Drawing' section > 'Simulate a display with a cutout' on the emulator.

You can use it until they add the official skin

enter image description here

*NOTE: The 'Developer' option is not shown by default on Android phones. Please see the Android Documentation to learn out how to enable it.

3
  • This seems to be the only way to emulate the notch for the time being. Thank you.
    – Fizzix
    Nov 12, 2018 at 1:42
  • it disappearing once app start? why? Dec 30, 2019 at 7:19
  • In Google Pixel3 XL, "Simulate a display with a cutout" name is changed to "Display Cutout" Dec 30, 2019 at 9:12
14

To save other's some searching, here's the configuration necessary for a custom Pixel 3 XL hardware profile:

Device Type: Phone/Tablet
Screen Size: 6.3 inch
Resolution: 1440x2960 px
RAM: 8192 MB
Has Hardware Buttons: false
Has Hardware Keyboard: false
Navigation Style: none
Supported Device States: Portrait=true, Landscape=true
Cameras: Back-facing=true, Front-facing=true
Sensors: Accelerometer=true, Gyroscope=true, GPS=true, Proximity=true
Default Skin: No Skin

enter image description here

Then you can enable the notch developer option mentioned by Mohamed Saber and you should have a pretty accurate representation of a Pixel 3 XL. 🙂

14

Official AVDs for Pixel 3 and Pixel 3 XL are available since Android Studio 3.4

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.