msm8976-common: Switch to TimeKeep
This commit is contained in:
parent
4b809e4a3e
commit
1a1aee683d
|
@ -185,7 +185,7 @@ TARGET_USERIMAGES_USE_F2FS := true
|
||||||
|
|
||||||
# SELinux
|
# SELinux
|
||||||
include device/qcom/sepolicy/sepolicy.mk
|
include device/qcom/sepolicy/sepolicy.mk
|
||||||
# BOARD_SEPOLICY_DIRS += $(VENDOR_PATH)/sepolicy
|
BOARD_SEPOLICY_DIRS += $(VENDOR_PATH)/sepolicy
|
||||||
|
|
||||||
# Wifi
|
# Wifi
|
||||||
BOARD_HAS_QCOM_WLAN := true
|
BOARD_HAS_QCOM_WLAN := true
|
||||||
|
|
|
@ -14,5 +14,9 @@
|
||||||
{
|
{
|
||||||
"repository": "android_hardware_samsung",
|
"repository": "android_hardware_samsung",
|
||||||
"target_path": "hardware/samsung"
|
"target_path": "hardware/samsung"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"repository": "android_hardware_sony_timekeep",
|
||||||
|
"target_path": "hardware/sony/timekeep"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
|
@ -209,6 +209,11 @@ PRODUCT_PACKAGES += \
|
||||||
init.qcom.usb.rc \
|
init.qcom.usb.rc \
|
||||||
ueventd.qcom.rc
|
ueventd.qcom.rc
|
||||||
|
|
||||||
|
# TimeKeep
|
||||||
|
PRODUCT_PACKAGES += \
|
||||||
|
timekeep \
|
||||||
|
TimeKeep
|
||||||
|
|
||||||
# WCNSS
|
# WCNSS
|
||||||
PRODUCT_COPY_FILES += \
|
PRODUCT_COPY_FILES += \
|
||||||
$(LOCAL_PATH)/wifi/WCNSS_qcom_sdio_cfg.ini:system/etc/wifi/WCNSS_qcom_sdio_cfg.ini \
|
$(LOCAL_PATH)/wifi/WCNSS_qcom_sdio_cfg.ini:system/etc/wifi/WCNSS_qcom_sdio_cfg.ini \
|
||||||
|
|
|
@ -470,12 +470,8 @@ vendor/lib64/libthermalioctl.so
|
||||||
vendor/lib/libthermalclient.so
|
vendor/lib/libthermalclient.so
|
||||||
|
|
||||||
# Time services
|
# Time services
|
||||||
-app/TimeService/TimeService.apk
|
|
||||||
bin/time_daemon
|
|
||||||
-vendor/lib64/libtime_genoff.so
|
-vendor/lib64/libtime_genoff.so
|
||||||
-vendor/lib/libtime_genoff.so
|
-vendor/lib/libtime_genoff.so
|
||||||
vendor/lib64/libTimeService.so
|
|
||||||
vendor/lib/libTimeService.so
|
|
||||||
|
|
||||||
# WideVine - from bullhead
|
# WideVine - from bullhead
|
||||||
vendor/lib/libwvdrm_L1.so|3eaf8ed1cb337608a1ccdb80d2c95804e7aea323
|
vendor/lib/libwvdrm_L1.so|3eaf8ed1cb337608a1ccdb80d2c95804e7aea323
|
||||||
|
|
|
@ -1628,9 +1628,6 @@ service msm_irqbal_lb /system/bin/msm_irqbalance -f /system/vendor/etc/msm_irqba
|
||||||
group root
|
group root
|
||||||
writepid /dev/cpuset/system-background/tasks
|
writepid /dev/cpuset/system-background/tasks
|
||||||
|
|
||||||
on property:vold.decrypt=trigger_restart_min_framework
|
|
||||||
start time_daemon
|
|
||||||
|
|
||||||
# Start camera server as daemon
|
# Start camera server as daemon
|
||||||
service qcamerasvr /system/bin/mm-qcamera-daemon
|
service qcamerasvr /system/bin/mm-qcamera-daemon
|
||||||
class late_start
|
class late_start
|
||||||
|
@ -1659,10 +1656,11 @@ service thermal-engine /system/vendor/bin/thermal-engine
|
||||||
group root
|
group root
|
||||||
writepid /dev/cpuset/system-background/tasks
|
writepid /dev/cpuset/system-background/tasks
|
||||||
|
|
||||||
service time_daemon /system/bin/time_daemon
|
service timekeep /system/bin/timekeep restore
|
||||||
class late_start
|
class late_start
|
||||||
user root
|
user root
|
||||||
group root
|
group root
|
||||||
|
oneshot
|
||||||
writepid /dev/cpuset/system-background/tasks
|
writepid /dev/cpuset/system-background/tasks
|
||||||
|
|
||||||
service audiod /system/bin/audiod
|
service audiod /system/bin/audiod
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
/system/bin/timekeep u:object_r:timekeep_exec:s0
|
|
@ -0,0 +1 @@
|
||||||
|
type timekeep_prop, property_type;
|
|
@ -0,0 +1 @@
|
||||||
|
persist.sys.timeadjust u:object_r:timekeep_prop:s0
|
|
@ -0,0 +1,3 @@
|
||||||
|
allow system_app time_data_file:file rw_file_perms;
|
||||||
|
|
||||||
|
set_prop(system_app, timekeep_prop)
|
|
@ -0,0 +1,18 @@
|
||||||
|
type timekeep, domain, domain_deprecated;
|
||||||
|
type timekeep_exec, exec_type, file_type;
|
||||||
|
|
||||||
|
# Started by init
|
||||||
|
init_daemon_domain(timekeep)
|
||||||
|
|
||||||
|
allow timekeep self:capability {
|
||||||
|
fowner
|
||||||
|
fsetid
|
||||||
|
sys_time
|
||||||
|
dac_override
|
||||||
|
dac_read_search
|
||||||
|
};
|
||||||
|
|
||||||
|
allow timekeep time_data_file:file create_file_perms;
|
||||||
|
allow timekeep time_data_file:dir create_dir_perms;
|
||||||
|
|
||||||
|
set_prop(timekeep, timekeep_prop)
|
Loading…
Reference in New Issue