Is it possible to emulate the notch from the Huawei P20 with Android Studio

ID : 131337

viewed : 9

Tags : androidandroid-studioandroid

Top 5 Answer for Is it possible to emulate the notch from the Huawei P20 with Android Studio

vote vote

90

Follow the screen shots.

first make sure 9.0 (api 28) run in your Emulater or testing device.

  1. Open System settings.

enter image description here

  1. Open Developer option (*if u not found developer option please tap 7 times on build number. after that you get developer option.)

enter image description here

  1. Scroll Down Until You Found -> Simulate a Display With a Cutout(click on it)

enter image description here

  1. there is a multiple option to select screen Cutout style.

enter image description here

  1. if you select Tall Display Cutout , your display is like that.

enter image description here

or if you select Double Display Cutout your display like.

enter image description here

vote vote

80

So I googled around and it's actually possible to emulate the notch in the developer preview of Android P.

To develope against that, you need to setup an emulator running Android P and then set the notch simulation in the developer settings of android.

Here is the official article to setup that notch simulation in Android P Cutout API

Once that is done you can start testing and adapting to the new changes coming with these notches and Android P.

vote vote

71

Yes, its possible to simulate notches in the Android Emulator:

  1. Install Android P
  2. Enable Developer Options

Follow the Steps( Make Sure You Have Enabled Developer Option Before Doing this):

  • Simulate the notch(Inside Developers Options)
  • Go to Settings
  • Click on System
  • Click on Advanced
  • Select Developer Options
  • Scroll Down Until You Found-> Simulate a Display With a Cutout(CLICK ON IT)

This will trigger a Dialog showing Some Options:

  • None (This is the default behaviour)
  • Corner Display Cutout(Display's a Cutout on Corner)
  • Double Display Cutout (Shows Notches Up and Down)
  • Tall Display Cutout (Shows a tall Notch at the Top)

Select Double Display Cutout or Tall Display Cutout

vote vote

63

I did this successfully on emulator "Pixel 3a API 30" by following these steps:

How to Enable Developer mode

  1. Go to System → About emulated device → Build number
  2. Tap/click on "Build number" 5 or more times, until you see the message "you are now a developer"

How to Enable notch/cutout on emulator

  1. Go to System → Advanced → Developer options
  2. Find and tap on option Display cutout (it is not Simulate a Display With a Cutout like on older versions)
  3. Select the option which suits You best (notice the black hole on the top left corner, on the screenshot below) Display cutout android emulator-developer options
vote vote

53

Top 3 video Explaining Is it possible to emulate the notch from the Huawei P20 with Android Studio

Related QUESTION?