FP Open OS: Clock resets after reboot

@Roboe I understand your concerns.
Kernel Adiutor is open source. The Google build is adware, but ads can be removed by donating. Sadly the F-Droid version lacks behind as often the case :frowning:
I cannot find sources for the clock fix apk, but looking at the number of posts in the three years old thread and the thanks given to the dev I decided to give a working clock priority over open source. However I posted the contents of the initscript here. I think it can easily be reversed in order to actually create the offset-file so no additional app is needed. The only problem with that would be to find a trigger for this script to create / update the offset file. One option could be to combine the two in one script with something like “if epoch time is in this millennium, then create/update offset file, else load offset file and set clock”.

[shebang removed to avoid ugly formatting]/system/bin/sh
[[ -f /sdcard/rtc_offset ]] && /system/bin/toolbox date -s $(expr cat /sdcard/rtc_offset + cat /sys/class/rtc/rtc0/since_epoch | awk ’ {print strftime("%Y%m%d.%H%M%S",$1)} ’ ) && exit 0
[[ -f /data/media/rtc_offset ]] && /system/bin/toolbox date -s $(expr cat /data/media/rtc_offset + cat /sys/class/rtc/rtc0/since_epoch | awk ’ {print strftime("%Y%m%d.%H%M%S",$1)} ’ ) && exit 0

2 Likes