charger: add lineage charger

Add a new charger as a possible replacement for the AOSP charger.

Co-Authored-By: Tim Zimmermann <tim@linux4.de>
Change-Id: Icdf7ad770bb353f082759b76fd4e58910e8d72e3
gugelfrei
programminghoch10 3 years ago committed by LuK1337
parent 9887e1f751
commit f88090b17a

@ -0,0 +1,58 @@
#
# Copyright (C) 2021 The LineageOS 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.
#
LOCAL_PATH := $(call my-dir)
# Set lineage_charger_density to the density bucket of the device.
lineage_charger_density := mdpi
ifneq (,$(TARGET_SCREEN_DENSITY))
lineage_charger_density := $(strip \
$(or $(if $(filter $(shell echo $$(($(TARGET_SCREEN_DENSITY) >= 560))),1),xxxhdpi),\
$(if $(filter $(shell echo $$(($(TARGET_SCREEN_DENSITY) >= 400))),1),xxhdpi),\
$(if $(filter $(shell echo $$(($(TARGET_SCREEN_DENSITY) >= 280))),1),xhdpi),\
$(if $(filter $(shell echo $$(($(TARGET_SCREEN_DENSITY) >= 200))),1),hdpi,mdpi)))
else ifneq (,$(filter mdpi hdpi xhdpi xxhdpi xxxhdpi,$(PRODUCT_AAPT_PREF_CONFIG)))
# If PRODUCT_AAPT_PREF_CONFIG includes a dpi bucket, then use that value.
lineage_charger_density := $(PRODUCT_AAPT_PREF_CONFIG)
endif
include $(CLEAR_VARS)
LOCAL_MODULE := lineage_charger_battery_scale
LOCAL_MODULE_STEM := battery_scale.png
LOCAL_SRC_FILES := $(lineage_charger_density)/battery_scale.png
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_CLASS := ETC
LOCAL_MODULE_PATH := $(TARGET_OUT_PRODUCT_ETC)/res/images/charger
include $(BUILD_PREBUILT)
include $(CLEAR_VARS)
LOCAL_MODULE := lineage_charger_battery_fail
LOCAL_MODULE_STEM := battery_fail.png
LOCAL_SRC_FILES := $(lineage_charger_density)/battery_fail.png
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_CLASS := ETC
LOCAL_MODULE_PATH := $(TARGET_OUT_PRODUCT_ETC)/res/images/charger
include $(BUILD_PREBUILT)
include $(CLEAR_VARS)
LOCAL_MODULE := lineage_charger_animation
LOCAL_MODULE_STEM := animation.txt
LOCAL_SRC_FILES := animation.txt
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_CLASS := ETC
LOCAL_MODULE_PATH := $(TARGET_OUT_PRODUCT_ETC)/res/values/charger
LOCAL_REQUIRED_MODULES := lineage_charger_battery_scale lineage_charger_battery_fail
include $(BUILD_PREBUILT)

@ -0,0 +1,26 @@
# animation: num_cycles, first_frame_repeats, animation_file
animation: 7 1 charger/battery_scale
# frame: disp_time min_level max_level
frame: 500 0 4
frame: 500 0 9
frame: 500 5 14
frame: 500 10 19
frame: 500 15 24
frame: 500 20 29
frame: 500 25 34
frame: 500 30 39
frame: 500 35 44
frame: 500 40 49
frame: 500 45 54
frame: 500 50 59
frame: 500 55 64
frame: 500 60 69
frame: 500 65 74
frame: 500 70 79
frame: 500 75 84
frame: 500 80 89
frame: 500 85 94
frame: 500 90 99
frame: 500 95 99
frame: 1000 100 100

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

@ -0,0 +1,5 @@
<svg width="300" height="300" viewBox="0 0 300 300" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="300" height="300" fill="black"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M0 150C0 232.843 67.1573 300 150 300C232.843 300 300 232.843 300 150C300 67.1573 232.843 0 150 0C67.1573 0 0 67.1573 0 150ZM150 0.000214268L169.738 31.6154L169.771 31.6209L198.705 8.12763L207.106 44.433L207.143 44.4527L242.132 31.6291L238.287 68.7251L238.288 68.7264L275.575 67.958L259.91 101.76L259.931 101.809L295.41 113.177L269.596 140.084L269.597 140.096L299.487 162.387L266.362 179.441L266.349 179.49L287.366 210.255L250.478 215.631L250.465 215.652L260.358 251.593L223.712 244.698L223.705 244.704L221.392 281.921L189.001 263.52L188.947 263.538L174.689 297.954L150 270L125.31 297.954L111.052 263.538L110.998 263.52L78.6075 281.921L76.2945 244.704L76.2875 244.698L39.6411 251.593L49.535 215.651L49.5221 215.631L12.6336 210.255L33.6504 179.49L33.6382 179.441L0.511969 162.387L30.4029 140.096L30.4038 140.085L4.58961 113.177L40.0687 101.809L40.09 101.76L24.4247 67.958L61.7121 68.7264L61.7127 68.7257L57.8678 31.6291L92.8571 44.4528L92.8929 44.4334L101.295 8.12763L130.229 31.621L130.262 31.6156L150 0.000214268Z" fill="white"/>
<path d="M138.398 168.57C138.398 162.008 139.195 156.781 140.789 152.891C142.383 149 145.289 145.18 149.508 141.43C153.773 137.633 156.609 134.562 158.016 132.219C159.422 129.828 160.125 127.32 160.125 124.695C160.125 116.773 156.469 112.812 149.156 112.812C145.688 112.812 142.898 113.891 140.789 116.047C138.727 118.156 137.648 121.086 137.555 124.836H117.164C117.258 115.883 120.141 108.875 125.812 103.812C131.531 98.75 139.312 96.2188 149.156 96.2188C159.094 96.2188 166.805 98.6328 172.289 103.461C177.773 108.242 180.516 115.016 180.516 123.781C180.516 127.766 179.625 131.539 177.844 135.102C176.062 138.617 172.945 142.531 168.492 146.844L162.797 152.258C159.234 155.68 157.195 159.688 156.68 164.281L156.398 168.57H138.398ZM136.359 190.156C136.359 187.016 137.414 184.438 139.523 182.422C141.68 180.359 144.422 179.328 147.75 179.328C151.078 179.328 153.797 180.359 155.906 182.422C158.062 184.438 159.141 187.016 159.141 190.156C159.141 193.25 158.086 195.805 155.977 197.82C153.914 199.836 151.172 200.844 147.75 200.844C144.328 200.844 141.562 199.836 139.453 197.82C137.391 195.805 136.359 193.25 136.359 190.156Z" fill="white"/>
</svg>

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

@ -0,0 +1,28 @@
#!/bin/bash
if [ -z "$(which convert)" ] || [ -z "$(which pngcrush)" ]; then
echo "Please install imagemagick and pngcrush"
exit 1
fi
for DENSITY in mdpi:160 hdpi:240 xhdpi:320 xxhdpi:480 xxxhdpi:640; do
DPI=$(echo $DENSITY | cut -f1 -d ':')
WIDTH=$(echo $DENSITY | cut -f2 -d ':')
rm -rf $DPI
mkdir $DPI
for SVG in svg/*.svg; do
PNG="$DPI/$(basename $SVG | cut -f1 -d '.').png"
convert -density $WIDTH -resize ${WIDTH}x${WIDTH} $SVG $PNG
done
SCALEFILE="$DPI/battery_scale.png"
SCALEFILES="$(ls $DPI/battery_scale_*.png)"
FRAMES="$(ls -l $SCALEFILES | wc -l)"
SCALEHEIGHT=$(($WIDTH * $FRAMES))
convert -size ${WIDTH}x${SCALEHEIGHT} canvas:black $SCALEFILES -fx "u[j%$FRAMES+1].p{i,int(j/$FRAMES)}" png24:$SCALEFILE.tmp
pngcrush -text b "Frames" "$FRAMES" $SCALEFILE.tmp $SCALEFILE
rm $SCALEFILES $SCALEFILE.tmp
done

@ -0,0 +1,5 @@
<svg width="300" height="300" viewBox="0 0 300 300" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="300" height="300" fill="black"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M0 150C0 232.843 67.1573 300 150 300C232.843 300 300 232.843 300 150C300 67.1573 232.843 0 150 0C67.1573 0 0 67.1573 0 150ZM150 0.000214268L169.738 31.6154L169.771 31.6209L198.705 8.12763L207.106 44.433L207.143 44.4527L242.132 31.6291L238.287 68.7251L238.288 68.7264L275.575 67.958L259.91 101.76L259.931 101.809L295.41 113.177L269.596 140.084L269.597 140.096L299.487 162.387L266.362 179.441L266.349 179.49L287.366 210.255L250.478 215.631L250.465 215.652L260.358 251.593L223.712 244.698L223.705 244.704L221.392 281.921L189.001 263.52L188.947 263.538L174.689 297.954L150 270L125.31 297.954L111.052 263.538L110.998 263.52L78.6075 281.921L76.2945 244.704L76.2875 244.698L39.6411 251.593L49.535 215.651L49.5221 215.631L12.6336 210.255L33.6504 179.49L33.6382 179.441L0.511969 162.387L30.4029 140.096L30.4038 140.085L4.58961 113.177L40.0687 101.809L40.09 101.76L24.4247 67.958L61.7121 68.7264L61.7127 68.7257L57.8678 31.6291L92.8571 44.4528L92.8929 44.4334L101.295 8.12763L130.229 31.621L130.262 31.6156L150 0.000214268Z" fill="white"/>
<path d="M138.398 168.57C138.398 162.008 139.195 156.781 140.789 152.891C142.383 149 145.289 145.18 149.508 141.43C153.773 137.633 156.609 134.562 158.016 132.219C159.422 129.828 160.125 127.32 160.125 124.695C160.125 116.773 156.469 112.812 149.156 112.812C145.688 112.812 142.898 113.891 140.789 116.047C138.727 118.156 137.648 121.086 137.555 124.836H117.164C117.258 115.883 120.141 108.875 125.812 103.812C131.531 98.75 139.312 96.2188 149.156 96.2188C159.094 96.2188 166.805 98.6328 172.289 103.461C177.773 108.242 180.516 115.016 180.516 123.781C180.516 127.766 179.625 131.539 177.844 135.102C176.062 138.617 172.945 142.531 168.492 146.844L162.797 152.258C159.234 155.68 157.195 159.688 156.68 164.281L156.398 168.57H138.398ZM136.359 190.156C136.359 187.016 137.414 184.438 139.523 182.422C141.68 180.359 144.422 179.328 147.75 179.328C151.078 179.328 153.797 180.359 155.906 182.422C158.062 184.438 159.141 187.016 159.141 190.156C159.141 193.25 158.086 195.805 155.977 197.82C153.914 199.836 151.172 200.844 147.75 200.844C144.328 200.844 141.562 199.836 139.453 197.82C137.391 195.805 136.359 193.25 136.359 190.156Z" fill="white"/>
</svg>

After

Width:  |  Height:  |  Size: 2.3 KiB

@ -0,0 +1,5 @@
<svg width="300" height="300" viewBox="0 0 300 300" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="300" height="300" fill="black"/>
<circle cx="150" cy="150" r="128" fill="black"/>
<path d="M173.183 145.483L149.249 188.918C148.729 189.862 147.29 189.429 147.377 188.355L150 156H128.693C127.932 156 127.45 155.184 127.817 154.517L151.751 111.082C152.271 110.138 153.71 110.571 153.623 111.645L151 144H172.307C173.068 144 173.55 144.816 173.183 145.483Z" fill="white"/>
</svg>

After

Width:  |  Height:  |  Size: 489 B

@ -0,0 +1,6 @@
<svg width="300" height="300" viewBox="0 0 300 300" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="300" height="300" fill="black"/>
<path d="M150 20C150 8.9543 158.993 -0.137037 169.941 1.33137C172.294 1.64706 174.64 2.0186 176.976 2.44566C187.842 4.43214 193.586 15.8576 190.172 26.3627L189.021 29.9054C181.983 51.5661 150 46.5005 150 23.725L150 20Z" fill="white"/>
<circle cx="150" cy="150" r="128" fill="black"/>
<path d="M173.183 145.483L149.249 188.918C148.729 189.862 147.29 189.429 147.377 188.355L150 156H128.693C127.932 156 127.45 155.184 127.817 154.517L151.751 111.082C152.271 110.138 153.71 110.571 153.623 111.645L151 144H172.307C173.068 144 173.55 144.816 173.183 145.483Z" fill="white"/>
</svg>

After

Width:  |  Height:  |  Size: 724 B

@ -0,0 +1,6 @@
<svg width="300" height="300" viewBox="0 0 300 300" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="300" height="300" fill="black"/>
<path d="M150 20C150 8.9543 158.994 -0.137173 169.941 1.33127C187.911 3.74157 205.298 9.391 221.252 18.0033C230.972 23.2501 232.905 35.8917 226.412 44.8278L186.18 100.202C174.792 115.876 150 107.821 150 88.4464L150 20Z" fill="white"/>
<circle cx="150" cy="150" r="128" fill="black"/>
<path d="M173.183 145.483L149.249 188.918C148.729 189.862 147.29 189.429 147.377 188.355L150 156H128.693C127.932 156 127.45 155.184 127.817 154.517L151.751 111.082C152.271 110.138 153.71 110.571 153.623 111.645L151 144H172.307C173.068 144 173.55 144.816 173.183 145.483Z" fill="white"/>
</svg>

After

Width:  |  Height:  |  Size: 724 B

@ -0,0 +1,6 @@
<svg width="300" height="300" viewBox="0 0 300 300" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="300" height="300" fill="black"/>
<path d="M150 20C150 8.9543 158.993 -0.137072 169.941 1.33136C186.679 3.57645 202.966 8.63872 218.099 16.349C233.231 24.0593 246.9 34.2606 258.554 46.4822C266.177 54.4759 264.108 67.0954 255.172 73.5879L181.756 126.928C168.535 136.533 150 127.089 150 110.748L150 20Z" fill="white"/>
<circle cx="150" cy="150" r="128" fill="black"/>
<path d="M173.183 145.483L149.249 188.918C148.729 189.862 147.29 189.429 147.377 188.355L150 156H128.693C127.932 156 127.45 155.184 127.817 154.517L151.751 111.082C152.271 110.138 153.71 110.571 153.623 111.645L151 144H172.307C173.068 144 173.55 144.816 173.183 145.483Z" fill="white"/>
</svg>

After

Width:  |  Height:  |  Size: 772 B

@ -0,0 +1,6 @@
<svg width="300" height="300" viewBox="0 0 300 300" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="300" height="300" fill="black"/>
<path d="M150 20C150 8.9543 158.994 -0.137173 169.941 1.33127C194.494 4.62455 217.959 13.9649 238.168 28.6475C258.377 43.33 274.511 62.7604 285.23 85.0935C290.01 95.0516 284.142 106.414 273.637 109.828L176.18 141.493C163.258 145.692 150 136.06 150 122.472L150 20Z" fill="white"/>
<circle cx="150" cy="150" r="128" fill="black"/>
<path d="M173.183 145.483L149.249 188.918C148.729 189.862 147.29 189.429 147.377 188.355L150 156H128.693C127.932 156 127.45 155.184 127.817 154.517L151.751 111.082C152.271 110.138 153.71 110.571 153.623 111.645L151 144H172.307C173.068 144 173.55 144.816 173.183 145.483Z" fill="white"/>
</svg>

After

Width:  |  Height:  |  Size: 769 B

@ -0,0 +1,6 @@
<svg width="300" height="300" viewBox="0 0 300 300" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="300" height="300" fill="black"/>
<path d="M150 20C150 8.9543 158.993 -0.137047 169.941 1.33137C182.784 3.05407 195.379 6.4376 207.403 11.4181C225.601 18.9563 242.137 30.0052 256.066 43.934C269.995 57.8628 281.044 74.3987 288.582 92.5975C293.562 104.621 296.946 117.216 298.669 130.059C300.137 141.007 291.046 150 280 150L170 150C158.954 150 150 141.046 150 130L150 20Z" fill="white"/>
<circle cx="150" cy="150" r="128" fill="black"/>
<path d="M173.183 145.483L149.249 188.918C148.729 189.862 147.29 189.429 147.377 188.355L150 156H128.693C127.932 156 127.45 155.184 127.817 154.517L151.751 111.082C152.271 110.138 153.71 110.571 153.623 111.645L151 144H172.307C173.068 144 173.55 144.816 173.183 145.483Z" fill="white"/>
</svg>

After

Width:  |  Height:  |  Size: 841 B

@ -0,0 +1,6 @@
<svg width="300" height="300" viewBox="0 0 300 300" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="300" height="300" fill="black"/>
<path d="M150 20C150 8.9543 158.993 -0.137072 169.941 1.33136C186.679 3.57645 202.966 8.63872 218.099 16.349C239.19 27.0957 257.439 42.6815 271.353 61.8322C285.266 80.9829 294.45 103.155 298.153 126.535C300.81 143.309 300.591 160.364 297.554 176.976C295.568 187.842 284.142 193.585 273.637 190.172L163.82 154.49C155.579 151.813 150 144.134 150 135.469L150 20Z" fill="white"/>
<circle cx="150" cy="150" r="128" fill="black"/>
<path d="M173.183 145.483L149.249 188.918C148.729 189.862 147.29 189.429 147.377 188.355L150 156H128.693C127.932 156 127.45 155.184 127.817 154.517L151.751 111.082C152.271 110.138 153.71 110.571 153.623 111.645L151 144H172.307C173.068 144 173.55 144.816 173.183 145.483Z" fill="white"/>
</svg>

After

Width:  |  Height:  |  Size: 865 B

@ -0,0 +1,6 @@
<svg width="300" height="300" viewBox="0 0 300 300" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="300" height="300" fill="black"/>
<path d="M150 20C150 8.9543 158.994 -0.137109 169.941 1.33134C190.581 4.09984 210.494 11.1469 228.375 22.104C251.962 36.558 271.092 57.2532 283.651 81.9014C296.21 106.55 301.708 134.191 299.538 161.769C297.892 182.675 291.889 202.927 281.997 221.252C276.75 230.972 264.108 232.905 255.172 226.412L158.244 155.99C153.065 152.227 150 146.212 150 139.809L150 20Z" fill="white"/>
<circle cx="150" cy="150" r="128" fill="black"/>
<path d="M173.183 145.483L149.249 188.918C148.729 189.862 147.29 189.429 147.377 188.355L150 156H128.693C127.932 156 127.45 155.184 127.817 154.517L151.751 111.082C152.271 110.138 153.71 110.571 153.623 111.645L151 144H172.307C173.068 144 173.55 144.816 173.183 145.483Z" fill="white"/>
</svg>

After

Width:  |  Height:  |  Size: 865 B

@ -0,0 +1,6 @@
<svg width="300" height="300" viewBox="0 0 300 300" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="300" height="300" fill="black"/>
<path d="M150 20C150 8.9543 158.994 -0.137173 169.941 1.33127C194.494 4.62455 217.959 13.9649 238.168 28.6475C263.795 47.2667 282.87 73.5209 292.658 103.647C302.447 133.774 302.447 166.226 292.658 196.353C284.939 220.109 271.446 241.458 253.518 258.554C245.524 266.177 232.905 264.108 226.412 255.172L153.82 155.257C151.337 151.84 150 147.725 150 143.502L150 20Z" fill="white"/>
<circle cx="150" cy="150" r="128" fill="black"/>
<path d="M173.183 145.483L149.249 188.918C148.729 189.862 147.29 189.429 147.377 188.355L150 156H128.693C127.932 156 127.45 155.184 127.817 154.517L151.751 111.082C152.271 110.138 153.71 110.571 153.623 111.645L151 144H172.307C173.068 144 173.55 144.816 173.183 145.483Z" fill="white"/>
</svg>

After

Width:  |  Height:  |  Size: 868 B

@ -0,0 +1,6 @@
<svg width="300" height="300" viewBox="0 0 300 300" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="300" height="300" fill="black"/>
<path d="M150 20C150 8.9543 158.994 -0.137283 169.941 1.33108C198.42 5.15078 225.355 17.0964 247.417 35.9391C274.575 59.1345 292.566 91.2591 298.153 126.535C303.74 161.811 296.557 197.922 277.896 228.375C262.737 253.113 240.811 272.797 214.906 285.23C204.948 290.01 193.585 284.142 190.172 273.637L150.979 153.013C150.33 151.017 150 148.931 150 146.832L150 20Z" fill="white"/>
<circle cx="150" cy="150" r="128" fill="black"/>
<path d="M173.183 145.483L149.249 188.918C148.729 189.862 147.29 189.429 147.377 188.355L150 156H128.693C127.932 156 127.45 155.184 127.817 154.517L151.751 111.082C152.271 110.138 153.71 110.571 153.623 111.645L151 144H172.307C173.068 144 173.55 144.816 173.183 145.483Z" fill="white"/>
</svg>

After

Width:  |  Height:  |  Size: 866 B

@ -0,0 +1,6 @@
<svg width="300" height="300" viewBox="0 0 300 300" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="300" height="300" fill="black"/>
<path d="M150 20C150 8.9543 158.993 -0.137047 169.941 1.33137C182.784 3.05407 195.379 6.4376 207.403 11.4181C225.601 18.9563 242.137 30.0052 256.066 43.934C269.995 57.8628 281.044 74.3987 288.582 92.5975C296.12 110.796 300 130.302 300 150C300 169.698 296.12 189.204 288.582 207.403C281.044 225.601 269.995 242.137 256.066 256.066C242.137 269.995 225.601 281.044 207.402 288.582C195.379 293.562 182.784 296.946 169.941 298.669C158.993 300.137 150 291.046 150 280L150 150L150 20Z" fill="white"/>
<circle cx="150" cy="150" r="128" fill="black"/>
<path d="M173.183 145.483L149.249 188.918C148.729 189.862 147.29 189.429 147.377 188.355L150 156H128.693C127.932 156 127.45 155.184 127.817 154.517L151.751 111.082C152.271 110.138 153.71 110.571 153.623 111.645L151 144H172.307C173.068 144 173.55 144.816 173.183 145.483Z" fill="white"/>
</svg>

After

Width:  |  Height:  |  Size: 983 B

@ -0,0 +1,6 @@
<svg width="300" height="300" viewBox="0 0 300 300" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="300" height="300" fill="black"/>
<path d="M150 20C150 8.9543 158.993 -0.137056 169.941 1.33137C184.731 3.31516 199.18 7.49993 212.799 13.7785C232.49 22.8562 249.979 36.095 264.061 52.5828C278.143 69.0705 288.483 88.4152 294.368 109.284C300.254 130.153 301.545 152.049 298.153 173.465C294.761 194.881 286.767 215.307 274.72 233.335C262.674 251.364 246.862 266.567 228.375 277.896C209.887 289.225 189.163 296.412 167.631 298.96C152.738 300.723 137.703 300.238 123.024 297.554C112.158 295.568 106.415 284.142 109.828 273.637L149.021 153.013C149.67 151.017 150 148.931 150 146.832L150 20Z" fill="white"/>
<circle cx="150" cy="150" r="128" fill="black"/>
<path d="M173.183 145.483L149.249 188.918C148.729 189.862 147.29 189.429 147.377 188.355L150 156H128.693C127.932 156 127.45 155.184 127.817 154.517L151.751 111.082C152.271 110.138 153.71 110.571 153.623 111.645L151 144H172.307C173.068 144 173.55 144.816 173.183 145.483Z" fill="white"/>
</svg>

After

Width:  |  Height:  |  Size: 1.0 KiB

@ -0,0 +1,6 @@
<svg width="300" height="300" viewBox="0 0 300 300" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="300" height="300" fill="black"/>
<path d="M150 20C150 8.9543 158.993 -0.137072 169.941 1.33136C186.679 3.57645 202.966 8.63872 218.099 16.349C239.19 27.0957 257.439 42.6815 271.353 61.8322C285.266 80.9829 294.45 103.155 298.153 126.535C301.856 149.915 299.973 173.84 292.658 196.353C285.344 218.866 272.804 239.328 256.066 256.066C239.328 272.804 218.866 285.344 196.353 292.658C173.84 299.973 149.915 301.856 126.535 298.153C109.761 295.496 93.6083 290.018 78.7474 281.997C69.0275 276.75 67.0955 264.108 73.588 255.172L146.18 155.257C148.663 151.84 150 147.725 150 143.502L150 20Z" fill="white"/>
<circle cx="150" cy="150" r="128" fill="black"/>
<path d="M173.183 145.483L149.249 188.918C148.729 189.862 147.29 189.429 147.377 188.355L150 156H128.693C127.932 156 127.45 155.184 127.817 154.517L151.751 111.082C152.271 110.138 153.71 110.571 153.623 111.645L151 144H172.307C173.068 144 173.55 144.816 173.183 145.483Z" fill="white"/>
</svg>

After

Width:  |  Height:  |  Size: 1.0 KiB

@ -0,0 +1,6 @@
<svg width="300" height="300" viewBox="0 0 300 300" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="300" height="300" fill="black"/>
<path d="M150 20C150 8.9543 158.993 -0.137085 169.941 1.33136C188.629 3.83801 206.738 9.85427 223.293 19.1256C245.686 31.666 264.486 49.7423 277.896 71.6252C291.306 93.5082 298.877 118.466 299.884 144.111C300.892 169.756 295.303 195.231 283.651 218.099C271.999 240.966 254.675 260.462 233.336 274.72C211.996 288.979 187.355 297.524 161.769 299.538C136.183 301.551 110.509 296.966 87.2011 286.221C69.9695 278.278 54.458 267.163 41.4457 253.518C33.8228 245.524 35.8917 232.905 44.8278 226.412L141.756 155.99C146.935 152.227 150 146.212 150 139.809L150 20Z" fill="white"/>
<circle cx="150" cy="150" r="128" fill="black"/>
<path d="M173.183 145.483L149.249 188.918C148.729 189.862 147.29 189.429 147.377 188.355L150 156H128.693C127.932 156 127.45 155.184 127.817 154.517L151.751 111.082C152.271 110.138 153.71 110.571 153.623 111.645L151 144H172.307C173.068 144 173.55 144.816 173.183 145.483Z" fill="white"/>
</svg>

After

Width:  |  Height:  |  Size: 1.0 KiB

@ -0,0 +1,6 @@
<svg width="300" height="300" viewBox="0 0 300 300" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="300" height="300" fill="black"/>
<path d="M150 20C150 8.9543 158.994 -0.137109 169.941 1.33134C190.581 4.09984 210.494 11.1469 228.375 22.104C251.962 36.558 271.092 57.2532 283.651 81.9014C296.21 106.55 301.708 134.191 299.538 161.769C297.367 189.347 287.613 215.788 271.353 238.168C255.092 260.548 232.96 277.996 207.403 288.582C181.845 299.168 153.858 302.481 126.535 298.153C99.2121 293.826 73.6182 282.027 52.5828 264.061C36.6366 250.442 23.781 233.681 14.7699 214.906C9.99029 204.948 15.8576 193.586 26.3627 190.172L136.18 154.49C144.421 151.813 150 144.134 150 135.469L150 20Z" fill="white"/>
<circle cx="150" cy="150" r="128" fill="black"/>
<path d="M173.183 145.483L149.249 188.918C148.729 189.862 147.29 189.429 147.377 188.355L150 156H128.693C127.932 156 127.45 155.184 127.817 154.517L151.751 111.082C152.271 110.138 153.71 110.571 153.623 111.645L151 144H172.307C173.068 144 173.55 144.816 173.183 145.483Z" fill="white"/>
</svg>

After

Width:  |  Height:  |  Size: 1.0 KiB

@ -0,0 +1,6 @@
<svg width="300" height="300" viewBox="0 0 300 300" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="300" height="300" fill="black"/>
<path d="M150 20C150 8.9543 158.994 -0.137139 169.941 1.33131C192.536 4.36201 214.235 12.5169 233.336 25.2796C258.003 41.7618 277.229 65.1886 288.582 92.5975C299.935 120.006 302.906 150.166 297.118 179.264C291.33 208.361 277.044 235.088 256.066 256.066C235.088 277.044 208.361 291.33 179.264 297.118C150.166 302.906 120.006 299.935 92.5975 288.582C65.1886 277.229 41.7618 258.003 25.2796 233.336C12.5169 214.235 4.36201 192.536 1.33131 169.941C-0.137139 158.994 8.95431 150 20 150L130 150C141.046 150 150 141.046 150 130L150 20Z" fill="white"/>
<circle cx="150" cy="150" r="128" fill="black"/>
<path d="M173.183 145.483L149.249 188.918C148.729 189.862 147.29 189.429 147.377 188.355L150 156H128.693C127.932 156 127.45 155.184 127.817 154.517L151.751 111.082C152.271 110.138 153.71 110.571 153.623 111.645L151 144H172.307C173.068 144 173.55 144.816 173.183 145.483Z" fill="white"/>
</svg>

After

Width:  |  Height:  |  Size: 1.0 KiB

@ -0,0 +1,6 @@
<svg width="300" height="300" viewBox="0 0 300 300" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="300" height="300" fill="black"/>
<path d="M150 20C150 8.9543 158.994 -0.137173 169.941 1.33127C194.494 4.62455 217.959 13.9649 238.168 28.6475C263.795 47.2667 282.87 73.5209 292.658 103.647C302.447 133.774 302.447 166.226 292.658 196.353C282.87 226.479 263.795 252.733 238.168 271.353C212.541 289.972 181.677 300 150 300C118.323 300 87.4593 289.972 61.8322 271.353C36.2051 252.733 17.1302 226.479 7.34152 196.353C-0.377567 172.596 -2.0096 147.393 2.44542 123.024C4.43186 112.159 15.8576 106.414 26.3627 109.828L123.82 141.493C136.742 145.692 150 136.06 150 122.472L150 20Z" fill="white"/>
<circle cx="150" cy="150" r="128" fill="black"/>
<path d="M173.183 145.483L149.249 188.918C148.729 189.862 147.29 189.429 147.377 188.355L150 156H128.693C127.932 156 127.45 155.184 127.817 154.517L151.751 111.082C152.271 110.138 153.71 110.571 153.623 111.645L151 144H172.307C173.068 144 173.55 144.816 173.183 145.483Z" fill="white"/>
</svg>

After

Width:  |  Height:  |  Size: 1.0 KiB

@ -0,0 +1,6 @@
<svg width="300" height="300" viewBox="0 0 300 300" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="300" height="300" fill="black"/>
<path d="M150 20C150 8.9543 158.994 -0.13721 169.942 1.33122C196.455 4.88752 221.666 15.4912 242.864 32.2025C269.324 53.0615 287.99 82.2213 295.855 114.983C303.721 147.745 300.327 182.201 286.221 212.799C272.116 243.397 248.119 268.355 218.099 283.651C188.078 298.947 153.782 303.691 120.736 297.118C87.691 290.545 57.8208 273.037 35.9391 247.417C14.0573 221.797 1.43841 189.556 0.115643 155.889C-0.944093 128.917 5.29598 102.288 18.0031 78.7477C23.25 69.0277 35.8917 67.0954 44.8278 73.5879L118.244 126.928C131.465 136.533 150 127.089 150 110.748L150 20Z" fill="white"/>
<circle cx="150" cy="150" r="128" fill="black"/>
<path d="M173.183 145.483L149.249 188.918C148.729 189.862 147.29 189.429 147.377 188.355L150 156H128.693C127.932 156 127.45 155.184 127.817 154.517L151.751 111.082C152.271 110.138 153.71 110.571 153.623 111.645L151 144H172.307C173.068 144 173.55 144.816 173.183 145.483Z" fill="white"/>
</svg>

After

Width:  |  Height:  |  Size: 1.0 KiB

@ -0,0 +1,6 @@
<svg width="300" height="300" viewBox="0 0 300 300" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="300" height="300" fill="black"/>
<path d="M150 20C150 8.9543 158.994 -0.137283 169.941 1.33108C198.42 5.15078 225.355 17.0964 247.417 35.9391C274.575 59.1345 292.566 91.2591 298.153 126.535C303.74 161.811 296.557 197.922 277.896 228.375C259.235 258.827 230.32 281.622 196.353 292.658C162.385 303.695 125.594 302.25 92.5974 288.582C59.6007 274.914 32.5635 249.921 16.349 218.099C0.134526 186.276 -4.1931 149.712 4.14452 114.983C10.9176 86.7713 25.6875 61.2748 46.4819 41.4454C54.4756 33.8226 67.0955 35.8916 73.588 44.8278L113.82 100.202C125.208 115.876 150 107.821 150 88.4463L150 20Z" fill="white"/>
<circle cx="150" cy="150" r="128" fill="black"/>
<path d="M173.183 145.483L149.249 188.918C148.729 189.862 147.29 189.429 147.377 188.355L150 156H128.693C127.932 156 127.45 155.184 127.817 154.517L151.751 111.082C152.271 110.138 153.71 110.571 153.623 111.645L151 144H172.307C173.068 144 173.55 144.816 173.183 145.483Z" fill="white"/>
</svg>

After

Width:  |  Height:  |  Size: 1.0 KiB

@ -0,0 +1,6 @@
<svg width="300" height="300" viewBox="0 0 300 300" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="300" height="300" fill="black"/>
<path d="M150 20C150 8.9543 158.994 -0.137312 169.942 1.33104C200.389 5.41475 229.026 18.7812 251.82 39.8516C279.537 65.4731 296.576 100.602 299.538 138.231C302.499 175.86 291.165 213.222 267.798 242.864C244.43 272.506 210.746 292.249 173.465 298.153C136.185 304.058 98.0484 295.691 66.6644 274.72C35.2804 253.75 12.9559 221.719 4.1445 185.017C-4.66693 148.314 0.682508 109.639 19.1256 76.7068C34.2927 49.6239 57.3981 28.0622 85.0931 14.7697C95.0512 9.99024 106.415 15.8576 109.828 26.3626L110.979 29.9051C118.017 51.5659 150 46.5002 150 23.7248L150 20Z" fill="white"/>
<circle cx="150" cy="150" r="128" fill="black"/>
<path d="M173.183 145.483L149.249 188.918C148.729 189.862 147.29 189.429 147.377 188.355L150 156H128.693C127.932 156 127.45 155.184 127.817 154.517L151.751 111.082C152.271 110.138 153.71 110.571 153.623 111.645L151 144H172.307C173.068 144 173.55 144.816 173.183 145.483Z" fill="white"/>
</svg>

After

Width:  |  Height:  |  Size: 1.0 KiB

@ -0,0 +1,6 @@
<svg width="300" height="300" viewBox="0 0 300 300" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="300" height="300" fill="black"/>
<circle cx="150" cy="150" r="150" fill="white"/>
<circle cx="150" cy="150" r="128" fill="black"/>
<path d="M173.183 145.483L149.249 188.918C148.729 189.862 147.29 189.429 147.377 188.355L150 156H128.693C127.932 156 127.45 155.184 127.817 154.517L151.751 111.082C152.271 110.138 153.71 110.571 153.623 111.645L151 144H172.307C173.068 144 173.55 144.816 173.183 145.483Z" fill="white"/>
</svg>

After

Width:  |  Height:  |  Size: 538 B

@ -0,0 +1,6 @@
<svg width="300" height="300" viewBox="0 0 300 300" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="300" height="300" fill="black"/>
<circle cx="150" cy="150" r="150" fill="white"/>
<circle cx="150" cy="150" r="128" fill="black"/>
<path d="M96.2812 171H87.25V136.188L76.4688 139.531V132.188L95.3125 125.438H96.2812V171ZM141.719 152.188C141.719 158.479 140.417 163.292 137.812 166.625C135.208 169.958 131.396 171.625 126.375 171.625C121.417 171.625 117.625 169.99 115 166.719C112.375 163.448 111.031 158.76 110.969 152.656V144.281C110.969 137.927 112.281 133.104 114.906 129.812C117.552 126.521 121.354 124.875 126.312 124.875C131.271 124.875 135.062 126.51 137.688 129.781C140.312 133.031 141.656 137.708 141.719 143.812V152.188ZM132.688 143C132.688 139.229 132.167 136.49 131.125 134.781C130.104 133.052 128.5 132.188 126.312 132.188C124.188 132.188 122.615 133.01 121.594 134.656C120.594 136.281 120.062 138.833 120 142.312V153.375C120 157.083 120.5 159.844 121.5 161.656C122.521 163.448 124.146 164.344 126.375 164.344C128.583 164.344 130.177 163.479 131.156 161.75C132.135 160.021 132.646 157.375 132.688 153.812V143ZM178.469 152.188C178.469 158.479 177.167 163.292 174.562 166.625C171.958 169.958 168.146 171.625 163.125 171.625C158.167 171.625 154.375 169.99 151.75 166.719C149.125 163.448 147.781 158.76 147.719 152.656V144.281C147.719 137.927 149.031 133.104 151.656 129.812C154.302 126.521 158.104 124.875 163.062 124.875C168.021 124.875 171.812 126.51 174.438 129.781C177.062 133.031 178.406 137.708 178.469 143.812V152.188ZM169.438 143C169.438 139.229 168.917 136.49 167.875 134.781C166.854 133.052 165.25 132.188 163.062 132.188C160.938 132.188 159.365 133.01 158.344 134.656C157.344 136.281 156.812 138.833 156.75 142.312V153.375C156.75 157.083 157.25 159.844 158.25 161.656C159.271 163.448 160.896 164.344 163.125 164.344C165.333 164.344 166.927 163.479 167.906 161.75C168.885 160.021 169.396 157.375 169.438 153.812V143ZM184.469 134.25C184.469 131.458 185.375 129.198 187.188 127.469C189 125.719 191.375 124.844 194.312 124.844C197.292 124.844 199.688 125.708 201.5 127.438C203.312 129.146 204.219 131.469 204.219 134.406V136.656C204.219 139.469 203.312 141.729 201.5 143.438C199.688 145.146 197.312 146 194.375 146C191.417 146 189.021 145.146 187.188 143.438C185.375 141.708 184.469 139.385 184.469 136.469V134.25ZM190.469 136.656C190.469 137.906 190.823 138.917 191.531 139.688C192.26 140.438 193.208 140.812 194.375 140.812C195.542 140.812 196.469 140.427 197.156 139.656C197.844 138.885 198.188 137.854 198.188 136.562V134.25C198.188 133 197.844 131.99 197.156 131.219C196.469 130.448 195.521 130.062 194.312 130.062C193.167 130.062 192.24 130.448 191.531 131.219C190.823 131.969 190.469 133.021 190.469 134.375V136.656ZM206.219 159.844C206.219 157.031 207.135 154.771 208.969 153.062C210.802 151.333 213.177 150.469 216.094 150.469C219.052 150.469 221.438 151.323 223.25 153.031C225.083 154.719 226 157.052 226 160.031V162.281C226 165.073 225.104 167.333 223.312 169.062C221.521 170.771 219.135 171.625 216.156 171.625C213.156 171.625 210.75 170.76 208.938 169.031C207.125 167.302 206.219 165.01 206.219 162.156V159.844ZM212.219 162.281C212.219 163.427 212.594 164.406 213.344 165.219C214.094 166.031 215.031 166.438 216.156 166.438C218.698 166.438 219.969 165.031 219.969 162.219V159.844C219.969 158.594 219.615 157.594 218.906 156.844C218.198 156.073 217.26 155.688 216.094 155.688C214.927 155.688 213.99 156.073 213.281 156.844C212.573 157.594 212.219 158.625 212.219 159.938V162.281ZM196.156 167.594L191.75 165.219L213.969 129.656L218.375 132.031L196.156 167.594Z" fill="white"/>
</svg>

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 57 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 KiB

@ -58,6 +58,11 @@ PRODUCT_PACKAGES += \
PRODUCT_PACKAGES += \
charger_res_images
ifneq ($(WITH_LINEAGE_CHARGER),false)
PRODUCT_PACKAGES += \
lineage_charger_animation
endif
# Customizations
PRODUCT_PACKAGES += \
IconShapeSquareOverlay \

Loading…
Cancel
Save