clover: overlay: add CloverTenInchFrameworksPowerOverlay for loading diffrent power_profile
* 8inch/10inch clover running 6010/8620mAh battery * controlled by init.device.rc and init process Signed-off-by: pix106 <sbordenave@gmail.com>
This commit is contained in:
parent
29386abf1c
commit
cf6e90a6f4
5 changed files with 144 additions and 1 deletions
|
@ -47,7 +47,8 @@ DEVICE_PACKAGE_OVERLAYS += \
|
|||
PRODUCT_PACKAGES += \
|
||||
CloverApertureOverlay \
|
||||
CloverFrameworksOverlay \
|
||||
CloverSystemUIOverlay
|
||||
CloverSystemUIOverlay \
|
||||
CloverTenInchFrameworksPowerOverlay
|
||||
|
||||
# Permissions
|
||||
PRODUCT_COPY_FILES += \
|
||||
|
|
|
@ -45,6 +45,9 @@ on property:ro.vendor.radio.noril=yes
|
|||
setprop persist.vendor.data.mode "disabled"
|
||||
mount none /dev/null /system/priv-app/TeleService/TeleService.apk bind
|
||||
|
||||
on property:ro.board.variant=d9
|
||||
mount none /dev/null /vendor/overlay/CloverTenInchFrameworksPowerOverlay.apk bind
|
||||
|
||||
# Set max charge current
|
||||
on property:sys.incall=true
|
||||
write /sys/class/power_supply/battery/constant_charge_current_max 500000
|
||||
|
|
21
rro_overlay/CloverTenInchFrameworksPowerOverlay/Android.bp
Normal file
21
rro_overlay/CloverTenInchFrameworksPowerOverlay/Android.bp
Normal file
|
@ -0,0 +1,21 @@
|
|||
//
|
||||
// Copyright (C) 2022 PixelExperience
|
||||
//
|
||||
// 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.
|
||||
//
|
||||
|
||||
runtime_resource_overlay {
|
||||
name: "CloverTenInchFrameworksPowerOverlay",
|
||||
resource_dirs: ["res"],
|
||||
vendor: true,
|
||||
}
|
|
@ -0,0 +1,21 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2022 PixelExpereince
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="com.android.frameworks.overlay.cloverteninch">
|
||||
|
||||
<application android:hasCode="false" />
|
||||
<overlay
|
||||
android:targetPackage="android"
|
||||
android:isStatic="true"
|
||||
android:priority="2"/>
|
||||
</manifest>
|
97
rro_overlay/CloverTenInchFrameworksPowerOverlay/res/xml/power_profile.xml
Executable file
97
rro_overlay/CloverTenInchFrameworksPowerOverlay/res/xml/power_profile.xml
Executable file
|
@ -0,0 +1,97 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<device name="Android">
|
||||
<item name="screen.on.display0">290</item>
|
||||
<item name="screen.full.display0">950</item>
|
||||
<array name="cpu.clusters.cores">
|
||||
<value>4</value>
|
||||
<value>4</value>
|
||||
</array>
|
||||
<array name="cpu.core_speeds.cluster0">
|
||||
<value>633000</value>
|
||||
<value>902000</value>
|
||||
<value>1113000</value>
|
||||
<value>1401000</value>
|
||||
<value>1536000</value>
|
||||
<value>1747000</value>
|
||||
<value>1843000</value>
|
||||
</array>
|
||||
<array name="cpu.core_power.cluster0">
|
||||
<value>10</value>
|
||||
<value>15</value>
|
||||
<value>20</value>
|
||||
<value>30</value>
|
||||
<value>35</value>
|
||||
<value>45</value>
|
||||
<value>52</value>
|
||||
</array>
|
||||
<array name="cpu.core_speeds.cluster1">
|
||||
<value>1113600</value>
|
||||
<value>1401600</value>
|
||||
<value>1747200</value>
|
||||
<value>1958400</value>
|
||||
<value>2150400</value>
|
||||
<value>2208000</value>
|
||||
</array>
|
||||
<array name="cpu.core_power.cluster1">
|
||||
<value>53</value>
|
||||
<value>83</value>
|
||||
<value>129</value>
|
||||
<value>174</value>
|
||||
<value>196</value>
|
||||
<value>222</value>
|
||||
</array>
|
||||
<item name="cpu.active">5.5</item>
|
||||
<item name="cpu.idle">0.1</item>
|
||||
<item name="cpu.suspend">0</item>
|
||||
<item name="battery.capacity">8620</item>
|
||||
<item name="wifi.on">0.1</item>
|
||||
<item name="wifi.active">155</item>
|
||||
<item name="wifi.scan">1.25</item>
|
||||
<item name="audio">21</item>
|
||||
<item name="video">94</item>
|
||||
<item name="camera.flashlight">480</item>
|
||||
<item name="camera.avg">270</item>
|
||||
<item name="gps.on">14</item>
|
||||
<item name="radio.active">170</item>
|
||||
<item name="radio.scanning">5.8</item>
|
||||
<array name="radio.on">
|
||||
<value>82</value>
|
||||
<value>6.58</value>
|
||||
</array>
|
||||
<item
|
||||
name="modem.controller.idle">5.8</item>
|
||||
<item
|
||||
name="modem.controller.rx">155</item>
|
||||
<item
|
||||
name="modem.controller.tx">168</item>
|
||||
<item
|
||||
name="modem.controller.voltage">3700</item>
|
||||
<array
|
||||
name="memory.bandwidths">
|
||||
<value>26.22</value>
|
||||
</array>
|
||||
<item
|
||||
name="wifi.controller.idle">1.25</item>
|
||||
<item
|
||||
name="wifi.controller.rx">135.8</item>
|
||||
<item
|
||||
name="wifi.controller.tx">155</item>
|
||||
<array
|
||||
name="wifi.controller.tx_levels">1.0 </array>
|
||||
<item
|
||||
name="wifi.controller.voltage">3700</item>
|
||||
<array
|
||||
name="wifi.batchedscan">
|
||||
<value>.0001</value>
|
||||
<value>.001</value>
|
||||
<value>.01</value>
|
||||
<value>.1</value>
|
||||
<value>1</value>
|
||||
</array>
|
||||
<item
|
||||
name="bluetooth.active">134</item>
|
||||
<item
|
||||
name="bluetooth.on">0.6</item>
|
||||
<item
|
||||
name="bluetooth.controller.voltage">3700</item>
|
||||
</device>
|
Loading…
Reference in a new issue