diff --git a/device.mk b/device.mk index 613ea7a..5fe0a54 100644 --- a/device.mk +++ b/device.mk @@ -47,7 +47,8 @@ DEVICE_PACKAGE_OVERLAYS += \ PRODUCT_PACKAGES += \ CloverApertureOverlay \ CloverFrameworksOverlay \ - CloverSystemUIOverlay + CloverSystemUIOverlay \ + CloverTenInchFrameworksPowerOverlay # Permissions PRODUCT_COPY_FILES += \ diff --git a/rootdir/etc/init.device.rc b/rootdir/etc/init.device.rc index 287f025..8fe9e41 100644 --- a/rootdir/etc/init.device.rc +++ b/rootdir/etc/init.device.rc @@ -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 diff --git a/rro_overlay/CloverTenInchFrameworksPowerOverlay/Android.bp b/rro_overlay/CloverTenInchFrameworksPowerOverlay/Android.bp new file mode 100644 index 0000000..451a42c --- /dev/null +++ b/rro_overlay/CloverTenInchFrameworksPowerOverlay/Android.bp @@ -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, +} diff --git a/rro_overlay/CloverTenInchFrameworksPowerOverlay/AndroidManifest.xml b/rro_overlay/CloverTenInchFrameworksPowerOverlay/AndroidManifest.xml new file mode 100644 index 0000000..9e2ecf9 --- /dev/null +++ b/rro_overlay/CloverTenInchFrameworksPowerOverlay/AndroidManifest.xml @@ -0,0 +1,21 @@ + + + + + + + diff --git a/rro_overlay/CloverTenInchFrameworksPowerOverlay/res/xml/power_profile.xml b/rro_overlay/CloverTenInchFrameworksPowerOverlay/res/xml/power_profile.xml new file mode 100755 index 0000000..d91cfe1 --- /dev/null +++ b/rro_overlay/CloverTenInchFrameworksPowerOverlay/res/xml/power_profile.xml @@ -0,0 +1,97 @@ + + + 290 + 950 + + 4 + 4 + + + 633000 + 902000 + 1113000 + 1401000 + 1536000 + 1747000 + 1843000 + + + 10 + 15 + 20 + 30 + 35 + 45 + 52 + + + 1113600 + 1401600 + 1747200 + 1958400 + 2150400 + 2208000 + + + 53 + 83 + 129 + 174 + 196 + 222 + + 5.5 + 0.1 + 0 + 8620 + 0.1 + 155 + 1.25 + 21 + 94 + 480 + 270 + 14 + 170 + 5.8 + + 82 + 6.58 + + 5.8 + 155 + 168 + 3700 + + 26.22 + + 1.25 + 135.8 + 155 + 1.0 + 3700 + + .0001 + .001 + .01 + .1 + 1 + + 134 + 0.6 + 3700 +