sanders: Use charging animation from stock
This commit is contained in:
@@ -7,6 +7,7 @@ bin/adspd
|
|||||||
bin/adsprpcd
|
bin/adsprpcd
|
||||||
bin/batt_health
|
bin/batt_health
|
||||||
bin/btnvtool
|
bin/btnvtool
|
||||||
|
bin/charge_only_mode
|
||||||
bin/cnd
|
bin/cnd
|
||||||
bin/dbvc_atvc_property_set
|
bin/dbvc_atvc_property_set
|
||||||
bin/hci_qcomm_init
|
bin/hci_qcomm_init
|
||||||
|
|||||||
@@ -244,6 +244,7 @@ on charger
|
|||||||
on moto-charger
|
on moto-charger
|
||||||
setprop ro.board.platform msm8953
|
setprop ro.board.platform msm8953
|
||||||
trigger firmware_mounts_complete
|
trigger firmware_mounts_complete
|
||||||
|
start charge_only_mode
|
||||||
start batt_health
|
start batt_health
|
||||||
start thermal-com
|
start thermal-com
|
||||||
|
|
||||||
@@ -296,6 +297,11 @@ service sensors /system/bin/sensors.qcom
|
|||||||
user root
|
user root
|
||||||
group root
|
group root
|
||||||
|
|
||||||
|
service charge_only_mode /system/bin/charge_only_mode
|
||||||
|
user root
|
||||||
|
group graphics system input
|
||||||
|
disabled
|
||||||
|
|
||||||
service thermal-com /system/vendor/bin/thermal-engine --minimode
|
service thermal-com /system/vendor/bin/thermal-engine --minimode
|
||||||
class main
|
class main
|
||||||
user root
|
user root
|
||||||
|
|||||||
@@ -426,6 +426,7 @@ on post-fs-data
|
|||||||
service charger /charger
|
service charger /charger
|
||||||
class charger
|
class charger
|
||||||
group log
|
group log
|
||||||
|
disabled
|
||||||
|
|
||||||
# Allow usb charging to be disabled peristently
|
# Allow usb charging to be disabled peristently
|
||||||
on property:persist.usb.chgdisabled=1
|
on property:persist.usb.chgdisabled=1
|
||||||
|
|||||||
17
sepolicy/charge_only.te
Normal file
17
sepolicy/charge_only.te
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
type charge_only, domain;
|
||||||
|
type charge_only_exec, exec_type, file_type;
|
||||||
|
init_daemon_domain(charge_only)
|
||||||
|
|
||||||
|
allow charge_only chargeonly_data_file:dir rw_dir_perms;
|
||||||
|
allow charge_only chargeonly_data_file:file rw_file_perms;
|
||||||
|
allow charge_only graphics_device:chr_file rw_file_perms;
|
||||||
|
allow charge_only graphics_device:dir search;
|
||||||
|
allow charge_only input_device:chr_file r_file_perms;
|
||||||
|
allow charge_only input_device:dir search;
|
||||||
|
allow charge_only self:capability { dac_override net_admin sys_tty_config sys_boot };
|
||||||
|
allow charge_only self:netlink_kobject_uevent_socket { bind read setopt create };
|
||||||
|
allow charge_only sysfs:dir { read open };
|
||||||
|
allow charge_only sysfs:file { read open write };
|
||||||
|
allow charge_only sysfs_wake_lock:file rw_file_perms;
|
||||||
|
allow charge_only system_data_file:dir { write add_name };
|
||||||
|
allow charge_only tty_device:chr_file rw_file_perms;
|
||||||
@@ -1,6 +1,9 @@
|
|||||||
# ADSP
|
# ADSP
|
||||||
type adspd_data_file, file_type, data_file_type;
|
type adspd_data_file, file_type, data_file_type;
|
||||||
|
|
||||||
|
# charge_only_mode
|
||||||
|
type chargeonly_data_file, file_type, data_file_type;
|
||||||
|
|
||||||
# FSG
|
# FSG
|
||||||
type fsg_file, fs_type, contextmount_type;
|
type fsg_file, fs_type, contextmount_type;
|
||||||
|
|
||||||
|
|||||||
@@ -7,6 +7,7 @@
|
|||||||
|
|
||||||
# Binaries
|
# Binaries
|
||||||
/system/bin/adspd u:object_r:adspd_exec:s0
|
/system/bin/adspd u:object_r:adspd_exec:s0
|
||||||
|
/system/bin/charge_only_mode u:object_r:charge_only_exec:s0
|
||||||
/system/bin/hci_qcomm_init u:object_r:config_bluetooth_exec:s0
|
/system/bin/hci_qcomm_init u:object_r:config_bluetooth_exec:s0
|
||||||
/system/bin/init\.mmi\.boot\.sh u:object_r:mmi_boot_exec:s0
|
/system/bin/init\.mmi\.boot\.sh u:object_r:mmi_boot_exec:s0
|
||||||
/system/bin/init\.mmi\.touch\.sh u:object_r:mmi_touch_sh_exec:s0
|
/system/bin/init\.mmi\.touch\.sh u:object_r:mmi_touch_sh_exec:s0
|
||||||
@@ -18,6 +19,9 @@
|
|||||||
# CMActions
|
# CMActions
|
||||||
/sys/homebutton(/.*)? u:object_r:sysfs_homebutton:s0
|
/sys/homebutton(/.*)? u:object_r:sysfs_homebutton:s0
|
||||||
|
|
||||||
|
# Motorola services
|
||||||
|
/data/chargeonlymode(/.*)? u:object_r:chargeonly_data_file:s0
|
||||||
|
|
||||||
# Fingerprint
|
# Fingerprint
|
||||||
/data/.fps(/.*)? u:object_r:fingerprintd_data_file:s0
|
/data/.fps(/.*)? u:object_r:fingerprintd_data_file:s0
|
||||||
/data/fpc u:object_r:fingerprintd_data_file:s0
|
/data/fpc u:object_r:fingerprintd_data_file:s0
|
||||||
|
|||||||
Reference in New Issue
Block a user