zenfone9: Add front-facing camera protection
* Extra padding for front facing camera cutout when camera is in use
* Remove flares on high brightness while using front camera
Change-Id: I68acb0deecbecd916be90de0a9043ea4703553df
diff --git a/rro_overlays/SystemUIOverlay/res/values/config.xml b/rro_overlays/SystemUIOverlay/res/values/config.xml
index f412ba7..93a0166 100644
--- a/rro_overlays/SystemUIOverlay/res/values/config.xml
+++ b/rro_overlays/SystemUIOverlay/res/values/config.xml
@@ -23,4 +23,21 @@
<!-- Doze: does this device support STATE_DOZE? -->
<bool name="doze_display_state_supported">true</bool>
+ <!-- A path similar to frameworks/base/core/res/res/values/config.xml
+ config_mainBuiltInDisplayCutout that describes a path larger than the exact path of a outer
+ display cutout. If present as well as config_enableDisplayCutoutProtection is set to true,
+ then SystemUI will draw this "protection path" instead of the display cutout path that is
+ normally used for anti-aliasing.
+
+ This path will only be drawn when the front-facing camera turns on, otherwise the main
+ DisplayCutout path will be rendered
+ -->
+ <string translatable="false" name="config_frontBuiltInDisplayCutoutProtection">M131,77m-60,0a60,60 0,1 1,120 0a60,60 0,1 1,-120 0 Z</string>
+
+ <!-- ID for the camera of outer display that needs extra protection -->
+ <string translatable="false" name="config_protectedCameraId">1</string>
+
+ <!-- Flag to turn on the rendering of the above path or not -->
+ <bool name="config_enableDisplayCutoutProtection">true</bool>
+
</resources>
\ No newline at end of file