Merge pull request #46 from TadiT7/patch-3
Adjust Mi 8SE statusbar, rounded corners and add initial notch overlay for Mi 8 Lite
This commit is contained in:
commit
d2aefd5f07
8
Xiaomi/Mi8Lite/Android.mk
Normal file
8
Xiaomi/Mi8Lite/Android.mk
Normal file
|
@ -0,0 +1,8 @@
|
|||
LOCAL_PATH := $(call my-dir)
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
LOCAL_PACKAGE_NAME := treble-overlay-xiaomi-mi8lite
|
||||
LOCAL_MODULE_PATH := $(TARGET_OUT)/overlay
|
||||
LOCAL_IS_RUNTIME_RESOURCE_OVERLAY := true
|
||||
LOCAL_PRIVATE_PLATFORM_APIS := true
|
||||
include $(BUILD_PACKAGE)
|
10
Xiaomi/Mi8Lite/AndroidManifest.xml
Normal file
10
Xiaomi/Mi8Lite/AndroidManifest.xml
Normal file
|
@ -0,0 +1,10 @@
|
|||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="me.phh.treble.overlay.xiaomi.mi8lite"
|
||||
android:versionCode="1"
|
||||
android:versionName="1.0">
|
||||
<overlay android:targetPackage="android"
|
||||
android:requiredSystemPropertyName="ro.vendor.build.fingerprint"
|
||||
android:requiredSystemPropertyValue="+*iaomi/platina*"
|
||||
android:priority="53"
|
||||
android:isStatic="true" />
|
||||
</manifest>
|
22
Xiaomi/Mi8Lite/res/values-land/notch.xml
Normal file
22
Xiaomi/Mi8Lite/res/values-land/notch.xml
Normal file
|
@ -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>
|
26
Xiaomi/Mi8Lite/res/values/notch.xml
Normal file
26
Xiaomi/Mi8Lite/res/values/notch.xml
Normal file
|
@ -0,0 +1,26 @@
|
|||
<?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">110px</dimen>
|
||||
<!-- Height of the status bar -->
|
||||
<dimen name="status_bar_height">110px</dimen>
|
||||
<!-- Height of the status bar in landscape -->
|
||||
<dimen name="status_bar_height_landscape">24dp</dimen>
|
||||
</resources>
|
|
@ -18,10 +18,12 @@
|
|||
-->
|
||||
<resources>
|
||||
<!-- Height of the status bar in portrait -->
|
||||
<dimen name="status_bar_height_portrait">110px</dimen>
|
||||
<dimen name="status_bar_height_portrait">85px</dimen>
|
||||
<!-- Height of the status bar -->
|
||||
<dimen name="status_bar_height">110px</dimen>
|
||||
<dimen name="status_bar_height">85px</dimen>
|
||||
<!-- Height of the status bar in landscape -->
|
||||
<dimen name="status_bar_height_landscape">24dp</dimen>
|
||||
<string translatable="false" name="config_mainBuiltInDisplayCutout">M -266,0 L -266,85 L 266,85 L 266,0 Z</string>
|
||||
</resources>
|
||||
<string translatable="false" name="config_mainBuiltInDisplayCutout">M -266,0 L -266,85 L 266,85 L 266,0 Z</string>
|
||||
<!-- Radius of the software rounded corners. -->
|
||||
<dimen name="rounded_corner_radius">48px</dimen>
|
||||
</resources>
|
||||
|
|
|
@ -30,6 +30,7 @@ PRODUCT_PACKAGES += \
|
|||
treble-overlay-samsung-s9-systemui \
|
||||
treble-overlay-xiaomi-mi8 \
|
||||
treble-overlay-xiaomi-mi8ee \
|
||||
treble-overlay-xiaomi-mi8lite \
|
||||
treble-overlay-xiaomi-mi8se \
|
||||
treble-overlay-xiaomi-mimix2s \
|
||||
treble-overlay-xiaomi-mimix3 \
|
||||
|
|
Loading…
Reference in a new issue