mirror of
https://github.com/Evolution-X-Devices/device_oneplus_kebab
synced 2026-01-28 21:00:36 +00:00
kebab: Initial commit
This commit is contained in:
32
Android.mk
Normal file
32
Android.mk
Normal file
@@ -0,0 +1,32 @@
|
||||
#
|
||||
# Copyright (C) 2018 The LineageOS 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.
|
||||
#
|
||||
|
||||
#
|
||||
# This contains the module build definitions for the hardware-specific
|
||||
# components for this device.
|
||||
#
|
||||
# As much as possible, those components should be built unconditionally,
|
||||
# with device-specific names to avoid collisions, to avoid device-specific
|
||||
# bitrot and build breakages. Building a component unconditionally does
|
||||
# *not* include it on all devices, so it is safe even with hardware-specific
|
||||
# components.
|
||||
#
|
||||
|
||||
LOCAL_PATH := $(call my-dir)
|
||||
|
||||
ifeq ($(TARGET_DEVICE),kebab)
|
||||
include $(call all-makefiles-under,$(LOCAL_PATH))
|
||||
endif
|
||||
23
AndroidProducts.mk
Normal file
23
AndroidProducts.mk
Normal file
@@ -0,0 +1,23 @@
|
||||
#
|
||||
# Copyright (C) 2018-2019 The LineageOS 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.
|
||||
#
|
||||
|
||||
PRODUCT_MAKEFILES := \
|
||||
$(LOCAL_DIR)/lineage_kebab.mk
|
||||
|
||||
COMMON_LUNCH_CHOICES := \
|
||||
lineage_kebab-user \
|
||||
lineage_kebab-userdebug \
|
||||
lineage_kebab-eng
|
||||
37
BoardConfig.mk
Normal file
37
BoardConfig.mk
Normal file
@@ -0,0 +1,37 @@
|
||||
#
|
||||
# Copyright (C) 2018 The LineageOS 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.
|
||||
#
|
||||
|
||||
# Inherit from oneplus sm8250-common
|
||||
-include device/oneplus/sm8250-common/BoardConfigCommon.mk
|
||||
|
||||
DEVICE_PATH := device/oneplus/kebab
|
||||
|
||||
# Bluetooth
|
||||
BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := $(DEVICE_PATH)/bluetooth/include
|
||||
|
||||
# Display
|
||||
TARGET_SCREEN_DENSITY := 450
|
||||
|
||||
# Fingerprint
|
||||
SOONG_CONFIG_ONEPLUS_KONA_FOD_POS_X = 438
|
||||
SOONG_CONFIG_ONEPLUS_KONA_FOD_POS_Y = 1822
|
||||
SOONG_CONFIG_ONEPLUS_KONA_FOD_SIZE = 204
|
||||
|
||||
# Properties
|
||||
TARGET_PRODUCT_PROP += $(DEVICE_PATH)/product.prop
|
||||
|
||||
# inherit from the proprietary version
|
||||
-include vendor/oneplus/kebab/BoardConfigVendor.mk
|
||||
34
bluetooth/include/bdroid_buildcfg.h
Normal file
34
bluetooth/include/bdroid_buildcfg.h
Normal file
@@ -0,0 +1,34 @@
|
||||
/*
|
||||
* Copyright (c) 2013, The Linux Foundation. All rights reserved.
|
||||
* Not a Contribution, Apache license notifications and license are retained
|
||||
* for attribution purposes only.
|
||||
*
|
||||
* Copyright (C) 2012 The Android Open Source Project
|
||||
* Copyright (C) 2018 The LineageOS 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.
|
||||
*/
|
||||
|
||||
#ifndef _BDROID_BUILDCFG_H
|
||||
#define _BDROID_BUILDCFG_H
|
||||
|
||||
#define BTM_DEF_LOCAL_NAME "OnePlus 8T"
|
||||
// Disables read remote device feature
|
||||
#define MAX_ACL_CONNECTIONS 16
|
||||
#define MAX_L2CAP_CHANNELS 16
|
||||
#define BLE_VND_INCLUDED TRUE
|
||||
// skips conn update at conn completion
|
||||
#define BT_CLEAN_TURN_ON_DISABLED 1
|
||||
/* Increasing SEPs to 12 from 6 to support SHO/MCast i.e. two streams per codec */
|
||||
#define AVDT_NUM_SEPS 12
|
||||
#endif
|
||||
44
device.mk
Normal file
44
device.mk
Normal file
@@ -0,0 +1,44 @@
|
||||
#
|
||||
# Copyright (C) 2018 The LineageOS 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.
|
||||
#
|
||||
|
||||
#
|
||||
# This file sets variables that control the way modules are built
|
||||
# thorughout the system. It should not be used to conditionally
|
||||
# disable makefiles (the proper mechanism to control what gets
|
||||
# included in a build is to use PRODUCT_PACKAGES in a product
|
||||
# definition file).
|
||||
#
|
||||
|
||||
# Overlays
|
||||
DEVICE_PACKAGE_OVERLAYS += \
|
||||
$(LOCAL_PATH)/overlay \
|
||||
$(LOCAL_PATH)/overlay-lineage
|
||||
|
||||
# Device uses high-density artwork where available
|
||||
PRODUCT_AAPT_CONFIG := normal
|
||||
PRODUCT_AAPT_PREF_CONFIG := xxhdpi
|
||||
|
||||
# Boot animation
|
||||
TARGET_SCREEN_HEIGHT := 2400
|
||||
TARGET_SCREEN_WIDTH := 1080
|
||||
|
||||
PRODUCT_SHIPPING_API_LEVEL := 30
|
||||
|
||||
# Inherit from oneplus sm8250-common
|
||||
$(call inherit-product, device/oneplus/sm8250-common/common.mk)
|
||||
|
||||
# Inherit from vendor blobs
|
||||
#$(call inherit-product, vendor/oneplus/kebab/kebab-vendor.mk)
|
||||
33
extract-files.sh
Executable file
33
extract-files.sh
Executable file
@@ -0,0 +1,33 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# Copyright (C) 2018-2019 The LineageOS 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.
|
||||
#
|
||||
|
||||
# If we're being sourced by the common script that we called,
|
||||
# stop right here. No need to go down the rabbit hole.
|
||||
if [ "${BASH_SOURCE[0]}" != "${0}" ]; then
|
||||
return
|
||||
fi
|
||||
|
||||
set -e
|
||||
|
||||
# Required!
|
||||
export DEVICE=kebab
|
||||
export DEVICE_COMMON=sm8250-common
|
||||
export VENDOR=oneplus
|
||||
|
||||
export DEVICE_BRINGUP_YEAR=2020
|
||||
|
||||
"./../../${VENDOR}/${DEVICE_COMMON}/extract-files.sh" "$@"
|
||||
6
lineage.dependencies
Normal file
6
lineage.dependencies
Normal file
@@ -0,0 +1,6 @@
|
||||
[
|
||||
{
|
||||
"repository": "android_device_oneplus_sm8250-common",
|
||||
"target_path": "device/oneplus/sm8250-common"
|
||||
}
|
||||
]
|
||||
40
lineage_kebab.mk
Normal file
40
lineage_kebab.mk
Normal file
@@ -0,0 +1,40 @@
|
||||
#
|
||||
# Copyright (C) 2018 The LineageOS 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.
|
||||
#
|
||||
|
||||
# Inherit from those products. Most specific first.
|
||||
$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk)
|
||||
$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.mk)
|
||||
|
||||
# Inherit from kebab device
|
||||
$(call inherit-product, device/oneplus/kebab/device.mk)
|
||||
|
||||
# Inherit some common Lineage stuff.
|
||||
$(call inherit-product, vendor/lineage/config/common_full_phone.mk)
|
||||
|
||||
PRODUCT_NAME := lineage_kebab
|
||||
PRODUCT_DEVICE := kebab
|
||||
PRODUCT_MANUFACTURER := OnePlus
|
||||
PRODUCT_BRAND := OnePlus
|
||||
PRODUCT_MODEL := ONEPLUS KB2023
|
||||
|
||||
PRODUCT_GMS_CLIENTID_BASE := android-oneplus
|
||||
|
||||
PRODUCT_BUILD_PROP_OVERRIDES += \
|
||||
PRODUCT_DEVICE=OnePlus8T \
|
||||
PRODUCT_NAME=OnePlus8T \
|
||||
PRIVATE_BUILD_DESC="OnePlus8T-user 11 RP1A.201005.001 2011101425 release-keys"
|
||||
|
||||
BUILD_FINGERPRINT := OnePlus/OnePlus8T_EEA/OnePlus8T:11/RP1A.201005.001/2011101425:user/release-keys
|
||||
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2020 The LineageOS 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>
|
||||
<!-- The bottom margin of the keyguard security container -->
|
||||
<dimen name="kg_security_container_min_bottom_margin">680px</dimen>
|
||||
</resources>
|
||||
@@ -0,0 +1,30 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
/*
|
||||
** Copyright 2009, 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>
|
||||
<!-- Color of the FOD view -->
|
||||
<color name="config_fodColor">#ccccac</color>
|
||||
|
||||
<!-- Max visible notification icons -->
|
||||
<integer name="config_maxVisibleNotificationIcons">6</integer>
|
||||
<integer name="config_maxVisibleNotificationIconsWhenDark">7</integer>
|
||||
|
||||
</resources>
|
||||
386
overlay/frameworks/base/core/res/res/values/config.xml
Normal file
386
overlay/frameworks/base/core/res/res/values/config.xml
Normal file
@@ -0,0 +1,386 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2009 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. Do not translate. -->
|
||||
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
|
||||
<!-- Flag indicating whether the we should enable the automatic brightness in Settings.
|
||||
Software implementation will be used if config_hardware_auto_brightness_available is not set -->
|
||||
<bool name="config_automatic_brightness_available">true</bool>
|
||||
|
||||
<!-- Array of light sensor lux values to define our levels for auto backlight brightness support.
|
||||
The N entries of this array define N + 1 control points as follows:
|
||||
(1-based arrays)
|
||||
|
||||
Point 1: (0, value[1]): lux <= 0
|
||||
Point 2: (level[1], value[2]): 0 < lux <= level[1]
|
||||
Point 3: (level[2], value[3]): level[2] < lux <= level[3]
|
||||
...
|
||||
Point N+1: (level[N], value[N+1]): level[N] < lux
|
||||
|
||||
The control points must be strictly increasing. Each control point
|
||||
corresponds to an entry in the brightness backlight values arrays.
|
||||
For example, if lux == level[1] (first element of the levels array)
|
||||
then the brightness will be determined by value[2] (second element
|
||||
of the brightness values array).
|
||||
|
||||
Spline interpolation is used to determine the auto-brightness
|
||||
backlight values for lux levels between these control points.
|
||||
|
||||
Must be overridden in platform specific overlays -->
|
||||
<integer-array name="config_autoBrightnessLevels">
|
||||
<item>1</item>
|
||||
<item>4</item>
|
||||
<item>12</item>
|
||||
<item>20</item>
|
||||
<item>40</item>
|
||||
<item>65</item>
|
||||
<item>95</item>
|
||||
<item>140</item>
|
||||
<item>200</item>
|
||||
<item>350</item>
|
||||
<item>650</item>
|
||||
<item>1300</item>
|
||||
<item>2000</item>
|
||||
<item>3300</item>
|
||||
<item>6000</item>
|
||||
<item>10000</item>
|
||||
</integer-array>
|
||||
|
||||
<!-- Array of desired screen brightness in nits corresponding to the lux values
|
||||
in the config_autoBrightnessLevels array. As with config_screenBrightnessMinimumNits and
|
||||
config_screenBrightnessMaximumNits, 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>3.5077</item>
|
||||
<item>6.8394</item>
|
||||
<item>15.2619</item>
|
||||
<item>30.2619</item>
|
||||
<item>40.671</item>
|
||||
<item>52.3019</item>
|
||||
<item>65.2512</item>
|
||||
<item>77.37</item>
|
||||
<item>90.152</item>
|
||||
<item>100.297</item>
|
||||
<item>110.385</item>
|
||||
<item>135.064</item>
|
||||
<item>160.5179</item>
|
||||
<item>195.0267</item>
|
||||
<item>380.2814</item>
|
||||
<item>409.2867</item>
|
||||
<item>427.6287</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.0482</item>
|
||||
<item>2.7841</item>
|
||||
<item>3.79505</item>
|
||||
<item>4.4748</item>
|
||||
<item>5.08</item>
|
||||
<item>6.4233</item>
|
||||
<item>8.0848</item>
|
||||
<item>11.6607</item>
|
||||
<item>13.2347</item>
|
||||
<item>15.0676</item>
|
||||
<item>16.8302</item>
|
||||
<item>18.4261</item>
|
||||
<item>20.3103</item>
|
||||
<item>21.9042</item>
|
||||
<item>23.5456</item>
|
||||
<item>25.2137</item>
|
||||
<item>27.1769</item>
|
||||
<item>28.9571</item>
|
||||
<item>30.5244</item>
|
||||
<item>32.3535</item>
|
||||
<item>34.0867</item>
|
||||
<item>42.366</item>
|
||||
<item>51.1309</item>
|
||||
<item>59.52</item>
|
||||
<item>67.744</item>
|
||||
<item>75.9738</item>
|
||||
<item>84.6332</item>
|
||||
<item>94.1525</item>
|
||||
<item>102.2207</item>
|
||||
<item>110.4878</item>
|
||||
<item>117.0405</item>
|
||||
<item>124.3733</item>
|
||||
<item>130.9928</item>
|
||||
<item>140.4247</item>
|
||||
<item>149.3156</item>
|
||||
<item>157.1995</item>
|
||||
<item>165.3651</item>
|
||||
<item>173.2726</item>
|
||||
<item>181.4272</item>
|
||||
<item>189.1402</item>
|
||||
<item>197.5334</item>
|
||||
<item>205.6301</item>
|
||||
<item>213.9381</item>
|
||||
<item>222.2769</item>
|
||||
<item>230.0891</item>
|
||||
<item>238.6084</item>
|
||||
<item>246.5399</item>
|
||||
<item>255.6544</item>
|
||||
<item>263.6221</item>
|
||||
<item>271.9324</item>
|
||||
<item>279.1449</item>
|
||||
<item>288.5736</item>
|
||||
<item>297.6628</item>
|
||||
<item>306.1899</item>
|
||||
<item>314.4511</item>
|
||||
<item>322.1404</item>
|
||||
<item>330.969</item>
|
||||
<item>338.2251</item>
|
||||
<item>346.2251</item>
|
||||
<item>354.567</item>
|
||||
<item>370.799</item>
|
||||
<item>413.1738</item>
|
||||
<item>415.6397</item>
|
||||
<item>417.264</item>
|
||||
<item>419.264</item>
|
||||
<item>421.264</item>
|
||||
<item>424.646</item>
|
||||
<item>427.6287</item>
|
||||
</array>
|
||||
|
||||
<!-- An array describing the screen's backlight values corresponding to the brightness
|
||||
values in the config_screenBrightnessNits array.
|
||||
|
||||
This array should be equal in size to config_screenBrightnessBacklight. -->
|
||||
<integer-array name="config_screenBrightnessBacklight">
|
||||
<item>0</item>
|
||||
<item>1</item>
|
||||
<item>2</item>
|
||||
<item>3</item>
|
||||
<item>4</item>
|
||||
<item>5</item>
|
||||
<item>6</item>
|
||||
<item>7</item>
|
||||
<item>8</item>
|
||||
<item>9</item>
|
||||
<item>10</item>
|
||||
<item>11</item>
|
||||
<item>12</item>
|
||||
<item>13</item>
|
||||
<item>14</item>
|
||||
<item>15</item>
|
||||
<item>16</item>
|
||||
<item>17</item>
|
||||
<item>18</item>
|
||||
<item>19</item>
|
||||
<item>20</item>
|
||||
<item>25</item>
|
||||
<item>30</item>
|
||||
<item>35</item>
|
||||
<item>40</item>
|
||||
<item>45</item>
|
||||
<item>50</item>
|
||||
<item>55</item>
|
||||
<item>60</item>
|
||||
<item>65</item>
|
||||
<item>70</item>
|
||||
<item>75</item>
|
||||
<item>80</item>
|
||||
<item>85</item>
|
||||
<item>90</item>
|
||||
<item>95</item>
|
||||
<item>100</item>
|
||||
<item>105</item>
|
||||
<item>110</item>
|
||||
<item>115</item>
|
||||
<item>120</item>
|
||||
<item>125</item>
|
||||
<item>130</item>
|
||||
<item>135</item>
|
||||
<item>140</item>
|
||||
<item>145</item>
|
||||
<item>150</item>
|
||||
<item>155</item>
|
||||
<item>160</item>
|
||||
<item>165</item>
|
||||
<item>170</item>
|
||||
<item>174</item>
|
||||
<item>179</item>
|
||||
<item>184</item>
|
||||
<item>189</item>
|
||||
<item>194</item>
|
||||
<item>199</item>
|
||||
<item>204</item>
|
||||
<item>209</item>
|
||||
<item>214</item>
|
||||
<item>219</item>
|
||||
<item>224</item>
|
||||
<item>229</item>
|
||||
<item>234</item>
|
||||
<item>239</item>
|
||||
<item>244</item>
|
||||
<item>249</item>
|
||||
<item>255</item>
|
||||
</integer-array>
|
||||
|
||||
<!-- Array of hysteresis constraint values for brightening, represented as tenths of a
|
||||
percent. The length of this array is assumed to be one greater than
|
||||
config_dynamicHysteresisLuxLevels. The brightening threshold is calculated as
|
||||
lux * (1.0f + CONSTRAINT_VALUE). When the current lux is higher than this threshold,
|
||||
the screen brightness is recalculated. See the config_dynamicHysteresisLuxLevels
|
||||
description for how the constraint value is chosen. -->
|
||||
<integer-array name="config_dynamicHysteresisBrightLevels">
|
||||
<item>200</item>
|
||||
<item>200</item>
|
||||
<item>200</item>
|
||||
<item>200</item>
|
||||
<item>200</item>
|
||||
<item>200</item>
|
||||
<item>200</item>
|
||||
<item>200</item>
|
||||
<item>250</item>
|
||||
<item>300</item>
|
||||
<item>300</item>
|
||||
<item>300</item>
|
||||
<item>300</item>
|
||||
<item>300</item>
|
||||
<item>300</item>
|
||||
<item>400</item>
|
||||
<item>500</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_dynamicHysteresisLuxLevels. The darkening threshold is calculated as
|
||||
lux * (1.0f - CONSTRAINT_VALUE). When the current lux is lower than this threshold,
|
||||
the screen brightness is recalculated. See the config_dynamicHysteresisLuxLevels
|
||||
description for how the constraint value is chosen. -->
|
||||
<integer-array name="config_dynamicHysteresisDarkLevels">
|
||||
<item>200</item>
|
||||
<item>200</item>
|
||||
<item>200</item>
|
||||
<item>200</item>
|
||||
<item>200</item>
|
||||
<item>200</item>
|
||||
<item>200</item>
|
||||
<item>200</item>
|
||||
<item>300</item>
|
||||
<item>400</item>
|
||||
<item>400</item>
|
||||
<item>400</item>
|
||||
<item>400</item>
|
||||
<item>400</item>
|
||||
<item>400</item>
|
||||
<item>500</item>
|
||||
<item>500</item>
|
||||
</integer-array>
|
||||
|
||||
<!-- Array of ambient lux threshold values. This is used for determining hysteresis constraint
|
||||
values by calculating the index to use for lookup and then setting the constraint value
|
||||
to the corresponding value of the array. The new brightening hysteresis constraint value
|
||||
is the n-th element of config_dynamicHysteresisBrightLevels, and the new darkening
|
||||
hysteresis constraint value is the n-th element of config_dynamicHysteresisDarkLevels.
|
||||
|
||||
The (zero-based) index is calculated as follows: (MAX is the largest index of the array)
|
||||
condition calculated index
|
||||
value < lux[0] 0
|
||||
lux[n] <= value < lux[n+1] n+1
|
||||
lux[MAX] <= value MAX+1 -->
|
||||
<integer-array name="config_dynamicHysteresisLuxLevels">
|
||||
<item>1</item>
|
||||
<item>4</item>
|
||||
<item>12</item>
|
||||
<item>20</item>
|
||||
<item>40</item>
|
||||
<item>65</item>
|
||||
<item>95</item>
|
||||
<item>140</item>
|
||||
<item>200</item>
|
||||
<item>350</item>
|
||||
<item>650</item>
|
||||
<item>1300</item>
|
||||
<item>2000</item>
|
||||
<item>3300</item>
|
||||
<item>6000</item>
|
||||
<item>10000</item>
|
||||
</integer-array>
|
||||
|
||||
<!-- Screen brightness used to dim the screen when the user activity
|
||||
timeout expires. May be less than the minimum allowed brightness setting
|
||||
that can be set by the user. -->
|
||||
<integer name="config_screenBrightnessDim">6</integer>
|
||||
|
||||
<!-- Default screen brightness setting.
|
||||
Must be in the range specified by minimum and maximum. -->
|
||||
<integer name="config_screenBrightnessSettingDefault">184</integer>
|
||||
|
||||
<!-- Minimum screen brightness setting allowed by the power manager.
|
||||
The user is forbidden from setting the brightness below this level. -->
|
||||
<integer name="config_screenBrightnessSettingMinimum">2</integer>
|
||||
|
||||
<!-- Stability requirements in milliseconds for accepting a new brightness level. This is used
|
||||
for debouncing the light sensor. Different constants are used to debounce the light sensor
|
||||
when adapting to brighter or darker environments. This parameter controls how quickly
|
||||
brightness changes occur in response to an observed change in light level that exceeds the
|
||||
hysteresis threshold. -->
|
||||
<integer name="config_autoBrightnessBrighteningLightDebounce">2000</integer>
|
||||
<integer name="config_autoBrightnessDarkeningLightDebounce">4000</integer>
|
||||
|
||||
<!-- The maximum range of gamma adjustment possible using the screen
|
||||
auto-brightness adjustment setting. -->
|
||||
<fraction name="config_autoBrightnessAdjustmentMaxGamma">300%</fraction>
|
||||
|
||||
<!-- Amount of time it takes for the light sensor to warm up in milliseconds.
|
||||
For this time after the screen turns on, the Power Manager
|
||||
will not debounce light sensor readings -->
|
||||
<integer name="config_lightSensorWarmupTime">200</integer>
|
||||
|
||||
<!-- The bounding path of the cutout region of the main built-in display.
|
||||
Must either be empty if there is no cutout region, or a string that is parsable by
|
||||
{@link android.util.PathParser}.
|
||||
|
||||
The path is assumed to be specified in display coordinates with pixel units and in
|
||||
the display's native orientation, with the origin of the coordinate system at the
|
||||
center top of the display.
|
||||
|
||||
To facilitate writing device-independent emulation overlays, the marker `@dp` can be
|
||||
appended after the path string to interpret coordinates in dp instead of px units.
|
||||
Note that a physical cutout should be configured in pixels for the best results.
|
||||
-->
|
||||
<string translatable="false" name="config_mainBuiltInDisplayCutout">
|
||||
M 0, 0
|
||||
H 54
|
||||
V 48
|
||||
H 0
|
||||
L 0, 0
|
||||
@dp
|
||||
@left
|
||||
</string>
|
||||
|
||||
<!-- Height of the status bar -->
|
||||
<dimen name="status_bar_height_portrait">132px</dimen>
|
||||
<dimen name="status_bar_height_landscape">132px</dimen>
|
||||
</resources>
|
||||
162
overlay/frameworks/base/core/res/res/xml/power_profile.xml
Normal file
162
overlay/frameworks/base/core/res/res/xml/power_profile.xml
Normal file
@@ -0,0 +1,162 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<device name="Android">
|
||||
<item name="none">0</item>
|
||||
<item name="screen.on">119.79</item>
|
||||
<item name="screen.full">430</item>
|
||||
<array name="cpu.clusters.cores">
|
||||
<value>4</value>
|
||||
<value>4</value>
|
||||
</array>
|
||||
<array name="cpu.core_speeds.cluster0">
|
||||
<value>518400</value>
|
||||
<value>614400</value>
|
||||
<value>691200</value>
|
||||
<value>787200</value>
|
||||
<value>883200</value>
|
||||
<value>979200</value>
|
||||
<value>1075200</value>
|
||||
<value>1171200</value>
|
||||
<value>1248000</value>
|
||||
<value>1344000</value>
|
||||
<value>1420800</value>
|
||||
<value>1516800</value>
|
||||
<value>1612800</value>
|
||||
<value>1708800</value>
|
||||
<value>1804800</value>
|
||||
</array>
|
||||
<array name="cpu.core_power.cluster0">
|
||||
<value>7</value>
|
||||
<value>8</value>
|
||||
<value>10</value>
|
||||
<value>11</value>
|
||||
<value>12</value>
|
||||
<value>13</value>
|
||||
<value>15</value>
|
||||
<value>16</value>
|
||||
<value>17</value>
|
||||
<value>19</value>
|
||||
<value>21</value>
|
||||
<value>23</value>
|
||||
<value>25</value>
|
||||
<value>29</value>
|
||||
<value>31</value>
|
||||
</array>
|
||||
<array name="cpu.core_speeds.cluster1">
|
||||
<value>710400</value>
|
||||
<value>825600</value>
|
||||
<value>844800</value>
|
||||
<value>940800</value>
|
||||
<value>960000</value>
|
||||
<value>1056000</value>
|
||||
<value>1075200</value>
|
||||
<value>1171200</value>
|
||||
<value>1190400</value>
|
||||
<value>1286400</value>
|
||||
<value>1305600</value>
|
||||
<value>1382400</value>
|
||||
<value>1401600</value>
|
||||
<value>1478400</value>
|
||||
<value>1516800</value>
|
||||
<value>1574400</value>
|
||||
<value>1632000</value>
|
||||
<value>1670400</value>
|
||||
<value>1747200</value>
|
||||
<value>1766400</value>
|
||||
<value>1862400</value>
|
||||
<value>1958400</value>
|
||||
<value>1977600</value>
|
||||
<value>2054400</value>
|
||||
<value>2073600</value>
|
||||
<value>2150400</value>
|
||||
<value>2169600</value>
|
||||
<value>2246400</value>
|
||||
<value>2265600</value>
|
||||
<value>2342400</value>
|
||||
<value>2361600</value>
|
||||
<value>2419200</value>
|
||||
<value>2457600</value>
|
||||
<value>2553600</value>
|
||||
<value>2649600</value>
|
||||
<value>2745600</value>
|
||||
<value>2841600</value>
|
||||
</array>
|
||||
<array name="cpu.core_power.cluster1">
|
||||
<value>30</value>
|
||||
<value>37</value>
|
||||
<value>53</value>
|
||||
<value>45</value>
|
||||
<value>61</value>
|
||||
<value>51</value>
|
||||
<value>67</value>
|
||||
<value>60</value>
|
||||
<value>76</value>
|
||||
<value>68</value>
|
||||
<value>88</value>
|
||||
<value>72</value>
|
||||
<value>92</value>
|
||||
<value>81</value>
|
||||
<value>102</value>
|
||||
<value>94</value>
|
||||
<value>116</value>
|
||||
<value>100</value>
|
||||
<value>129</value>
|
||||
<value>109</value>
|
||||
<value>133</value>
|
||||
<value>141</value>
|
||||
<value>168</value>
|
||||
<value>149</value>
|
||||
<value>182</value>
|
||||
<value>163</value>
|
||||
<value>224</value>
|
||||
<value>180</value>
|
||||
<value>233</value>
|
||||
<value>198</value>
|
||||
<value>240</value>
|
||||
<value>209</value>
|
||||
<value>249</value>
|
||||
<value>272</value>
|
||||
<value>295</value>
|
||||
<value>330</value>
|
||||
<value>366</value>
|
||||
</array>
|
||||
<item name="cpu.active">7.6</item>
|
||||
<item name="cpu.idle">0.1</item>
|
||||
<item name="cpu.suspend">0</item>
|
||||
<item name="battery.capacity">3550</item>
|
||||
<item name="wifi.on">0.1</item>
|
||||
<item name="wifi.active">168</item>
|
||||
<item name="wifi.scan">1.3</item>
|
||||
<item name="dsp.audio">24</item>
|
||||
<item name="dsp.video">63</item>
|
||||
<item name="camera.flashlight">650</item>
|
||||
<item name="camera.avg">380</item>
|
||||
<item name="gps.on">10</item>
|
||||
<item name="radio.active">168</item>
|
||||
<item name="radio.scanning">6</item>
|
||||
<array name="radio.on">
|
||||
<value>88</value>
|
||||
<value>8</value>
|
||||
</array>
|
||||
<item name="modem.controller.idle">6</item>
|
||||
<item name="modem.controller.rx">180</item>
|
||||
<item name="modem.controller.tx">186</item>
|
||||
<item name="modem.controller.voltage">3700</item>
|
||||
<array name="memory.bandwidths">
|
||||
<value>17</value>
|
||||
</array>
|
||||
<item name="wifi.controller.idle">1</item>
|
||||
<item name="wifi.controller.rx">152</item>
|
||||
<item name="wifi.controller.tx">190</item>
|
||||
<array name="wifi.controller.tx_levels">1 </array>
|
||||
<item name="wifi.controller.voltage">3700</item>
|
||||
<array name="wifi.batchedscan">
|
||||
<value>.0001</value>
|
||||
<value>.001</value>
|
||||
<value>.01</value>
|
||||
<value>.1</value>
|
||||
<value>1</value>
|
||||
</array>
|
||||
<item name="bluetooth.active">135</item>
|
||||
<item name="bluetooth.on">0.6</item>
|
||||
<item name="bluetooth.controller.voltage">3700</item>
|
||||
</device>
|
||||
@@ -0,0 +1,27 @@
|
||||
<?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>
|
||||
<!-- the padding on the end of the statusbar -->
|
||||
<dimen name="status_bar_padding_end">65px</dimen>
|
||||
|
||||
<!-- Height of the status bar header bar when on Keyguard -->
|
||||
<dimen name="status_bar_header_height_keyguard">@*android:dimen/status_bar_height</dimen>
|
||||
|
||||
<!-- Margin on the right side of the system icon group on Keyguard. -->
|
||||
<dimen name="system_icons_keyguard_padding_end">@dimen/status_bar_padding_end</dimen>
|
||||
</resources>
|
||||
2
product.prop
Normal file
2
product.prop
Normal file
@@ -0,0 +1,2 @@
|
||||
# Display
|
||||
ro.sf.lcd_density=450
|
||||
27
setup-makefiles.sh
Executable file
27
setup-makefiles.sh
Executable file
@@ -0,0 +1,27 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# Copyright (C) 2018-2019 The LineageOS 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.
|
||||
#
|
||||
|
||||
set -e
|
||||
|
||||
# Required!
|
||||
export DEVICE=kebab
|
||||
export DEVICE_COMMON=sm8250-common
|
||||
export VENDOR=oneplus
|
||||
|
||||
export DEVICE_BRINGUP_YEAR=2020
|
||||
|
||||
"./../../${VENDOR}/${DEVICE_COMMON}/setup-makefiles.sh" "$@"
|
||||
Reference in New Issue
Block a user