msm8976-common: Switch to TimeKeep

This commit is contained in:
LuK1337 2017-01-23 13:09:08 +01:00
parent 4b809e4a3e
commit 1a1aee683d
10 changed files with 36 additions and 9 deletions

View File

@ -185,7 +185,7 @@ TARGET_USERIMAGES_USE_F2FS := true
# SELinux
include device/qcom/sepolicy/sepolicy.mk
# BOARD_SEPOLICY_DIRS += $(VENDOR_PATH)/sepolicy
BOARD_SEPOLICY_DIRS += $(VENDOR_PATH)/sepolicy
# Wifi
BOARD_HAS_QCOM_WLAN := true

View File

@ -14,5 +14,9 @@
{
"repository": "android_hardware_samsung",
"target_path": "hardware/samsung"
},
{
"repository": "android_hardware_sony_timekeep",
"target_path": "hardware/sony/timekeep"
}
]

View File

@ -209,6 +209,11 @@ PRODUCT_PACKAGES += \
init.qcom.usb.rc \
ueventd.qcom.rc
# TimeKeep
PRODUCT_PACKAGES += \
timekeep \
TimeKeep
# WCNSS
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/wifi/WCNSS_qcom_sdio_cfg.ini:system/etc/wifi/WCNSS_qcom_sdio_cfg.ini \

View File

@ -470,12 +470,8 @@ vendor/lib64/libthermalioctl.so
vendor/lib/libthermalclient.so
# Time services
-app/TimeService/TimeService.apk
bin/time_daemon
-vendor/lib64/libtime_genoff.so
-vendor/lib/libtime_genoff.so
vendor/lib64/libTimeService.so
vendor/lib/libTimeService.so
# WideVine - from bullhead
vendor/lib/libwvdrm_L1.so|3eaf8ed1cb337608a1ccdb80d2c95804e7aea323

View File

@ -1628,9 +1628,6 @@ service msm_irqbal_lb /system/bin/msm_irqbalance -f /system/vendor/etc/msm_irqba
group root
writepid /dev/cpuset/system-background/tasks
on property:vold.decrypt=trigger_restart_min_framework
start time_daemon
# Start camera server as daemon
service qcamerasvr /system/bin/mm-qcamera-daemon
class late_start
@ -1659,10 +1656,11 @@ service thermal-engine /system/vendor/bin/thermal-engine
group root
writepid /dev/cpuset/system-background/tasks
service time_daemon /system/bin/time_daemon
service timekeep /system/bin/timekeep restore
class late_start
user root
group root
oneshot
writepid /dev/cpuset/system-background/tasks
service audiod /system/bin/audiod

1
sepolicy/file_contexts Normal file
View File

@ -0,0 +1 @@
/system/bin/timekeep u:object_r:timekeep_exec:s0

1
sepolicy/property.te Normal file
View File

@ -0,0 +1 @@
type timekeep_prop, property_type;

View File

@ -0,0 +1 @@
persist.sys.timeadjust u:object_r:timekeep_prop:s0

3
sepolicy/system_app.te Normal file
View File

@ -0,0 +1,3 @@
allow system_app time_data_file:file rw_file_perms;
set_prop(system_app, timekeep_prop)

18
sepolicy/timekeep.te Normal file
View File

@ -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)