From fbee692135dae461ea042d841efbdd70b218adbe Mon Sep 17 00:00:00 2001 From: Andrew Thomas <44932193+itz63c@users.noreply.github.com> Date: Tue, 26 Mar 2019 21:44:19 -0400 Subject: [PATCH] universal7885: Add Notch Bar Killer overlay * This overlay gets rid of the black bar in most apps/games and lets the screen fill past the notch. Change-Id: Ic008ce5d569127d230dc44451929477e063c4471 Signed-off-by: Josh Fox (XlxFoXxlX) Signed-off-by: Anirudh Gupta Signed-off-by: Adithya R Signed-off-by: roynatech2544 --- .../rro_overlays/NotchBarKiller/Android.bp | 19 ++++++++++++ .../NotchBarKiller/AndroidManifest.xml | 26 ++++++++++++++++ .../NotchBarKiller/res/values/config.xml | 31 +++++++++++++++++++ .../NotchBarKiller/res/values/strings.xml | 3 ++ universal7885-common/universal7885-common.mk | 4 +++ 5 files changed, 83 insertions(+) create mode 100644 universal7885-common/rro_overlays/NotchBarKiller/Android.bp create mode 100644 universal7885-common/rro_overlays/NotchBarKiller/AndroidManifest.xml create mode 100644 universal7885-common/rro_overlays/NotchBarKiller/res/values/config.xml create mode 100644 universal7885-common/rro_overlays/NotchBarKiller/res/values/strings.xml diff --git a/universal7885-common/rro_overlays/NotchBarKiller/Android.bp b/universal7885-common/rro_overlays/NotchBarKiller/Android.bp new file mode 100644 index 0000000..3b13c6d --- /dev/null +++ b/universal7885-common/rro_overlays/NotchBarKiller/Android.bp @@ -0,0 +1,19 @@ +// Copyright (C) 2020 Paranoid Android +// +// 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. + +runtime_resource_overlay { + name: "NotchBarKiller", + sdk_version: "current", + product_specific: true, +} diff --git a/universal7885-common/rro_overlays/NotchBarKiller/AndroidManifest.xml b/universal7885-common/rro_overlays/NotchBarKiller/AndroidManifest.xml new file mode 100644 index 0000000..65b287c --- /dev/null +++ b/universal7885-common/rro_overlays/NotchBarKiller/AndroidManifest.xml @@ -0,0 +1,26 @@ + + + + + + + diff --git a/universal7885-common/rro_overlays/NotchBarKiller/res/values/config.xml b/universal7885-common/rro_overlays/NotchBarKiller/res/values/config.xml new file mode 100644 index 0000000..9ef55cc --- /dev/null +++ b/universal7885-common/rro_overlays/NotchBarKiller/res/values/config.xml @@ -0,0 +1,31 @@ + + + + + + true + + M 0,0 L 0, 0 C 0,0 0,0 0,0 + @*android:string/config_mainBuiltInDisplayCutout + + + 4 + 5 + + diff --git a/universal7885-common/rro_overlays/NotchBarKiller/res/values/strings.xml b/universal7885-common/rro_overlays/NotchBarKiller/res/values/strings.xml new file mode 100644 index 0000000..e105f42 --- /dev/null +++ b/universal7885-common/rro_overlays/NotchBarKiller/res/values/strings.xml @@ -0,0 +1,3 @@ + + Notch Bar Killer + diff --git a/universal7885-common/universal7885-common.mk b/universal7885-common/universal7885-common.mk index 7d1a350..99507db 100644 --- a/universal7885-common/universal7885-common.mk +++ b/universal7885-common/universal7885-common.mk @@ -247,6 +247,10 @@ PRODUCT_PACKAGES += \ PRODUCT_PACKAGES += \ RemovePkgs +# Notch +PRODUCT_PACKAGES += \ + NotchBarKiller + # RIL PRODUCT_PACKAGES += \ android.hardware.radio@1.2.vendor \