added SystemUI. Fix fingerprint button position.
This commit is contained in:
parent
812b31dba4
commit
85b890634c
8
Xiaomi/PocoF5-SystemUI/Android.mk
Executable file
8
Xiaomi/PocoF5-SystemUI/Android.mk
Executable file
|
@ -0,0 +1,8 @@
|
|||
LOCAL_PATH := $(call my-dir)
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
LOCAL_PACKAGE_NAME := treble-overlay-xiaomi-pocof5-systemui
|
||||
LOCAL_MODULE_PATH := $(TARGET_OUT_PRODUCT)/overlay
|
||||
LOCAL_IS_RUNTIME_RESOURCE_OVERLAY := true
|
||||
LOCAL_PRIVATE_PLATFORM_APIS := true
|
||||
include $(BUILD_PACKAGE)
|
10
Xiaomi/PocoF5-SystemUI/AndroidManifest.xml
Executable file
10
Xiaomi/PocoF5-SystemUI/AndroidManifest.xml
Executable file
|
@ -0,0 +1,10 @@
|
|||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="me.phh.treble.overlay.xiaomi.pocof5.systemui"
|
||||
android:versionCode="1"
|
||||
android:versionName="1.0">
|
||||
<overlay android:targetPackage="com.android.systemui"
|
||||
android:requiredSystemPropertyName="ro.product.vendor.device"
|
||||
android:requiredSystemPropertyValue="marble"
|
||||
android:priority="9009"
|
||||
android:isStatic="true" />
|
||||
</manifest>
|
32
Xiaomi/PocoF5-SystemUI/res/values/config.xml
Executable file
32
Xiaomi/PocoF5-SystemUI/res/values/config.xml
Executable file
|
@ -0,0 +1,32 @@
|
|||
<?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.
|
||||
*/
|
||||
-->
|
||||
|
||||
<!-- These resources are around just to allow their values to be customized
|
||||
for different hardware and product builds. -->
|
||||
<resources>
|
||||
<!-- Doze: check proximity sensor before pulsing? -->
|
||||
<bool name="doze_proximity_check_before_pulse">false</bool>
|
||||
|
||||
<!-- If not zero, limits the internal screen recorder's framerate to the set value. -->
|
||||
<integer name="config_screenRecorderMaxFramerate">120</integer>
|
||||
|
||||
<bool name="config_dozeAlwaysOnDisplayAvailable">true</bool>
|
||||
|
||||
<bool name="config_showNavigationBar">false</bool>
|
||||
</resources>
|
35
Xiaomi/PocoF5-SystemUI/res/values/dimens.xml
Executable file
35
Xiaomi/PocoF5-SystemUI/res/values/dimens.xml
Executable file
|
@ -0,0 +1,35 @@
|
|||
<?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>
|
||||
<!-- Location on the screen of the center of the fingerprint sensor. For devices with under
|
||||
display fingerprint sensors, this directly corresponds to the fingerprint sensor's location.
|
||||
For devices with sensors on the back of the device, this corresponds to the location on the
|
||||
screen directly in front of the sensor.
|
||||
By default, this is set to @null to use the horizontal center of the screen. -->
|
||||
<dimen name="physical_fingerprint_sensor_center_screen_location_x">1080px</dimen>
|
||||
|
||||
<!-- Location on the screen of the center of the fingerprint sensor. For devices with under
|
||||
display fingerprint sensors, this directly corresponds to the fingerprint sensor's location.
|
||||
For devices with sensors on the back of the device, this corresponds to the location on the
|
||||
screen directly in front of the sensor. -->
|
||||
<dimen name="physical_fingerprint_sensor_center_screen_location_y">960px</dimen>
|
||||
|
||||
<!-- Location on the screen of the center of the physical power button. This is a reasonable
|
||||
default that should be overridden by device-specific overlays. -->
|
||||
<dimen name="physical_power_button_center_screen_location_y">@dimen/physical_fingerprint_sensor_center_screen_location_y</dimen>
|
||||
</resources>
|
|
@ -1,5 +1,7 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<integer-array name="config_screenThresholdLevels">
|
||||
</integer-array>
|
||||
<array name="config_ambientThresholdLevels" />
|
||||
<integer-array name="config_ambientBrighteningThresholds">
|
||||
<item>100</item>
|
||||
|
@ -7,6 +9,70 @@
|
|||
<integer-array name="config_ambientDarkeningThresholds">
|
||||
<item>200</item>
|
||||
</integer-array>
|
||||
<!-- Array of hysteresis constraint values for darkening, represented as tenths of a
|
||||
percent. The length of this array is assumed to be one greater than
|
||||
config_screenThresholdLevels. The darkening threshold is calculated as
|
||||
screenBrightness * (1.0f - CONSTRAINT_VALUE). When the new screen brightness is lower than
|
||||
this threshold, it is applied. See the config_screenThresholdLevels description for how
|
||||
the constraint value is chosen. -->
|
||||
<array name="config_screenBrightnessBacklight">
|
||||
<item>2</item>
|
||||
<item>3</item>
|
||||
<item>6</item>
|
||||
<item>15</item>
|
||||
<item>20</item>
|
||||
<item>25</item>
|
||||
<item>30</item>
|
||||
<item>45</item>
|
||||
<item>55</item>
|
||||
<item>60</item>
|
||||
<item>75</item>
|
||||
<item>85</item>
|
||||
<item>90</item>
|
||||
<item>105</item>
|
||||
<item>120</item>
|
||||
<item>135</item>
|
||||
<item>150</item>
|
||||
<item>165</item>
|
||||
<item>180</item>
|
||||
<item>195</item>
|
||||
<item>210</item>
|
||||
<item>225</item>
|
||||
<item>240</item>
|
||||
<item>255</item>
|
||||
</array>
|
||||
<!-- An array of floats describing the screen brightness in nits corresponding to the backlight
|
||||
values in the config_screenBrightnessBacklight array. On OLED displays these values
|
||||
should be measured with an all white image while the display is in the fully on state.
|
||||
Note that this value should *not* reflect the maximum brightness value for any high
|
||||
brightness modes but only the maximum brightness value obtainable in a sustainable manner.
|
||||
This array should be equal in size to config_screenBrightnessBacklight -->
|
||||
<array name="config_screenBrightnessNits">
|
||||
<item>2</item>
|
||||
<item>4</item>
|
||||
<item>6</item>
|
||||
<item>12</item>
|
||||
<item>20</item>
|
||||
<item>35</item>
|
||||
<item>50</item>
|
||||
<item>65</item>
|
||||
<item>95</item>
|
||||
<item>105</item>
|
||||
<item>133</item>
|
||||
<item>165</item>
|
||||
<item>192</item>
|
||||
<item>218</item>
|
||||
<item>255</item>
|
||||
<item>300</item>
|
||||
<item>345</item>
|
||||
<item>375</item>
|
||||
<item>399</item>
|
||||
<item>410</item>
|
||||
<item>432</item>
|
||||
<item>445</item>
|
||||
<item>454</item>
|
||||
<item>483</item>
|
||||
</array>
|
||||
<integer-array name="config_autoBrightnessDisplayValuesNits">
|
||||
<item>2</item>
|
||||
<item>4</item>
|
||||
|
|
|
@ -3,7 +3,5 @@
|
|||
<bool name="config_fillMainBuiltInDisplayCutout">true</bool>
|
||||
<bool name="config_enableBurnInProtection">true</bool>
|
||||
<bool name="config_automatic_brightness_available">true</bool>
|
||||
<bool name="config_dozeAlwaysOnDisplayAvailable">true</bool>
|
||||
<bool name="config_showNavigationBar">false</bool>
|
||||
<bool name="config_useDevInputEventForAudioJack">true</bool>
|
||||
</resources>
|
||||
|
|
|
@ -1,70 +1,4 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<integer name="config_defaultPeakRefreshRate">120</integer>
|
||||
<!-- Array of hysteresis constraint values for darkening, represented as tenths of a
|
||||
percent. The length of this array is assumed to be one greater than
|
||||
config_screenThresholdLevels. The darkening threshold is calculated as
|
||||
screenBrightness * (1.0f - CONSTRAINT_VALUE). When the new screen brightness is lower than
|
||||
this threshold, it is applied. See the config_screenThresholdLevels description for how
|
||||
the constraint value is chosen. -->
|
||||
<array name="config_screenBrightnessBacklight">
|
||||
<item>1</item>
|
||||
<item>5</item>
|
||||
<item>10</item>
|
||||
<item>15</item>
|
||||
<item>20</item>
|
||||
<item>25</item>
|
||||
<item>30</item>
|
||||
<item>45</item>
|
||||
<item>55</item>
|
||||
<item>60</item>
|
||||
<item>75</item>
|
||||
<item>85</item>
|
||||
<item>90</item>
|
||||
<item>105</item>
|
||||
<item>120</item>
|
||||
<item>135</item>
|
||||
<item>150</item>
|
||||
<item>165</item>
|
||||
<item>180</item>
|
||||
<item>195</item>
|
||||
<item>210</item>
|
||||
<item>225</item>
|
||||
<item>240</item>
|
||||
<item>255</item>
|
||||
</array>
|
||||
|
||||
<!-- An array of floats describing the screen brightness in nits corresponding to the backlight
|
||||
values in the config_screenBrightnessBacklight array. On OLED displays these values
|
||||
should be measured with an all white image while the display is in the fully on state.
|
||||
Note that this value should *not* reflect the maximum brightness value for any high
|
||||
brightness modes but only the maximum brightness value obtainable in a sustainable manner.
|
||||
This array should be equal in size to config_screenBrightnessBacklight -->
|
||||
<array name="config_screenBrightnessNits">
|
||||
<item>2</item>
|
||||
<item>4</item>
|
||||
<item>6</item>
|
||||
<item>12</item>
|
||||
<item>20</item>
|
||||
<item>35</item>
|
||||
<item>50</item>
|
||||
<item>65</item>
|
||||
<item>95</item>
|
||||
<item>105</item>
|
||||
<item>133</item>
|
||||
<item>165</item>
|
||||
<item>192</item>
|
||||
<item>218</item>
|
||||
<item>255</item>
|
||||
<item>300</item>
|
||||
<item>345</item>
|
||||
<item>375</item>
|
||||
<item>399</item>
|
||||
<item>410</item>
|
||||
<item>432</item>
|
||||
<item>445</item>
|
||||
<item>454</item>
|
||||
<item>485</item>
|
||||
</array>
|
||||
|
||||
</resources>
|
|
@ -6,7 +6,6 @@
|
|||
A 23,23 0 1,0 -23,52
|
||||
A 23,23 0 1,0 23,52
|
||||
Z</string>
|
||||
|
||||
<dimen name="rounded_corner_radius">22.0dip</dimen>
|
||||
<dimen name="status_bar_height">36.0dip</dimen>
|
||||
<dimen name="status_bar_height_default">36.0dip</dimen>
|
||||
|
|
Loading…
Reference in a new issue