mirror of
https://github.com/Anything-at-25-00/android_device_tecno_LG8n.git
synced 2024-11-22 21:56:26 -08:00
LG8n: Readd overlay from pre-Reboot Branch
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
This commit is contained in:
parent
0fbec5ab7b
commit
e9578be87b
File diff suppressed because it is too large
Load diff
|
@ -45,43 +45,6 @@
|
||||||
<integer-array name="config_ambientDarkeningThresholds">
|
<integer-array name="config_ambientDarkeningThresholds">
|
||||||
<item>200</item>
|
<item>200</item>
|
||||||
</integer-array>
|
</integer-array>
|
||||||
|
|
||||||
<!-- Array of desired screen brightness in nits corresponding to the lux values
|
|
||||||
in the config_autoBrightnessLevels array. The display brightness is defined as the measured
|
|
||||||
brightness of an all-white image.
|
|
||||||
|
|
||||||
If this is defined then:
|
|
||||||
- config_autoBrightnessLcdBacklightValues should not be defined
|
|
||||||
- config_screenBrightnessNits must be defined
|
|
||||||
- config_screenBrightnessBacklight must be defined
|
|
||||||
|
|
||||||
This array should have size one greater than the size of the config_autoBrightnessLevels
|
|
||||||
array. The brightness values must be non-negative and non-decreasing. This must be
|
|
||||||
overridden in platform specific overlays -->
|
|
||||||
<array name="config_autoBrightnessDisplayValuesNits">
|
|
||||||
<item>4.522</item>
|
|
||||||
<item>20.246</item>
|
|
||||||
<item>55.509</item>
|
|
||||||
<item>74.653</item>
|
|
||||||
<item>82.757</item>
|
|
||||||
<item>93.15</item>
|
|
||||||
<item>117.678</item>
|
|
||||||
<item>138.666</item>
|
|
||||||
<item>164.847</item>
|
|
||||||
<item>189.157</item>
|
|
||||||
<item>207.656</item>
|
|
||||||
<item>221.191</item>
|
|
||||||
<item>277.164</item>
|
|
||||||
<item>350.798</item>
|
|
||||||
<item>391.524</item>
|
|
||||||
<item>414.81</item>
|
|
||||||
<item>434.151</item>
|
|
||||||
<item>455.291</item>
|
|
||||||
<item>490.922</item>
|
|
||||||
<item>500</item>
|
|
||||||
<item>580</item>
|
|
||||||
</array>
|
|
||||||
|
|
||||||
<!-- An array describing the screen's backlight values corresponding to the brightness
|
<!-- An array describing the screen's backlight values corresponding to the brightness
|
||||||
values in the config_screenBrightnessNits array. -->
|
values in the config_screenBrightnessNits array. -->
|
||||||
<integer-array name="config_screenBrightnessBacklight">
|
<integer-array name="config_screenBrightnessBacklight">
|
||||||
|
@ -112,24 +75,24 @@
|
||||||
brightness modes but only the maximum brightness value obtainable in a sustainable manner.
|
brightness modes but only the maximum brightness value obtainable in a sustainable manner.
|
||||||
This array should be equal in size to config_screenBrightnessBacklight -->
|
This array should be equal in size to config_screenBrightnessBacklight -->
|
||||||
<array name="config_screenBrightnessNits">
|
<array name="config_screenBrightnessNits">
|
||||||
<item>4.5215</item>
|
<item>1</item>
|
||||||
<item>33.37784</item>
|
<item>15</item>
|
||||||
<item>69.09702</item>
|
<item>30</item>
|
||||||
<item>105.53111</item>
|
<item>45</item>
|
||||||
<item>141.15657</item>
|
<item>60</item>
|
||||||
<item>177.40657</item>
|
<item>75</item>
|
||||||
<item>212.14172</item>
|
<item>90</item>
|
||||||
<item>247.64085</item>
|
<item>105</item>
|
||||||
<item>282.03754</item>
|
<item>120</item>
|
||||||
<item>317.2586</item>
|
<item>135</item>
|
||||||
<item>351.1292</item>
|
<item>150</item>
|
||||||
<item>384.87363</item>
|
<item>165</item>
|
||||||
<item>418.19705</item>
|
<item>180</item>
|
||||||
<item>451.90884</item>
|
<item>195</item>
|
||||||
<item>485.0235</item>
|
<item>210</item>
|
||||||
<item>517.10864</item>
|
<item>225</item>
|
||||||
<item>548.933</item>
|
<item>240</item>
|
||||||
<item>580</item>
|
<item>255</item>
|
||||||
</array>
|
</array>
|
||||||
|
|
||||||
<!-- Array of light sensor lux values to define our levels for auto backlight brightness
|
<!-- Array of light sensor lux values to define our levels for auto backlight brightness
|
||||||
|
@ -154,26 +117,23 @@
|
||||||
|
|
||||||
Must be overridden in platform specific overlays -->
|
Must be overridden in platform specific overlays -->
|
||||||
<integer-array name="config_autoBrightnessLevels">
|
<integer-array name="config_autoBrightnessLevels">
|
||||||
<item>6</item>
|
<item>128</item>
|
||||||
<item>18</item>
|
<item>256</item>
|
||||||
<item>34</item>
|
<item>384</item>
|
||||||
<item>82</item>
|
<item>512</item>
|
||||||
<item>128</item>
|
<item>640</item>
|
||||||
<item>256</item>
|
<item>768</item>
|
||||||
<item>384</item>
|
<item>896</item>
|
||||||
<item>512</item>
|
<item>1024</item>
|
||||||
<item>640</item>
|
<item>2048</item>
|
||||||
<item>768</item>
|
<item>4096</item>
|
||||||
<item>896</item>
|
<item>6144</item>
|
||||||
<item>1536</item>
|
<item>8192</item>
|
||||||
<item>2560</item>
|
<item>10240</item>
|
||||||
<item>3584</item>
|
<item>12288</item>
|
||||||
<item>4608</item>
|
<item>14336</item>
|
||||||
<item>5632</item>
|
<item>16384</item>
|
||||||
<item>7168</item>
|
<item>18432</item>
|
||||||
<item>8192</item>
|
|
||||||
<item>8704</item>
|
|
||||||
<item>9728</item>
|
|
||||||
</integer-array>
|
</integer-array>
|
||||||
|
|
||||||
<!-- Array of hysteresis constraint values for brightening, represented as tenths of a
|
<!-- Array of hysteresis constraint values for brightening, represented as tenths of a
|
||||||
|
@ -198,7 +158,7 @@
|
||||||
|
|
||||||
<!-- Minimum screen brightness setting allowed by power manager.
|
<!-- Minimum screen brightness setting allowed by power manager.
|
||||||
The user is forbidden from setting the brightness below this level. -->
|
The user is forbidden from setting the brightness below this level. -->
|
||||||
<item name="config_screenBrightnessSettingMinimumFloat" format="float" type="dimen">0.003921569</item>
|
<item type="dimen" name="config_screenBrightnessSettingMinimumFloat">0.003921569</item>
|
||||||
|
|
||||||
<!-- Maximum screen brightness allowed by the power manager.
|
<!-- Maximum screen brightness allowed by the power manager.
|
||||||
The user is forbidden from setting the brightness above this level. -->
|
The user is forbidden from setting the brightness above this level. -->
|
||||||
|
@ -309,6 +269,9 @@
|
||||||
<!-- Whether device supports double tap to wake -->
|
<!-- Whether device supports double tap to wake -->
|
||||||
<bool name="config_supportDoubleTapWake">true</bool>
|
<bool name="config_supportDoubleTapWake">true</bool>
|
||||||
|
|
||||||
|
<!-- Whether device uses power button fingerprint sensor or not -->
|
||||||
|
<bool name="config_is_powerbutton_fps">true</bool>
|
||||||
|
|
||||||
<!-- Boolean indicating USSD over IMS is allowed.
|
<!-- Boolean indicating USSD over IMS is allowed.
|
||||||
If it is not supported due to modem limitations, USSD send over the CS pipe instead.-->
|
If it is not supported due to modem limitations, USSD send over the CS pipe instead.-->
|
||||||
<bool name="config_allow_ussd_over_ims">true</bool>
|
<bool name="config_allow_ussd_over_ims">true</bool>
|
||||||
|
@ -360,4 +323,13 @@
|
||||||
manager will disable alpha trasformation in animations where not
|
manager will disable alpha trasformation in animations where not
|
||||||
strictly needed. -->
|
strictly needed. -->
|
||||||
<bool name="config_sf_limitedAlpha">true</bool>
|
<bool name="config_sf_limitedAlpha">true</bool>
|
||||||
|
<!-- Amount of time in ms the user needs to press the relevant keys to trigger the screenshot chord -->
|
||||||
|
<integer name="config_screenshotChordKeyTimeout">0</integer>
|
||||||
|
|
||||||
|
<!-- Pulled from Ren's TrebleDroid Pova 4 Pro overlay -->
|
||||||
|
<bool name="config_dozeAfterScreenOff">true</bool>
|
||||||
|
<bool name="config_dozeAlwaysOnDisplayAvailable">true</bool>
|
||||||
|
<integer name="config_defaultPeakRefreshRate">121</integer>
|
||||||
|
<integer name="config_defaultRefreshRate">121</integer>
|
||||||
|
<integer name="config_screenBrightnessDoze">5</integer>
|
||||||
</resources>
|
</resources>
|
||||||
|
|
12
overlay/SystemUIOverlay/Android.bp
Normal file
12
overlay/SystemUIOverlay/Android.bp
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
//
|
||||||
|
// Copyright (C) 2023 LineageOS
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
//
|
||||||
|
|
||||||
|
runtime_resource_overlay {
|
||||||
|
name: "SystemUIOverlay",
|
||||||
|
sdk_version: "current",
|
||||||
|
product_specific: true,
|
||||||
|
resource_dirs: ["res"]
|
||||||
|
}
|
18
overlay/SystemUIOverlay/AndroidManifest.xml
Normal file
18
overlay/SystemUIOverlay/AndroidManifest.xml
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!-- Copyright (C) 2023 LineageOS
|
||||||
|
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.
|
||||||
|
-->
|
||||||
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
package="com.android.systemui.overlay">
|
||||||
|
|
||||||
|
<application android:hasCode="false" />
|
||||||
|
<overlay android:targetPackage="com.android.systemui" android:isStatic="true" android:priority="1" />
|
||||||
|
</manifest>
|
39
overlay/SystemUIOverlay/res/values/dimens.xml
Normal file
39
overlay/SystemUIOverlay/res/values/dimens.xml
Normal file
|
@ -0,0 +1,39 @@
|
||||||
|
<?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">1100px</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">1100px</dimen>
|
||||||
|
|
||||||
|
<dimen name="rounded_corner_content_padding">47.0px</dimen>
|
||||||
|
<dimen name="status_bar_padding_end">4.0dip</dimen>
|
||||||
|
<dimen name="status_bar_padding_start">4.0dip</dimen>
|
||||||
|
</resources>
|
Loading…
Reference in a new issue