Add support for Asus ZenFone Max (M2) (#131)

* Add support for Asus ZenFone Max M2 notch
This commit is contained in:
egor21312 2019-08-26 00:08:16 +03:00 committed by Tadi
parent 63da3ac926
commit 78e0b12e94
5 changed files with 68 additions and 0 deletions

View file

@ -0,0 +1,8 @@
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := optional
LOCAL_PACKAGE_NAME := treble-overlay-asus-zenfonemaxm2
LOCAL_MODULE_PATH := $(TARGET_OUT)/overlay
LOCAL_IS_RUNTIME_RESOURCE_OVERLAY := true
LOCAL_PRIVATE_PLATFORM_APIS := true
include $(BUILD_PACKAGE)

View file

@ -0,0 +1,10 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="me.phh.treble.overlay.asus.zenfonemaxm2"
android:versionCode="1"
android:versionName="1.0">
<overlay android:targetPackage="android"
android:requiredSystemPropertyName="ro.vendor.build.fingerprint"
android:requiredSystemPropertyValue="+*ASUS_X01A_1*"
android:priority="100"
android:isStatic="true" />
</manifest>

View 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>

View file

@ -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">57px</dimen>
<!-- Height of the status bar -->
<dimen name="status_bar_height">57px</dimen>
<!-- Height of the status bar in landscape -->
<dimen name="status_bar_height_landscape">24dp</dimen>
<string translatable="false" name="config_mainBuiltInDisplayCutout">M -140,0 L -140,57 L 140,57 L 140,0 Z</string>
</resources>

View file

@ -9,6 +9,7 @@ PRODUCT_PACKAGES += \
treble-overlay-asus-zenfone5 \
treble-overlay-asus-zenfone5z \
treble-overlay-asus-zenfonelivel1za550kl \
treble-overlay-asus-zenfonemaxm2 \
treble-overlay-bq-jeice \
treble-overlay-caf-ims \
treble-overlay-devinputjack \