[Essential Phone Guides, News, & Discussion] mrmrkmail:
hello guys,

i have coded a overlay for the stausbar that respect the front camera cutout.

i also have managed to get the circle icon shape to work with the DP4.

first of all u need a rooded (latest Magisk carnary - https://xdaforums.com/apps/magisk/dev-magisk-canary-channel-bleeding-edge-t3839337) device and a root explorer (https://www.apkmirror.com/apk/jrummy-apps/root-browser/root-browser-3-5-10-0-release/).

in the attachment u can find the nessesary files you will need for the statusbar overlay and the circle icon shape.

copy the folders "DisplayCutoutEmulationEssential" and "IconShapeCircle" into "(root directory) produkt/overlay"

set the permission of the apks in the folders to rw - rw - r (664)

with root explorer go into the folder "(root) product/etc/sysconfig" and copy the xml file provided in the attachment and overwrite it or insert the following lines directly in the "preinstalled-packages-platform-overlays.xml (shown in red)":

the xml file should look like this:

<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2019 The Android Open Source Project

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!-- System packages to preinstall on all devices with frameworks-base-overlays, per user type.
Documentation at frameworks/base/data/etc/preinstalled-packages-platform.xml
-->
<config>
<install-in-user-type package="com.android.internal.display.cutout.emulation.corner">
<install-in user-type="FULL" />
</install-in-user-type>
<install-in-user-type package="com.android.internal.display.cutout.emulation.double">
<install-in user-type="FULL" />
</install-in-user-type>
<install-in-user-type package="com.android.internal.display.cutout.emulation.tall">
<install-in user-type="FULL" />
</install-in-user-type>
<install-in-user-type package="com.android.internal.systemui.navbar.gestural">
<install-in user-type="FULL" />
</install-in-user-type>
<install-in-user-type package="com.android.internal.systemui.navbar.gestural_extra_wide_back">
<install-in user-type="FULL" />
</install-in-user-type>
<install-in-user-type package="com.android.internal.systemui.navbar.gestural_narrow_back">
<install-in user-type="FULL" />
</install-in-user-type>
<install-in-user-type package="com.android.internal.systemui.navbar.gestural_wide_back">
<install-in user-type="FULL" />
</install-in-user-type>
<install-in-user-type package="com.android.internal.systemui.navbar.threebutton">
<install-in user-type="FULL" />
</install-in-user-type>
<install-in-user-type package="com.android.internal.systemui.navbar.twobutton">
<install-in user-type="FULL" />
</install-in-user-type>
[COLOR="Red"]<install-in-user-type package="com.android.theme.icon.circle">
<install-in user-type="FULL" />
</install-in-user-type>
<install-in-user-type package="com.android.internal.display.cutout.emulation.essential">
<install-in user-type="FULL" />
</install-in-user-type>[/COLOR]
</config>

after rebooting your device the cutout overlay called "Essential" could be chosen in the developer options (see screenshot)

the circle icon shape cound be activated via usb debugging with the following command:

adb shell cmd overlay enable --user 0 com.android.theme.icon.circle