Add statusbar height to cover the notch on LG G7, Xiaomi Mi 8 SE and Xiaomi Mi 8 Explorer Edition
diff --git a/LG/G7/Android.mk b/LG/G7/Android.mk
new file mode 100644
index 0000000..98527ab
--- /dev/null
+++ b/LG/G7/Android.mk
@@ -0,0 +1,7 @@
+LOCAL_PATH := $(call my-dir)
+include $(CLEAR_VARS)
+LOCAL_MODULE_TAGS := optional
+LOCAL_PACKAGE_NAME := treble-overlay-lg-g7
+LOCAL_MODULE_PATH := $(TARGET_OUT)/overlay
+LOCAL_IS_RUNTIME_RESOURCE_OVERLAY := true
+include $(BUILD_PACKAGE)
diff --git a/LG/G7/AndroidManifest.xml b/LG/G7/AndroidManifest.xml
new file mode 100644
index 0000000..e4d43b8
--- /dev/null
+++ b/LG/G7/AndroidManifest.xml
@@ -0,0 +1,10 @@
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+ package="me.phh.treble.overlay.lg.g7"
+ android:versionCode="1"
+ android:versionName="1.0">
+ <overlay android:targetPackage="android"
+ android:requiredSystemPropertyName="ro.vendor.build.fingerprint"
+ android:requiredSystemPropertyValue="+lge/judyln*"
+ android:priority="15"
+ android:isStatic="true" />
+</manifest>
diff --git a/LG/G7/res/values-land/notch.xml b/LG/G7/res/values-land/notch.xml
new file mode 100644
index 0000000..7e9d1fc
--- /dev/null
+++ b/LG/G7/res/values-land/notch.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+/*
+** Copyright 2017, 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.
+*/
+-->
+<resources>
+ <!-- Height of the status bar -->
+ <dimen name="status_bar_height">24dp</dimen>
+</resources>
\ No newline at end of file
diff --git a/LG/G7/res/values/notch.xml b/LG/G7/res/values/notch.xml
new file mode 100644
index 0000000..5bc3ec4
--- /dev/null
+++ b/LG/G7/res/values/notch.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+/*
+** Copyright 2017, 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.
+*/
+-->
+<resources>
+ <!-- Height of the status bar -->
+ <dimen name="status_bar_height">94px</dimen>
+</resources>
\ No newline at end of file
diff --git a/Xiaomi/Mi8EE/Android.mk b/Xiaomi/Mi8EE/Android.mk
new file mode 100644
index 0000000..78ae718
--- /dev/null
+++ b/Xiaomi/Mi8EE/Android.mk
@@ -0,0 +1,7 @@
+LOCAL_PATH := $(call my-dir)
+include $(CLEAR_VARS)
+LOCAL_MODULE_TAGS := optional
+LOCAL_PACKAGE_NAME := treble-overlay-xiaomi-mi8ee
+LOCAL_MODULE_PATH := $(TARGET_OUT)/overlay
+LOCAL_IS_RUNTIME_RESOURCE_OVERLAY := true
+include $(BUILD_PACKAGE)
diff --git a/Xiaomi/Mi8EE/AndroidManifest.xml b/Xiaomi/Mi8EE/AndroidManifest.xml
new file mode 100644
index 0000000..a99aa2d
--- /dev/null
+++ b/Xiaomi/Mi8EE/AndroidManifest.xml
@@ -0,0 +1,10 @@
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+ package="me.phh.treble.overlay.xiaomi.mi8ee"
+ android:versionCode="1"
+ android:versionName="1.0">
+ <overlay android:targetPackage="android"
+ android:requiredSystemPropertyName="ro.vendor.product.device"
+ android:requiredSystemPropertyValue="ursa"
+ android:priority="17"
+ android:isStatic="true" />
+</manifest>
diff --git a/Xiaomi/Mi8EE/res/values-land/notch.xml b/Xiaomi/Mi8EE/res/values-land/notch.xml
new file mode 100644
index 0000000..7e9d1fc
--- /dev/null
+++ b/Xiaomi/Mi8EE/res/values-land/notch.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+/*
+** Copyright 2017, 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.
+*/
+-->
+<resources>
+ <!-- Height of the status bar -->
+ <dimen name="status_bar_height">24dp</dimen>
+</resources>
\ No newline at end of file
diff --git a/Xiaomi/Mi8EE/res/values/notch.xml b/Xiaomi/Mi8EE/res/values/notch.xml
new file mode 100644
index 0000000..1481825
--- /dev/null
+++ b/Xiaomi/Mi8EE/res/values/notch.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+/*
+** Copyright 2017, 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.
+*/
+-->
+<resources>
+ <!-- Height of the status bar -->
+ <dimen name="status_bar_height">110px</dimen>
+</resources>
\ No newline at end of file
diff --git a/Xiaomi/Mi8SE/Android.mk b/Xiaomi/Mi8SE/Android.mk
new file mode 100644
index 0000000..c7f8dfd
--- /dev/null
+++ b/Xiaomi/Mi8SE/Android.mk
@@ -0,0 +1,7 @@
+LOCAL_PATH := $(call my-dir)
+include $(CLEAR_VARS)
+LOCAL_MODULE_TAGS := optional
+LOCAL_PACKAGE_NAME := treble-overlay-xiaomi-mi8se
+LOCAL_MODULE_PATH := $(TARGET_OUT)/overlay
+LOCAL_IS_RUNTIME_RESOURCE_OVERLAY := true
+include $(BUILD_PACKAGE)
diff --git a/Xiaomi/Mi8SE/AndroidManifest.xml b/Xiaomi/Mi8SE/AndroidManifest.xml
new file mode 100644
index 0000000..85ca0be
--- /dev/null
+++ b/Xiaomi/Mi8SE/AndroidManifest.xml
@@ -0,0 +1,10 @@
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+ package="me.phh.treble.overlay.xiaomi.mi8se"
+ android:versionCode="1"
+ android:versionName="1.0">
+ <overlay android:targetPackage="android"
+ android:requiredSystemPropertyName="ro.vendor.product.device"
+ android:requiredSystemPropertyValue="sirius"
+ android:priority="16"
+ android:isStatic="true" />
+</manifest>
diff --git a/Xiaomi/Mi8SE/res/values-land/notch.xml b/Xiaomi/Mi8SE/res/values-land/notch.xml
new file mode 100644
index 0000000..7e9d1fc
--- /dev/null
+++ b/Xiaomi/Mi8SE/res/values-land/notch.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+/*
+** Copyright 2017, 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.
+*/
+-->
+<resources>
+ <!-- Height of the status bar -->
+ <dimen name="status_bar_height">24dp</dimen>
+</resources>
\ No newline at end of file
diff --git a/Xiaomi/Mi8SE/res/values/notch.xml b/Xiaomi/Mi8SE/res/values/notch.xml
new file mode 100644
index 0000000..1481825
--- /dev/null
+++ b/Xiaomi/Mi8SE/res/values/notch.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+/*
+** Copyright 2017, 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.
+*/
+-->
+<resources>
+ <!-- Height of the status bar -->
+ <dimen name="status_bar_height">110px</dimen>
+</resources>
\ No newline at end of file
diff --git a/overlay.mk b/overlay.mk
index 545076d..fbaeaa3 100644
--- a/overlay.mk
+++ b/overlay.mk
@@ -2,6 +2,7 @@
treble-overlay-asus-zenfone5 \
treble-overlay-huawei \
treble-overlay-huawei-telephony \
+ treble-overlay-lg-g7 \
treble-overlay-NavBar \
treble-overlay-NightMode \
treble-overlay-Telephony-LTE \
@@ -9,6 +10,8 @@
treble-overlay-devinputjack \
treble-overlay-oneplus-op6 \
treble-overlay-xiaomi-mi8 \
+ treble-overlay-xiaomi-mi8ee \
+ treble-overlay-xiaomi-mi8se \
treble-overlay-xiaomi-mimix2s \
HardwareOverlayPicker \
QtiAudio \