mirror of
https://github.com/Anything-at-25-00/android_device_tecno_LG8n.git
synced 2024-11-22 21:56:26 -08:00
X6833B: Configure offline charging
Refs:436747685d
0951b5b378
Co-authored-by: bengris32 <bengris32@protonmail.ch> Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
This commit is contained in:
parent
9469383b0d
commit
9b5848a12c
|
@ -117,6 +117,7 @@ TARGET_BOARD_PLATFORM := mt6789
|
||||||
BOARD_HAS_MTK_HARDWARE := true
|
BOARD_HAS_MTK_HARDWARE := true
|
||||||
|
|
||||||
# Properties
|
# Properties
|
||||||
|
TARGET_SYSTEM_PROP += $(CONFIGS_PATH)/properties/system.prop
|
||||||
TARGET_VENDOR_PROP += $(CONFIGS_PATH)/properties/vendor.prop
|
TARGET_VENDOR_PROP += $(CONFIGS_PATH)/properties/vendor.prop
|
||||||
|
|
||||||
# Recovery
|
# Recovery
|
||||||
|
|
2
configs/properties/system.prop
Normal file
2
configs/properties/system.prop
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
# Charger
|
||||||
|
ro.charger.enable_suspend=true
|
|
@ -66,11 +66,6 @@ on late-init
|
||||||
# mount different fs start
|
# mount different fs start
|
||||||
|
|
||||||
on charger
|
on charger
|
||||||
|
|
||||||
#MD:delete XLBELHQQS-6425 for cache by xiaoxiang.xiong 20220616 start
|
|
||||||
#exec /system/bin/e2fsck -f -p /dev/block/by-name/cache
|
|
||||||
#mount ext4 /dev/block/by-name/cache /cache rw wait
|
|
||||||
#MD:delete XLBELHQQS-6425 for cache by xiaoxiang.xiong 20220616 end
|
|
||||||
chmod 0660 /dev/spm
|
chmod 0660 /dev/spm
|
||||||
chown system system /dev/spm
|
chown system system /dev/spm
|
||||||
start spm_script
|
start spm_script
|
||||||
|
@ -98,10 +93,6 @@ on charger
|
||||||
start fuelgauged
|
start fuelgauged
|
||||||
start fuelgauged_nvram
|
start fuelgauged_nvram
|
||||||
|
|
||||||
chown system system /sys/class/leds/lcd-backlight/brightness
|
|
||||||
chown system system /sys/class/leds/red/brightness
|
|
||||||
chown system system /sys/class/leds/green/brightness
|
|
||||||
|
|
||||||
# Stop bootprof
|
# Stop bootprof
|
||||||
write /proc/bootprof "0"
|
write /proc/bootprof "0"
|
||||||
|
|
||||||
|
@ -1153,6 +1144,16 @@ service osi /system/bin/osi
|
||||||
oneshot
|
oneshot
|
||||||
#seclabel u:r:osi:s0
|
#seclabel u:r:osi:s0
|
||||||
|
|
||||||
|
service vendor.charger /system/bin/charger
|
||||||
|
class charger
|
||||||
|
user system
|
||||||
|
group system graphics wakelock input
|
||||||
|
capabilities SYS_BOOT
|
||||||
|
file /dev/kmsg w
|
||||||
|
file /sys/fs/pstore/console-ramoops-0 r
|
||||||
|
file /sys/fs/pstore/console-ramoops r
|
||||||
|
file /proc/last_kmsg r
|
||||||
|
|
||||||
#SPD: add resmonitor and smartpanel bind small core by rui.fu 20230117 start
|
#SPD: add resmonitor and smartpanel bind small core by rui.fu 20230117 start
|
||||||
service spd_cpu_set_sh /vendor/bin/init.spd_cpu_set.sh
|
service spd_cpu_set_sh /vendor/bin/init.spd_cpu_set.sh
|
||||||
class main
|
class main
|
||||||
|
|
Loading…
Reference in a new issue