-
Notifications
You must be signed in to change notification settings - Fork 588
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
198306e
commit 01fdd80
Showing
4 changed files
with
290 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
LOCAL_PATH := $(call my-dir) | ||
include $(CLEAR_VARS) | ||
LOCAL_MODULE_TAGS := optional | ||
LOCAL_PACKAGE_NAME := treble-overlay-huawei-HWI | ||
LOCAL_MODULE_PATH := $(TARGET_OUT_PRODUCT)/overlay | ||
LOCAL_IS_RUNTIME_RESOURCE_OVERLAY := true | ||
LOCAL_PRIVATE_PLATFORM_APIS := true | ||
include $(BUILD_PACKAGE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
package="com.dil3mm4.huawei.HWI" | ||
android:versionCode="1" | ||
android:versionName="1.0"> | ||
<overlay android:targetPackage="android" | ||
android:requiredSystemPropertyName="ro.hw.oemName" | ||
android:requiredSystemPropertyValue="+HWI*" | ||
android:priority="196" | ||
android:isStatic="true" /> | ||
</manifest> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,197 @@ | ||
<?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>2</item> <!-- 0-1 --> | ||
<item>11</item> <!-- 1-40 --> | ||
<item>22</item> <!-- 40-100 --> | ||
<item>47</item> <!-- 100-325 --> | ||
<item>61</item> <!-- 325-600 --> | ||
<item>95</item> <!-- 600-1250 --> | ||
<item>130</item> <!-- 1250-2200 --> | ||
<item>180</item> <!-- 2200-4000 --> | ||
<item>240</item> <!-- 4000-10000 --> | ||
<item>255</item> <!-- 10000+ --> | ||
</integer-array> | ||
|
||
<!-- Minimum screen brightness allowed by the power manager. --> | ||
<integer name="config_screenBrightnessDim">6</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">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> | ||
|
||
<!-- 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> | ||
|
||
<!-- 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> | ||
|
||
|
||
<!-- 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 translatable="false" 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 translatable="false" name="config_tether_wifi_regexs"> | ||
<item>"wlan0|ap0"</item> | ||
<item>"softap.*"</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 translatable="false" 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 translatable="false" 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">true</bool> | ||
|
||
<!-- Is the device capable of hot swapping an UICC Card --> | ||
<bool name="config_hotswapCapable">true</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> | ||
|
||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
<?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> |