mirror of
https://github.com/chararomandroid/android_device_samsung_a20
synced 2026-08-21 03:55:31 -04:00
a20: Setup overlay
This commit is contained in:
parent
cbd5c52d27
commit
ae67db9720
3 changed files with 128 additions and 0 deletions
|
|
@ -16,3 +16,6 @@ TARGET_SCREEN_WIDTH := 720
|
|||
|
||||
# Soong namespaces
|
||||
PRODUCT_SOONG_NAMESPACES += $(LOCAL_PATH)
|
||||
|
||||
# Overlay
|
||||
DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay
|
||||
|
|
|
|||
38
overlay/frameworks/base/core/res/res/values/config.xml
Normal file
38
overlay/frameworks/base/core/res/res/values/config.xml
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
<!--
|
||||
/**
|
||||
* Copyright (c) 2009, The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
-->
|
||||
<!-- These resources are around just to allow their values to be customized
|
||||
for different hardware and product builds. Do not translate. -->
|
||||
<resources>
|
||||
<!-- The bounding path of the cutout region of the main built-in display.
|
||||
Must either be empty if there is no cutout region, or a string that is parsable by
|
||||
{@link android.util.PathParser}.
|
||||
The path is assumed to be specified in display coordinates with pixel units and in
|
||||
the display's native orientation, with the origin of the coordinate system at the
|
||||
center top of the display.
|
||||
To facilitate writing device-independent emulation overlays, the marker `@dp` can be
|
||||
appended after the path string to interpret coordinates in dp instead of px units.
|
||||
Note that a physical cutout should be configured in pixels for the best results.
|
||||
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 name="config_mainBuiltInDisplayCutout">M 0,0 H -22.42857142857143 V 30.85714285714286 H 22.42857142857143 V 0 H 0 Z @dp</string>
|
||||
<string translatable="false" name="config_mainBuiltInDisplayCutoutRectApproximation">@*android:string/config_mainBuiltInDisplayCutout</string>
|
||||
</resources>
|
||||
87
overlay/frameworks/base/core/res/res/xml/power_profile.xml
Normal file
87
overlay/frameworks/base/core/res/res/xml/power_profile.xml
Normal file
|
|
@ -0,0 +1,87 @@
|
|||
<device name="Android">
|
||||
<item name="none">0</item>
|
||||
<item name="screen.on">93</item>
|
||||
<item name="screen.full">313</item>
|
||||
<item name="bluetooth.active">118</item>
|
||||
<item name="bluetooth.on">0.98</item>
|
||||
<item name="wifi.on">0.43</item>
|
||||
<item name="wifi.active">488</item>
|
||||
<item name="wifi.scan">502</item>
|
||||
<item name="dsp.audio">45</item>
|
||||
<item name="dsp.video">286</item>
|
||||
<item name="camera.flashlight">124</item>
|
||||
<item name="camera.avg">662</item>
|
||||
<item name="gps.on">32</item>
|
||||
<item name="radio.active">164</item>
|
||||
<item name="radio.scanning">115</item>
|
||||
<array name="radio.on">
|
||||
<value>7.3</value>
|
||||
<value>7.3</value>
|
||||
</array>
|
||||
<array name="cpu.clusters.cores">
|
||||
<value>6</value>
|
||||
<value>2</value>
|
||||
</array>
|
||||
<array name="cpu.speeds.cluster0">
|
||||
<value>1586000</value>
|
||||
<value>1482000</value>
|
||||
<value>1352000</value>
|
||||
<value>1248000</value>
|
||||
<value>1144000</value>
|
||||
<value>1014000</value>
|
||||
<value>902000</value>
|
||||
<value>839000</value>
|
||||
<value>757000</value>
|
||||
<value>676000</value>
|
||||
<value>546000</value>
|
||||
<value>449000</value>
|
||||
</array>
|
||||
<array name="cpu.active.cluster0">
|
||||
<value>50</value>
|
||||
<value>43</value>
|
||||
<value>34</value>
|
||||
<value>28</value>
|
||||
<value>24</value>
|
||||
<value>18</value>
|
||||
<value>15</value>
|
||||
<value>13</value>
|
||||
<value>11</value>
|
||||
<value>10</value>
|
||||
<value>7</value>
|
||||
<value>6</value>
|
||||
</array>
|
||||
<array name="cpu.speeds.cluster1">
|
||||
<value>1768000</value>
|
||||
<value>1664000</value>
|
||||
<value>1560000</value>
|
||||
<value>1352000</value>
|
||||
<value>1144000</value>
|
||||
<value>936000</value>
|
||||
</array>
|
||||
<array name="cpu.active.cluster1">
|
||||
<value>162</value>
|
||||
<value>142</value>
|
||||
<value>120</value>
|
||||
<value>87</value>
|
||||
<value>61</value>
|
||||
<value>41</value>
|
||||
</array>
|
||||
<item name="cpu.idle">3.79</item>
|
||||
<item name="cpu.awake">23</item>
|
||||
<item name="battery.capacity">4000</item>
|
||||
<item name="battery.typical.capacity">4000</item>
|
||||
<item name="wifi.controller.idle">1</item>
|
||||
<item name="wifi.controller.rx">65</item>
|
||||
<item name="wifi.controller.tx">265</item>
|
||||
<array name="wifi.controller.tx_levels">
|
||||
<value>0</value>
|
||||
</array>
|
||||
<item name="wifi.controller.voltage">3600</item>
|
||||
<array name="wifi.batchedscan">
|
||||
<value>.0002</value>
|
||||
<value>.002</value>
|
||||
<value>.02</value>
|
||||
<value>.2</value>
|
||||
<value>2</value>
|
||||
</array>
|
||||
</device>
|
||||
Loading…
Reference in a new issue