Skip to content

Commit

Permalink
Merge pull request phhusson#48 from TadiT7/noche
Browse files Browse the repository at this point in the history
Update notch support
  • Loading branch information
phhusson committed Dec 26, 2018
2 parents 51f8775 + 3493387 commit 6f7fd75
Show file tree
Hide file tree
Showing 17 changed files with 203 additions and 8 deletions.
6 changes: 3 additions & 3 deletions Xiaomi/Mi8/res/values/notch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
-->
<resources>
<!-- Height of the status bar in portrait -->
<dimen name="status_bar_height_portrait">110px</dimen>
<dimen name="status_bar_height_portrait">88px</dimen>
<!-- Height of the status bar -->
<dimen name="status_bar_height">110px</dimen>
<dimen name="status_bar_height">88px</dimen>
<!-- Height of the status bar in landscape -->
<dimen name="status_bar_height_landscape">24dp</dimen>
<string translatable="false" name="config_mainBuiltInDisplayCutout">M -295,0 L -295,88 L 295,88 L 295,0 Z</string>
</resources>
</resources>
6 changes: 3 additions & 3 deletions Xiaomi/Mi8EE/res/values/notch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
-->
<resources>
<!-- Height of the status bar in portrait -->
<dimen name="status_bar_height_portrait">110px</dimen>
<dimen name="status_bar_height_portrait">88px</dimen>
<!-- Height of the status bar -->
<dimen name="status_bar_height">110px</dimen>
<dimen name="status_bar_height">88px</dimen>
<!-- Height of the status bar in landscape -->
<dimen name="status_bar_height_landscape">24dp</dimen>
<string translatable="false" name="config_mainBuiltInDisplayCutout">M -295,0 L -295,88 L 295,88 L 295,0 Z</string>
</resources>
</resources>
5 changes: 3 additions & 2 deletions Xiaomi/Mi8Lite/res/values/notch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@
-->
<resources>
<!-- Height of the status bar in portrait -->
<dimen name="status_bar_height_portrait">110px</dimen>
<dimen name="status_bar_height_portrait">81px</dimen>
<!-- Height of the status bar -->
<dimen name="status_bar_height">110px</dimen>
<dimen name="status_bar_height">81px</dimen>
<!-- Height of the status bar in landscape -->
<dimen name="status_bar_height_landscape">24dp</dimen>
<string translatable="false" name="config_mainBuiltInDisplayCutout">M -160,0 L -160,81 L 160,81 L 160,0 Z</string>
</resources>
8 changes: 8 additions & 0 deletions Xiaomi/Mi8Pro/Android.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := optional
LOCAL_PACKAGE_NAME := treble-overlay-xiaomi-mi8pro
LOCAL_MODULE_PATH := $(TARGET_OUT)/overlay
LOCAL_IS_RUNTIME_RESOURCE_OVERLAY := true
LOCAL_PRIVATE_PLATFORM_APIS := true
include $(BUILD_PACKAGE)
10 changes: 10 additions & 0 deletions Xiaomi/Mi8Pro/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="me.phh.treble.overlay.xiaomi.mi8pro"
android:versionCode="1"
android:versionName="1.0">
<overlay android:targetPackage="android"
android:requiredSystemPropertyName="ro.vendor.build.fingerprint"
android:requiredSystemPropertyValue="+*iaomi/equuleus*"
android:priority="54"
android:isStatic="true" />
</manifest>
22 changes: 22 additions & 0 deletions Xiaomi/Mi8Pro/res/values-land/notch.xml
Original file line number Diff line number Diff line change
@@ -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>
27 changes: 27 additions & 0 deletions Xiaomi/Mi8Pro/res/values/notch.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?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 in portrait -->
<dimen name="status_bar_height_portrait">88px</dimen>
<!-- Height of the status bar -->
<dimen name="status_bar_height">88px</dimen>
<!-- Height of the status bar in landscape -->
<dimen name="status_bar_height_landscape">24dp</dimen>
<string translatable="false" name="config_mainBuiltInDisplayCutout">M -295,0 L -295,88 L 295,88 L 295,0 Z</string>
</resources>
6 changes: 6 additions & 0 deletions Xiaomi/RedmiNote6Pro-SystemUI/Android.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := optional
LOCAL_PACKAGE_NAME := treble-overlay-xiaomi-redminote6pro-systemui
LOCAL_PRIVATE_PLATFORM_APIS := true
include $(BUILD_PACKAGE)
9 changes: 9 additions & 0 deletions Xiaomi/RedmiNote6Pro-SystemUI/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="me.phh.treble.overlay.xiaomi.redminote6pro.systemui"
android:versionCode="1"
android:versionName="1.0">
<overlay android:targetPackage="com.android.systemui"
android:requiredSystemPropertyName="ro.vendor.build.fingerprint"
android:requiredSystemPropertyValue="+*iaomi/tulip*"
android:priority="56" />
</manifest>
20 changes: 20 additions & 0 deletions Xiaomi/RedmiNote6Pro-SystemUI/res/values-sw372dp/dimens.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
* Copyright (c) 2006, 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>
<dimen name="rounded_corner_content_padding">46px</dimen>
</resources>
20 changes: 20 additions & 0 deletions Xiaomi/RedmiNote6Pro-SystemUI/res/values/dimens.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
* Copyright (c) 2006, 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>
<dimen name="rounded_corner_content_padding">46px</dimen>
</resources>
8 changes: 8 additions & 0 deletions Xiaomi/RedmiNote6Pro/Android.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := optional
LOCAL_PACKAGE_NAME := treble-overlay-xiaomi-redminote6pro
LOCAL_MODULE_PATH := $(TARGET_OUT)/overlay
LOCAL_IS_RUNTIME_RESOURCE_OVERLAY := true
LOCAL_PRIVATE_PLATFORM_APIS := true
include $(BUILD_PACKAGE)
10 changes: 10 additions & 0 deletions Xiaomi/RedmiNote6Pro/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="me.phh.treble.overlay.xiaomi.redminote6pro"
android:versionCode="1"
android:versionName="1.0">
<overlay android:targetPackage="android"
android:requiredSystemPropertyName="ro.vendor.build.fingerprint"
android:requiredSystemPropertyValue="+*iaomi/tulip*"
android:priority="55"
android:isStatic="true" />
</manifest>
22 changes: 22 additions & 0 deletions Xiaomi/RedmiNote6Pro/res/values-land/notch.xml
Original file line number Diff line number Diff line change
@@ -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>
29 changes: 29 additions & 0 deletions Xiaomi/RedmiNote6Pro/res/values/notch.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?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 in portrait -->
<dimen name="status_bar_height_portrait">88px</dimen>
<!-- Height of the status bar -->
<dimen name="status_bar_height">88px</dimen>
<!-- Height of the status bar in landscape -->
<dimen name="status_bar_height_landscape">24dp</dimen>
<string translatable="false" name="config_mainBuiltInDisplayCutout">M -280,0 L -280,88 L 280,88 L 280,0 Z</string>
<!-- Radius of the software rounded corners. -->
<dimen name="rounded_corner_radius">92px</dimen>
</resources>
Empty file modified build/build.sh
100644 → 100755
Empty file.
3 changes: 3 additions & 0 deletions overlay.mk
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ PRODUCT_PACKAGES += \
treble-overlay-xiaomi-mi8 \
treble-overlay-xiaomi-mi8ee \
treble-overlay-xiaomi-mi8lite \
treble-overlay-xiaomi-mi8pro \
treble-overlay-xiaomi-mi8se \
treble-overlay-xiaomi-mia2 \
treble-overlay-xiaomi-mia2lite \
Expand All @@ -49,6 +50,8 @@ PRODUCT_PACKAGES += \
treble-overlay-xiaomi-pocof1 \
treble-overlay-xiaomi-redmi6pro \
treble-overlay-xiaomi-redminote5 \
treble-overlay-xiaomi-redminote6pro \
treble-overlay-xiaomi-redminote6pro-systemui \

PRODUCT_PACKAGES += \
hw-fpnav-daemon \
Expand Down

0 comments on commit 6f7fd75

Please sign in to comment.