Merge remote-tracking branch 'origin/pie' into sc

This commit is contained in:
Peter Cai 2022-05-30 16:55:06 -04:00
commit e73a3fba48
592 changed files with 29897 additions and 1479 deletions

34
.github/workflows/Build.yml vendored Normal file
View File

@ -0,0 +1,34 @@
name: Overlay
on:
pull_request:
branches: [pie]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check Out
uses: actions/checkout@main
- name: Prepare the environment
run: |
sudo apt -y install git-core git xmlstarlet
sudo apt update
- name: Run test scripts
run: |
cd tests
bash tests.sh
- name: Build APK's
run: |
cd build
bash build.sh
- name: Upload APK
uses: actions/upload-artifact@v3.0.0
with:
path: build/*.apk
name: Overlays

1
.gitignore vendored
View File

@ -1 +1,2 @@
.*.swp
.DS_Store

View File

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- Height of the status bar -->
<dimen name="status_bar_height">24dp</dimen>
</resources>

View File

@ -17,6 +17,8 @@
*/
-->
<resources>
<!-- Height of the status bar -->
<dimen name="status_bar_height">87px</dimen>
<!-- Height of the status bar in portrait -->
<dimen name="status_bar_height_portrait">87px</dimen>
<!-- Height of the status bar in landscape -->

View File

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="status_bar_height">24dp</dimen>
</resources>

View File

@ -17,6 +17,8 @@
*/
-->
<resources>
<!-- Height of the status bar -->
<dimen name="status_bar_height">87px</dimen>
<!-- Height of the status bar in portrait -->
<dimen name="status_bar_height_portrait">87px</dimen>
<!-- Height of the status bar in landscape -->

View File

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="status_bar_height">24dp</dimen>
</resources>

View File

@ -17,6 +17,8 @@
*/
-->
<resources>
<!-- Height of the status bar -->
<dimen name="status_bar_height">57px</dimen>
<!-- Height of the status bar in portrait -->
<dimen name="status_bar_height_portrait">57px</dimen>
<!-- Height of the status bar in landscape -->

View File

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="status_bar_height">24dp</dimen>
</resources>

View File

@ -17,6 +17,8 @@
*/
-->
<resources>
<!-- Height of the status bar -->
<dimen name="status_bar_height">81px</dimen>
<!-- Height of the status bar in portrait -->
<dimen name="status_bar_height_portrait">81px</dimen>
<!-- Height of the status bar in landscape -->

View File

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="status_bar_height">28dp</dimen>
</resources>

View File

@ -4,7 +4,8 @@
<bool name="config_useDevInputEventForAudioJack">true</bool>
<bool name="config_showNavigationBar">true</bool>
<dimen name="status_bar_height_portrait">87.0px</dimen>
<dimen name="status_bar_height">87px</dimen>
<dimen name="status_bar_height_portrait">87px</dimen>
<dimen name="status_bar_height_landscape">28dp</dimen>
<fraction name="config_autoBrightnessAdjustmentMaxGamma">300.0%</fraction>

View File

@ -103,6 +103,8 @@
<bool name="config_showNavigationBar">true</bool>
<bool name="config_enableNetworkLocationOverlay">true</bool>
<bool name="config_enableFusedLocationOverlay">true</bool>
<bool name="config_wifi_connected_mac_randomization_supported">true</bool>
<bool name="config_wifi_p2p_mac_randomization_supported">true</bool>
<integer name="config_screenBrightnessSettingMinimum">2</integer>
<integer name="config_autoBrightnessBrighteningLightDebounce">2000</integer>
<integer name="config_autoBrightnessDarkeningLightDebounce">3000</integer>

View File

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="status_bar_height">84px</dimen>
</resources>

View File

@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="status_bar_height_portrait">144.0px</dimen>
<dimen name="status_bar_height_landscape">84px</dimen>
<string name="config_mainBuiltInDisplayCutout">M -70, 0 L -70, 137 L 70, 137 L 70, 0 Z</string>
<dimen name="status_bar_height">144.0px</dimen>
<dimen name="status_bar_height_portrait">144.0px</dimen>
<dimen name="status_bar_height_landscape">84px</dimen>
<string name="config_mainBuiltInDisplayCutout">M -70, 0 L -70, 137 L 70, 137 L 70, 0 Z</string>
</resources>

View File

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

View File

@ -1,6 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="config_ims_package">com.huawei.ims</string>
<bool name="config_dynamic_bind_ims">true</bool>
<bool name="config_carrier_volte_available">true</bool>
<!-- <bool name="config_dynamic_bind_ims">true</bool>-->
<bool name="config_device_volte_available">true</bool>
<bool name="config_device_wfc_ims_available">true</bool>
</resources>

View File

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

View File

@ -1,9 +1,9 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="me.phh.treble.overlay.gestures"
package="me.phh.treble.overlay.highpriomisc"
android:versionCode="1"
android:versionName="1.0">
<!-- SUPER OVERLAY -->
<!-- SUPER OVERLAY -->
<overlay android:targetPackage="android"
android:priority="933"
android:priority="8998"
android:isStatic="true" />
</manifest>

View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- Whether or not swipe up gesture's opt-in setting is available on this device -->
<bool name="config_swipe_up_gesture_setting_available">true</bool>
<!-- Flag indicating whether platform level volume adjustments are enabled for remote sessions
on grouped devices. -->
<bool name="config_volumeAdjustmentForRemoteGroupSessions">true</bool>
</resources>

View File

@ -39,4 +39,7 @@
<webviewprovider description="AOSP WebView" packageName="com.android.webview" availableByDefault="true">
<!-- Ignore this package on user/release builds unless preinstalled. -->
</webviewprovider>
<webviewprovider description="Bromite WebView" packageName="org.bromite.webview" availableByDefault="true">
<signature>MIIDbTCCAlWgAwIBAgIEHcsmjjANBgkqhkiG9w0BAQsFADBmMQswCQYDVQQGEwJERTEQMA4GA1UECBMHVW5rbm93bjEPMA0GA1UEBxMGQmVybGluMRAwDgYDVQQKEwdCcm9taXRlMRAwDgYDVQQLEwdCcm9taXRlMRAwDgYDVQQDEwdjc2FnYW41MCAXDTE4MDExOTA3MjE1N1oYDzIwNjgwMTA3MDcyMTU3WjBmMQswCQYDVQQGEwJERTEQMA4GA1UECBMHVW5rbm93bjEPMA0GA1UEBxMGQmVybGluMRAwDgYDVQQKEwdCcm9taXRlMRAwDgYDVQQLEwdCcm9taXRlMRAwDgYDVQQDEwdjc2FnYW41MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAtakjGj0eTavbBB2vWXj8KBixWn4zgXAKc+yGFu3SLEGF1VB5aJWwcMHxVI55yH/8M2eNnJP0BkSidfKgPVcm1sk/GrNEs9uk5sWod9byO5M5QWQmGP2REeTd6J0BVVVaMp2MZnqeR3Su3pwFzrSwTqIGyf8dkPSEz7ifj792+EeRNrov4oRQK7lIfqInzwc4d34wU069Lrw6m7J7HM0KbRYISsWMiYj025Qg+dTrtdWt7jbdcj7htW0eYyJoLd90+s43RWnOpENmWpcWv1EVPxUD4mCdV9idYwoHRIESpSu9IWvqDZp1VoRc43nLgsNfNBwmYdTkIaPiz1m7TBcr7QIDAQABoyEwHzAdBgNVHQ4EFgQUuWoGd7W7wMyQ1pOdjiMv10YHTR0wDQYJKoZIhvcNAQELBQADggEBAA7iw6eKz+T8HIpKDoDcX1Ywjn9JUzuCFu20LnsLzreO/Pog1xErYjdLAS7LTZokfbAnitBskO9QhV9BYkDiM0Qr5v2/HsJTtxa1mz9ywCcI36jblMyuXFj8tuwQI9/t9i+Fc3+bOFBV3t7djPo9qX1dIK0lZ6s8HcIhaCNdqm65fH+nWhC/H9djqC6qOtrkTiACKEcHQ4a/5dfROU0q0M4bS4YuiaAQWgjiGbik4LrZ8wZX1aqJCLt0Hs7MzXyyf0cRSO11FIOViHwzh6WTZGufq2J3YBFXPond8kLxkKL3LNezbi5yTcecxsbKQ6OS46CnIKcy/M8asSreLpoCDvw=</signature>
</webviewprovider>
</webviewproviders>

View File

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="status_bar_height">96px</dimen>
</resources>

View File

@ -3,13 +3,14 @@
<bool name="config_automatic_brightness_available">true</bool>
<bool name="config_useDevInputEventForAudioJack">true</bool>
<bool name="config_showNavigationBar">true</bool>
<dimen name="status_bar_height">96px</dimen>
<dimen name="status_bar_height_portrait">96px</dimen>
<dimen name="status_bar_height_landscape">96px</dimen>
<fraction name="config_autoBrightnessAdjustmentMaxGamma">300.0%</fraction>
<fraction name="config_maximumScreenDimRatio">20.000004%</fraction>
<integer name="config_screenBrightnessDark">1</integer>
<integer name="config_screenBrightnessDim">6</integer>
<integer name="config_screenBrightnessDoze">1</integer>
@ -19,7 +20,7 @@
<integer name="config_autoBrightnessDarkeningLightDebounce">8000</integer>
<integer name="config_brightness_ramp_rate_fast">180</integer>
<integer name="config_brightness_ramp_rate_slow">60</integer>
<integer-array name="config_autoBrightnessLevels">
<item>8</item>
<item>55</item>
@ -35,6 +36,6 @@
<item>250</item>
<item>255</item>
</integer-array>
<string name="config_mainBuiltInDisplayCutout">M-100,0c17.9,0 32.8,19.4 32.8,32.8l0,0C-62.4,68.6 -38.7,96 0,96c37.1,0 62.4,-27.4 67.3,-63.2l0,0C67.3,19.4 82.1,0 100,0H-100z</string>
</resources>

View File

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="status_bar_height">24dp</dimen>
</resources>

View File

@ -17,6 +17,8 @@
*/
-->
<resources>
<!-- Height of the status bar -->
<dimen name="status_bar_height">90px</dimen>
<!-- Height of the status bar in portrait -->
<dimen name="status_bar_height_portrait">90px</dimen>
<!-- Height of the status bar in landscape -->

View File

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

View File

@ -1,8 +1,10 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="me.phh.treble.overlay.webview"
package="com.dil3mm4.huawei.FIG"
android:versionCode="1"
android:versionName="1.0">
<overlay android:targetPackage="android"
android:priority="9000"
android:requiredSystemPropertyName="ro.hw.oemName"
android:requiredSystemPropertyValue="+FIG*"
android:priority="67"
android:isStatic="true" />
</manifest>

View File

@ -0,0 +1,200 @@
<?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. Do not translate.
NOTE: The naming convention is "config_camelCaseValue". Some legacy
entries do not follow the convention, but all new entries should. -->
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- 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>8</item>
<item>55</item>
<item>350</item>
<item>1600</item>
<item>2550</item>
</integer-array>
<!-- Array of output values for LCD backlight corresponding to the LUX values
in the config_autoBrightnessLevels array. This array should have size one greater
than the size of the config_autoBrightnessLevels array.
The brightness values must be between 0 and 255 and be non-decreasing.
This must be overridden in platform specific overlays -->
<integer-array name="config_autoBrightnessLcdBacklightValues">
<item>6</item>
<item>47</item>
<item>150</item>
<item>180</item>
<item>250</item>
<item>255</item>
</integer-array>
<!-- Minimum screen brightness allowed by the power manager. -->
<integer name="config_screenBrightnessDim">6</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">4</integer>
<!-- 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>
<!-- Boolean indicating if current platform supports BLE peripheral mode -->
<bool name="config_bluetooth_le_peripheral_mode_supported">true</bool>
<!-- If true, the doze component is not started until after the screen has been
turned off and the screen off animation has been performed. -->
<bool name="config_dozeAfterScreenOff">false</bool>
<!-- Power Management: Specifies whether to decouple the auto-suspend state of the
device from the display on/off state.
When false, autosuspend_disable() will be called before the display is turned on
and autosuspend_enable() will be called after the display is turned off.
This mode provides best compatibility for devices using legacy power management
features such as early suspend / late resume.
When true, autosuspend_display() and autosuspend_enable() will be called
independently of whether the display is being turned on or off. This mode
enables the power manager to suspend the application processor while the
display is on.
This resource should be set to "true" when a doze component has been specified
to maximize power savings but not all devices support it.
Refer to autosuspend.h for details.
-->
<bool name="config_powerDecoupleAutoSuspendModeFromDisplay">false</bool>
<!-- Indicate whether to allow the device to suspend when the screen is off
due to the proximity sensor. This resource should only be set to true
if the sensor HAL correctly handles the proximity sensor as a wake-up source.
Otherwise, the device may fail to wake out of suspend reliably.
The default is false. -->
<bool name="config_suspendWhenScreenOffDueToProximity">false</bool>
<!-- Power Management: Specifies whether to decouple the interactive state of the
device from the display on/off state.
When false, setInteractive(..., true) will be called before the display is turned on
and setInteractive(..., false) will be called after the display is turned off.
This mode provides best compatibility for devices that expect the interactive
state to be tied to the display state.
When true, setInteractive(...) will be called independently of whether the display
is being turned on or off. This mode enables the power manager to reduce
clocks and disable the touch controller while the display is on.
This resource should be set to "true" when a doze component has been specified
to maximize power savings but not all devices support it.
Refer to power.h for details.
-->
<bool name="config_powerDecoupleInteractiveModeFromDisplay">false</bool>
<!-- Screen brightness used to dim the screen while dozing in a very low power state.
May be less than the minimum allowed brightness setting
that can be set by the user. -->
<integer name="config_screenBrightnessDoze">4</integer>
<!-- Is the notification LED intrusive? Used to decide if there should be a disable option -->
<bool name="config_intrusiveNotificationLed">true</bool>
<!-- List of regexpressions describing the interface (if any) that represent tetherable
USB interfaces. If the device doesn't want to support tething over USB this should
be empty. An example would be "usb.*" -->
<string-array name="config_tether_usb_regexs">
<item>rndis0</item>
</string-array>
<!-- List of regexpressions describing the interface (if any) that represent tetherable
Wifi interfaces. If the device doesn't want to support tethering over Wifi this
should be empty. An example would be "softap.*" -->
<string-array name="config_tether_wifi_regexs">
<item>wlan0|ap0</item>
</string-array>
<!-- List of regexpressions describing the interface (if any) that represent tetherable
bluetooth interfaces. If the device doesn't want to support tethering over bluetooth this
should be empty. -->
<string-array name="config_tether_bluetooth_regexs">
<item>bt-pan</item>
</string-array>
<!-- Array of allowable ConnectivityManager network types for tethering -->
<!-- Common options are [1, 4] for TYPE_WIFI and TYPE_MOBILE_DUN or
[0,1,5,7] for TYPE_MOBILE, TYPE_WIFI, TYPE_MOBILE_HIPRI and TYPE_BLUETOOTH -->
<integer-array name="config_tether_upstream_types">
<item>1</item>
<item>7</item>
<item>0</item>
</integer-array>
<!-- Boolean indicating whether the wifi chipset has dual frequency band support -->
<bool translatable="false" name="config_wifi_dual_band_support">false</bool>
<!-- Is the device capable of hot swapping an UICC Card -->
<bool name="config_hotswapCapable">false</bool>
<!-- Boolean indicating whether the HWC setColorTransform function can be performed efficiently
in hardware. -->
<bool name="config_setColorTransformAccelerated">true</bool>
<!-- Flag specifying whether VoLTE is available on device -->
<bool name="config_device_volte_available">true</bool>
<!-- Flag specifying whether VoLTE should be available for carrier: independent of
carrier provisioning. If false: hard disabled. If true: then depends on carrier
provisioning, availability etc -->
<bool name="config_carrier_volte_available">true</bool>
<!-- Flag specifying whether WFC over IMS is available on device -->
<bool name="config_device_wfc_ims_available">true</bool>
<!-- Flag specifying whether WFC over IMS should be available for carrier: independent of
carrier provisioning. If false: hard disabled. If true: then depends on carrier
provisioning, availability etc -->
<bool name="config_carrier_wfc_ims_available">true</bool>
<!-- Boolean indicating whether the wifi chipset supports background scanning mechanism.
This mechanism allows the host to remain in suspend state and the dongle to actively
scan and wake the host when a configured SSID is detected by the dongle. This chipset
capability can provide power savings when wifi needs to be always kept on. -->
<bool name="config_wifi_background_scan_support">true</bool>
<!-- When true use the linux /dev/input/event subsystem to detect the switch changes
on the headphone/microphone jack. When false use the older uevent framework. -->
</resources>

View File

@ -0,0 +1,71 @@
<?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.
*/
-->
<device name="Android">
<!-- All values are in mA except as noted -->
<item name="none">0</item>
<item name="screen.on">147</item> <!-- min brite -->
<item name="bluetooth.active">145</item>
<item name="bluetooth.on">1.4</item>
<item name="bluetooth.at">1.4</item> <!-- TBD -->
<item name="screen.full">408</item> <!-- backlight 16 leds -->
<item name="wifi.on">0.7</item>
<item name="wifi.active">200</item>
<item name="wifi.scan">85</item>
<item name="dsp.audio">43</item> <!-- k3v5 -->
<item name="dsp.video">187</item>
<item name="radio.active">92</item>
<item name="gps.on">70</item>
<item name="battery.capacity">3000</item> <!-- 3900mAh -->
<item name="radio.scanning">65</item> <!-- TBD -->
<!-- Current consumed by the radio at different signal strengths, when paging -->
<array name="radio.on"> <!-- 1 entry per signal strength bin, TBD -->
<value>13.0</value>
<value>10.0</value>
<value>10.0</value>
<value>10.0</value>
<value>10.0</value>
</array>
<array name="cpu.speeds">
<value>480000</value> <!-- 480 MHz CPU speed -->
<value>807000</value> <!-- 807 MHz CPU speed -->
<value>1306000</value> <!-- 1.0 GHz CPU speed -->
<value>1402000</value><!-- 1.2 GHz CPU speed -->
<value>1709000</value><!-- 1.3 GHz CPU speed -->
<value>1805000</value><!-- 1.8 GHz CPU speed -->
<value>2016000</value><!-- 2.0 GHz CPU speed -->
<value>2112000</value><!-- 2.3 GHz CPU speed -->
<value>2362000</value><!-- 2.5 GHz CPU speed -->
</array>
<!-- Power consumption in suspend -->
<item name="cpu.idle">3.9</item> <!-- k3v5 -->
<!-- Power consumption due to wake lock held -->
<item name="cpu.awake">43</item> <!-- k3v5 -->
<!-- Power consumption at different speeds -->
<array name="cpu.active">
<value>107</value>
<value>181</value>
<value>425</value>
<value>538</value>
<value>851</value>
<value>899</value>
<value>1417</value>
<value>1484</value>
<value>2323</value>
</array>
</device>

View File

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="status_bar_height">24dp</dimen>
</resources>

View File

@ -17,6 +17,8 @@
*/
-->
<resources>
<!-- Height of the status bar -->
<dimen name="status_bar_height">81px</dimen>
<!-- Height of the status bar in portrait -->
<dimen name="status_bar_height_portrait">81px</dimen>
<!-- Height of the status bar in landscape -->

View File

@ -0,0 +1,8 @@
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := optional
LOCAL_PACKAGE_NAME := treble-overlay-huawei-COL
LOCAL_MODULE_PATH := $(TARGET_OUT_PRODUCT)/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.huawei.COL"
android:versionCode="1"
android:versionName="1.0">
<overlay android:targetPackage="android"
android:requiredSystemPropertyName="ro.hw.oemName"
android:requiredSystemPropertyValue="+COL*"
android:priority="191"
android:isStatic="true" />
</manifest>

View File

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="status_bar_height">90px</dimen>
</resources>

View File

@ -0,0 +1,46 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<integer-array name="config_autoBrightnessLcdBacklightValues">
<item>6</item>
<item>47</item>
<item>150</item>
<item>180</item>
<item>250</item>
<item>255</item>
</integer-array>
<integer-array name="config_autoBrightnessLevels">
<item>8</item>
<item>55</item>
<item>350</item>
<item>1600</item>
<item>2550</item>
</integer-array>
<bool name="config_automatic_brightness_available">true</bool>
<bool name="config_bluetooth_hfp_inband_ringing_support">true</bool>
<bool name="config_device_volte_available">true</bool>
<bool name="config_device_vt_available">true</bool>
<bool name="config_device_wfc_ims_available">true</bool>
<bool name="config_dynamic_bind_ims">true</bool>
<bool name="config_showNavigationBar">true</bool>
<bool name="config_wifi_dual_band_support">true</bool>
<bool name="skip_restoring_network_selection">true</bool>
<integer name="config_autoBrightnessLightSensorRate">300</integer>
<integer name="config_mobile_mtu">1400</integer>
<integer name="config_screenBrightnessDark">4</integer>
<integer name="config_screenBrightnessDim">6</integer>
<integer name="config_screenBrightnessDoze">4</integer>
<integer name="config_screenBrightnessSettingDefault">33</integer>
<integer name="config_screenBrightnessSettingMaximum">255</integer>
<integer name="config_screenBrightnessSettingMinimum">4</integer>
<fraction name="config_autoBrightnessAdjustmentMaxGamma">300.0%</fraction>
<fraction name="config_maximumScreenDimRatio">20.000004%</fraction>
<dimen name="navigation_bar_height">7.5mm</dimen>
<dimen name="navigation_bar_height_landscape">7.5mm</dimen>
<dimen name="navigation_bar_width">7.5mm</dimen>
<dimen name="notification_header_padding_bottom">8.0dip</dimen>
<dimen name="notification_header_padding_top">8.0dip</dimen>
<dimen name="status_bar_height">90px</dimen>
<dimen name="status_bar_height_portrait">90px</dimen>
<dimen name="status_bar_height_landscape">90px</dimen>
<string translatable="false" name="config_mainBuiltInDisplayCutout">M -156,0 L -156,90 L 156,90 L 156,0 Z</string>
</resources>

View File

@ -0,0 +1,81 @@
<?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.
*/
-->
<device name="Android">
<!-- All values are in mA except as noted -->
<item name="none">0</item>
<item name="screen.on">130</item> <!-- min brite -->
<item name="bluetooth.active">120</item>
<item name="bluetooth.on">0.8</item>
<item name="bluetooth.at">0.8</item> <!-- TBD -->
<item name="screen.full">365</item> <!-- backlight 16 leds -->
<item name="wifi.on">0.7</item>
<item name="wifi.active">150</item>
<item name="wifi.scan">80</item>
<item name="dsp.audio">43</item> <!-- k3v5 -->
<item name="dsp.video">187</item>
<item name="radio.active">95</item>
<item name="gps.on">70</item>
<item name="battery.capacity">3400</item> <!-- 3750mAh -->
<item name="radio.scanning">65</item> <!-- TBD -->
<!-- Current consumed by the radio at different signal strengths, when paging -->
<array name="radio.on"> <!-- 1 entry per signal strength bin, TBD -->
<value>13.0</value>
<value>10.0</value>
<value>10.0</value>
<value>10.0</value>
<value>10.0</value>
</array>
<array name="cpu.speeds">
<value>509000</value> <!-- 509 MHz CPU speed -->
<value>682000</value> <!-- 682 MHz CPU speed -->
<value>1018000</value> <!-- 1.0 GHz CPU speed -->
<value>1210000</value><!-- 1.2 GHz CPU speed -->
<value>1364000</value><!-- 1.3 GHz CPU speed -->
<value>1402000</value><!-- 1.4 GHz CPU speed -->
<value>1498000</value><!-- 1.48 GHz CPU speed -->
<value>1556000</value><!-- 1.5 GHz CPU speed -->
<value>1652000</value><!-- 1.6 GHz CPU speed -->
<value>1690000</value><!-- 1.68 GHz CPU speed -->
<value>1844000</value><!-- 1.8 GHz CPU speed -->
<value>1863000</value><!-- 1.83 GHz CPU speed -->
<value>2093000</value><!-- 2.0 GHz CPU speed -->
<value>2362000</value><!-- 2.3 GHz CPU speed -->
</array>
<!-- Power consumption in suspend -->
<item name="cpu.idle">5</item> <!-- k3v5 -->
<!-- Power consumption due to wake lock held -->
<item name="cpu.awake">35</item> <!-- k3v5 -->
<!-- Power consumption at different speeds -->
<array name="cpu.active">
<value>117</value>
<value>151</value>
<value>270</value>
<value>360</value>
<value>435</value>
<value>451</value>
<value>465</value>
<value>610</value>
<value>630</value>
<value>660</value>
<value>920</value>
<value>950</value>
<value>2000</value>
<value>2200</value>
</array>
</device>

View File

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="status_bar_height">88px</dimen>
</resources>

View File

@ -67,6 +67,8 @@
<dimen name="navigation_bar_width">88px</dimen>
<dimen name="notification_header_padding_top">8.0dip</dimen>
<dimen name="notification_header_padding_bottom">8.0dip</dimen>
<!-- Height of the status bar -->
<dimen name="status_bar_height">88px</dimen>
<!-- Height of the status bar in portrait -->
<dimen name="status_bar_height_portrait">88px</dimen>
<!-- Height of the status bar in landscape -->

View File

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="status_bar_height">24dp</dimen>
</resources>

View File

@ -17,6 +17,8 @@
*/
-->
<resources>
<!-- Height of the status bar -->
<dimen name="status_bar_height">85px</dimen>
<!-- Height of the status bar in portrait -->
<dimen name="status_bar_height_portrait">85px</dimen>
<!-- Height of the status bar in landscape -->

8
Infinix/Note10Pro/Android.mk Executable file
View File

@ -0,0 +1,8 @@
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := optional
LOCAL_PACKAGE_NAME := treble-overlay-infinix-note10pro
LOCAL_MODULE_PATH := $(TARGET_OUT_PRODUCT)/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.infinix.note10pro"
android:versionCode="1"
android:versionName="1.0">
<overlay android:targetPackage="android"
android:requiredSystemPropertyName="ro.vendor.build.fingerprint"
android:requiredSystemPropertyValue="+Infinix/X695*/Infinix-X695*"
android:priority="547"
android:isStatic="true" />
</manifest>

View File

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="status_bar_height">28.0dip</dimen>
</resources>

View File

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<bool name="config_useDevInputEventForAudioJack">true</bool>
<dimen name="quick_qs_offset_height">36.0dip</dimen>
<dimen name="status_bar_height">36.0dip</dimen>
<dimen name="status_bar_height_portrait">36.0dip</dimen>
<dimen name="status_bar_height_landscape">28.0dip</dimen>
<string name="config_mainBuiltInDisplayCutout">M -24,0 L -24,36 L 24,36 L 24,0 Z @dp</string>
</resources>

View File

@ -0,0 +1,207 @@
<?xml version="1.0" encoding="utf-8"?>
<device name="Android">
<item name="ambient.on">0.1</item>
<item name="screen.on">123.15</item>
<item name="screen.full">333.35</item>
<item name="bluetooth.active">22.73</item>
<item name="bluetooth.on">0.7</item>
<item name="wifi.on">0.21</item>
<item name="wifi.active">235.52</item>
<item name="wifi.scan">67.86</item>
<item name="audio">17.9</item>
<item name="video">89.15</item>
<item name="camera.flashlight">295.4</item>
<item name="camera.avg">756.52</item>
<item name="gps.on">32.27</item>
<item name="radio.active">15</item>
<item name="radio.scanning">36.25</item>
<array name="radio.on">
<value>5.98</value>
<value>5.98</value>
</array>
<array name="cpu.clusters.cores">
<value>6</value>
<value>2</value>
</array>
<array name="cpu.speeds.cluster0">
<value>500000</value>
<value>774000</value>
<value>875000</value>
<value>975000</value>
<value>1075000</value>
<value>1175000</value>
<value>1275000</value>
<value>1375000</value>
<value>1500000</value>
<value>1618000</value>
<value>1666000</value>
<value>1733000</value>
<value>1800000</value>
<value>1866000</value>
<value>1933000</value>
<value>2000000</value>
</array>
<array name="cpu.speeds.cluster1">
<value>774000</value>
<value>835000</value>
<value>919000</value>
<value>1002000</value>
<value>1085000</value>
<value>1169000</value>
<value>1308000</value>
<value>1419000</value>
<value>1530000</value>
<value>1670000</value>
<value>1733000</value>
<value>1796000</value>
<value>1860000</value>
<value>1923000</value>
<value>1986000</value>
<value>2050000</value>
</array>
<array name="cpu.active.cluster0">
<value>6.76</value>
<value>9.47</value>
<value>11.18</value>
<value>12.95</value>
<value>15.27</value>
<value>18.73</value>
<value>22.00</value>
<value>25.15</value>
<value>30.29</value>
<value>35.78</value>
<value>38.37</value>
<value>41.35</value>
<value>45.00</value>
<value>49.04</value>
<value>53.58</value>
<value>55.65</value>
</array>
<array name="cpu.active.cluster1">
<value>34.42</value>
<value>36.76</value>
<value>42.69</value>
<value>49.41</value>
<value>56.50</value>
<value>69.44</value>
<value>80.24</value>
<value>107.99</value>
<value>129.97</value>
<value>156.56</value>
<value>168.90</value>
<value>176.07</value>
<value>178.23</value>
<value>200.59</value>
<value>203.88</value>
<value>210.66</value>
</array>
<item name="cpu.idle">6.31</item>
<item name="cpu.suspend">5</item>
<item name="cpu.active">9.89</item>
<item name="cpu.cluster_power.cluster0">2.11</item>
<item name="cpu.cluster_power.cluster1">2.22</item>
<array name="cpu.core_speeds.cluster0">
<value>500000</value>
<value>774000</value>
<value>875000</value>
<value>975000</value>
<value>1075000</value>
<value>1175000</value>
<value>1275000</value>
<value>1375000</value>
<value>1500000</value>
<value>1618000</value>
<value>1666000</value>
<value>1733000</value>
<value>1800000</value>
<value>1866000</value>
<value>1933000</value>
<value>2000000</value>
</array>
<array name="cpu.core_speeds.cluster1">
<value>774000</value>
<value>835000</value>
<value>919000</value>
<value>1002000</value>
<value>1085000</value>
<value>1169000</value>
<value>1308000</value>
<value>1419000</value>
<value>1530000</value>
<value>1670000</value>
<value>1733000</value>
<value>1796000</value>
<value>1860000</value>
<value>1923000</value>
<value>1986000</value>
<value>2050000</value>
</array>
<array name="cpu.core_power.cluster0">
<value>6.76</value>
<value>9.47</value>
<value>11.18</value>
<value>12.95</value>
<value>15.27</value>
<value>18.73</value>
<value>22.00</value>
<value>25.15</value>
<value>30.29</value>
<value>35.78</value>
<value>38.37</value>
<value>41.35</value>
<value>45.00</value>
<value>49.04</value>
<value>53.58</value>
<value>55.65</value>
</array>
<array name="cpu.core_power.cluster1">
<value>34.42</value>
<value>36.76</value>
<value>42.69</value>
<value>49.41</value>
<value>56.50</value>
<value>69.44</value>
<value>80.24</value>
<value>107.99</value>
<value>129.97</value>
<value>156.56</value>
<value>168.90</value>
<value>176.07</value>
<value>178.23</value>
<value>200.59</value>
<value>203.88</value>
<value>210.66</value>
</array>
<array name="memory.bandwidths">
<value>22.7</value>
</array>
<item name="battery.capacity">5000</item>
<item name="wifi.controller.idle">15.2</item>
<item name="wifi.controller.rx">296.22</item>
<item name="wifi.controller.tx">426.91</item>
<array name="wifi.controller.tx_levels" />
<item name="wifi.controller.voltage">4.0</item>
<array name="wifi.batchedscan">
<value>30.7</value>
<value>30.7</value>
<value>30.7</value>
<value>30.7</value>
<value>30.7</value>
</array>
<item name="modem.controller.sleep">0</item>
<item name="modem.controller.idle">96.36</item>
<item name="modem.controller.rx">676.3</item>
<array name="modem.controller.tx">
<value>676.3</value>
<value>430.7</value>
<value>157.3</value>
<value>111.2</value>
<value>106.4</value>
</array>
<item name="modem.controller.voltage">0</item>
<array name="gps.signalqualitybased">
<value>0</value>
<value>0</value>
</array>
<item name="gps.voltage">0</item>
</device>

View File

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="status_bar_height">28.0dip</dimen>
</resources>

View File

@ -1,5 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<bool name="config_automatic_brightness_available">true</bool>
<bool name="config_showNavigationBar">true</bool>
<bool name="config_useDevInputEventForAudioJack">true</bool>
<bool name="config_dozeAfterScreenOffByDefault">true</bool>
<bool name="config_dozeAlwaysOnDisplayAvailable">true</bool>
<integer name="config_screenBrightnessDoze">17</integer>
<integer name="config_autoBrightnessBrighteningLightDebounce">2000</integer>
<integer name="config_autoBrightnessDarkeningLightDebounce">3000</integer>
<integer-array name="config_autoBrightnessLevels">
<item>128</item>
<item>256</item>
@ -39,71 +49,4 @@
<item>255</item>
<item>255</item>
</integer-array>
<string-array name="networkAttributes">
<item>wifi,1,1,1,-1,true</item>
<item>mobile,0,0,0,-1,true</item>
<item>mobile_mms,2,0,2,60000,true</item>
<item>mobile_supl,3,0,2,60000,true</item>
<item>mobile_dun,4,0,2,60000,true</item>
<item>mobile_hipri,5,0,3,60000,true</item>
<item>mobile_fota,10,0,2,60000,true</item>
<item>mobile_ims,11,0,2,60000,true</item>
<item>mobile_cbs,12,0,2,60000,true</item>
<item>wifi_p2p,13,1,0,-1,true</item>
<item>mobile_ia,14,0,2,-1,true</item>
<item>mobile_emergency,15,0,2,-1,true</item>
</string-array>
<string-array name="config_tether_usb_regexs">
<item>rndis\\d</item>
</string-array>
<string-array name="config_tether_wifi_regexs">
<item>ap\\d</item>
</string-array>
<string-array name="config_tether_bluetooth_regexs">
<item>bt-pan</item>
<item>bt-dun</item>
</string-array>
<string-array name="config_defaultPinnerServiceFiles">
<item>/system/framework/arm/boot-mediatek-framework.vdex</item>
<item>/system/lib/libjavacrypto.so</item>
<item>/system/lib/libhidltransport.so</item>
<item>/system/framework/arm/boot-core-libart.oat</item>
<item>/system/framework/arm/boot-conscrypt.oat</item>
<item>/system/framework/arm/boot-core-libart.vdex</item>
<item>/system/framework/arm/boot-ext.vdex</item>
<item>/system/framework/arm/boot.vdex</item>
<item>/system/framework/arm/boot-framework.vdex</item>
</string-array>
<string-array name="config_ephemeralResolverPackage">
<item>com.google.android.gms</item>
</string-array>
<bool name="config_hotswapCapable">true</bool>
<bool name="config_carrier_volte_available">true</bool>
<bool name="config_device_volte_available">false</bool>
<bool name="config_device_vt_available">false</bool>
<bool name="config_device_wfc_ims_available">false</bool>
<bool name="config_dynamic_bind_ims">true</bool>
<bool name="config_setColorTransformAccelerated">true</bool>
<bool name="config_automatic_brightness_available">true</bool>
<bool name="config_suspendWhenScreenOffDueToProximity">true</bool>
<bool name="config_wifi_dual_band_support">true</bool>
<bool name="config_wifi_background_scan_support">true</bool>
<bool name="config_useDevInputEventForAudioJack">true</bool>
<bool name="config_switch_phone_on_voice_reg_state_change">false</bool>
<bool name="skip_restoring_network_selection">true</bool>
<bool name="config_showNavigationBar">true</bool>
<bool name="config_fillMainBuiltInDisplayCutout">false</bool>
<bool name="config_enableNetworkLocationOverlay">true</bool>
<bool name="config_enableFusedLocationOverlay">true</bool>
<fraction name="config_autoBrightnessAdjustmentMaxGamma">300.0%</fraction>
<fraction name="config_maximumScreenDimRatio">20.000004%</fraction>
<integer name="config_autoBrightnessBrighteningLightDebounce">2000</integer>
<integer name="config_autoBrightnessDarkeningLightDebounce">6000</integer>
<integer name="config_screenBrightnessDim">10</integer>
<integer name="config_screenBrightnessDoze">17</integer>
<integer name="config_screenBrightnessSettingDefault">102</integer>
<integer name="config_screenBrightnessSettingMaximum">255</integer>
<integer name="config_screenBrightnessSettingMinimum">1</integer>
<integer name="config_screenBrightnessDark">1</integer>
<integer name="config_defaultPeakRefreshRate">130</integer>
</resources>

View File

@ -17,6 +17,8 @@
*/
-->
<resources>
<!-- Height of the status bar -->
<dimen name="status_bar_height">40.0dip</dimen>
<!-- Height of the status bar in portrait -->
<dimen name="status_bar_height_portrait">40.0dip</dimen>
<!-- Height of the status bar in landscape -->

View File

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="status_bar_height">28.0dip</dimen>
</resources>

View File

@ -17,6 +17,8 @@
*/
-->
<resources>
<!-- Height of the status bar -->
<dimen name="status_bar_height">44.0dip</dimen>
<!-- Height of the status bar in portrait -->
<dimen name="status_bar_height_portrait">44.0dip</dimen>
<!-- Height of the status bar in landscape -->

View File

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="status_bar_height">28.0dip</dimen>
</resources>

View File

@ -17,6 +17,8 @@
*/
-->
<resources>
<!-- Height of the status bar -->
<dimen name="status_bar_height">50px</dimen>
<!-- Height of the status bar in portrait -->
<dimen name="status_bar_height_portrait">50px</dimen>
<!-- Height of the status bar in landscape -->

View File

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="status_bar_height">24dp</dimen>
</resources>

View File

@ -17,6 +17,8 @@
*/
-->
<resources>
<!-- Height of the status bar -->
<dimen name="status_bar_height">86.0px</dimen>
<!-- Height of the status bar in portrait -->
<dimen name="status_bar_height_portrait">86.0px</dimen>
<!-- Height of the status bar in landscape -->

View File

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="status_bar_height">24dp</dimen>
</resources>

View File

@ -17,6 +17,8 @@
*/
-->
<resources>
<!-- Height of the status bar -->
<dimen name="status_bar_height">94px</dimen>
<!-- Height of the status bar in portrait -->
<dimen name="status_bar_height_portrait">94px</dimen>
<!-- Height of the status bar in landscape -->

8
LG/G7One/Android.mk Normal file
View File

@ -0,0 +1,8 @@
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := optional
LOCAL_PACKAGE_NAME := treble-overlay-lg-phoenix_lao_com-phoenix_sprout
LOCAL_MODULE_PATH := $(TARGET_OUT_PRODUCT)/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.lg.phoenix_lao_com.phoenix_sprout"
android:versionCode="1"
android:versionName="1.0">
<overlay android:targetPackage="android"
android:requiredSystemPropertyName="ro.vendor.build.fingerprint"
android:requiredSystemPropertyValue="+lge/phoenix_lao_com/phoenix_sprout*"
android:priority="452"
android:isStatic="true" />
</manifest>

View File

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="status_bar_height">24dp</dimen>
</resources>

View File

@ -0,0 +1,84 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<bool name="config_autoBrightnessResetAmbientLuxAfterWarmUp">true</bool>
<bool name="config_automatic_brightness_available">true</bool>
<integer name="config_autoBrightnessAmbientLightHorizon">10000</integer>
<integer name="config_autoBrightnessBrighteningLightDebounce">2000</integer>
<integer name="config_autoBrightnessDarkeningLightDebounce">3000</integer>
<integer name="config_autoBrightnessInitialLightSensorRate">-1</integer>
<integer name="config_autoBrightnessLightSensorRate">250</integer>
<integer name="config_brightness_ramp_rate_fast">200</integer>
<integer name="config_brightness_ramp_rate_slow">40</integer>
<integer-array name="config_autoBrightnessLcdBacklightValues">
<item>16</item>
<item>61</item>
<item>70</item>
<item>100</item>
<item>116</item>
<item>137</item>
<item>161</item>
<item>178</item>
<item>209</item>
<item>255</item>
</integer-array>
<integer-array name="config_autoBrightnessLevels">
<item>8</item>
<item>15</item>
<item>50</item>
<item>100</item>
<item>200</item>
<item>400</item>
<item>800</item>
<item>1600</item>
<item>3100</item>
</integer-array>
<array name="config_autoBrightnessDisplayValuesNits">
<item>8.2</item>
<item>23.3</item>
<item>122.28</item>
<item>144.4</item>
<item>189.4</item>
<item>237.9</item>
<item>341.8</item>
<item>550.0</item>
</array>
<bool name="config_suspendWhenScreenOffDueToProximity">true</bool>
<bool name="config_sustainedPerformanceModeSupported">true</bool>
<bool name="config_supportAudioSourceUnprocessed">true</bool>
<bool name="config_switch_phone_on_voice_reg_state_change">false</bool>
<integer name="config_overrideHasPermanentMenuKey">2</integer>
<bool name="config_powerDecoupleAutoSuspendModeFromDisplay">false</bool>
<bool name="config_dozeAfterScreenOff">true</bool>
<bool name="config_showNavigationBar">true</bool>
<bool name="skip_restoring_network_selection">true</bool>
<integer name="config_bluetooth_operating_voltage_mv">3300</integer>
<bool name="config_bluetooth_hfp_inband_ringing_support">true</bool>
<bool name="config_bluetooth_le_peripheral_mode_supported">true</bool>
<integer name="config_screenBrightnessDark">1</integer>
<integer name="config_screenBrightnessDim">1</integer>
<bool name="config_allowAutoBrightnessWhileDozing">false</bool>
<integer name="config_screenBrightnessDoze">1</integer>
<integer name="config_screenBrightnessSettingMinimum">1</integer>
<bool name="config_hotswapCapable">true</bool>
<integer-array name="config_longPressVibePattern">
<item>0</item>
<item>30</item>
</integer-array>
<integer-array name="config_virtualKeyVibePattern">
<item>0</item>
<item>30</item>
</integer-array>
<integer-array name="config_keyboardTapVibePattern">
<item>0</item>
<item>30</item>
</integer-array>
<bool name="config_lidControlsSleep">false</bool>
<bool name="config_wifi_batched_scan_supported">false</bool>
<bool name="config_wifi_background_scan_support">false</bool>
<bool name="config_wifi_dual_band_support">true</bool>
<bool name="config_dozeAlwaysOnDisplayAvailable">true</bool>
<bool name="config_powerDecoupleInteractiveModeFromDisplay">true</bool>
</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 -->
<dimen name="status_bar_height">94px</dimen>
<!-- Height of the status bar in portrait -->
<dimen name="status_bar_height_portrait">94px</dimen>
<!-- Height of the status bar in landscape -->
<dimen name="status_bar_height_landscape">24dp</dimen>
<string translatable="false" name="config_mainBuiltInDisplayCutout">M -250,0 L -250,94 L 250,94 L 250,0 Z</string>
</resources>

View File

@ -0,0 +1,189 @@
<?xml version="1.0" encoding="utf-8"?>
<device name="Android">
<item name="none">0</item>
<item name="screen.on">102.1</item>
<item name="screen.full">250</item>
<item name="bluetooth.active">38.0</item>
<item name="bluetooth.on">4.2</item>
<item name="wifi.on">3.0</item>
<item name="wifi.active">158.7</item>
<item name="wifi.scan">234.3</item>
<item name="dsp.audio">0.1</item>
<item name="dsp.video">0.1</item>
<item name="camera.flashlight">200.0</item>
<item name="camera.avg">750.0</item>
<item name="gps.on">76.4</item>
<item name="radio.active">121.9</item>
<item name="radio.scanning">4.9</item>
<array name="radio.on">
<value>2.2</value>
<value>1.3</value>
</array>
<item name="wifi.controller.idle">1.0</item>
<item name="wifi.controller.rx">3.5</item>
<item name="wifi.controller.tx">9.0</item>
<item name="wifi.controller.voltage">1800</item>
<item name="modem.controller.idle">4.9</item>
<item name="modem.controller.rx">183.1</item>
<item name="modem.controller.tx">183.1</item>
<item name="modem.controller.voltage">825</item>
<item name="bluetooth.controller.idle">3</item>
<item name="bluetooth.controller.rx">20</item>
<item name="bluetooth.controller.tx">33</item>
<item name="bluetooth.controller.voltage">3700</item>
<array name="cpu.clusters.cores">
<value>4</value>
<value>4</value>
</array>
<array name="cpu.speeds.cluster0">
<value>300000</value>
<value>403200</value>
<value>480000</value>
<value>576000</value>
<value>652800</value>
<value>748800</value>
<value>825600</value>
<value>902400</value>
<value>979200</value>
<value>1056000</value>
<value>1132800</value>
<value>1228800</value>
<value>1324800</value>
<value>1420800</value>
<value>1516800</value>
<value>1612800</value>
<value>1689600</value>
<value>1766400</value>
</array>
<array name="cpu.speeds.cluster1">
<value>825600</value>
<value>902400</value>
<value>979200</value>
<value>1056000</value>
<value>1209600</value>
<value>1286400</value>
<value>1363200</value>
<value>1459200</value>
<value>1536000</value>
<value>1612800</value>
<value>1689600</value>
<value>1766400</value>
<value>1843200</value>
<value>1920000</value>
<value>1996800</value>
<value>2092800</value>
<value>2169600</value>
<value>2246400</value>
<value>2323200</value>
<value>2400000</value>
<value>2476800</value>
<value>2553600</value>
<value>2649600</value>
<value>2803200</value>
</array>
<item name="cpu.idle">25.8</item>
<item name="cpu.awake">30.1</item>
<array name="cpu.active.cluster0">
<value>6.4</value>
<value>8.8</value>
<value>9.7</value>
<value>12.0</value>
<value>12.5</value>
<value>13.9</value>
<value>15.2</value>
<value>16.7</value>
<value>19.5</value>
<value>21.8</value>
<value>24.1</value>
<value>27.3</value>
<value>29.8</value>
<value>34.3</value>
<value>39.9</value>
<value>45.7</value>
<value>52.6</value>
<value>57.8</value>
</array>
<array name="cpu.active.cluster1">
<value>49.2</value>
<value>55.3</value>
<value>60.5</value>
<value>66.1</value>
<value>76.4</value>
<value>83.7</value>
<value>89.6</value>
<value>105.6</value>
<value>114.2</value>
<value>123.1</value>
<value>131.8</value>
<value>155.0</value>
<value>159.8</value>
<value>193.0</value>
<value>215.4</value>
<value>230.0</value>
<value>247.9</value>
<value>256.7</value>
<value>278.8</value>
<value>303.1</value>
<value>333.0</value>
<value>357.3</value>
<value>431.4</value>
<value>483.6</value>
</array>
<item name="battery.capacity">3000</item>
<array name="wifi.batchedscan">
<value>.0002</value>
<value>.002</value>
<value>.02</value>
<value>.2</value>
<value>2</value>
</array>
<item name="ext_saving">0.025</item>
<item name="max_saving">0.20</item>
<array name="ext_screen_resolution">
<value>0</value>
<value>0</value>
<value>0</value>
</array>
<array name="max_screen_resolution">
<value>0.08</value>
<value>0.04</value>
<value>0</value>
</array>
<array name="ext_maximum_brightness">
<value>0.35</value>
<value>0.25</value>
<value>0.15</value>
<value>0.08</value>
<value>0</value>
</array>
<array name="max_maximum_brightness">
<value>0.35</value>
<value>0.25</value>
<value>0.15</value>
<value>0.08</value>
<value>0</value>
</array>
<array name="block_aod">
<value>0</value>
<value>0</value>
</array>
<item name="max_restrict_frame_rate">0.12</item>
<array name="block_haptic">
<value>0.01</value>
<value>0.01</value>
</array>
<array name="restrict_cpu_gpu">
<value>0</value>
<value>0</value>
</array>
<array name="restrict_apps">
<value>0.24</value>
<value>0.52</value>
</array>
<array name="restrict_network_location">
<value>0.01</value>
<value>1.00</value>
<value>0.01</value>
<value>0.01</value>
</array>
</device>

View File

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="status_bar_height">24dp</dimen>
</resources>

View File

@ -17,6 +17,8 @@
*/
-->
<resources>
<!-- Height of the status bar -->
<dimen name="status_bar_height">94px</dimen>
<!-- Height of the status bar in portrait -->
<dimen name="status_bar_height_portrait">94px</dimen>
<!-- Height of the status bar in landscape -->

View File

@ -0,0 +1,8 @@
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := optional
LOCAL_PACKAGE_NAME := treble-overlay-lge-mfh505glm-systemui
LOCAL_MODULE_PATH := $(TARGET_OUT_PRODUCT)/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.lge.mfh505glm.systemui"
android:versionCode="1"
android:versionName="1.0">
<overlay android:targetPackage="com.android.systemui"
android:requiredSystemPropertyName="ro.product.vendor.device"
android:requiredSystemPropertyValue="+(mfh505glm|fh50lm)"
android:priority="505"
android:isStatic="true" />
</manifest>

View File

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="status_bar_header_height_keyguard">28dp</dimen>
</resources>

View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="status_bar_padding_start">35px</dimen>
<dimen name="status_bar_padding_end">35px</dimen>
<dimen name="status_bar_header_height_keyguard">124px</dimen>
<dimen name="keyguard_carrier_text_margin">35px</dimen>
<dimen name="system_icons_keyguard_padding_end">35px</dimen>
</resources>

8
LG/mfh505glm/Android.mk Normal file
View File

@ -0,0 +1,8 @@
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := optional
LOCAL_PACKAGE_NAME := treble-overlay-lge-mfh505glm
LOCAL_MODULE_PATH := $(TARGET_OUT_PRODUCT)/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.lge.mfh505glm"
android:versionCode="1"
android:versionName="1.0">
<overlay android:targetPackage="android"
android:requiredSystemPropertyName="ro.product.vendor.device"
android:requiredSystemPropertyValue="+(mfh505glm|fh50lm)"
android:priority="505"
android:isStatic="true" />
</manifest>

View File

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="status_bar_height">28dp</dimen>
<dimen name="quick_qs_offset_height">28dp</dimen>
</resources>

View File

@ -0,0 +1,55 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<bool name="config_useDevInputEventForAudioJack">true</bool>
<bool name="config_showNavigationBar">true</bool>
<dimen name="status_bar_height">124px</dimen>
<dimen name="status_bar_height_portrait">124px</dimen>
<dimen name="status_bar_height_landscape">28dp</dimen>
<dimen name="quick_qs_offset_height">124px</dimen>
<integer name="config_screenBrightnessSettingMinimum">1</integer>
<integer-array name="config_autoBrightnessLevels">
<item>128</item>
<item>256</item>
<item>384</item>
<item>512</item>
<item>640</item>
<item>768</item>
<item>896</item>
<item>1024</item>
<item>2048</item>
<item>4096</item>
<item>6144</item>
<item>8192</item>
<item>10240</item>
<item>12288</item>
<item>14336</item>
<item>16384</item>
<item>18432</item>
</integer-array>
<integer-array name="config_autoBrightnessLcdBacklightValues">
<item>8</item>
<item>64</item>
<item>98</item>
<item>104</item>
<item>110</item>
<item>116</item>
<item>122</item>
<item>128</item>
<item>134</item>
<item>182</item>
<item>255</item>
<item>255</item>
<item>255</item>
<item>255</item>
<item>255</item>
<item>255</item>
<item>255</item>
<item>255</item>
</integer-array>
<string name="config_mainBuiltInDisplayCutout">M -37,25 L -37,99 L 37,99 L 37,25 Z</string>
<string name="config_mainBuiltInDisplayCutoutRectApproximation">M -37,25 L -37,99 L 37,99 L 37,25 Z</string>
</resources>

View File

@ -3,8 +3,8 @@
android:versionCode="1"
android:versionName="1.0">
<overlay android:targetPackage="android"
android:requiredSystemPropertyName="ro.vendor.product.model"
android:requiredSystemPropertyValue="Lenovo L38041"
android:requiredSystemPropertyName="ro.vendor.build.fingerprint"
android:requiredSystemPropertyValue="+Lenovo/kunlun/kunlun*"
android:priority="70"
android:isStatic="true" />
</manifest>

View File

@ -0,0 +1,47 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<bool name="config_automatic_brightness_available">true</bool>
<integer name="config_autoBrightnessBrighteningLightDebounce">2000</integer>
<integer name="config_autoBrightnessDarkeningLightDebounce">5000</integer>
<integer name="config_screenBrightnessDark">1</integer>
<integer name="config_screenBrightnessDim">10</integer>
<integer name="config_screenBrightnessDoze">17</integer>
<integer name="config_screenBrightnessSettingDefault">102</integer>
<integer name="config_screenBrightnessSettingMaximum">255</integer>
<integer name="config_screenBrightnessSettingMinimum">10</integer>
<integer-array name="config_autoBrightnessLcdBacklightValues">
<item>1</item>
<item>20</item>
<item>50</item>
<item>50</item>
<item>50</item>
<item>50</item>
<item>65</item>
<item>82</item>
<item>106</item>
<item>123</item>
<item>147</item>
<item>166</item>
<item>187</item>
<item>200</item>
<item>212</item>
<item>255</item>
</integer-array>
<integer-array name="config_autoBrightnessLevels">
<item>6</item>
<item>33</item>
<item>67</item>
<item>100</item>
<item>167</item>
<item>222</item>
<item>389</item>
<item>500</item>
<item>610</item>
<item>800</item>
<item>1055</item>
<item>1220</item>
<item>1665</item>
<item>2220</item>
<item>3885</item>
</integer-array>
</resources>

View File

@ -1,119 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<integer-array name="config_autoBrightnessLcdBacklightValues">
<item>3</item>
<item>3</item>
<item>3</item>
<item>8</item>
<item>8</item>
<item>8</item>
<item>8</item>
<item>12</item>
<item>12</item>
<item>18</item>
<item>18</item>
<item>18</item>
<item>27</item>
<item>27</item>
<item>27</item>
<item>32</item>
<item>32</item>
<item>32</item>
<item>37</item>
<item>46</item>
<item>49</item>
<item>52</item>
<item>53</item>
<item>59</item>
<item>61</item>
<item>64</item>
<item>70</item>
<item>77</item>
<item>85</item>
<item>97</item>
<item>107</item>
<item>120</item>
<item>131</item>
<item>149</item>
<item>175</item>
<item>186</item>
<item>209</item>
<item>255</item>
</integer-array>
<integer-array name="config_autoBrightnessLevels">
<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>10</item>
<item>12</item>
<item>15</item>
<item>18</item>
<item>22</item>
<item>30</item>
<item>40</item>
<item>50</item>
<item>80</item>
<item>110</item>
<item>155</item>
<item>173</item>
<item>300</item>
<item>387</item>
<item>492</item>
<item>533</item>
<item>726</item>
<item>883</item>
<item>1023</item>
<item>1222</item>
<item>1501</item>
<item>1733</item>
<item>2034</item>
<item>2227</item>
<item>2517</item>
<item>3042</item>
<item>3495</item>
<item>3998</item>
<item>4472</item>
</integer-array>
<bool name="config_showNavigationBar">true</bool>
<bool name="config_automatic_brightness_available">true</bool>
<bool name="config_setColorTransformAccelerated">true</bool>
<bool name="config_supportAudioSourceUnprocessed">true</bool>
<bool name="config_useDevInputEventForAudioJack">false</bool>
<bool name="skip_restoring_network_selection">true</bool>
<bool name="config_bluetooth_le_peripheral_mode_supported">true</bool>
<bool name="config_carrier_volte_available">true</bool>
<bool name="config_device_volte_available">true</bool>
<bool name="config_device_vt_available">true</bool>
<bool name="config_device_wfc_ims_available">true</bool>
<bool name="config_hotswapCapable">true</bool>
<bool name="config_intrusiveNotificationLed">true</bool>
<bool name="config_lidControlsSleep">true</bool>
<bool name="config_wifiDisplaySupportsProtectedBuffers">true</bool>
<bool name="config_wifi_background_scan_support">true</bool>
<bool name="config_wifi_batched_scan_supported">true</bool>
<bool name="config_wifi_dual_band_support">true</bool>
<bool name="config_dozeAlwaysOnDisplayAvailable">false</bool>
<bool name="config_displayBlanksAfterDoze">true</bool>
<bool name="config_powerDecoupleAutoSuspendModeFromDisplay">true</bool>
<bool name="config_dozeAfterScreenOffByDefault">true</bool>
<fraction name="config_autoBrightnessAdjustmentMaxGamma">200.0%</fraction>
<fraction name="config_maximumScreenDimRatio">29.999996%</fraction>
<integer name="config_autoBrightnessBrighteningLightDebounce">2000</integer>
<integer name="config_autoBrightnessDarkeningLightDebounce">6000</integer>
<integer name="config_screenBrightnessDark">1</integer>
<integer name="config_screenBrightnessDim">1</integer>
<integer name="config_screenBrightnessDoze">17</integer>
<integer name="config_screenBrightnessSettingDefault">67</integer>
<integer name="config_screenBrightnessSettingMaximum">255</integer>
<integer name="config_screenBrightnessSettingMinimum">1</integer>
<integer name="config_bluetooth_idle_cur_ma">1</integer>
<integer name="config_bluetooth_operating_voltage_mv">3300</integer>
<integer name="config_bluetooth_rx_cur_ma">2</integer>
<integer name="config_bluetooth_tx_cur_ma">3</integer>
<integer name="config_shutdownBatteryTemperature">600</integer>
</resources>

View File

@ -0,0 +1,39 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<bool name="skip_restoring_network_selection">true</bool>
<bool name="config_hotswapCapable">true</bool>
<bool name="config_bluetooth_le_peripheral_mode_supported">true</bool>
<bool name="config_carrier_volte_available">true</bool>
<bool name="config_device_volte_available">true</bool>
<bool name="config_device_vt_available">true</bool>
<bool name="config_device_wfc_ims_available">true</bool>
<bool name="config_wifiDisplaySupportsProtectedBuffers">true</bool>
<bool name="config_wifi_background_scan_support">true</bool>
<bool name="config_wifi_batched_scan_supported">true</bool>
<bool name="config_wifi_dual_band_support">true</bool>
<bool name="config_wifi_fast_bss_transition_enabled">false</bool>
<integer name="config_bluetooth_idle_cur_ma">0</integer>
<integer name="config_bluetooth_rx_cur_ma">0</integer>
<integer name="config_bluetooth_tx_cur_ma">0</integer>
<string-array name="config_tether_usb_regexs">
<item>usb\\d</item>
<item>rndis\\d</item>
</string-array>
<string-array name="config_tether_wifi_regexs">
<item>wigig0</item>
<item>softap0</item>
</string-array>
<string-array name="networkAttributes">
<item>wifi,1,1,1,-1,true</item>
<item>mobile,0,0,0,-1,true</item>
<item>mobile_mms,2,0,4,60000,true</item>
<item>mobile_supl,3,0,2,60000,true</item>
<item>mobile_dun,4,0,2,60000,true</item>
<item>mobile_hipri,5,0,3,60000,true</item>
<item>mobile_fota,10,0,2,60000,true</item>
<item>mobile_ims,11,0,2,60000,true</item>
<item>mobile_cbs,12,0,2,60000,true</item>
<item>bluetooth,7,7,2,-1,true</item>
<item>mobile_emergency,15,0,5,-1,true</item>
</string-array>
</resources>

View File

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<bool name="config_dozeAfterScreenOff">true</bool>
<bool name="config_dozeAfterScreenOffByDefault">false</bool>
<bool name="config_dozeAlwaysOnDisplayAvailable">false</bool>
<bool name="config_powerDecoupleAutoSuspendModeFromDisplay">false</bool>
<bool name="config_powerDecoupleInteractiveModeFromDisplay">false</bool>
<bool name="config_enableBurnInProtection">false</bool>
</resources>

View File

@ -1,100 +1,99 @@
<?xml version="1.0" encoding="utf-8"?>
<device name="Android">
<item name="none">0</item>
<item name="screen.on">64.19</item>
<item name="screen.full">108.3</item>
<item name="bluetooth.active">9.22</item>
<item name="bluetooth.on">1.17</item>
<item name="wifi.on">0.52</item>
<item name="wifi.active">476.28</item>
<item name="wifi.scan">21.3</item>
<item name="dsp.audio">19.9</item>
<item name="dsp.video">40.99</item>
<item name="camera.flashlight">160</item>
<item name="camera.avg">586</item>
<item name="gps.on">132.43</item>
<item name="radio.active">134.84</item>
<item name="radio.scanning">33.23</item>
<array name="radio.on">
<value>5.59</value>
<value>5.59</value>
</array>
<item name="modem.controller.idle">0</item>
<item name="modem.controller.rx">0</item>
<item name="modem.controller.tx">0</item>
<item name="modem.controller.voltage">0</item>
<item name="screen.on">79.01</item>
<item name="screen.full">479.19</item>
<item name="camera.flashlight">158</item>
<item name="camera.avg">523</item>
<item name="video">53.25</item>
<item name="audio">35.94</item>
<array name="cpu.clusters.cores">
<value>4</value>
<value>4</value>
<value>6</value>
<value>2</value>
</array>
<array name="cpu.speeds.cluster0">
<item name="cpu.suspend">5.43</item>
<item name="cpu.idle">3.61</item>
<item name="cpu.active">19.87</item>
<item name="cpu.cluster_power.cluster0">12</item>
<item name="cpu.cluster_power.cluster1">12</item>
<array name="cpu.core_speeds.cluster0">
<value>300000</value>
<value>576000</value>
<value>748000</value>
<value>998400</value>
<value>1209600</value>
<value>768000</value>
<value>1017600</value>
<value>1248000</value>
<value>1324800</value>
<value>1516800</value>
<value>1497600</value>
<value>1612800</value>
<value>1780000</value>
<value>1708800</value>
<value>1804800</value>
</array>
<array name="cpu.active.cluster0">
<value>31.84</value>
<value>35.91</value>
<value>37.69</value>
<value>45.77</value>
<value>53.89</value>
<value>59.62</value>
<value>66.80</value>
<value>72.52</value>
<value>80.99</value>
<array name="cpu.core_power.cluster0">
<value>11</value>
<value>23</value>
<value>28</value>
<value>43</value>
<value>52</value>
<value>79</value>
<value>90</value>
<value>108</value>
<value>128</value>
<value>149</value>
</array>
<array name="cpu.speeds.cluster1">
<array name="cpu.core_speeds.cluster1">
<value>300000</value>
<value>652800</value>
<value>825600</value>
<value>806400</value>
<value>979200</value>
<value>1132800</value>
<value>1363200</value>
<value>1536000</value>
<value>1747200</value>
<value>1094400</value>
<value>1209600</value>
<value>1324800</value>
<value>1555200</value>
<value>1708800</value>
<value>1843200</value>
<value>1996800</value>
<value>2054400</value>
<value>1939200</value>
<value>2169600</value>
<value>2208000</value>
</array>
<array name="cpu.active.cluster1">
<value>45.40</value>
<value>62.55</value>
<value>70.92</value>
<value>82.33</value>
<value>94.85</value>
<value>122.35</value>
<value>146.60</value>
<value>181.52</value>
<value>214.29</value>
<value>245.88</value>
<value>282.33</value>
<value>322.98</value>
<value>333.66</value>
<array name="cpu.core_power.cluster1">
<value>243</value>
<value>297</value>
<value>312</value>
<value>362</value>
<value>389</value>
<value>448</value>
<value>586</value>
<value>696</value>
<value>876</value>
<value>900</value>
<value>948</value>
<value>1180</value>
<value>1300</value>
</array>
<item name="cpu.awake">9.6</item>
<item name="cpu.idle">6.44</item>
<array name="memory.bandwidths">
<value>22.7</value>
<item name="cpu.awake">1.6</item>
<item name="battery.capacity">4050</item>
<item name="wifi.controller.idle">2</item>
<item name="wifi.controller.rx">140</item>
<item name="wifi.controller.tx">260</item>
<item name="wifi.controller.voltage">3700</item>
<item name="modem.controller.sleep">0</item>
<item name="modem.controller.idle">3</item>
<item name="modem.controller.rx">150</item>
<array name="modem.controller.tx">
<value>150</value>
<value>180</value>
<value>230</value>
<value>300</value>
<value>390</value>
</array>
<item name="battery.capacity">4000</item>
<item name="wifi.controller.idle">0</item>
<item name="wifi.controller.rx">0</item>
<item name="wifi.controller.tx">0</item>
<array name="wifi.controller.tx_levels" />
<item name="wifi.controller.voltage">0</item>
<array name="wifi.batchedscan">
<value>.0002</value>
<value>.002</value>
<value>.02</value>
<value>.2</value>
<value>2</value>
<item name="modem.controller.voltage">3700</item>
<array name="gps.signalqualitybased">
<value>49</value>
<value>8</value>
</array>
</device>
<item name="gps.voltage">3700</item>
<item name="bluetooth.controller.idle">0.01</item>
<item name="bluetooth.controller.rx">9</item>
<item name="bluetooth.controller.tx">7</item>
<item name="bluetooth.controller.voltage">3300</item>
</device>

View File

@ -0,0 +1,52 @@
<?xml version="1.0" encoding="utf-8"?>
<device name="Android">
<item name="battery.capacity">3000</item>
<array name="cpu.clusters.cores">
<value>4</value>
<value>4</value>
</array>
<item name="cpu.suspend">5</item>
<item name="cpu.idle">1.11</item>
<item name="cpu.active">2.55</item>
<item name="cpu.cluster_power.cluster0">2.11</item>
<item name="cpu.cluster_power.cluster1">2.22</item>
<array name="cpu.core_speeds.cluster0">
<value>300000</value>
<value>1000000</value>
<value>2000000</value>
</array>
<array name="cpu.core_speeds.cluster1">
<value>300000</value>
<value>1000000</value>
<value>2500000</value>
<value>3000000</value>
</array>
<array name="cpu.core_power.cluster0">
<value>10</value>
<value>20</value>
<value>30</value>
</array>
<array name="cpu.core_power.cluster1">
<value>25</value>
<value>35</value>
<value>50</value>
<value>60</value>
</array>
<item name="ambient.on">0.5</item>
<item name="screen.on">100</item>
<item name="screen.full">800</item>
<item name="camera.flashlight">500</item>
<item name="camera.avg">600</item>
<item name="audio">100.0</item>
<item name="video">150.0</item>
<item name="gps.on">10</item>
<item name="radio.active">60</item>
<item name="radio.scanning">3</item>
<array name="radio.on">
<value>6</value>
<value>5</value>
<value>4</value>
<value>3</value>
<value>3</value>
</array>
</device>

View File

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="status_bar_height">24dp</dimen>
</resources>

View File

@ -17,6 +17,8 @@
*/
-->
<resources>
<!-- Height of the status bar -->
<dimen name="status_bar_height">87px</dimen>
<!-- Height of the status bar in portrait -->
<dimen name="status_bar_height_portrait">87px</dimen>
<!-- Height of the status bar in landscape -->

View File

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="status_bar_header_height_keyguard">28dp</dimen>
</resources>

View File

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="physical_power_button_center_screen_location_y">960px</dimen>
</resources>

View File

@ -2,7 +2,7 @@
<resources>
<dimen name="status_bar_padding_start">50px</dimen>
<dimen name="status_bar_padding_end">50px</dimen>
<dimen name="status_bar_header_height_keyguard">@*android:dimen/status_bar_height</dimen>
<dimen name="keyguard_carrier_text_margin">@dimen/status_bar_padding_start</dimen>
<dimen name="system_icons_keyguard_padding_end">@dimen/status_bar_padding_end</dimen>
<dimen name="status_bar_header_height_keyguard">96px</dimen>
<dimen name="keyguard_carrier_text_margin">50px</dimen>
<dimen name="system_icons_keyguard_padding_end">50px</dimen>
</resources>

View File

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="status_bar_height">28dp</dimen>
<dimen name="quick_qs_offset_height">28dp</dimen>
</resources>

View File

@ -2,10 +2,17 @@
<resources>
<bool name="config_useDevInputEventForAudioJack">true</bool>
<bool name="config_showNavigationBar">true</bool>
<bool name="config_dozeAlwaysOnDisplayAvailable">true</bool>
<bool name="config_powerDecoupleAutoSuspendModeFromDisplay">true</bool>
<bool name="config_powerDecoupleInteractiveModeFromDisplay">true</bool>
<bool name="config_enableBurnInProtection">true</bool>
<dimen name="status_bar_height">96px</dimen>
<dimen name="status_bar_height_portrait">96px</dimen>
<dimen name="status_bar_height_landscape">28dp</dimen>
<dimen name="quick_qs_offset_height">96px</dimen>
<integer name="config_screenBrightnessDoze">5</integer>
<integer name="config_screenBrightnessSettingMinimum">1</integer>
<string name="config_mainBuiltInDisplayCutout">M -48,0 L -48,96 L 48,96 L 48,0 Z</string>

View File

@ -2,7 +2,7 @@
<resources>
<bool name="config_dozeAlwaysOnDisplayAvailable">true</bool>
<bool name="config_dozeSupportsAodWallpaper">false</bool>
<bool name="config_displayBlanksAfterDoze">true</bool>
<bool name="config_displayBlanksAfterDoze">false</bool>
<bool name="config_powerDecoupleAutoSuspendModeFromDisplay">true</bool>
<bool name="config_powerDecoupleInteractiveModeFromDisplay">true</bool>
<integer name="config_screenBrightnessDoze">1</integer>

8
Moto/E6Plus/Android.mk Normal file
View File

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

View File

@ -0,0 +1,14 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="me.phh.treble.overlay.moto.e6plus"
android:versionCode="1"
android:versionName="1.0">
<!--
TESTS: Ignore ro.vendor.product.name
Avoid issues with modified vendors
-->
<overlay android:targetPackage="android"
android:requiredSystemPropertyName="ro.vendor.build.fingerprint"
android:requiredSystemPropertyValue="+*pokerp*"
android:priority="498"
android:isStatic="true" />
</manifest>

View File

@ -0,0 +1,60 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<array name="config_minimumBrightnessCurveNits">
<item>0.0</item>
<item>50.0</item>
<item>90.0</item>
</array>
<string-array name="networkAttributes">
<item>wifi,1,1,1,-1,true</item>
<item>mobile,0,0,0,-1,true</item>
<item>mobile_mms,2,0,2,60000,true</item>
<item>mobile_supl,3,0,2,60000,true</item>
<item>mobile_dun,4,0,2,60000,true</item>
<item>mobile_hipri,5,0,3,60000,true</item>
<item>mobile_fota,10,0,2,60000,true</item>
<item>mobile_ims,11,0,2,60000,true</item>
<item>mobile_cbs,12,0,2,60000,true</item>
<item>wifi_p2p,13,1,0,-1,true</item>
<item>mobile_ia,14,0,2,-1,true</item>
<item>mobile_emergency,15,0,2,-1,true</item>
</string-array>
<dimen name="status_bar_height">24.0dip</dimen>
<dimen name="status_bar_height_portrait">24.0dip</dimen>
<integer name="config_autoBrightnessBrighteningLightDebounce">1000</integer>
<integer name="config_autoBrightnessDarkeningLightDebounce">1500</integer>
<fraction name="config_autoBrightnessAdjustmentMaxGamma">300.0%</fraction>
<fraction name="config_maximumScreenDimRatio">20.000004%</fraction>
<fraction name="config_screenAutoBrightnessDozeScaleFactor">100.0%</fraction>
<integer name="config_screenBrightnessDark">1</integer>
<integer name="config_screenBrightnessDim">10</integer>
<integer name="config_screenBrightnessDoze">17</integer>
<integer name="config_screenBrightnessForVrSettingDefault">86</integer>
<integer name="config_screenBrightnessForVrSettingMaximum">255</integer>
<integer name="config_screenBrightnessForVrSettingMinimum">79</integer>
<integer name="config_screenBrightnessSettingDefault">102</integer>
<integer name="config_screenBrightnessSettingMaximum">255</integer>
<integer name="config_screenBrightnessSettingMinimum">10</integer>
<integer-array name="config_virtualKeyVibePattern">
<item>0</item>
<item>10</item>
<item>50</item>
<item>80</item>
</integer-array>
<integer-array name="config_keyboardTapVibePattern">
<item>70</item>
</integer-array>
<integer-array name="config_longPressVibePattern">
<item>0</item>
<item>30</item>
<item>80</item>
<item>94</item>
</integer-array>
<integer-array name="config_defaultNotificationVibePattern">
<item>0</item>
<item>350</item>
<item>250</item>
<item>350</item>
</integer-array>
<string name="config_mainBuiltInDisplayCutout">M 0,0 L 88,0 L 88,58 L 0,58 L 0,0 Z</string>
</resources>

View File

@ -0,0 +1,64 @@
<?xml version="1.0" encoding="utf-8"?>
<device name="Android">
<item name="ambient.on">0.1</item>
<item name="screen.on">0.1</item>
<item name="screen.full">0.1</item>
<item name="bluetooth.active">0.1</item>
<item name="bluetooth.on">0.1</item>
<item name="wifi.on">0.1</item>
<item name="wifi.active">0.1</item>
<item name="wifi.scan">0.1</item>
<item name="audio">0.1</item>
<item name="video">0.1</item>
<item name="camera.flashlight">0.1</item>
<item name="camera.avg">0.1</item>
<item name="gps.on">0.1</item>
<item name="radio.active">0.1</item>
<item name="radio.scanning">0.1</item>
<array name="radio.on">
<value>0.2</value>
<value>0.1</value>
</array>
<array name="cpu.clusters.cores">
<value>1</value>
</array>
<array name="cpu.speeds.cluster0">
<value>400000</value>
</array>
<array name="cpu.active.cluster0">
<value>0.1</value>
</array>
<item name="cpu.idle">0.1</item>
<array name="memory.bandwidths">
<value>22.7</value>
</array>
<item name="battery.capacity">1000</item>
<item name="wifi.controller.idle">0</item>
<item name="wifi.controller.rx">0</item>
<item name="wifi.controller.tx">0</item>
<array name="wifi.controller.tx_levels" />
<item name="wifi.controller.voltage">0</item>
<array name="wifi.batchedscan">
<value>.0002</value>
<value>.002</value>
<value>.02</value>
<value>.2</value>
<value>2</value>
</array>
<item name="modem.controller.sleep">0</item>
<item name="modem.controller.idle">0</item>
<item name="modem.controller.rx">0</item>
<array name="modem.controller.tx">
<value>0</value>
<value>0</value>
<value>0</value>
<value>0</value>
<value>0</value>
</array>
<item name="modem.controller.voltage">0</item>
<array name="gps.signalqualitybased">
<value>0</value>
<value>0</value>
</array>
<item name="gps.voltage">0</item>
</device>

View File

@ -1,7 +1,7 @@
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := optional
LOCAL_PACKAGE_NAME := treble-overlay-gestures
LOCAL_PACKAGE_NAME := treble-overlay-moto-nio
LOCAL_MODULE_PATH := $(TARGET_OUT_PRODUCT)/overlay
LOCAL_IS_RUNTIME_RESOURCE_OVERLAY := true
LOCAL_PRIVATE_PLATFORM_APIS := true

View File

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

View File

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="status_bar_height">24dp</dimen>
</resources>

View File

@ -0,0 +1,277 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- 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>2</item>
<item>5</item>
<item>10</item>
<item>29</item>
<item>50</item>
<item>90</item>
<item>100</item>
<item>150</item>
<item>200</item>
<item>300</item>
<item>400</item>
<item>500</item>
<item>800</item>
<item>1000</item>
<item>1300</item>
<item>1500</item>
<item>1800</item>
<item>2000</item>
<item>3000</item>
<item>4000</item>
<item>8000</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</item>
<item>10</item>
<item>20</item>
<item>50</item>
<item>70</item>
<item>85</item>
<item>110</item>
<item>130</item>
<item>150</item>
<item>180</item>
<item>180</item>
<item>180</item>
<item>180</item>
<item>225</item>
<item>270</item>
<item>300</item>
<item>315</item>
<item>330</item>
<item>380</item>
<item>420</item>
<item>450</item>
<item>450</item>
<item>450</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>2</item>
<item>6</item>
<item>11</item>
<item>28</item>
<item>40</item>
<item>48</item>
<item>62</item>
<item>74</item>
<item>85</item>
<item>102</item>
<item>128</item>
<item>153</item>
<item>170</item>
<item>179</item>
<item>187</item>
<item>215</item>
<item>238</item>
<item>255</item>
</integer-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>0</item>
<item>3</item>
<item>10</item>
<item>20</item>
<item>50</item>
<item>70</item>
<item>85</item>
<item>110</item>
<item>130</item>
<item>150</item>
<item>180</item>
<item>225</item>
<item>270</item>
<item>300</item>
<item>315</item>
<item>330</item>
<item>380</item>
<item>420</item>
<item>450</item>
</array>
<!-- 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. Optionally, you can append either `@left` or `@right` to the
end of the path string, in order to change the path origin to either the top left,
or top right 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.
Example for a 10px x 10px square top-center cutout:
<string ...>M -5,0 L -5,10 L 5,10 L 5,0 Z</string>
Example for a 10dp x 10dp square top-center cutout:
<string ...>M -5,0 L -5,10 L 5,10 L 5,0 Z @dp</string>
@see https://www.w3.org/TR/SVG/paths.html#PathData
-->
<string translatable="false" name="config_mainBuiltInDisplayCutout">
M 0,0
h 240
v 115
h -240
Z
@left
</string>
<!-- Indicate whether to allow the device to suspend when the screen is off
due to the proximity sensor. This resource should only be set to true
if the sensor HAL correctly handles the proximity sensor as a wake-up source.
Otherwise, the device may fail to wake out of suspend reliably.
The default is false. -->
<bool name="config_suspendWhenScreenOffDueToProximity">true</bool>
<!-- Whether device supports double tap to wake -->
<bool name="config_supportDoubleTapWake">true</bool>
<!-- Power Management: Specifies whether to decouple the auto-suspend state of the
device from the display on/off state.
When false, autosuspend_disable() will be called before the display is turned on
and autosuspend_enable() will be called after the display is turned off.
This mode provides best compatibility for devices using legacy power management
features such as early suspend / late resume.
When true, autosuspend_display() and autosuspend_enable() will be called
independently of whether the display is being turned on or off. This mode
enables the power manager to suspend the application processor while the
display is on.
This resource should be set to "true" when a doze component has been specified
to maximize power savings but not all devices support it.
Refer to autosuspend.h for details.
-->
<bool name="config_powerDecoupleAutoSuspendModeFromDisplay">true</bool>
<!-- Power Management: Specifies whether to decouple the interactive state of the
device from the display on/off state.
When false, setInteractive(..., true) will be called before the display is turned on
and setInteractive(..., false) will be called after the display is turned off.
This mode provides best compatibility for devices that expect the interactive
state to be tied to the display state.
When true, setInteractive(...) will be called independently of whether the display
is being turned on or off. This mode enables the power manager to reduce
clocks and disable the touch controller while the display is on.
This resource should be set to "true" when a doze component has been specified
to maximize power savings but not all devices support it.
Refer to power.h for details.
-->
<bool name="config_powerDecoupleInteractiveModeFromDisplay">true</bool>
<!-- List of biometric sensors on the device, in decreasing strength. Consumed by AuthService
when registering authenticators with BiometricService. Format must be ID:Modality:Strength,
where: IDs are unique per device, Modality as defined in BiometricAuthenticator.java,
and Strength as defined in Authenticators.java -->
<string-array name="config_biometric_sensors" translatable="false" >
<item>0:2:15</item> <!-- ID0:Fingerprint:Strong -->
</string-array>
<!-- Is the notification LED intrusive? Used to decide if there should be a disable option -->
<bool name="config_intrusiveNotificationLed">true</bool>
<!-- 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">4</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>
<!-- Vibrator pattern for feedback about a long screen/key press -->
<integer-array name="config_longPressVibePattern">
<item>0</item>
<item>67</item>
</integer-array>
<!-- Vibrator pattern for feedback about touching a virtual key -->
<integer-array name="config_virtualKeyVibePattern">
<item>0</item>
<item>67</item>
</integer-array>
<!-- Vibrator pattern for a very short but reliable vibration for soft keyboard tap -->
<integer-array name="config_keyboardTapVibePattern">
<item>0</item>
<item>30</item>
</integer-array>
<!-- Vibrator pattern for feedback about booting with safe mode enabled -->
<integer-array name="config_safeModeEnabledVibePattern">
<item>0</item>
<item>0</item>
<item>94</item>
</integer-array>
<!-- Vibrator pattern for feedback about hitting a scroll barrier -->
<integer-array name="config_scrollBarrierVibePattern">
<item>0</item>
<item>15</item>
<item>30</item>
<item>15</item>
</integer-array>
<!-- True if the device supports system navigation keys. -->
<bool name="config_supportSystemNavigationKeys">true</bool>
<!-- Specify if the fingerprint hardware support gestures-->
<bool name="config_fingerprintSupportsGestures">true</bool>
<!-- Default radius of the software rounded corners. -->
<dimen name="rounded_corner_radius">105px</dimen>
<!-- Height of the status bar -->
<dimen name="status_bar_height">120px</dimen>
<!-- Height of the status bar in portrait. The height should be
Max((status bar content height + waterfall top size), top cutout size) -->
<dimen name="status_bar_height_portrait">120px</dimen>
<!-- Height of the status bar in landscape. The height should be
Max((status bar content height + waterfall top size), top cutout size) -->
<dimen name="status_bar_height_landscape">24dp</dimen>
</resources>

View File

@ -0,0 +1,162 @@
<?xml version="1.0" encoding="utf-8"?>
<device name="Android">
<item name="screen.on">130</item>
<item name="screen.full">400</item>
<item name="wifi.on">1.2</item>
<item name="wifi.active">68</item>
<item name="wifi.scan">75.7</item>
<item name="audio">24.9</item>
<item name="video">123.6</item>
<item name="camera.flashlight">187</item>
<item name="camera.avg">662.3</item>
<item name="gps.on">47.4</item>
<item name="radio.active">237.8</item>
<item name="radio.scanning">45</item>
<array name="radio.on">
<value>38.8</value>
<value>35</value>
<value>30</value>
<value>25</value>
<value>20</value>
<value>15</value>
<value>10</value>
<value>8</value>
</array>
<array name="cpu.clusters.cores">
<value>4</value>
<value>3</value>
<value>1</value>
</array>
<array name="cpu.speeds.cluster0">
<value>300000</value>
<value>403200</value>
<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.active.cluster0">
<value>17.398</value>
<value>17.709</value>
<value>18.098</value>
<value>18.380</value>
<value>18.424</value>
<value>18.624</value>
<value>18.641</value>
<value>21.351</value>
<value>21.568</value>
<value>21.594</value>
<value>21.675</value>
<value>22.185</value>
<value>22.325</value>
<value>22.431</value>
<value>22.545</value>
<value>24.618</value>
<value>25.684</value>
</array>
<array name="cpu.speeds.cluster1">
<value>710400</value>
<value>825600</value>
<value>940800</value>
<value>1056000</value>
<value>1171200</value>
<value>1286400</value>
<value>1382400</value>
<value>1478400</value>
<value>1574400</value>
<value>1670400</value>
<value>1766400</value>
<value>1862400</value>
<value>1958400</value>
<value>2054400</value>
<value>2150400</value>
<value>2246400</value>
<value>2342400</value>
<value>2419200</value>
</array>
<array name="cpu.active.cluster1">
<value>30</value>
<value>37</value>
<value>45</value>
<value>51</value>
<value>60</value>
<value>68</value>
<value>72</value>
<value>81</value>
<value>94</value>
<value>100</value>
<value>109</value>
<value>133</value>
<value>141</value>
<value>149</value>
<value>163</value>
<value>180</value>
<value>198</value>
<value>209</value>
</array>
<array name="cpu.speeds.cluster2">
<value>844800</value>
<value>960000</value>
<value>1075200</value>
<value>1190400</value>
<value>1305600</value>
<value>1401600</value>
<value>1516800</value>
<value>1632000</value>
<value>1747200</value>
<value>1862400</value>
<value>1977600</value>
<value>2073600</value>
<value>2169600</value>
<value>2265600</value>
<value>2361600</value>
<value>2457600</value>
<value>2553600</value>
<value>2649600</value>
<value>2745600</value>
<value>2841600</value>
</array>
<array name="cpu.active.cluster2">
<value>53</value>
<value>61</value>
<value>67</value>
<value>76</value>
<value>88</value>
<value>92</value>
<value>102</value>
<value>116</value>
<value>129</value>
<value>133</value>
<value>168</value>
<value>182</value>
<value>224</value>
<value>233</value>
<value>240</value>
<value>249</value>
<value>272</value>
<value>295</value>
<value>330</value>
<value>366</value>
</array>
<item name="cpu.idle">11.5</item>
<item name="cpu.awake">8.7</item>
<array name="memory.bandwidths">
<value>20</value>
</array>
<item name="battery.capacity">5000</item>
<item name="modem.controller.idle">5</item>
<item name="modem.controller.rx">130</item>
<item name="modem.controller.tx">160</item>
<item name="modem.controller.voltage">3700</item>
</device>

View File

@ -1,7 +1,7 @@
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := optional
LOCAL_PACKAGE_NAME := treble-overlay-webview
LOCAL_PACKAGE_NAME := treble-overlay-moto-g31
LOCAL_MODULE_PATH := $(TARGET_OUT_PRODUCT)/overlay
LOCAL_IS_RUNTIME_RESOURCE_OVERLAY := true
LOCAL_PRIVATE_PLATFORM_APIS := true

View File

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

View File

@ -0,0 +1,79 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<integer-array name="config_autoBrightnessDisplayValuesNits">
<item>5</item>
<item>16</item>
<item>40</item>
<item>79</item>
<item>92</item>
<item>124</item>
<item>165</item>
<item>214</item>
<item>296</item>
<item>346</item>
<item>450</item>
</integer-array>
<integer-array name="config_autoBrightnessLevels">
<item>5</item>
<item>10</item>
<item>40</item>
<item>100</item>
<item>325</item>
<item>1250</item>
<item>3500</item>
<item>5500</item>
<item>10000</item>
<item>20000</item>
</integer-array>
<integer-array name="config_availableColorModes">
<item>0</item>
<item>2</item>
</integer-array>
<string-array name="config_defaultPinnerServiceFiles">
<item>/system/framework/arm/boot-framework.oat</item>
<item>/system/framework/framework.jar</item>
<item>/system/framework/services.jar</item>
<item>/apex/com.android.media/javalib/updatable-media.jar</item>
<item>/system/lib64/libsurfaceflinger.so</item>
</string-array>
<integer-array name="config_keyboardTapVibePattern">
<item>0</item>
<item>26</item>
</integer-array>
<integer-array name="config_longPressVibePattern">
<item>0</item>
<item>43</item>
</integer-array>
<integer-array name="config_screenBrightnessBacklight">
<item>0</item>
<item>3</item>
<item>9</item>
<item>24</item>
<item>47</item>
<item>56</item>
<item>76</item>
<item>101</item>
<item>128</item>
<item>182</item>
<item>213</item>
<item>255</item>
</integer-array>
<integer-array name="config_screenBrightnessNits">
<item>0</item>
<item>5</item>
<item>16</item>
<item>40</item>
<item>79</item>
<item>92</item>
<item>124</item>
<item>165</item>
<item>214</item>
<item>296</item>
<item>346</item>
<item>450</item>
</integer-array>
<integer-array name="config_virtualKeyVibePattern">
<item>0</item>
<item>30</item>
</integer-array>
</resources>

View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<bool name="config_automatic_brightness_available">true</bool>
<bool name="config_nightDisplayAvailable">true</bool>
<bool name="config_showNavigationBar">true</bool>
</resources>

Some files were not shown because too many files have changed in this diff Show More