universal7885: Add 'V' Shaped Notch

Kang from OOS port https://t.me/violet_oos/185110

Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
This commit is contained in:
rdx420 2021-11-06 10:40:30 +05:30 committed by roynatech2544
commit bd34a05a17
No known key found for this signature in database
GPG key ID: 9675C32163D88D30
7 changed files with 61 additions and 1 deletions

View file

@ -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: "VShapedNotch",
sdk_version: "current",
product_specific: true,
}

View file

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8" ?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.android.internal.display.cutout.emulation.violet"
android:versionCode="1"
android:versionName="1.0">
<overlay android:targetPackage="android"
android:category="com.android.internal.display_cutout_emulation"
android:priority="1"/>
<application android:label="V-Shaped" android:hasCode="false"/>
</manifest>

View file

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<bool name="config_fillMainBuiltInDisplayCutout">true</bool>
</resources>

View file

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="status_bar_height_portrait">30.0dip</dimen>
<dimen name="status_bar_height_landscape">28.0dip</dimen>
<dimen name="quick_qs_offset_height">32.0dip</dimen>
<dimen name="quick_qs_total_height">176.0dip</dimen>
</resources>

View file

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<public type="string" name="config_mainBuiltInDisplayCutout" id="0x7f020000" />
<public type="string" name="display_cutout_emulation_overlay" id="0x7f020002" />
<public type="string" name="dummy_ae_1" id="0x7f020001" />
<public type="bool" name="config_fillMainBuiltInDisplayCutout" id="0x7f030000" />
<public type="dimen" name="status_bar_height_portrait" id="0x7f040000" />
<public type="dimen" name="status_bar_height_landscape" id="0x7f040001" />
<public type="dimen" name="quick_qs_offset_height" id="0x7f040002" />
<public type="dimen" name="quick_qs_total_height" id="0x7f040003" />
</resources>

View file

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="config_mainBuiltInDisplayCutout">M-185,0 H183.34 c-9.77.44-19.57,0.08-29.28,1.24-20.33,1.14-41.18,5.17-58.62,16.24 C78.54,28.27,66,44.26,52,58.29 a72.73,72.73,0,0,1-38.29,19.58 c-16.53,2.51-34,1-49.09-6.62-9.85-4.62-17.88-12.24-25.21-20.18-10.46-11.27-20.9-22.75-33.53-31.66-11.49-8-24.9-12.78-38.53-15.42 C-149.92,0.81,-167.51.39,-185,0Z</string>
<string name="display_cutout_emulation_overlay">Violet Cutout</string>
<item type="string" name="dummy_ae_1">false</item>
</resources>

View file

@ -244,7 +244,8 @@ PRODUCT_PACKAGES += \
# Notch
PRODUCT_PACKAGES += \
NotchBarKiller
NotchBarKiller \
VShapedNotch
# RIL
PRODUCT_PACKAGES += \