No description
Find a file
D. Andrei Măceș 2540653e36 msm8226-common: init: Modify time_daemon to allow settimeofday() fallback
The legacy time_daemon binary relied on the old Android alarm dri-
ver for setting RTC at bootup. Once /dev/alarm support was removed
we found that time cannot be restored properly, unless a data con-
nection was available for NTP sync.

However, the blob already has a fallback mechanism that relies on
settimeofday(), except that it could never work properly. While
time_daemon is started under UID/GID of root, it immediately drops
to system/net_raw, which is required for subsequent socket commu-
ications (e.g., QMI, modem, etc).

The issue was that any UID transition from root triggers the remo-
val of all thread capabilities, including CAP_SYS_TIME, required
for settimeofday() or other RTC adjustments. Thus, time_daemon was
edited to skip the internal set[gu]id() calls altoghether, in order
to use the new capabilities mechanism introduced with Oreo init.

Change-Id: I8a0e220b724234c26b99a09b7f54af7996129d67
Signed-off-by: D. Andrei Măceș <andrei@unlegacy-android.org>
Signed-off-by: RenanQueiroz <queirozrrq@gmail.com>
2019-10-16 12:32:04 +02:00
camera [SQUASH]: initial bringup of samsung msm8226-common repo from msm8974-common 2019-10-12 10:17:42 +02:00
configs msm8226-common: Configure the p2p_search_delay to 100 msec 2019-10-16 12:32:04 +02:00
gps Localise NTP to improve GPS TTFF 2018-07-17 19:28:25 -06:00
init [SQUASH]: initial bringup of samsung msm8226-common repo from msm8974-common 2019-10-12 10:17:42 +02:00
keylayout [SQUASH]: initial bringup of samsung msm8226-common repo from msm8974-common 2019-10-12 10:17:42 +02:00
libsecnativefeature msm8974-common: ril: add squash of OSS libsecnativefeature 2018-01-23 06:42:56 -07:00
libshims msm8974-common: libshims: Import libshim_cutils_atomic 2017-11-04 13:18:05 -06:00
libwcnss_qmi [SQUASH]: initial bringup of samsung msm8226-common repo from msm8974-common 2019-10-12 10:17:42 +02:00
overlay msm8226-common: Disable network scan via TelephonyManager 2019-10-16 12:32:04 +02:00
overlay-lineage msm8226-common: Allow media UID process to access CameraServiceProxy 2019-10-16 12:30:58 +02:00
prima msm8226-common: wlan: Disable fatal logging 2019-10-16 12:32:04 +02:00
recovery/root msm8226-common: Set sys.usb.ffs.aio_compat in recovery as well 2019-10-16 12:32:04 +02:00
ril msm8226-common: libril: FR51015: Tuning of Binder buffer for rild. 2019-10-12 10:26:47 +02:00
rootdir msm8226-common: init: Modify time_daemon to allow settimeofday() fallback 2019-10-16 12:32:04 +02:00
seccomp [SQUASH]: initial bringup of samsung msm8226-common repo from msm8974-common 2019-10-12 10:17:42 +02:00
sensors HACK: msm8226-common: sensors: make it compile on P 2019-10-16 12:32:04 +02:00
sepolicy msm8226-common: hal_lineage_livedisplay_default -> hal_lineage_livedisplay_sysfs 2019-10-16 12:32:04 +02:00
Android.mk [SQUASH]: initial bringup of samsung msm8226-common repo from msm8974-common 2019-10-12 10:17:42 +02:00
BoardConfigCommon.mk msm8226-common: Set TARGET_KEYMASTER_SKIP_WAITING_FOR_QSEE 2019-10-16 12:32:04 +02:00
common-proprietary-files.txt [SQUASH]: initial bringup of samsung msm8226-common repo from msm8974-common 2019-10-12 10:17:42 +02:00
compatibility_matrix.xml msm8974-common: Make the common tree more common 2017-12-29 13:07:21 -07:00
config.fs msm8226-common: Prefix AID with VENDOR_ 2019-10-12 10:26:31 +02:00
extract-files.sh [SQUASH]: initial bringup of samsung msm8226-common repo from msm8974-common 2019-10-12 10:17:42 +02:00
lineage.dependencies msm8974-common: Remove device/qcom/common dependency 2018-08-19 10:30:27 -06:00
manifest.xml msm8226-common: Build Samsung LiveDisplay service 2019-10-16 12:32:04 +02:00
msm8226.mk msm8226-common: Increase heap start size to 16m to minimize GC with larger bitmaps 2019-10-16 12:32:04 +02:00
README [SQUASH]: initial bringup of samsung msm8226-common repo from msm8974-common 2019-10-12 10:17:42 +02:00
setup-makefiles.sh [SQUASH]: initial bringup of samsung msm8226-common repo from msm8974-common 2019-10-12 10:17:42 +02:00
system.prop msm8226-common: Enable B-services aging propagation 2019-10-16 12:32:04 +02:00

Copyright 2012 - The CyanogenMod Project

Common Samsung 8226 repository