aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #24 from MarijnS95/fix-ats2-sizeHEADq10.0Alin Jerpelea2020-03-131-11/+17
|\ | | | | timekeep: Ensure ats_2 file is always 8 bytes.
| * timekeep: Ensure ats_2 file is always 8 bytes.MarijnS952020-02-251-11/+13
| | | | | | | | | | | | | | | | | | | | | | `long` on 32-bit platforms is generally 4 bytes long instead of 8 on 64-bit platforms. Use uint64_t to ensure it is always exactly 8 bytes. For consistency convert the other variables to `unsigned long long`, which is guaranteed to hold _at least_ a 64-bit number regardless of the target architecture. Signed-off-by: MarijnS95 <marijns95@gmail.com>
| * timekeep: Use log/log.h on Android 8 and above.MarijnS952020-02-251-0/+4
| | | | | | | | | | | | | | | | | | Fixes the following warning. In file included from vendor/oss/timekeep/timekeep.c:44: system/core/libcutils/include_vndk/cutils/log.h:38:2: warning: "Deprecated: don't include cutils/log.h, use either android/log.h or log/log.h" [-W#warnings] Signed-off-by: MarijnS95 <marijns95@gmail.com>
* | Merge pull request #22 from ArianK16a/masterAlin Jerpelea2020-02-252-1/+4
|\ \ | |/ |/| Build timekeep.rc for all targets and set owner of RTC node
| * timekeep: Build timekeep.rc for all targets and set owner of RTC nodeArian2020-02-122-1/+4
|/ | | | | | | * There is no need to just build it for arm64 * /sys/class/rtc/rtc0/since_epoch has to belong to system for timekeep to work Change-Id: Id14781e8953a07d2aea4cf1924afeb2a25801057
* Merge pull request #20 from ix5/drop-rootAlin Jerpelea2019-05-161-2/+3
|\ | | | | timekeep.rc: Drop root privileges
| * timekeep.rc: Drop root privilegesix52019-03-151-2/+3
| | | | | | | | | | timekeep can run under the system user as long as it possesses CAP_SYS_TIME.
* | Merge pull request #21 from ix5/change-to-compatible-propAlin Jerpelea2019-03-253-3/+3
|\ \ | |/ |/| [WIP] Use persist.vendor.timeadjust for prop
| * Use persist.vendor.timeadjust for propix52019-03-203-3/+3
|/ | | | | This is needed to fulfil Android's new requirements for "compatible" properties.
* use LOCAL_PROPRIETARY_MODULE if SDK version >28Alin Jerpelea2019-02-261-0/+4
| | | | | | | The LOCAL_PROPRIETARY_MODULE is not handled corecly by the older SDK versions and we need a build guard Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* Merge pull request #18 from ix5/vendor-appAlin Jerpelea2019-01-301-0/+1
|\ | | | | TimeKeep: Declare as VENDOR_MODULE
| * TimeKeep: Declare as PROPRIETARY_MODULEix52019-01-301-0/+1
|/ | | | | | Declaring LOCAL_PROPRIETARY_MODULE means TimeKeep.apk will get installed to /vendor/priv-app instead of /system/priv-app, making it compatible with Treble ROMs.
* Merge pull request #16 from luk1337/patch-2Alin Jerpelea2018-09-051-1/+3
|\ | | | | timekeep: Create /data/vendor/time as well
| * timekeep: Create /data/vendor/time as wellLuK13372018-09-051-1/+3
|/ | | | | * Since c8a82a8 has been merged it'd be nice to create directory required for it.
* Merge pull request #12 from stellirin/masterAlin Jerpelea2018-09-051-4/+0
|\ | | | | Remove not needed file permission change
| * Remove not needed file permission changeAdam Farden2017-11-121-4/+0
| | | | | | | | | | | | | | | | | | Setting the permission on the ats_2 file to 0777 is bad since we should not write executable files to /data. With this current functionality timekeep requires invasive sepolicy, such as fowner and fsetid. Changing the permissions on this file is actually not necessary since timekeep is run as root, and the default owner of ats_2 is root with file permissions of 0600. This is actually sufficient for the timekeep functionality, for both the C and Java parts. With this patch we can set saner sepolicy for timekeep. Tested on suzu, confirming the functionality of both timekeep (C) and TimeKeep (Java) services.
* | git push origin masterMerge branch 'luk1337-master'Alin Jerpelea2018-09-053-1/+7
|\ \
| * | Merge branch 'master' of https://github.com/luk1337/timekeep into luk1337-masterAlin Jerpelea2018-09-053-1/+7
|/| |
| * | timekeep: Update RTC_ATS_FILE path to match O changesLuK13372017-09-203-1/+7
| | | | | | | | | | | | Change-Id: Ia4a35bc2c38516f5affce7436f2853aa66c28b95
* | | Merge pull request #15 from jzoran/api-version-guardAlin Jerpelea2018-08-151-1/+1
|\ \ \ | | | | | | | | Don't use shell in make file
| * | | Don't use shell in make fileZoran Jovanovic2018-08-151-1/+1
|/ / / | | | | | | | | | | | | | | | ...when there are alternatives. (It's faster and safer.) Signed-off-by: Zoran Jovanovic <zoran.jovanovic@sony.com>
* | | Merge pull request #14 from luk1337/patch-1Alin Jerpelea2018-08-151-3/+1
|\ \ \ | | | | | | | | Let TimeKeep use private platform APIs
| * | | Let TimeKeep use private platform APIsLuK13372018-08-151-3/+1
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * /we/ tried to fix it before by setting LOCAL_SDK_VERSION := current but apparently no one tested if it actually compiled. * Setting LOCAL_PRIVATE_PLATFORM_APIS := true makes it compile properly as the package depends on private APIs such as android.os.SystemProperties. * Lets also remove unnecessary version filter while at it. There's literally no reason to ever do that. Change-Id: I795d6c647568be1c802e609d8ff93759da3873bd
* | | Merge pull request #13 from SonyAosp/master-pieAlin Jerpelea2018-08-111-4/+4
|\ \ \ | | | | | | | | Timekeep: set LOCAL_SDK_VERSION to current
| * | | Timekeep: set LOCAL_SDK_VERSION to currentDavid2018-08-101-4/+4
|/ / / | | | | | | | | | | | | | | | to avoid build problems in android pie Signed-off-by: David Viteri <davidteri91@gmail.com>
* | | fix build with BOARD_VNDK_VERSIONAlin Jerpelea2018-08-081-1/+2
| | | | | | | | | | | | | | | | | | Add headers explicitly. Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* | | add the timekeep permisisonsAlin Jerpelea2018-01-091-0/+5
| | | | | | | | | | | | | | | | | | the permissions are moved from common folder to the project Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* | | add timekeep.rcAlin Jerpelea2018-01-092-0/+8
| |/ |/| | | | | | | | | the init script is used by Android 8 and later Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
* | Merge pull request #11 from SonyAosp/8.0-styleAlin Jerpelea2017-09-301-0/+4
|\ \ | |/ |/| timekeep: move to vendor
| * timekeep: move to vendorDavid2017-09-301-0/+4
|/ | | | | | | | | | system for aosp stuff vendor for OSS stuff odm for prebuilt libs provided by OEM make sure it will be used since api level 25 n-mr1 Signed-off-by: David Viteri <davidteri91@gmail.com>
* Merge pull request #9 from SonyAosp/8.0-logAlin Jerpelea2017-08-241-1/+1
|\ | | | | timekeep: Add liblog as shared library dependency
| * timekeep: Add liblog as shared library dependencyDavid2017-08-241-1/+1
|/ | | | | | | | | | | fixes hardware/sony/timekeep/timekeep.c:65: error: undefined reference to '__android_log_print' hardware/sony/timekeep/timekeep.c:55: error: undefined reference to '__android_log_print' hardware/sony/timekeep/timekeep.c:89: error: undefined reference to '__android_log_print' hardware/sony/timekeep/timekeep.c:115: error: undefined reference to '__android_log_print' Signed-off-by: David Viteri <davidteri91@gmail.com>
* Merge pull request #8 from humberos/masterAlin Jerpelea2016-08-042-0/+56
|\ | | | | timekeep: Store the adjusted value into ats_2 file
| * timekeep: Store the adjusted value into ats_2 fileHumberto Borba2016-08-042-0/+56
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Store the adjusted value into /data/time/ats_2 file TWRP will read this value from this path and fix the time This patch requires some changes in ramdisk, selinux and twrp. TWRP: TARGET_RECOVERY_QCOM_RTC_FIX := true reference: https://gerrit.omnirom.org/#/c/18410/ RAMDISK: on boot ... mkdir /data/time/ 0700 system system reference: https://gerrit.omnirom.org/#/c/18411/ SELINUX: file.te type timekeep_data_file, file_type, data_file_type; file_contexts /data/time(/.*)? u:object_r:timekeep_data_file:s0 system_app.te allow system_app timekeep_data_file:dir { create_dir_perms search }; allow system_app timekeep_data_file:file create_file_perms; timekeep.te allow timekeep self:capability { sys_time dac_override dac_read_search }; allow timekeep timekeep_data_file:file create_file_perms; allow timekeep timekeep_data_file:dir { create_dir_perms search }; reference: https://gerrit.omnirom.org/#/c/18409/ Signed-off-by: Humberto Borba <humberos@gmail.com> Change-Id: I52ff27c377b8a4663762e0c3f6c21d353217dced
* Merge pull request #4 from humberos/headerAlin Jerpelea2015-10-141-0/+1
|\ | | | | timekeep: fix header include
| * timekeep: fix header includeHumberto Borba2015-09-091-0/+1
|/ | | | | | it is required for memset during karin build process Signed-off-by: Humberto Borba <humberos@gmail.com>
* Merge pull request #3 from AdFad666/masterAlin Jerpelea2015-06-222-0/+3
|\ | | | | TimeKeep should be a privileged system module
| * TimeKeep should be a privileged system moduleAdam Farden2015-06-222-0/+3
|/ | | | | | TimeKeep's sole purpose in life is to update 'persist.sys.timeadjust' so TimeKeep needs to be a privileged system module. This change is necessary for a sane SELinux policy.
* timekeep: fix header includeAlin Jerpelea2015-06-101-0/+1
| | | | | | in m-preview we need to include errno.h Signed-off-by: Alin Jerpelea <alin.jerpelea@sonymobile.com>
* Merge pull request #2 from necioerrante/patch-1Alin Jerpelea2015-04-091-1/+1
|\ | | | | timekeep: fix a typo
| * timekeep: fix a typonecioerrante2015-04-091-1/+1
|/ | | | | | timekeep: fix a typo TAGE -> TAGS Author: Jake Whatley <jacob.whatley91@gmail.com>
* Merge pull request #1 from lissyx/logcat-tagAlin Jerpelea2015-03-251-0/+2
|\ | | | | Adding a log tag for easier filtering
| * Adding a log tag for easier filteringAlexandre Lissy2015-03-251-0/+2
|/
* Intial version of timekeep utilityPer Astrand2015-02-275-1/+298
|
* Add license for timekeep codePer Astrand2015-02-271-0/+15
|
* Initial commitSony Xperia Developer World2015-02-271-0/+1